v0.5.5-beta: SQLite Volume Permission Hotfix - #40
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
sqlite3.OperationalError: attempt to write a readonly databasewhen a root-owned Docker volume is mounted at/app/datawhile the container runs as the non-root runtime userrouteforge.Description
backend/docker-entrypoint.shwhich creates/app/data,chown-es it torouteforge:routeforgeand then drops to the runtime user viagosu routeforge "$@".gosu, prepares/appand/app/data, and installs the entrypoint script as an executable (entrypoint execution is done in the image at build time).v0.5.5-beta/0.5.5across backend and frontend surfaces and tests, and updateRELEASE_NOTES.mdwith the hotfix entry.docs/operations/troubleshooting.mdand a short README note explaining the SQLite permission behavior and containing the workaround usingdocker compose run --rm --user root backend sh -c "mkdir -p /app/data && chown -R routeforge:routeforge /app/data && chmod -R u+rwX /app/data"for older releases.Testing
cd backend && pytest -q, all tests passed (77 passed).cd frontend && npm run build, build completed successfully (vite buildproduceddist/output).docker compose build/upand HTTP status check) butdockeris not available in this environment, so runtime smoke test could not be executed here.Codex Task