Synapse install bug (cannot import name _OpenSSLECCurve)

,

Salut !
J’ai essayé d’installé Synapse depuis l’interface admin web sur un nouveau sub.domain.tld certifié avec LE mais l’installation échoue.
Les logs sont là : https://paste.yunohost.org/gepeyuluca.diff
On dirait que le service matrix-synapse ne veut pas démarrer : à la fin du post il y a le retour de la commande systemctl status matrix-synapse.service
Pour info j’avais essayé de l’installer juste avant à la racine de mon domaine principal et j’avais eu la même erreur.
Merci d’avance si quelqu’un a une petite idée :slight_smile:
Lops

English

I tried to install Synapse from the Web CLI, on a new sub.domain.tld certified with Let’s Encrypt but the install fails.
Here are the logs : https://paste.yunohost.org/gepeyuluca.diff
It seems that matrix-synapse.service doesn’t start
Just before I tried to install it at the root of my main domain and got the same error.
Thanks in advance if somebody has an idea :slight_smile:
Lops

root@mamachine:/home/myadminuser# systemctl status matrix-synapse.service
● matrix-synapse.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

May 25 15:08:02 mamachine python[2209]: File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 31, in <module>
May 25 15:08:02 mamachine python[2209]: from synapse.crypto import context_factory
May 25 15:08:02 mamachine python[2209]: File "/opt/yunohost/matrix-synapse/local/lib/python2.7/site-packages/synapse/crypto/context_factory.py", line 17, in <module>
May 25 15:08:02 mamachine python[2209]: from twisted.internet._sslverify import _OpenSSLECCurve, _defaultCurveName
May 25 15:08:02 mamachine python[2209]: ImportError: cannot import name _OpenSSLECCurve
May 25 15:08:02 mamachine systemd[1]: matrix-synapse.service: control process exited, code=exited status=1
May 25 15:08:02 mamachine systemd[1]: Failed to start Synapse Matrix homeserver.
May 25 15:08:02 mamachine systemd[1]: Unit matrix-synapse.service entered failed state.
May 25 15:08:04 mamachine systemd[1]: Stopping Synapse Matrix homeserver...
May 25 15:08:04 mamachine systemd[1]: Stopped Synapse Matrix homeserver.

My YunoHost configuration

Hardware: Gandi VPS
YunoHost version:
yunohost/yunohost-admin/moulinette/ssowat:
repo: stable
version: 2.7.12
I only use official apps and try to make my install as generic as possible (no personalization)

Hello,

Your problem is that you have tried to install a version withc is broken app list was not up to date. So it’s should be fixed by https://github.com/YunoHost/apps/pull/514.

You can also try to install from the explicit URL “https://github.com/YunoHost-Apps/synapse_ynh” and it should work now.

Thanks @Josue :slight_smile: happy to know that there is already a fix ! I’ll wait for the pull-request to be merged, I think that if I install from the explicit URL I will have to specify it later each time I will upgrade apps.

I think we have some magic in the YunoHost code somewhere, such that you don’t need that :wink: If you install an app and it’s actually in a registered app list (official, or community if you enabled/added it) it will later understand it and you won’t need to add the url :stuck_out_tongue: (Not 100% sure though)

OK @Aleks, so I installed from the explicit URL (it worked perfectly) and tried to upgrape yunohost app upgrade: everything was up to date but it did not ask for a specific url for Synapse so I guess your magic piece of code works :slight_smile: Riot client for Debian works now !

1 Like