[Bug]: sqlite fails on docker compose up #2826

Closed
opened 2026-02-28 20:29:42 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @tim-connect on GitHub (Jan 15, 2026).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

The provided docker container appears to have a sqlite issue:
Attaching to actual_server-1 actual_server-1 | Checking if there are any migrations to run for direction "up"... actual_server-1 | Migrations: DONE actual_server-1 | /app/node_modules/better-sqlite3/lib/database.js:65 actual_server-1 | throw new TypeError('Cannot open database because the directory does not exist'); actual_server-1 | ^ actual_server-1 | actual_server-1 | TypeError: Cannot open database because the directory does not exist actual_server-1 | at new Database (/app/node_modules/better-sqlite3/lib/database.js:65:9) actual_server-1 | at openDatabase (file:///app/src/db.js:49:32) actual_server-1 | at getAccountDb (file:///app/src/account-db.js:11:22) actual_server-1 | at file:///app/src/app-sync/services/files-service.js:157:39 actual_server-1 | at ModuleJob.run (node:internal/modules/esm/module_job:195:25) actual_server-1 | at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) actual_server-1 | actual_server-1 | Node.js v18.20.1 actual_server-1 exited with code 0

actual_server:
image: docker.io/actualbudget/actual-server:latest-alpine
expose:
- '5006'
volumes:
- "/mnt/secure/actual-budget/secrets:/live_secrets:ro"
- "/mnt/secure/actual-budget/data:/data"
restart: unless-stopped

How can we reproduce the issue?

$ docker run --pull=always --restart=unless-stopped -d -p 5006:5006 -v YOUR/PATH/TO/DATA:/data --name my_actual_budget actualbudget/actual-server:latest

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

No response

Operating System

Linux

Originally created by @tim-connect on GitHub (Jan 15, 2026). ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? The provided docker container appears to have a sqlite issue: `Attaching to actual_server-1 actual_server-1 | Checking if there are any migrations to run for direction "up"... actual_server-1 | Migrations: DONE actual_server-1 | /app/node_modules/better-sqlite3/lib/database.js:65 actual_server-1 | throw new TypeError('Cannot open database because the directory does not exist'); actual_server-1 | ^ actual_server-1 | actual_server-1 | TypeError: Cannot open database because the directory does not exist actual_server-1 | at new Database (/app/node_modules/better-sqlite3/lib/database.js:65:9) actual_server-1 | at openDatabase (file:///app/src/db.js:49:32) actual_server-1 | at getAccountDb (file:///app/src/account-db.js:11:22) actual_server-1 | at file:///app/src/app-sync/services/files-service.js:157:39 actual_server-1 | at ModuleJob.run (node:internal/modules/esm/module_job:195:25) actual_server-1 | at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) actual_server-1 | actual_server-1 | Node.js v18.20.1 actual_server-1 exited with code 0` actual_server: image: docker.io/actualbudget/actual-server:latest-alpine expose: - '5006' volumes: - "/mnt/secure/actual-budget/secrets:/live_secrets:ro" - "/mnt/secure/actual-budget/data:/data" restart: unless-stopped ### How can we reproduce the issue? $ docker run --pull=always --restart=unless-stopped -d -p 5006:5006 -v YOUR/PATH/TO/DATA:/data --name my_actual_budget actualbudget/actual-server:latest ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? _No response_ ### Operating System Linux
GiteaMirror added the bug label 2026-02-28 20:29:43 -06:00
Author
Owner

@tim-connect commented on GitHub (Jan 15, 2026):

Found the issue, the process was halted halfway through the first start, clearing the data files and patch.json fixed it.

@tim-connect commented on GitHub (Jan 15, 2026): Found the issue, the process was halted halfway through the first start, clearing the data files and patch.json fixed it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#2826