Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create database on initial launch #604

Open
2 tasks done
Someone777 opened this issue Sep 3, 2024 · 1 comment
Open
2 tasks done

Failed to create database on initial launch #604

Someone777 opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Someone777
Copy link

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Install on OMV 7.4.7-1

Container fails to start with the following error:

[SERVER] ERROR: Failed to prepare your database: PRAGMA journal_mode = WAL - SQLITE_IOERR: disk I/O error

This may or may not be related to the data drive being a mergerfs pool.

👟 Reproduction steps

Create a docker compose file using the interactive compose.yaml generator.

Save it and run it using the Compose GUI in OMV.

👀 Expected behavior

Dockge running without an error.

😓 Actual Behavior

Dockge failing to run and giving the error:
[SERVER] ERROR: Failed to prepare your database: PRAGMA journal_mode = WAL - SQLITE_IOERR: disk I/O error

Dockge Version

1.4.2

💻 Operating System and Arch

Debian 12

🌐 Browser

Firefox 128.0.3

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

2024-09-03T10:31:42Z [SERVER] INFO: Welcome to dockge!
2024-09-03T10:31:42Z [SERVER] INFO: NODE_ENV: production
2024-09-03T10:31:42Z [SERVER] INFO: Server Type: HTTP
2024-09-03T10:31:42Z [SERVER] INFO: Data Dir: ./data/
2024-09-03T10:31:42Z [DB] INFO: Database Type: sqlite
2024-09-03T10:31:42Z [SERVER] ERROR: Failed to prepare your database: PRAGMA journal_mode = WAL - SQLITE_IOERR: disk I/O error
@Someone777 Someone777 added the bug Something isn't working label Sep 3, 2024
@phil9309
Copy link

phil9309 commented Oct 1, 2024

I have the same error trying to install dockge on omv docker, also using a mergerfs pool. All files get created correctly.

EDIT:

Solution:

This is indeed a mergerfs problem, check: https://github.com/trapexit/mergerfs/tree/2.34.1#you-need-mmap-used-by-rtorrent-and-many-sqlite3-base-software

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants