I’ve started a Docker container, with a volume mounted at /storage. I then start Vikunja with the following environment variables:
VIKUNJA_DATABASE_TYPE: sqlite
VIKUNJA_DATABASE_PATH: /storage/vikunja.db
However, Vikunja API fails to start:
usermod: no changes
2020/06/22 07:53:59 Config File "config" Not Found in "[/app/vikunja /etc/vikunja /app/vikunja/.config/vikunja]"
2020/06/22 07:53:59 Using default config.
2020-06-22T07:53:59.935817756Z: CRITICAL ▶ migration/Migrate 002 Migration failed: unable to open database file: no such file or directory
I’ve checked that /storage exists by replacing the command with ls -la /storage
:
total 24
drwxr-xr-x 3 root root 4096 Jun 21 17:19 .
drwxr-xr-x 1 root root 4096 Jun 22 07:57 ..
drwx------ 2 root root 16384 Jun 21 17:19 lost+found
Why isn’t the vikunja.db created when the API starts?