/ Message template (english)
Hardware:
VPS bought online
YunoHost version: 4.1.8
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 ? : no
Error recovering backup from synapse
after an update/upgrade using younohost tools update
and younohost tools upgrade --apps
my matrix/synaptic install stopped.
yo I run on my backupd, I have a daily one of the whole server.
I did put it online, then performed a backup from synaptic
yunohost backup --apps synaptic -n yyyymmdd-matrix-mydomain
from three different dates, including the one before the upgrade.
I have a local copy of each backup so I can come back whenever I need.
Every time I try to recover the backup this is what I obtain, the same cryptography
error
#yunohost backup restore 20210428-matrix-vitrubio
Info: Preparing archive for restoration...
Info: Restoring synapse...
Info: [....................] > Loading settings...
Info: [....................] > Validating restoration parameters...
Info: [+++++++.............] > Reinstalling dependencies...
Warning: I: Creating /var/lib/turn/turndb from /usr/share/doc/coturn/schema.sql
Info: [#######+............] > Restoring directory and configuration...
Info: [########+...........] > Check for source up to date...
Warning: Failed building wheel for cryptography
Warning: Failed cleaning build dir for cryptography
Warning: Command "/opt/yunohost/matrix-synapse/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-0r76s_ip/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0z4ht01o/install-record.txt --single-version-externally-managed --compile --install-headers /opt/yunohost/matrix-synapse/include/site/python3.7/cryptography" failed with error code 1 in /tmp/pip-install-0r76s_ip/cryptography/
Error: Could not restore synapse
Info: The operation 'Restore 'synapse' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210504-133720-backup_restore_app-synapse --share' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
Info: DEBUG - =============================DEBUG ASSISTANCE=============================
Info: DEBUG -
Info: DEBUG - error: can't find Rust compiler
Info: DEBUG -
Info: DEBUG - If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
Info: DEBUG -
Info: DEBUG - To update pip, run:
Info: DEBUG -
Info: DEBUG - pip install --upgrade pip
Info: DEBUG -
Info: DEBUG - and then retry package installation.
Info: DEBUG -
Info: DEBUG - If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
Info: DEBUG -
Info: DEBUG - This package requires Rust >=1.41.0.
Info: DEBUG -
Info: DEBUG - ----------------------------------------
Info: DEBUG - Rolling back uninstall of cryptography
Info: WARNING - Command "/opt/yunohost/matrix-synapse/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-0r76s_ip/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0z4ht01o/install-record.txt --single-version-externally-managed --compile --install-headers /opt/yunohost/matrix-synapse/include/site/python3.7/cryptography" failed with error code 1 in /tmp/pip-install-0r76s_ip/cryptography/
Info: DEBUG - + ynh_exit_properly
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Stopping and removing the systemd service
Warning: Database matrix_synapse not found
Info: [##+.................] > Removing the PostgreSQL database
Warning: User matrix_synapse not found
Info: [###++++++++.........] > Removing dependencies
Warning: Traceback (most recent call last):
Warning: File "../conf/remove_sso_conf.py", line 10, in <module>
Warning: data["skipped_urls"].remove(domain + "/_matrix")
Warning: KeyError: 'skipped_urls'
Info: [###########+........] > Removing app main directory
Info: [############+.......] > Removing nginx web server configuration
Info: [#############+......] > Removing logrotate configuration
Info: [##############++++..] > Removing fail2ban configuration...
Warning: The user matrix-synapse was not found
Info: [##################..] > Removing the dedicated system user
Info: Due of the backup core only feature the data directory in '/home/yunohost.app/matrix-synapse' was not removed. It need to be removed manually to purge app user data.
Info: [####################] > Removal of synapse completed
Error: Nothing was restored
here you have the full pastebin
https://paste.yunohost.org/raw/alevonupam
I am able to do a fresh install of synapse/matrix but then, I have no clue how to get back on my previous account with the conversations, chats and most important, verified sessions.