Synapse update 1.46.0~ynh1 -> 1.65.0~ynh1 failed

My YunoHost server

Hardware: VPS at OVH: VPS vps2020-value-1-4-80
YunoHost version: 4.4.2.14
I have access to my server : Through SSH and webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

First of all, thanks a lot for everything you’re doing ! Yunohost is amazing :slight_smile:

I’ve had issues with my Synapse issues, it is not accessible from outside but is running when I want to open the service I have an issue in YNH that tells me there is a memory error at accessing the status. Oh well.

I told myself I’m going to update my Synapse instance before opening a ticket on a potentially old version, but it failed at the Restore ‘synapse’ from a backup archive step. Here are the logs:

Here’s the crux of the issue:

2022-09-07 11:02:34,997: WARNING - [Error] Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/default.py", line 55, in <module>
2022-09-07 11:02:34,998: WARNING - Sep 07 11:02:34 python[24238]:     install = _getInstallFunction(platform)
2022-09-07 11:02:35,001: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/default.py", line 43, in _getInstallFunction
2022-09-07 11:02:35,002: WARNING - Sep 07 11:02:34 python[24238]:     from twisted.internet.epollreactor import install
2022-09-07 11:02:35,003: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/epollreactor.py", line 19, in <module>
2022-09-07 11:02:35,004: WARNING - Sep 07 11:02:34 python[24238]:     from twisted.internet import posixbase
2022-09-07 11:02:35,005: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/posixbase.py", line 19, in <module>
2022-09-07 11:02:35,007: WARNING - Sep 07 11:02:34 python[24238]:     from twisted.internet import error, tcp, udp
2022-09-07 11:02:35,007: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/tcp.py", line 38, in <module>
2022-09-07 11:02:35,007: WARNING - Sep 07 11:02:34 python[24238]:     from twisted.internet._newtls import (
2022-09-07 11:02:35,007: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/_newtls.py", line 18, in <module>
2022-09-07 11:02:35,007: WARNING - Sep 07 11:02:34 python[24238]:     from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
2022-09-07 11:02:35,008: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/protocols/tls.py", line 50, in <module>
2022-09-07 11:02:35,008: WARNING - Sep 07 11:02:34 python[24238]:     Connection(Context(TLSv1_METHOD), None)
2022-09-07 11:02:35,008: WARNING - Sep 07 11:02:34 python[24238]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/OpenSSL/SSL.py", line 674, in __init__
2022-09-07 11:02:35,008: WARNING - Sep 07 11:02:34 python[24238]:     res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
2022-09-07 11:02:35,009: WARNING - Sep 07 11:02:34 python[24238]: AttributeError: module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'

Any idea how to fix this ?

1 Like

Ebéééé mouarf on dirait un problème d’incompatibilité / mauvaises versions entre les librairies python installées pour synapse et peut-être celle du système … ma première hypothèse serait que l’app upstream ne spécifie pas correctement ou pas assez précisément ses dépendances (genre le requirements.txt ?)

Mais ce n’est qu’une supposition technique et ça ne t’aide pas trop à avancer…

J’ai MAJ toutes les lib avant de faire celle-là, sans succès.

C’est peut-être un problème de dépendances effectivement, mais du coup je suis passé à dendrite donc je ne suis plus “touché” par ce problème. Je le laisse ouvert au cas où quelqu’un ait le même problème

Salut
Meme soucis avec funkwahle apres upgrade vers bullseye + reboot + re installation forcé avec

sudo yunohost app upgrade -F funkwhale

https://paste.yunohost.org/raw/gejehudeje

2022-09-13 22:42:22,473: DEBUG -   File "/var/www/funkwhale/virtualenv/lib/python3.9/site-packages/twisted/internet/_sslverify.py", line 1735, in _expandCipherString
2022-09-13 22:42:22,473: DEBUG -     ctx = SSL.Context(method)
2022-09-13 22:42:22,473: DEBUG -   File "/var/www/funkwhale/virtualenv/lib/python3.9/site-packages/OpenSSL/SSL.py", line 674, in __init__
2022-09-13 22:42:22,473: DEBUG -     res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
2022-09-13 22:42:22,474: DEBUG - AttributeError: module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'

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