-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Unable to connect to homeserver, retrying... - Lost access to homeserver on mobile, web, and desktop apps after logout #12882
Comments
Possibly the same as #12864 but we would very much like Synapse logs to confirm. |
Absolutely. Bear with me, but do I set the log level in homeserver.yaml and which logs (homeserver.log?) are you looking for? Edit: Looks like I had database set to INFO, but root set to ERROR. I set root to INFO under log.yaml. Just advise on sensitive information and if homeserver.log is the log being requested. Thanks! |
which specifies the log level. It's INFO by default, so if you've not changed it, you probably don't need to do anything there. It's If you want to DM the logs, I'm reachable at |
Didn't take long at all. Upgraded from 1.57.0 to 1.59.1 and it immediately went haywire once I cleared cache and reloaded. Downgraded and the clients can sign in. dpkg: warning: downgrading matrix-synapse-py3 from 1.59.1+focal1 to 1.57.0+focal1 I will DM you a shared folder to download the logs from both Firefox Element web and homeserver.log in INFO mode. |
Hi @squahtx - just wanted to check in and ensure that the logs I uploaded were sufficient. Please let me know if additional details are required and I will be happy to support. The link for the log download will expire in 7 days. Thanks. |
I've received them, thank you! I'm tied up with other things and haven't had the time to look at them yet. In the mean time, could you try running the following SQL queries from @richvdh in #12864: SELECT * FROM events e LEFT JOIN rejections r USING (event_id) WHERE event_id IN ('$KuawYhzU8G0qk7zUX2jEI_0PQH1yFnj-2CiiFF4K2UM', '$bEbwpl46iHvYccVAwpkLp6-qzxdeCCmiQTxbo1MObAQ'); SELECT event_id, internal_metadata FROM event_json WHERE event_id IN ('$KuawYhzU8G0qk7zUX2jEI_0PQH1yFnj-2CiiFF4K2UM', '$bEbwpl46iHvYccVAwpkLp6-qzxdeCCmiQTxbo1MObAQ'); |
I attempted but continue to receive a query error due to unexpected syntax. Sorry, PostgreSQL is not my cup of tea. |
Do you mind posting the query error you're seeing? |
The query is not executing. It is most likely my lack of knowledge of PostgreSQL. |
Me and other users are experiencing this issue on both my homeservers (mazie.rocks running synapse 1.58.1 and aagrinder.xyz running synapse 1.59.1). Downgrading synapse 1.59.1 to 1.57.0 did NOT fix it. I tried different clients:
In all cases, clients that were already logged in, work perfectly fine. The issue only appears at login. |
It's highly likely this is the same issue as #12864, which richvdh has a proposed fix for. Are either of you willing to run a bleeding edge development branch of Synapse to test if it fixes the issue?: |
Currently I'm running in docker; I suppose I could temporarily substitute that with a freshly compiled synapse instance, if I configure it correctly |
This sounds too specific to be the cause for my issue. For me, it happens on all accounts, even fresh accounts that have never logged in before and are not members of any rooms. |
In that case, could you file a new issue and include synapse logs spanning the login and sync attempts of a fresh account? |
Yeah, I can do that as long as I can roll back using "dpkg -i" to a previous package. Do you know if I will need to roll back the database too? |
The database shouldn't need rolling back. I'd still recommend taking a backup before the upgrade, just in case. |
Sure. Let me know how to run the latest. My OS is Ubuntu 20.04 LTS and database backend is Postgres. |
Completed successfully. Wasn't sure of the next step after this so I upgraded to 1.60.0 and the issue still exists so I rolled back to 1.57.0. |
If you want to wait for a packaged version with the proposed fix the release candidate should be out tuesday, which might be the easiest in this case. |
I'm cool with that. Whatever y'all think best. Thanks for working through this. :-) |
Hi folks, any update on this? Has the 14 June 2022 release corrected the issue? I am willing to update and try, but I need to be sure that I can rollback to 1.57 if the issue still exists. Was hoping that somebody could confirm that the v1.61.0 update fixed the issue. |
I forgot to mention here: for me, the issue was fixed by changing |
Yeah, I followed your solution early on with hopes that it would fix my problem but I ended up taking down my entire server by changing what I had. I was hoping that it was a simple misconfiguration on my end. Perhaps it is... this is what I have and works still with 1.57.0. public_baseurl: https://server.domain.com/ |
The "Could not find event" error suggests it is unrelated to I'm reasonably confident this will be fixed in 1.61.0 by #12905. Suggest you try it: 1.61.0 does not introduce any changes which stop you rolling back to 1.57.x. |
It worked! Logged in via mobile, web, and desktop. No issues. Sync was much faster compared to < 1.58.0 as well. |
Description
Steps to reproduce
This was originally posted in Element Web, but I later discovered this is an issue with Matrix Synapse server. Due to my original post being closed under Elemenet, I am moving this to Synapse.
Version information
We are running two custom homeservers - a production version and a federated/development homeserver.
Version:
1.59.1 - buggy - users unable to log in after clearing cache or logging out
1.58.1 - buggy, but some users can log in - the users that can log in have joined 2 or fewer rooms. The users that cannot log in have 3 or more rooms. My account is 15 rooms deep.
1.57.0 - works fine. All users who previously could not log in can log in.
1.56.0 - unable to downgrade to this version due to database constraints
Install method:
Installed via repo/package manager
Ubuntu 20.04 LTS
Others:
One homeserver uses an apache proxy server for communications, the other has no proxy. Both homeservers sit behind Cloudflare. One is on-prem and the other is third-party cloud provider. Both homeservers are federated.
I do not have verbose logging enabled, but can re-enable if needed.
Screenshot from Element Web, Element Desktop, and Element Mobile:
The text was updated successfully, but these errors were encountered: