matrix-org / dendrite

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

Unable to join public rooms #3248

Open blind-oracle opened 11 months ago

blind-oracle commented 11 months ago

Background information

dendrite is running behind nginx that does TLS termination and reverse proxy.

    location /.well-known/matrix/server {
        return 200 '{ "m.server": "novg.net:443" }';
    }

    location /.well-known/matrix/client {
        return 200 '{ "m.homeserver": { "base_url": "https://novg.net" } }';
    }

    location /_matrix {
        proxy_pass                 http://127.0.0.1:8088;
        proxy_set_header Host      $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_read_timeout         600;
    }

Description

Steps to reproduce

The errors 524/520 look like a Cloudflare timeouts or similar, but doing curl works fine to the given URLs.

In the logs:

Oct 28 18:19:27 novg dendrite[3205549]: time="2023-10-28T16:19:27.855043139Z" level=warning msg="Failed to join room through server" error="r.federation.SendJoin: contents=[] msg=Failed to PUT JSON (hostname \"matrix.org\" path \"/_matrix/federation/v2/send_join/!OGEhHVWSdvArJzumhm:matrix.org/$HohCRwjjZWmrs54SNMven2HXOr-0u2_WdKF0zl4zfJQ\"):  code=524 wrapped=" room_id="!OGEhHVWSdvArJzumhm:matrix.org" server_name=matrix.org
Oct 28 18:19:28 novg dendrite[3205549]: time="2023-10-28T16:19:27.855146010Z" level=error msg="failed to join user \"@blind_oracle:novg.net\" to room \"!OGEhHVWSdvArJzumhm:matrix.org\" through 2 server(s): last error r.federation.SendJoin: contents=[] msg=Failed to PUT JSON (hostname \"matrix.org\" path \"/_matrix/federation/v2/send_join/!OGEhHVWSdvArJzumhm:matrix.org/$HohCRwjjZWmrs54SNMven2HXOr-0u2_WdKF0zl4zfJQ\"):  code=524 wrapped="
Oct 28 18:19:28 novg dendrite[3205549]: time="2023-10-28T16:19:27.855207419Z" level=error msg="Failed to join room" error="contents=[] msg= code=524 wrapped=" room_id="#matrix:matrix.org" servers="[libera.chat]" user_id="@blind_oracle:novg.net"
spaetz commented 11 months ago

I really would not attempt to use the #matrix:matrix.org room as a test. It is a huge broken mess and even synapse seevers often fail to join. Try other, smaller and less broken rooms.