Community maintained Docker config for the knot server
101
fork

Configure Feed

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

Database file is seemingly never created #3

open opened by tholps.site

Tested on Debian Bookworm x64 & Ubuntu aarch64

Upon making a new knot instance the log is spammed with level=ERROR msg="failed to load db: unable to open database file: no such file or directory" and level=INFO msg="successfully finished setting up hooks" command=knot. The server directory is made but is empty

Also probably related: running ls -l in the host reveals the three created folders are belong to root:root though the Dockerfile seems to intend this to be owned by the created git user

Also probably related: running ls -l in the host reveals the three created folders belong to root:root though the Dockerfile seems to set them to be owned by the created git user

This is happening for me as well

chown'ing my knot's working directory seemed to fix it for me

I'm also running into this issue. I'm confused by what's happening with chown here cause like @tholps.site said, the Dockerfile is trying to set the owner to git:git, but in the host it says the owner is root:root - but when I try to chown it myself like @rad.being.cat's suggestion, it doesn't fix the problem for me. Not sure where to go from here.

Does PR #3 (merged) fix this? I'm not on Debian and these issues seem to only happen on Debian.

similar to @rad.being.cat, chown-ing the server/ directory in the knot's working directory on my host worked for me

I'm unable to get this working with Podman, no matter how I configure the compose file or run the image directly. Quite stuck on this one (Fedora server, Podman)

Changed to docker and missed the issues with rootfs. Got it working now via docker at least.

chown didn't work for me, I needed to chmod the server directory.

setting the owner of the /app folder inside the container as git:git fixed the issue for me

sign up or login to add to the discussion
Labels

None yet.

Participants 10
AT URI
at://did:plc:h3ogy4c4ljm7iumhga2uplae/sh.tangled.repo.issue/3luk3si7o2v22