matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.75k stars 676 forks source link

Contributing to Dendrite #1981

Closed KarolosLykos closed 2 years ago

KarolosLykos commented 3 years ago

Hello guys,

I really need some help on start contributing to dendrite. I followed the instruction on the INSTALL.md file and managed to start the dendrite homeserver. I connected to the element matrix client but I can't join any rooms or direct message anyone.

I get this error whenever I am trying to add the dendrite room:

ERRO[2021-08-20T15:27:19.119781000Z] [directory.go:84] DirectoryRoom
         federation.LookupRoomAlias failed             error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 65 85 84 72 79 82 73 90 69 68 34 44 34 101 114 114 111 114 34 58 34 70 97 105 108 101 100 32 116 111 32 102 105 110 100 32 97 110 121 32 107 101 121 32 116 111 32 115 97 116 105 115 102 121 58 32 95 70 101 116 99 104 75 101 121 82 101 113 117 101 115 116 40 115 101 114 118 101 114 95 110 97 109 101 61 39 108 111 99 97 108 104 111 115 116 39 44 32 109 105 110 105 109 117 109 95 118 97 108 105 100 95 117 110 116 105 108 95 116 115 61 49 54 50 57 52 55 51 50 51 57 49 48 54 44 32 107 101 121 95 105 100 115 61 91 39 101 100 50 53 53 49 57 58 121 103 80 111 101 79 39 93 41 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/v1/query/directory\") code=401 wrapped=M_UNAUTHORIZED: Failed to find any key to satisfy: _FetchKeyRequest(server_name='localhost', minimum_valid_until_ts=1629473239106, key_ids=['ed25519:ygPoeO'])" req.id=0szVOkQ66zzi req.method=GET req.path="/_matrix/client/r0/directory/room/#dendrite:matrix.org"
ERRO[2021-08-20T15:27:20.092040000Z] [device_list_update.go:401] processServer
         failed to query device keys for some users    context=missing failed=1 server_name=matrix.org total=1 wait=1m3.999997122s
ERRO[2021-08-20T15:28:24.966398000Z] [device_list_update.go:401] processServer
         failed to query device keys for some users    context=missing failed=1 server_name=matrix.org total=1 wait=2m7.999997147s
ERRO[2021-08-20T15:30:33.299137000Z] [device_list_update.go:401] processServer
         failed to query device keys for some users    context=missing failed=1 server_name=matrix.org total=1 wait=4m15.999998297s
ERRO[2021-08-20T15:34:49.864113000Z] [device_list_update.go:401] processServer
         failed to query device keys for some users    context=missing failed=1 server_name=matrix.org total=1 wait=8m31.999997267s
ERRO[2021-08-20T15:43:22.844920000Z] [device_list_update.go:401] processServer
         failed to query device keys for some users    context=missing failed=1 server_name=matrix.org total=1 wait=17m3.999997007s
ERRO[2021-08-20T15:47:26.371584000Z] [directory.go:84] DirectoryRoom
         federation.LookupRoomAlias failed             error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 65 85 84 72 79 82 73 90 69 68 34 44 34 101 114 114 111 114 34 58 34 70 97 105 108 101 100 32 116 111 32 102 105 110 100 32 97 110 121 32 107 101 121 32 116 111 32 115 97 116 105 115 102 121 58 32 95 70 101 116 99 104 75 101 121 82 101 113 117 101 115 116 40 115 101 114 118 101 114 95 110 97 109 101 61 39 108 111 99 97 108 104 111 115 116 39 44 32 109 105 110 105 109 117 109 95 118 97 108 105 100 95 117 110 116 105 108 95 116 115 61 49 54 50 57 52 55 52 52 52 54 51 57 49 44 32 107 101 121 95 105 100 115 61 91 39 101 100 50 53 53 49 57 58 121 103 80 111 101 79 39 93 41 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/v1/query/directory\") code=401 wrapped=M_UNAUTHORIZED: Failed to find any key to satisfy: _FetchKeyRequest(server_name='localhost', minimum_valid_until_ts=1629474446391, key_ids=['ed25519:ygPoeO'])" req.id=fcIsFdrNSiig req.method=GET req.path="/_matrix/client/r0/directory/room/#dendrite:matrix.org"

Am I missing something?

neilalexander commented 3 years ago

M_UNAUTHORIZED: Failed to find any key to satisfy: _FetchKeyRequest(server_name='localhost'...

You can't use localhost as a server domain and participate in the Matrix federation. You will need to use a valid domain name and publicly-verifiable TLS certificate. The federation tester can be used to check if your setup is suitable for open federation.

KarolosLykos commented 3 years ago

Thank you for the reply. So I changed the server name with my domain matrix.karoloslykos.com. I have issued a TLS certificate using cerbot and added a _matrix._tcp DNS SRV record. But again I get the same error.

kegsay commented 2 years ago

Check with https://federationtester.matrix.org - it doesn't work https://federationtester.matrix.org/#matrix.karoloslykos.com Either way this is a support question, please use #dendrite:matrix.org for that.