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

SQLite Error #2

Open
kguner opened this issue Oct 31, 2024 · 2 comments
Open

SQLite Error #2

kguner opened this issue Oct 31, 2024 · 2 comments

Comments

@kguner
Copy link

kguner commented Oct 31, 2024

I am using the docker run command as in the readme. The container keeps restarting. I am running on ARM architecture.

docker run -d
--name=davdebrid
-p 8081:8080
--restart unless-stopped
-e DEBRID_ID=debridlink
-e DEBRID_API_KEY=XXXXXXX
-e DATA_FOLDER=/data
-v /docker/davdebrid:/data
arvida42/davdebrid:latest

Log:

    Node.js v20.18.0
    undefined:0
    [Error: SQLITE_CANTOPEN: unable to open database file
    Emitted 'error' event on Database instance at:
    ] {
    �
      errno: 14,
      code: 'SQLITE_CANTOPEN'
    }

hostnamectl:
Static hostname: vm
Icon name: computer-vm
Chassis: vm
Machine ID: 9fddee2a1af749ca874add396b63a0e9
Boot ID: 9c8a3efe704b46a0bdfcadd19669d6de
Virtualization: kvm
Operating System: Oracle Linux Server 8.10
CPE OS Name: cpe:/o:oracle:linux:8:10:server
Kernel: Linux 5.15.0-301.163.5.2.el8uek.aarch64
Architecture: arm64

@kguner
Copy link
Author

kguner commented Nov 1, 2024

It is a permissions issue, I chmod 777 the data directory and it is working.

@arvida42
Copy link
Owner

arvida42 commented Nov 5, 2024

You can use a volume instead of chmod 777 your directory

docker volume create davdebrid_data

docker run -d \
  --name=davdebrid \
  -p 8080:8080 \
  --restart unless-stopped \
  -e DEBRID_ID=debridlink \
  -e DEBRID_API_KEY=apikey \
  -e DATA_FOLDER=/data \
  -v davdebrid_data:/data \
  arvida42/davdebrid:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants