Also posted here, but perhaps this deserves to be its own post.
In Matrix (with the Element client) I am trying to connect to another server from my Freedombox. I have done this in the past, but I can no longer do so. As an example, if I try to join a known room #ROOM:SERVER.org, I get the error:
#ROOM:SERVER.org is not accessible at this time.
Try again later, or ask a room or space admin to check if you have access.
M_UNKNOWN was returned while trying to access the room or space. If you think you’re seeing this message in error, please submit a bug report.
If I try to search through public rooms on a server (e.g., Show: Matrix rooms (matrix.org) in the search bar in Element), I get the error “Failed to query public rooms”.
I am running Debian GNU/Linux 12 (bookworm) and FreedomBox version 23.21.
Note: To resolve issues from an update, I ran the following command in order to get the Matrix server working again:
During the above installation I had to manually write the homeserver name at the command line configuration prompt. See the discussion starting here for details. I am not sure if this is relevant.
I received some in-person help and it appears that the matrix-synpse server was not configured correctly.
If I correctly understood, the Matrix server was configured to listen on port 443 instead of 8448, but other servers did not know it was listening on 443.
What worked to fix this is creating the file /var/www/html/.well-known/matrix/server, which I did like so:
And I could successfully federate with other servers in the Matrix network.
However, I would prefer to have the configuration listen on port 8448 using standard Freedombox configurations.
Anyone able to help?
Edited to add: I did not intentionally change anything in the configuration of matrix-synapse and I do not know why it is configured to listen on port 443…
Thanks for the suggestion. I took a look at the file /etc/matrix-synapse/homeserver.yaml and the files in the directory /etc/matrix-synapse/conf.d/ but only see reference to port 8448.
For example, in homeserver.yaml I see:
# Main HTTPS listener
# For when matrix traffic is sent directly to synapse.
-
# The port to listen for HTTPS requests on.
port: 8448
This is embarrassing: Port forwarding for port 8448 was not set up or had been accidentally closed. I corrected that and now the issue is fixed. The server is federating even when the file /var/www/html/.well-known/matrix/server is deleted.