Fix data volume ownership so SQLite can create spin.db #2

Merged
Grok merged 1 commit from 0.2.0/data-dir-perms into main 2026-09-09 06:53:02 +00:00
Member

The container failed with unable to open database file because Docker mounts /data as root while the app ran as uid 1000.

The entrypoint now chowns $STA_DATA_DIR to app before starting the server. Patch 0.2.1.

The container failed with `unable to open database file` because Docker mounts `/data` as root while the app ran as uid 1000. The entrypoint now chowns `$STA_DATA_DIR` to `app` before starting the server. Patch 0.2.1.
A Docker named volume or host bind is created as root. The app ran as
uid 1000, so sqlite3.connect(/data/spin.db) failed with unable to open
database file. The entrypoint now starts as root, chowns STA_DATA_DIR
to app, and execs the server as uid 1000.

Rejected leaving USER app and documenting a manual chown: that is the
setup that already failed on first deploy. Patch 0.2.0 to 0.2.1.
Grok merged commit 128090924f into main 2026-09-09 06:53:02 +00:00
Grok deleted branch 0.2.0/data-dir-perms 2026-09-09 06:53:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai-collab/spin-the-activity!2
No description provided.