Skip to content

TrueNAS Failed to prepare your database: EPERM: operation not permitted, copyfile './db/kuma.db' -> 'data/kuma.db' #7140

@zlehnherr1

Description

@zlehnherr1

⚠️ Please verify that your question has not already been reported

🛡️ Security Policy

📝 Describe your problem

Found a similar issue before, but was closed without any real answer, and was on a different OS.
I am running TrueNAS Scale 25.04.2.6. I am getting the Failed to prepare your database: EPERM: operation not permitted, copyfile './db/kuma.db' -> 'data/kuma.db' error when trying to install it for the first time. Only thing I might be able to link to the issue is that I am not using iXvolumes and instead using a hostpath. At first I had it linked to a folder that had both permissions for apps and root. After it did not work initially, I tried enabling the ACL and making sure it was set to root as the user, however that did not work either. The host path I am using is not a share, and is only used for app configs. Uptime Kuma has its own folder. I can see that some files were created in that folder including db-config.json, docker-tls, screenshots, upload.

📝 Error Message(s) or Log

2026-03-11 23:29:13.035690+00:00Welcome to Uptime Kuma
2026-03-11 23:29:13.039314+00:00Your Node.js version: 22.22.0
2026-03-11 23:29:13.065586+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Env: production
2026-03-11 23:29:13.186225+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Uptime Kuma Version: 2.2.1
2026-03-11 23:29:13.186486+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Loading modules
2026-03-11 23:29:13.687140+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Creating express and socket.io instance
2026-03-11 23:29:13.687711+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Server Type: HTTP
2026-03-11 23:29:13.744142+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Data Dir: ./data/
2026-03-11 23:29:13.744406+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSETUP-DATABASE�[0m] �[36mINFO:�[0m UPTIME_KUMA_DB_TYPE is provided by env, try to override db-config.json
2026-03-11 23:29:13.746933+00:00�[36m2026-03-11T23:29:13Z�[0m [�[38;5;117mDB�[0m] �[36mINFO:�[0m Database Type: sqlite
2026-03-11 23:29:13.747218+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Copying Database
2026-03-11 23:29:13.747977+00:00�[36m2026-03-11T23:29:13Z�[0m [�[32mSERVER�[0m] �[31mERROR:�[0m Failed to prepare your database: EPERM: operation not permitted, copyfile './db/kuma.db' -> 'data/kuma.db'
2026-03-11 23:29:14.292943+00:00Welcome to Uptime Kuma
2026-03-11 23:29:14.296576+00:00Your Node.js version: 22.22.0
2026-03-11 23:29:14.323145+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Env: production
2026-03-11 23:29:14.447744+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Uptime Kuma Version: 2.2.1
2026-03-11 23:29:14.447975+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Loading modules
2026-03-11 23:29:14.940154+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Creating express and socket.io instance
2026-03-11 23:29:14.940715+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Server Type: HTTP
2026-03-11 23:29:14.996544+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Data Dir: ./data/
2026-03-11 23:29:14.996847+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSETUP-DATABASE�[0m] �[36mINFO:�[0m UPTIME_KUMA_DB_TYPE is provided by env, try to override db-config.json
2026-03-11 23:29:14.999449+00:00�[36m2026-03-11T23:29:14Z�[0m [�[38;5;117mDB�[0m] �[36mINFO:�[0m Database Type: sqlite
2026-03-11 23:29:14.999626+00:00�[36m2026-03-11T23:29:14Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Copying Database
2026-03-11 23:29:15.000306+00:00�[36m2026-03-11T23:29:15Z�[0m [�[32mSERVER�[0m] �[31mERROR:�[0m Failed to prepare your database: EPERM: operation not permitted, copyfile './db/kuma.db' -> 'data/kuma.db'
2026-03-11 23:29:15.640886+00:00Welcome to Uptime Kuma
2026-03-11 23:29:15.644515+00:00Your Node.js version: 22.22.0
2026-03-11 23:29:15.670581+00:00�[36m2026-03-11T23:29:15Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Env: production
2026-03-11 23:29:15.788255+00:00�[36m2026-03-11T23:29:15Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Uptime Kuma Version: 2.2.1
2026-03-11 23:29:15.788421+00:00�[36m2026-03-11T23:29:15Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Loading modules
2026-03-11 23:29:16.295587+00:00�[36m2026-03-11T23:29:16Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Creating express and socket.io instance
2026-03-11 23:29:16.296175+00:00�[36m2026-03-11T23:29:16Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Server Type: HTTP
2026-03-11 23:29:16.352896+00:00�[36m2026-03-11T23:29:16Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Data Dir: ./data/
2026-03-11 23:29:16.353139+00:00�[36m2026-03-11T23:29:16Z�[0m [�[32mSETUP-DATABASE�[0m] �[36mINFO:�[0m UPTIME_KUMA_DB_TYPE is provided by env, try to override db-config.json
2026-03-11 23:29:16.355679+00:00�[36m2026-03-11T23:29:16Z�[0m [�[38;5;117mDB�[0m] �[36mINFO:�[0m Database Type: sqlite
2026-03-11 23:29:16.355996+00:00�[36m2026-03-11T23:29:16Z�[0m [�[32mSERVER�[0m] �[36mINFO:�[0m Copying Database
2026-03-11 23:29:16.356662+00:00�[36m2026-03-11T23:29:16Z�[0m [�[32mSERVER�[0m] �[31mERROR:�[0m Failed to prepare your database: EPERM: operation not permitted, copyfile './db/kuma.db' -> 'data/kuma.db'

🐻 Uptime-Kuma Version

App version v2.2.1, Version 1.2.5

💻 Operating System and Arch

TrueNAS 25.04.2.6

🌐 Browser

Firefox

🖥️ Deployment Environment

  • Runtime Environment:
    • Docker: Version X.X.X (Build Y.Y.Y)
    • Docker Compose: Version X.X.X
    • Portainer (BE/CE): Version X.X.X (LTS: Yes/No)
    • MariaDB: Version X.X.X (LTS: Yes/No)
    • Node.js: Version 22.22.0 (LTS: Yes/No)
    • Kubernetes (K3S/K8S): Version X.X.X (LTS: Yes/No, via [method/tool])
  • Database:
    • SQLite: Embedded
    • MariaDB: Embedded/External
  • Database Storage:
    • Filesystem:
      • Linux: ext4/XFS/Btrfs/ZFS/F2FS
      • macOS: APFS/ HFS+
      • Windows: NTFS/ReFS
    • Storage Medium: HDD/eMMC/SSD/NVMe
  • Uptime Kuma Setup:
    • Number of monitors: X

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions