matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Can not add E-Mail nor FON Number #5832

Closed ralfi closed 5 years ago

ralfi commented 5 years ago

Base:

Docker + ansible based install from Github spantelleev matrix-synapse: 1.2.1

Symptom: Can not add user E-Mail address (possible reset password) or Phone number

matrix-synapse Log:

synapse.http.server - 108 - ERROR - POST-0847 Failed to handle request via 'EmailThreepidRequestTokenRestServlet': <XForwardedRequest at 0x7fbe1e4f3390 method='POST' uri='_matrix/client/r0/account/3pid/email/requestToken' clientpro='HTTP/1.1' site=8008>

rsp MsisdnThreepid ... for FON number.

/usr/local/lib/python3.7 .... server.py Line 76 rsp. Line 315 twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection error

Could it be possible that the entry will be write to wrong destination? IMHO this should be write to my local matrix-synapse database ...

Regards

anoadragon453 commented 5 years ago

Your logs are a little mangled. Could you post which address refused the connection from your homeserver? If it's https://vector.im / https://matrix.org or another identity server, then it may have just been a hiccup in the network.

Currently registering with an email requires contacting an identity server. We're currently working towards decoupling that in https://github.com/matrix-org/synapse/issues/5751

ralfi commented 5 years ago

Hi anyadragon453, i am using my own selfhosted matrix-synapse server based on v1.2.1. I am using the latest docker image for mxisd but i know this is a long story ... But if i wish, how can i use my selfhosted matrix-synapse server (federation works well) with vector.im if i needed?

anoadragon453 commented 5 years ago

Just set vector.im as part of trusted_third_party_id_servers in your Synapse's homeserver.yaml, and then when logging in/registering have https://vector.im set as your identity server.