arvida42 / davdebrid

A self-hosted WebDAV server for Debrid-Link, automatically organizing your media files (Movies/TV Shows) for seamless integration with your media center.
Apache License 2.0
4 stars 1 forks source link

SQLite Error #2

Open kguner opened 3 weeks ago

kguner commented 3 weeks ago

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 commented 2 weeks ago

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

arvida42 commented 2 weeks ago

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