Hardware: VPS bought online YunoHost version: 4.4.2.14 I have access to my server : Through SSH Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
After a failed synapse upgrade, I can’t restore from backup. When restoring, I get a “Nothing was restored” error message and the following logs:
[4624]: File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/posixbase.py", line 19, in <module>
from twisted.internet import error, tcp, udp
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/tcp.py", line 38, in <module>
from twisted.internet._newtls import (
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/_newtls.py", line 18, in <module>
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/protocols/tls.py", line 45, in <module>
from twisted.internet._sslverify import _setAcceptableProtocols
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/_sslverify.py", line 1829, in <module>
"TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:"
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/_sslverify.py", line 1808, in fromOpenSSLCipherString
SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3,
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/twisted/internet/_sslverify.py", line 1735, in _expandCipherString
ctx = SSL.Context(method)
File "/opt/yunohost/matrix-synapse/lib/python3.7/site-packages/OpenSSL/SSL.py", line 674, in __init__
res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
AttributeError: module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'
I managed to solve this issue by using the following steps:
Download the backup
Install a fresh instance of synapse
Stop the matrix-synapse service
Download the contents of /opt/yunohost/matrix-synapse/lib/
Unpack the backup from step 1. Then, replace the contents of the apps/synapse/backup/opt/yunohost/matrix-synapse/lib with the files downloaded in step 4
The directories you mention, are they in the backup or in the /home/yunohost.app/matrix-synapse-dir?
In the latter case, do you think there are already many new uploads? I think those are in the directory without a timestamp.
I would myself: create a backup directory, copy things from the first dir (without timestamp) to the backup dir. Then copy things from the 20221005-dir to the first dir, and check whether you got your uploads back.