Could not connect to db: could not open database file [uid=1000, gid=0]: open /db/vikunja.db: permission denied #245

Closed
opened 2025-11-01 20:51:50 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @mdlaat on GitHub (Jul 4, 2024).

Description

After pulling the latest docker version, the container exists with a error in the logs:
CRITICAL ▶ migration/initMigration 002 Could not connect to db: could not open database file [uid=1000, gid=0]: open /db/vikunja.db: permission denied

In my docker run I have two lines:
-e PUID=${uid}
-e PGID=${gid} \

The uid and gid are not changed since earlier versions. The /db/vikunja.db file is owned by this uid and gid.
It looks the migration script is ignoring these settings (see above error) and used uid=1000 and gid=0

Vikunja Version

docker.io/vikunja/vikunja:latest

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Please select

Screenshots

No response

Originally created by @mdlaat on GitHub (Jul 4, 2024). ### Description After pulling the latest docker version, the container exists with a error in the logs: CRITICAL ▶ migration/initMigration 002 Could not connect to db: could not open database file [uid=1000, gid=0]: open /db/vikunja.db: permission denied In my docker run I have two lines: -e PUID=${uid} \ -e PGID=${gid} \ The uid and gid are not changed since earlier versions. The /db/vikunja.db file is owned by this uid and gid. It looks the migration script is ignoring these settings (see above error) and used uid=1000 and gid=0 ### Vikunja Version docker.io/vikunja/vikunja:latest ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Please select ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Jul 4, 2024):

Since Vikunja now uses the scratch docker image as base image, the env variables do not work anymore. I've clarified this in the release notes: https://vikunja.io/changelog/whats-new-in-vikunja-0.24.0/#docker-image-now-uses-scratch-as-base

@kolaente commented on GitHub (Jul 4, 2024): Since Vikunja now uses the scratch docker image as base image, the env variables do not work anymore. I've clarified this in the release notes: https://vikunja.io/changelog/whats-new-in-vikunja-0.24.0/#docker-image-now-uses-scratch-as-base
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#245