matrix-docker-ansible-deploy icon indicating copy to clipboard operation
matrix-docker-ansible-deploy copied to clipboard

Sliding sync host name mismatch

Open Daniel15 opened this issue 10 months ago • 3 comments

Describe the bug When I try to enable sliding sync in the Element web UI, I get this error:

proxyHealthCheck: client using https://matrix.example.com but server is as http://matrix-synapse:8008

image

and it doesn't let me continue.

If I hit https://matrix.example.com/sliding-sync/client/server.json, it returns:

{"server":"http://matrix-synapse:8008","version":"0.99.15 (bbb886e)"}

Do I need to somehow change that server field to match? How do I do that?

To Reproduce My vars.yml file looks like this:

---
matrix_domain: staging.example.com

matrix_server_fqn_matrix: matrix.example.com
matrix_server_fqn_element: element.example.com
matrix_sliding_sync_enabled: true

matrix_homeserver_implementation: synapse
matrix_homeserver_generic_secret_key: '<removed>'

matrix_playbook_reverse_proxy_type: playbook-managed-traefik

devture_traefik_config_certificatesResolvers_acme_email: '[email protected]'

devture_postgres_connection_password: '<removed>'

Expected behavior Sliding sync should work

Matrix Server:

  • OS: Debian 12.5
  • Architecture amd64

Daniel15 avatar Apr 15 '24 04:04 Daniel15

If I modify /matrix/sliding-sync/env and change:

SYNCV3_SERVER=http://matrix-synapse:8008

to

SYNCV3_SERVER=https://matrix.example.com

it works fine. Looks like this is controlled by the matrix_sliding_sync_environment_variable_syncv3_server Ansible variable.

Does this mean it's set incorrectly out-of-the-box?

Daniel15 avatar Apr 15 '24 04:04 Daniel15

Does this mean it's set incorrectly out-of-the-box?

@spantaleev explains here: https://github.com/element-hq/element-web/issues/26956

Regardless, I'm very close to finishing an upstream PR to fix Element-Web's behaviour to match the MSC - watch this space :smiley:

EdGeraghty avatar Apr 21 '24 08:04 EdGeraghty

Anyone able to get this fixed?

bartvdbraak avatar Jun 03 '24 14:06 bartvdbraak