Closed dev4223 closed 5 years ago
I've fix the log so it shows as codeblock, easier to read!
Could you give us the following info:
I've installed the lates matrix synapse package for debian stretch yesterday: Package: matrix-synapse-py3 Version: 0.99.2+stretch1
and installed the latest stable mxisd package for debain today: mxisd_1.3.1_all.deb
Could you please provide the link here, changing your domain if needed, but putting the rest of the URL verbatim? I would like to make sure the info in the email sent is right first. If you would rather not post it publicly, you can send it to me via email (see my github profile) or on Matrix (@max:kamax.io)
Thanks for sending it - I can confirm it looks good. I'll investigate for a regression and let you know ASAP, but will update this in a few days either way.
Thanks, thats good news and I'll wait. Could it be, that the BasicHttpHandler sends his request per GET to http://my.matrixserver.de/_matrix/identity/api/v1/validate/email/submitToken (via HTTP) but the web server as a redirect directive and so sending this request to HTTPS, and this is another, a new session?
Everything is HTTPS by default in mxisd. it would only be HTTP if you changed the config, in which case your setup is not supported.
Mh, but the "GET http://my.server...." is in the logs of mxisd. So something requests via HTTP. Or do I oversee something?
The reverse proxy is doing the HTTPS, not mxisd. mxisd would see everything at HTTP. It's not of concern here and has nothing to do with your issue - the log is totally expected.
The potential problem is a variable not being initialized properly potentially, as seen by
Validating session null for medium email
Ah, ok. Thank you for explaining.
@pexus in #142 brought me to the Idea: My apache config was
ProxyPreserveHost On
ProxyPass /_matrix/identity http://127.0.0.1:8090/_matrix/identity
ProxyPassReverse /_matrix/identity http://127.0.0.1:8090/_matrix/identity
<Location /_matrix>
ProxyPass http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse http://127.0.0.1:8008/_matrix
</Location>
Now I have changed it to
ProxyPreserveHost On
ProxyPass /_matrix/identity http://127.0.0.1:8090/_matrix/identity
ProxyPassReverse /_matrix/identity http://127.0.0.1:8090/_matrix/identity
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
This solved the problem. This Location-syntax for synapse comes frome here https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst And after the description here https://httpd.apache.org/docs/2.4/mod/core.html#location it seems not a good idea to do so.
I have a matrix synapse and mxisd installation on debian stretch working. Only thing is, that I can't validate any email address. Email is sent but after clicking on the link i get the backend page with this message:
This is the log output from mxisd:
Do you have any ideas about this error message?