Restore Synapse backup : pb with _PY3?

:uk:/:us: My YunoHost server

Hardware: New VPS bought online in OVH Gravelines datacenter (You all guess why…)
YunoHost version: 4.1.7.4
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : restoring a server after the fire in OVH datacenter. The backup is one week old.

Description of my issue

Hi all, I try to reinstall my server after the fire in OVH datacenter in Strasbourg. I bought a new one in Gravelines with Debian 10, installed Yunohost, and restore the core backup instead of running the post-install.
I have been able to restore almost everything (Nextcloud, mails, surveys, website, etc.) except Synapse for matrix. Here is the log :
https://paste.yunohost.org/raw/huhucaquyi

I think, but I may be wrong, that the critical part is here :

2021-03-13 15:08:49,096: DEBUG - Mar 13 15:08:48 python[23744]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/treq/client.py", line 11, in <module>
2021-03-13 15:08:49,096: WARNING - Mar 13 15:08:48 python[23744]:   File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/treq/client.py", line 11, in <module>
2021-03-13 15:08:49,096: DEBUG - Mar 13 15:08:48 python[23744]:     from twisted.python.compat import _PY3, unicode
2021-03-13 15:08:49,096: WARNING - Mar 13 15:08:48 python[23744]:     from twisted.python.compat import _PY3, unicode
2021-03-13 15:08:49,097: DEBUG - Mar 13 15:08:48 python[23744]: ImportError: cannot import name '\''_PY3'\'' from '\''twisted.python.compat'\'' (unknown location)
2021-03-13 15:08:49,097: WARNING - Mar 13 15:08:48 python[23744]: ImportError: cannot import name '_PY3' from 'twisted.python.compat' (unknown location)
2021-03-13 15:08:49,097: DEBUG - Mar 13 15:08:48 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2021-03-13 15:08:49,097: WARNING - Mar 13 15:08:48 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2021-03-13 15:08:49,097: DEBUG - Mar 13 15:08:48 systemd[1]: matrix-synapse.service: Failed with result '\''exit-code'\''.
2021-03-13 15:08:49,097: WARNING - Mar 13 15:08:48 systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
2021-03-13 15:08:49,098: DEBUG - Mar 13 15:08:48 systemd[1]: Failed to start Synapse Matrix homeserver.'
2021-03-13 15:08:49,098: WARNING - Mar 13 15:08:48 systemd[1]: Failed to start Synapse Matrix homeserver.

It looks like it cannot find twisted.python.compat or the _PY3 var, but they are indeed in the backup archive. I may be misinterpreting the log, I don’t know python…

What are your thoughts ? How could I get my Synapse back ?

up up up
still no solution :frowning:

If you are having errors like this you should create an issue for the Synapse Yunohost package: https://github.com/YunoHost-Apps/synapse_ynh/issues/new
Make sure you describe the problem using as many details as possible.

Note that the Synapse package is not very stable at the moment.

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