Skip to content

Can't connect to homeserver #4791

@pdc1

Description

@pdc1

Steps to reproduce

Note: Element (not X) can connect to my home server, but Element X cannot. My home server is not federated, it's just for my family to chat.

  1. Where are you starting? What can you see? What do you click?

Here are the steps I am taking in Element X:

  • Welcome screen: tap Sign in manually
  • Tap Change account provider
  • Tap Other
  • Tap Find an account provider:
  • (enter my account provider, https://xxxx -- note: no domain)
  • Tap on the hostname that appears next to a magnifying glass icon
  • Wait a few seconds...
  • Receive Error: We couldn't read this homeserver. [etc]

Outcome

What did you expect?

I expected to get to a login screen where I can enter my credentials and chat.

What happened instead?

I got an error message.

I looked at the logs on my server, and the only thing was a "GET /.well-known/matrix/client HTTP/1.1", which returned a 404 error. I tried creating a client file but aside from the get succeeding, there were no other "Element X" messages.

XX.XX.XX.XX - - [26/May/2025:13:17:24 -0500] "GET /.well-known/matrix/client HTTP/1.1" 200 864 "-" "Element X/25.05.3 (Google Pixel 6a; Android 15; BP1A.250505.005; Sdk b5b2450ea)"

My server is running the Debian packages published by matrix:

# cat /etc/apt/sources.list.d/matrix-org.list
deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ bullseye main

The web server is Apache, and I have a reverse proxy handling the https and exposing the service to my intranet.

Apt reports: matrix-synapse-py3/unknown,now 1.130.0+bullseye1 amd64 [installed]

I am willing to send logs, but without being able to log in, there is nothing to send.

With no server logs, and no helpful info from the app, I am not sure how to proceed. Please advise!

Your phone model

Google Pixel 6a

Operating system version

Android 15

Application version and app store

Element X 25.05.3 Google Play

Homeserver

Local home server: matrix-synapse-py3 (from matrix packages) 1.130.0

Will you send logs?

No

Are you willing to provide a PR?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions