Portainer stack - Failed to run job
Any help would be much appreciated!
Here is my setup:
Docker host: Ubuntu 20.04.6 LTS VM running on Hyper-V. Manged via portainer stacks.
Data lives on a windows 2019 fileserver on the same network. (FS1)
On the docker host, I have a CIFS shared drive on FS1 mapped to /mnt/dockervolumes/
I have many other stacks using this mount point in their docker-compose files (portainer stacks) and haven't had many permission issues at all.
When starting a new Homarr stack, I use this as my compose file:
__
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /mnt/docker_volumes/homarr:/appdata
environment:
- SECRET_ENCRYPTION_KEY=keyishere
ports:
- '7575:7575'
__
I have tried using "user: uid:gid" to specify the owner of the "/mnt/docker_volumes/homarr" folder with no luck.
Tried chown and chmod 777 with the specified user.
When the stack starts - this is what I get in the container log:
2025-04-11T20:50:00.499Z error: Failed to run job 'mediaRequestList': SqliteError: no such table: serverSetting
2025-04-11T20:50:00.499Z error: Failed to run job 'indexerManager': SqliteError: no such table: serverSetting
2025-04-11T20:50:00.499Z error: Failed to run job 'healthMonitoring': SqliteError: no such table: serverSetting
2025-04-11T20:50:00.649Z error: Failed to run job 'minecraftServerStatus': SqliteError: no such table: item
2025-04-11T20:50:00.650Z error: Failed to run job 'mediaTranscoding': SqliteError: no such table: serverSetting
2025-04-11T20:50:00.651Z error: Failed to run job 'networkController': SqliteError: no such table: serverSetting
2025-04-11T20:50:05.496Z error: Failed to run job 'mediaServer': SqliteError: no such table: serverSetting
2025-04-11T20:50:05.496Z error: Failed to run job 'downloads': SqliteError: no such table: serverSetting
2025-04-11T20:50:05.496Z error: Failed to run job 'dnsHole': SqliteError: no such table: serverSetting
2025-04-11T20:50:05.496Z error: Failed to run job 'healthMonitoring': SqliteError: no such table: serverSetting
2025-04-11T20:50:10.502Z error: Failed to run job 'mediaServer': SqliteError: no such table: serverSetting
2025-04-11T20:50:10.502Z error: Failed to run job 'downloads': SqliteError: no such table: serverSetting
2025-04-11T20:50:10.503Z error: Failed to run job 'dnsHole': SqliteError: no such table: serverSetting
2025-04-11T20:50:10.503Z error: Failed to run job 'healthMonitoring': SqliteError: no such table: serverSetting
2025-04-11T20:50:15.505Z error: Failed to run job 'mediaServer': SqliteError: no such table: serverSetting
2025-04-11T20:50:15.505Z error: Failed to run job 'downloads': SqliteError: no such table: serverSetting
2025-04-11T20:50:15.505Z error: Failed to run job 'dnsHole': SqliteError: no such table: serverSetting
2025-04-11T20:50:15.505Z error: Failed to run job 'healthMonitoring': SqliteError: no such table: serverSetting
2025-04-11T20:50:20.512Z error: Failed to run job 'mediaServer': SqliteError: no such table: serverSetting
2025-04-11T20:50:20.512Z error: Failed to run job 'downloads': SqliteError: no such table: serverSetting
2025-04-11T20:50:20.512Z error: Failed to run job 'dnsHole': SqliteError: no such table: serverSetting
2025-04-11T20:50:20.512Z error: Failed to run job 'healthMonitoring': SqliteError: no such table: serverSetting
12 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
When you want to run your container as a different user you can find more details on this page:
https://homarr.dev/docs/advanced/running-as-different-user/
Running as a different user | Homarr documentation
By default the container is running with user root and group root.
I don't want to run it as a different user - I just want it to initialize the database on the stack and stop throwing that error.
Can you post the logs when it is starting?
I would suspect that the problem is that you are using the docker socket and this is only possible with running it with a different user (the user that has access to the socket on the host)
https://homarr.dev/docs/advanced/running-as-different-user/#with-mounted-docker-socket
Running as a different user | Homarr documentation
By default the container is running with user root and group root.
trying this
yeah it's definitely a permission issue -
I followed the document and it didn't work, so I tried switching it to 1000:1000
which is my www-data account that owns everything
and that didn't work either
here is the log:
the weird thing is
when I delete all the files under the homarr folder and recreate the stack, it will make the new folder structure correctly and even create the db.sqlite file.

it just can't edit it after it makes it?
It seems like your mounted directories can not be changed by the user configured: SQLITE_READONLY
I would suggest you chown them locally to the configured user id
I have tried that
I have tried running as root / www-data / my user
I have tried changing ownership of the db file and the folder, and the other folders recursively to all of the accounts with the same results for each.
Have you tried using the mysql support in Homarr for external databases? Then the problems with the sqlite database should no longer be an issue.