Dockge fails to start due to missing file in ./data #672
Unanswered
Katherine1
asked this question in
Ask for Help
Replies: 1 comment 6 replies
-
this sounds like it could be a permissions issue, have you tried a different directory or using chmod to verify that permissions are not an issue? I do this by running ls -l in the parent directory and look at the current permissions, then chmod 777 /opt/dockge/data or even perhaps /opt/dockge and try spinning it up again. it is not a good idea to leave the folder at 777 for security reasons so if this resolves the issue then you may need to chown the dockge directory to root or whatever user id that docker is attached to (default is root) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🛡️ Security Policy
📝 Describe your problem
Followed installation steps.
Rather than run as expected, Dockge creates the ./data directory, but then errors about a missing config .json in that directory. It looks like Dockge creates the data directory, but does not populate it so it fails when trying to open a file in that directory.
📝 Error Message(s) or Log
2024-11-18T01:32:07Z [SERVER] INFO: Welcome to dockge!
2024-11-18T01:32:07Z [SERVER] INFO: NODE_ENV: production
2024-11-18T01:32:07Z [SERVER] INFO: Server Type: HTTP
2024-11-18T01:32:07Z [SERVER] INFO: Data Dir: ./data/
2024-11-18T01:32:07Z [DB] WARN: ENOENT: no such file or directory, open 'data/db-config.json'
2024-11-18T01:32:07Z [SERVER] ERROR: Failed to prepare your database: EACCES: permission denied, open 'data/db-config.json'
🐻 Dockge Version
1.4.2
💻 Operating System and Arch
Fedora 40 x86
🌐 Browser
LibreWolf 132.0.2-1
🐋 Docker Version
Podman 5.2.3
🟩 NodeJS Version
No response
Beta Was this translation helpful? Give feedback.
All reactions