Bugfix - Production Django Container Restart Loop#143
Bugfix - Production Django Container Restart Loop#143studebacon wants to merge 1 commit intoGhostManager:masterfrom
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.