matrix-org / synapse

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

Unhelpful traceback (`OpenSSL.SSL.Error`) when certificate problems arise #15058

Open nishant378 opened 1 year ago

nishant378 commented 1 year ago

Required logs

Traceback (most recent call last):
  File "/root/matrix-backend-repo/riot-matrix/synapse/synapse/http/[server.py](http://server.py/)", line 368, in _async_render_wrapper
    callback_return = await self._async_render(request)
  File "/root/matrix-backend-repo/riot-matrix/synapse/synapse/http/[server.py](http://server.py/)", line 574, in _async_render
    callback_return = await raw_callback_return
  File "/root/matrix-backend-repo/riot-matrix/synapse/synapse/rest/client/[login.py](http://login.py/)", line 653, in on_POST
    body = await self._http_client.post_raw(uri, args)
  File "/root/matrix-backend-repo/riot-matrix/synapse/synapse/http/[client.py](http://client.py/)", line 499, in post_raw
    response = await self.request(
  File "/root/matrix-backend-repo/riot-matrix/synapse/synapse/http/[client.py](http://client.py/)", line 444, in request
    response = await make_deferred_yieldable(request_deferred)
twisted.web._newclient.RequestTransmissionFailed: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [('STORE routines', '', 'unregistered scheme'), ('system library', '', ''), ('STORE routines', '', 'unregistered scheme'), ('system library', '', ''), ('SSL routines', '', 'certificate verify failed')]>]
DMRobertson commented 1 year ago

certificate verify failed

I would guess that either there is something wrong with your certificates, or else you Synapse cannot see your certificates.

In the future, please:

I suggest we leave this open as an enhancement request to have a user-friendly certificate check on startup.