Skip to content

Fix permission errors when building docker container - #1137

Open
garyp wants to merge 1 commit into
sissbruecker:masterfrom
garyp:fix-docker-perms
Open

Fix permission errors when building docker container#1137
garyp wants to merge 1 commit into
sissbruecker:masterfrom
garyp:fix-docker-perms

Conversation

@garyp

@garyp garyp commented Jul 23, 2025

Copy link
Copy Markdown

When I tried to build the docker container locally, it failed to start because my default umask is more restrictive. As a result the python source files that got copied into the container ended up with -rw------- permissions and were not readable by the uwsgi user.

Also add need-app=true to uwsgi.ini for easier debugging when things don't work. Because of the permission errors inside the container, uwsgi was unable to load bookmarks.wsgi but it continued starting up anyways. Adding need-app=true causes uwsgi to fail and exit if it can't load the WSGI app for some reason. This makes it much easier to catch startup errors.

Also add `need-app=true` to `uwsgi.ini` for easier debugging when things
don't work. Because of the permission errors inside the container,
`uwsgi` was unable to load `bookmarks.wsgi` but it continued starting up
anyways. Adding `need-app=true` causes `uwsgi` to fail and exit if it
can't load the WSGI app for some reason. This makes it much easier to
catch startup errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant