Community maintained Docker config for the knot server

Knot v2 authentication error #9

Closed khena.eu
Closed opened by khena.eu

Hi,

I'm new to tangled/knot and I'm trying to setup a new knot2 instance from scratch (no migration) , adapting the docker-compose example and the atcr.io/tangled.org/knot:2 image to my configuration and reverse proxy (traefik)

Everthing seems to be fine (only one warning " tls.http3 is set without any TLS certificate, so HTTP/3 won't start. Configure a static cert or ACME to serve h3. " in the log ) and the knot is verified in my tangled settings.

But I cannot use my own knot where I want to create a repo, I have this error :

"XRPC ERROR 401: AuthenticationRequired: did:plc:mydid doesn't have a DID document, the directory answered HTTP 404"

(and mydid is into the KNOT_SERVER_OWNER env )

Thank for you help if you have an idea !

hi! what DID is this exactly?

It's mine did : did:plc:htuxe72j7mxbotleidqgbup4 (the owner) KNOT_SERVER_OWNER="did:plc:htuxe72j7mxbotleidqgbup4"

(I also tried to had another env KNOT_ADMINS="did:plc:htuxe72j7mxbotleidqgbup4" )

the container definitely has access to the internet right? KNOT_SERVER_OWNER isn't an env variable for knot2, but KNOT_ADMINS is, so it's that that needs work

thank for helping.

-> KNOT_ADMINS in place : KNOT_ADMINS="did:plc:htuxe72j7mxbotleidqgbup4"

-> curl https://www.tangled.org inside the container is working

Still the same XRPC ERROR 401: AuthenticationRequired: did:plc:htuxe72j7mxbotleidqgbup4 doesn't have a DID document, the directory answered HTTP 404

my knot.env

KNOT_HOSTNAME="knot.khena.eu"
KNOT_MASTER_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# KNOT_SERVER_OWNER="did:plc:htuxe72j7mxbotleidqgbup4"
KNOT_ADMINS="did:plc:htuxe72j7mxbotleidqgbup4"
KNOT_PLC_DIRECTORY="https://knot.khena.eu"
KNOT_LISTEN_ADDR="[::]:5555"
KNOT_SSH_LISTEN_ADDR="[::]:2222"
KNOT_GIT_OBJECT_FORMAT="sha256"
KNOT_OBJECT_FORMAT="sha256"
KNOT_XRPC_TRUSTED_PROXY_HEADER="x-forwarded-for"
KNOT_XRPC_TRUSTED_PROXIES="172.19.0.0/16"

yeeeeees thank you it's obvious now you point it .

Thank a lot !

no prob!!!

(don't say it don't say it don't say it) (i have to say it)

happy knotting!!!!

Sign up or Sign in to add to the discussion.