-
Notifications
You must be signed in to change notification settings - Fork 223
Bugfix - Production Django Container Restart Loop #143
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
Conversation
…p due do a lack of permission on the /app/ghostwriter/media folder. Running mkdir /app/ghostwriter/media prior to chown -R django /app in the Dockerfile corrects the issue.
|
Had the same issue. Logs found: Symptons: Updating the dockerfile for django as instructed above fixed the issue |
|
@studebacon @Kaicastledine Someone else mentioned an issue (off GitHub) that could be related to this. I looked into with them and we determined the container had built incorrectly. I have not encountered it myself, but this seems to be a rare issue caused by the build going a bit sideways. I'm not opposed to working around a rare permissions snafu with a |
So this was a new issue with the last release, if that's any help. |
|
Yep! That does help. With the latest release, we bumped up versions of a few things, including the Alpine Linux image. That might explain the appearance of a rare filesystem bug like this. This PR is likely the best way for the project to address it. |
|
This is a race condition with the nginx container. The nginx container is defaulted to |
Enhancement: Incorporating PRs GhostManager#143, GhostManager#152, and GhostManager#158 See merge request ghostmanager/Ghostwriter!114
|
That's interesting, @arledesma. It makes sense. A race condition would explain why it's not easily reproduced and wasn't reported by others. I included this patch in the latest release, v2.2, but I'm curious to see where your WIP #163 goes. |
The production django container would get stuck in a restart loop due do a lack of permission on the /app/ghostwriter/media folder.
Running mkdir /app/ghostwriter/media prior to chown -R django /app in the Dockerfile corrects this issue.