Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Unable to connect to homeserver, retrying... - Lost access to homeserver on mobile, web, and desktop apps after logout #12882

@johndball

Description

@johndball

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.

  1. I logged out and am unable to log back in. On my mobile device, I am prompted with a "verify session" prompt, but the client never loads the content.
  2. This behavior has started recently after a user logs out of a client on a self-run homeserver. This issue is experienced on the Element Windows desktop app 1.10.13, app.element.io on the web, and Element mobile for iOS and Android.
  3. Web versions of Element show a sync job that never ends. I opened developer view on the web and I can see "Number of consecutive failed sync requests: 36" and other issues related to syncing.
  4. Clearing the cache on devices will log out and not log back in. In my attempts to regain access to my home server, I cleared cache on mobile and desktop which effectively lost access to the homeserver.
  5. Running Matrix Synapse 1.59.1, the user will log out and then is unable to log back in. A rollback to Matrix Synapse version 1.57.0 allows users to log back in and the sync error is gone.

Version information

  • Homeserver:
    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

  • Platform:
    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:
    170383096-e24a58fc-6610-4f8d-84fa-f78285277618
    170383092-748985de-8ce8-4101-a56b-59741126b785
    IMG_6618

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Syncdefects related to /syncS-MajorMajor functionality / product severely impaired, no satisfactory workaround.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.X-Needs-InfoThis issue is blocked awaiting information from the reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions