-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Federation fails when using a DNS server on a link-local IPv6 address #5846
Comments
please could you fix the log formatting so that the lines aren't broken? |
@richvdh formatting is updated now. |
Firstly, it's not a 404, it's a timeout. It looks like it can't connect to matrix.org. It's possible you just caught it when matrix.org was having a bad time, but more likely there is something wrong with your networking, or possibly your server is very overloaded. It would probably be worthwhile to turn the log level up to DEBUG so we can see where it's getting stuck. |
hi @richvdh, i also deal with the above issue on the very same server. would you tell me which level line in log.yaml needs to be set do DEBUG? thx |
the log configuration file follows the standard format for python log configuration: https://docs.python.org/3/library/logging.config.html#dictionary-schema-details. TL;DR: change one of the |
@richvdh I get a very verbose log now. As there is sensitive data within it, i'd prefare to send it directly to you. Is that possible? |
you can reach me on matrix at |
Request from the matrix.org end shows:
|
We fixed the problem doing the following:
|
As a user, the issue still exists and isn't solved for me. |
Again: please could somebody running a server which suffers from this problem share the DEBUG logs for a failing request so that we can investigate. |
Hi, this seems the right message to me. If not, please give me a hint, what to grep for.
[edited for formatting by @richvdh] |
@benksio there are several requests happening in parallel there. You can identify all the log lines for a given request by grepping for the I can see a couple of things though:
|
Here you are:
|
here is the
|
I'm also getting a 401 error, although I'm too unfamiliar to tell if it's for key reasons. Didn't want to open another issue unnecessarily, though. Here's my log if you can glimmer anything out of it: |
Seems like I only have issues with |
This is the same for me.
|
@benksio: so it looks like outbound requests (to both jki.re and matrix.org) are timing out, which is a bit odd. I don't see those requests arriving at the matrix.org end. Can you share the results of (Also: what timezone are your logs in? Looks like UTC+3 ?) |
Just a random idea: Might this issue be related to IPv6? |
@jans23 plausibly |
@zfnmxt I think your issue is unrelated: the 401 in your logs is coming from matrix.org, though I can't see the failure on the matrix.org side. Please remember to tell us what timezone your logs are in. Also, note that your logs contain some secret access tokens, which you should consider compromised: log out your client to invalidate the access token. |
@richvdh I figured re: tokens. Timezone is GMT+2. |
the Timezone ist CEST ... | grep "federation_transaction_transmission_loop-1873"
|
@richvdh Is there anything we could help you with solving this issue? |
That's odd. I could have sworn I'd replied here. It looks to me like the DNS lookups might be timing out. Please could you show the results of:
|
dig -t SRV _matrix._tcp.matrix.org
|
That looks fine, though I'm wondering if the link-local IPv6 DNS server could be causing problems. Are you able to test using a DNS server on an IPv4 address or a global IPv6 address? |
I configured the server to use an IPv4 DNS Server. Although I think the former one is not guilty.
Can we provide any other information, to figure out why federation doesn't work? |
And you're still having the same problem? Do the logs look the same? |
Now for the first time I can send messages between both instances. However at matrix.org I experienced several "server error" in Riot and I had to try resending several times until my message got through to nitro.chat. The other direction (from nitro.chat to matrix.org) didn't had this issue. It feels a bit shaky so I'm not sure this issue is entirely solved or not. |
sounds like a different problem then. I suggest seeking support in #synapse:matrix.org in the first instance, and if you find a bug, raising a new issue with the new symptoms. |
Have raised this as a bug in twisted at https://twistedmatrix.com/trac/ticket/9704. |
Thx for your hints. The Issue seems to be solved now by having changed the DNS Server. |
IMHO we just found a workaround and the actual (implementation) issue isn't solved. In this case this issue ticket should remain open, right? |
@richvdh Hello, what does it take to solve this issue? |
I have the same issue and my dns server is on ipv4 not ipv6 |
a fix to the upstream issue. Follow the links; maybe try the suggested fix.
if your dns server isn't on a link-local IPv6 address, it is a different issue. |
Our Matrix instance nitro.chat has issues connecting to matrix.org rooms. In the logs we see these messages:
curl matrix.org/_matrix/key/v2/server/ed25519%3Aauto
says:We run the latest Synapse version on Linux already. Азат at #synapse:matrix.org confirmed it's a Synapse issue. Please help.
The text was updated successfully, but these errors were encountered: