Synapse fail to start

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    • G_DIETPI_VERSION_CORE=9
      G_DIETPI_VERSION_SUB=19
      G_DIETPI_VERSION_RC=2
      G_GITBRANCH=‘master’
      G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    • bookworm 0
  • Kernel version | uname --all
    • Linux DietPi 6.12.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1~bookworm (2025-09-16) aar
      ch64 GNU/Linux
  • Architecture | dpkg --print-architecture
    • arm64
  • SBC model | echo $G_HW_MODEL_NAME
    • RPi 5 Model B (aarch64)
  • Power supply used | (EG: 5V 1A RAVpower)
    • Original RPi Power supply (5A)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
    • Synapse
  • Was the software title installed freshly or updated/migrated?
    • Upgraded
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Upgrade synapse

Expected behaviour

Actual behaviour

It gives me following error in systemd log:

Nov 16 10:02:59 DietPi Synapse\[1337\]:   File"/usr/local/lib/python3.11/dist-packages/twisted/internet/\_sslverify.py", line 969, in \_addCACertsToContext
Nov 16 10:02:59 DietPi Synapse\[1337\]:     context.set_default_verify_paths()
Nov 16 10:02:59 DietPi Synapse\[1337\]:   File “/usr/lib/python3/dist-packages/OpenSSL/SSL.py”, line 867, in set_default_verify_paths
Nov 16 10:02:59 DietPi Synapse\[1337\]:     dir_env_var = \_ffi.string(\_lib.X509_get_default_cert_dir_env()).decode(
Nov 16 10:02:59 DietPi Synapse\[1337\]:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 16 10:02:59 DietPi Synapse\[1337\]: AttributeError: module ‘lib’ has no attribute ‘X509_get_default_cert_dir_env’
Nov 16 10:02:59 DietPi systemd\[1\]: synapse.service: Main process exited, code=exited, status=1/FAILURE
Nov 16 10:02:59 DietPi systemd\[1\]: synapse.service: Failed with result ‘exit-code’.
Nov 16 10:02:59 DietPi systemd\[1\]: Failed to start synapse.service - Synapse (DietPi).

Extra details

Maybe some more details:

I am running the Synapse server behind a nginx reverse proxy. So my nginx is doing the TLS termination. I have an own domain with let’s encrypt certbot running.

Does anybody have an idea? It seems to have an issue with any certificates

Seems like a problem with openssl:
https://askubuntu.com/questions/1428181/module-lib-has-no-attribute-x509-v-flag-cb-issuer-check

https://de.python-3.com/?p=8750

https://stackoverflow.com/questions/73830524/attributeerror-module-lib-has-no-attribute-x509-v-flag-cb-issuer-check

Ok, with this command i have fixed it:

pip install pyopenssl --upgrade

So it’s fixed.

Thank you!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.