-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
federation issue: "Unauthorized" trying to join foreign room #1142
Comments
I tried several things and couldn't make it work so now I reverted to expose port 8448 and using synapse directly and removed the SRV record. Now I can join rooms on other servers. |
I encountered the same problem. Is it possible to configure federation for ports different than 8448? |
Yes, this is exactly what the SRV record is for. Remember it may take a few hours for a changed DNS record to propagate. If you can't get it to work, we're better able to provide support in https://matrix.to/#/#matrix:matrix.org than in github issues. |
I have this exact problem! I've been in matrix-dev multiple times but the fix is still a mystery. Can this ticket be re-opened? The configuration of a reverse-proxy and no ports beyond https is the most desirable setup. After seeing the 401 in the logs, I have verified that matrix.org is requesting the signing key from my homeserver and its being delivered (status 200). Then matrix.org rejects the federation request (401) and I dont know why. |
This ticket amounts to "federation isn't working for me", which isn't a useful thing to track as an issue, because there are a number of things which could cause it - mostly related to configuration. So no, sorry. |
We're currently working on a tool which will check that servers are set up correctly for federation, which might help. |
For now at least, you can try the commandline tool:
If that can see the server keys correctly then federation is probably working. If not, follow up on what failed. Try also whether
|
Sorry to post here again, but did you resolve this, @icaruseffect ?
I am sure that the handshake fails due to the TLS fingerprint mismatch, but i ran out of ideas to fix this. The chat room is also no good place to seek help since it is crowded, and need-help-messages disappear quite fast :( |
@leonerd thx for the assistance, the output from matrixtool is
Whats the connection between the TLS cert delivered during an HTTPS connection and the tls related homeserver.yaml settings:
for instance I have a reverse proxy answering the HTTPS port with a letsencrypt key that is different than the generated-during-install TLS key that is specified in the yaml snipped above. With TLS being turned off in the config, its unclear if the TLS key is used/important. |
Hi @simonszu, i sadly cannot help you further, because i deactivated my server because of job related time constraints. |
@icaruseffect That's no problem, i can fully understand this. ;) |
The problems here are just failure to configure federation correctly - it's not a bug per se. I think we could be supporting it more productively though - eg by publishing a better guide or troubleshooting mechanism for it.
Until that point, please come to #matrix:matrix.org and don't leave until someone has helped you debug what's gone wrong.
|
ye ,i gt the same problem.srv looks like useless |
just to follow up on this ticket, I've picked apart the problem and want to leave the solution here for the other ticket participants with the same problem. the root of the problem is python twisted does not support SNI (#1491 is waiting on the fix), so when matrix.org tries to connect to my homeserver on 443, nginx returns the wrong(default) SSL cert which doesnt match what matrix.org was expecting. another key piece of info is the SRV record is only to adjust the federation port (8448). The default client port is the usual https port. So its enough to remove the SRV record and simply open port 8448 directly to the python script and let the script use its generated self-signed certs. |
Hello, Proxying matrix server to kakise.xyz:443 via nginx This error:
No SRV records (I tried redirecting to 443 via srv but didn't changed anything) |
|
I'm not sure if the matrixtool is already doing this but a very helpful test is to and inspect the json |
If anyone will happen to end up here from search engine here are official docs on how to fix it :) |
I've setup a homeserver (using example.com because of privacy here) matrix.example.com and set an SRV record:
In addition I have proxied via Apache to port 8008 (with letsencrypt ssl certs). I can use the integrated webclient and also other clients (like Riot on android) with my homeserver.
But when I try to join a room on
matrix.org
like#bible:matrix.org
I getUnauthorized (M_UNKNOWN)
and the log says:I haven't set any email address. Could that be a problem? How should I continue to analyze this?
The text was updated successfully, but these errors were encountered: