-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Critical AttributeError: 'bool' object has no attribute 'lower'
when request_id_header
is set to a boolean
#14482
Comments
Please provide Synapse logs to help us debug your problem. |
|
Could you post the |
In Ubuntu:
I commented out the "request_id_header: true" line and restarted the Synapse server, now TLS works! In FreeBSD config, the request_id_header is missing. Btw, how to use the request_id_header? Is it true/false? Documentation is silent on it. Doc: https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html Sean, many thanks for the reply. |
See https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#listeners:
|
In particular it is a header, i.e. a string, not a boolean. We could do with better validation of the config here (#12651). |
AttributeError: 'bool' object has no attribute 'lower'
when request_id_header
is set to a boolean
@DMRobertson Thank you for the comment on this. It best if could take an initiative to update the documentation with examples. |
@DMRobertson Could you give us an example of the recommended configuration for a reverse proxy situation (as it seems we all here having this issue are coming from that particular recommendation.)? |
This field
We'd graciously welcome PRs which improve the wording to clarify this. On matrix.org we have the config set to |
Description
I installed Synapse 1.71.0 on Ubuntu 22.04.1 LTS.
When try to connect using curl for test, develops TLS errors as follows:
curl -ivkL -X POST -d '{"type":"m.login.password", "user":"sagara", "password":"mypass"}' "https://192.168.1.110:8448/_matrix/client/r0/login"
curl: (56) OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0
The openssl on Ubuntu 22.04.1 LTS:
apt list --installed | grep openssl
openssl/jammy-updates,jammy-security,now 3.0.2-0ubuntu1.7 amd64 [installed]
I installed Synapse 1.71.0 on FreeBSD 13.1.
Above curl statement works without an issue.
$ openssl version
OpenSSL 1.1.1o-freebsd 3 May 2022
The issue seems to be very much that Synapse 1.71.0 is not compatible with openssl 3.0.2. Probably require openssl 3 specific settings on Synapse.
Appreciate this issue on Ubuntu could be fixed as early as possible.
Steps to reproduce
When try to connect using curl for test, develops TLS errors as follows:
curl -ivkL -X POST -d '{"type":"m.login.password", "user":"sagara", "password":"mypass"}' "https://192.168.1.110:8448/_matrix/client/r0/login"
Connected to 192.168.1.110 (192.168.1.110) port 8448 (#0)
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
TLSv1.2 (OUT), TLS header, Supplemental data (23):
TLSv1.3 (OUT), TLS alert, decode error (562):
OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0
Closing connection 0
curl: (56) OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0
Homeserver
On our locally hosted homeserver.
Synapse Version
Synapse 1.71.0
Installation Method
Debian packages from packages.matrix.org
Platform
Ubuntu 22.04.1 LTS. Linux 5.15.0-52-generic. x86_64 GNU/Linux.
Relevant log output
Anything else that would be useful to know?
Synapse 1.71.0 works well on FreeBSD with openssl 1.1.1o.
The text was updated successfully, but these errors were encountered: