Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel inside Docker not writing to log file #4838

Closed
3 tasks done
davemsh opened this issue Aug 12, 2023 · 3 comments · Fixed by #4839
Closed
3 tasks done

Panel inside Docker not writing to log file #4838

davemsh opened this issue Aug 12, 2023 · 3 comments · Fixed by #4839
Labels
bug Something that's not working as it's intended to be.

Comments

@davemsh
Copy link

davemsh commented Aug 12, 2023

Current Behavior

I've got Panel running using the official Docker image (ghcr.io/pterodactyl/panel:v1.11.3) on Ubuntu Server 22.04 host system, but there seems to be an issue with how the provided Docker Compose yml is mounting the logs path.

The problem is that nothing gets logged. Nothing at all. The Laravel log file gets created, but nothing gets written to it, aside from a single message that only occurs on initial container creation that says the following:
[2023-08-12 03:12:25] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'panel.settings' doesn't exist (SQL: select * from `settings`)

After this message, nothing ever gets logged afterward, so long as the logs folder is mounted in Docker.

If I comment out the line where the logs folder gets mounted (/srv/pterodactyl/logs/:/app/storage/logs), it works fine, but then the logs aren't visible without going into the container's terminal.

Expected Behavior

Logs are properly written to the mounted folder path.

Steps to Reproduce

Run a fresh instance of Panel on Docker using the example Docker Compose.

Panel Version

1.11.3

Wings Version

N/A, haven't set that up yet

Games and/or Eggs Affected

No response

Docker Image

ghcr.io/pterodactyl/panel:v1.11.3

Error Logs

There are no logs being written due to this issue.

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
@davemsh davemsh added the not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. label Aug 12, 2023
@Loki-101
Copy link

Loki-101 commented Aug 12, 2023

This is a known issue with the image. Until it's addressed the suggested fix is docker compose exec panel chown -R nginx: /app/storage/logs/

@davemsh
Copy link
Author

davemsh commented Aug 12, 2023

The workaround worked, thanks!

@parkervcp
Copy link
Member

I'll have a pr to fix this today

@matthewpi matthewpi added bug Something that's not working as it's intended to be. and removed not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. labels Aug 23, 2023
@matthewpi matthewpi linked a pull request Aug 23, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this to 🆕 New in Backlog Aug 23, 2023
@matthewpi matthewpi moved this from 🆕 New to 👀 In review in Backlog Aug 23, 2023
@matthewpi matthewpi moved this from 👀 In review to 🔖 Awaiting merge in Backlog Aug 23, 2023
@matthewpi matthewpi moved this from 🔖 Awaiting merge to 🧨 Awaiting release in Backlog Aug 23, 2023
@matthewpi matthewpi moved this from 🧨 Awaiting release to 🎉 Released in Backlog Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that's not working as it's intended to be.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants