Community maintained Docker config for the knot server
98
fork

Configure Feed

Select the types of activity you want to include in your feed.

I encountered an error after installing using the tngl/knot:v1.10.0-alpha Docker image. #4

open opened by arona.tngl.sh

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service create-sshd-host-keys: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service create-sshd-host-keys successfully started s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service sshd: starting s6-rc: info: service knotserver: starting s6-rc: info: service sshd successfully started s6-rc: info: service knotserver successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started Server listening on 0.0.0.0 port 22. Server listening on :: port 22. 2026/03/29 08:18:00 INFO knot/server: successfully finished setting up hooks 2026/03/29 08:18:00 ERRO knot: failed to load db: unable to open database file: no such file or directory 2026/03/29 08:18:01 INFO knot/server: successfully finished setting up hooks 2026/03/29 08:18:01 ERRO knot: failed to load db: unable to open database file: no such file or directory 2026/03/29 08:18:02 INFO knot/server: successfully finished setting up hooks 2026/03/29 08:18:02 ERRO knot: failed to load db: unable to open database file: no such file or directory 2026/03/29 08:18:03 INFO knot/server: successfully finished setting up hooks 2026/03/29 08:18:03 ERRO knot: failed to load db: unable to open database file: no such file or directory 2026/03/29 08:18:04 INFO knot/server: successfully finished setting up hooks 2026/03/29 08:18:04 ERRO knot: failed to load db: unable to open database file: no such file or directory

How should I solve this problem?

i believe i may have also had this issue until i explicitly passed KNOT_SERVER_DB_PATH=/app/knotserver.db as an env to docker


also although 1.10.0-alpha is the latest image pushed to dockerhub the latest release is actually 1.13.0-alpha. you probably want to build the Dockerfile yourself to run the latest version

upd: it looks like there's now a container registry with the latest image available: https://atcr.io/r/tangled.org/knot

(note: i'm having some problems on the latest version though, so be warned)

I encountered the same error

knot: failed to load db: unable to open database file: no such file or directory

The error was when using the docker-compose file, with bind-mounted volumes, the user owning the directories is the user who created the on the host, by running mkdir.

The solution that work for me was to change ownership of the bind-mounted volumes, to use the IDs of the user/group that is used inside the container.

So I ran create my volumes using :

mkdir keys repositories server
chown -R 1000:1000 keys repositories server

I've openned a PR to add this to the readme.

sign up or login to add to the discussion
Labels

None yet.

Participants 3
AT URI
at://did:plc:f2h57wapvsdsbjwbvfolzrn6/sh.tangled.repo.issue/3mi6pn2iom522