# Synapse fail to start

**URL:** <https://dietpi.com/forum/t/synapse-fail-to-start/24682>\
**Category:** Troubleshooting\
**Tags:** openssl, pyopenssl, synapse\
**Created:** [16 November 2025 10:11 UTC](https://dietpi.com/forum/t/synapse-fail-to-start/24682 "2025-11-16T10:11:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonnatager](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@sonnatager](https://dietpi.com/forum/u/sonnatager)\
**Post date:** [16 November 2025 10:11 UTC](https://dietpi.com/forum/t/synapse-fail-to-start/24682/1 "2025-11-16T10:11:30Z")

</div>

### 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:

```auto
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

- …

---

<div class="post-metadata">

**Author:** ![sonnatager](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@sonnatager](https://dietpi.com/forum/u/sonnatager)\
**Post date:** [19 November 2025 06:48 UTC](https://dietpi.com/forum/t/synapse-fail-to-start/24682/2 "2025-11-19T06:48:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [19 November 2025 07:19 UTC](https://dietpi.com/forum/t/synapse-fail-to-start/24682/3 "2025-11-19T07:19:12Z")

</div>

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

[https://de.python-3.com/?p=8750](https://de.python-3.com/?p=8750)

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

---

<div class="post-metadata">

**Author:** ![sonnatager](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@sonnatager](https://dietpi.com/forum/u/sonnatager)\
**Post date:** [21 November 2025 13:20 UTC](https://dietpi.com/forum/t/synapse-fail-to-start/24682/4 "2025-11-21T13:20:29Z")

</div>

Ok, with this command i have fixed it:

```auto
pip install pyopenssl --upgrade

```

So it’s fixed.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [19 February 2026 13:21 UTC](https://dietpi.com/forum/t/synapse-fail-to-start/24682/5 "2026-02-19T13:21:21Z")

</div>

Closed on 19 February 2026 13:21 UTC

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