Synapse update fails, impossible to restore

:frowning: Yes, quite so.

There is a whole block almost identical; I put the logs in two windows beside each other and searched for synapse-ynh-deps; it occurs in the middle 30% of the restore log which corresponds with the area 20% to 40% (the second fifth) of the install log.

After that it diverts, restoring on the one hand and creating a database on the other (search for Adding user turnserver to group ssl-cert on both sides).

Then search for /home/yunohost.backup/tmp/ on the ‘restore’ side, which runs almost till the bottom. The two files convert on chown matrix-synapse:root -R /opt/yunohost/matrix-synapse, which is at 2023-10-19 19:53:03,174 on the restore side and at 2023-10-19 19:59:50,234 on the install side (and once more, at the bottom of the log).

Finally, the warning in the restore log occurs while running setuptools. It still tries to install the old version:


2023-10-19 19:53:03,622: DEBUG - ++ '[' -n /bin/bash -o -n '' ']'
2023-10-19 19:53:03,623: DEBUG - ++ hash -r
2023-10-19 19:53:03,623: DEBUG - + set -u
2023-10-19 19:53:03,623: DEBUG - ++ lsb_release --codename --short
2023-10-19 19:53:03,748: DEBUG - + '[' bullseye == bullseye ']'
2023-10-19 19:53:03,749: DEBUG - + pip3 install --upgrade setuptools==60.8.2 wheel pip
2023-10-19 19:53:03,751: WARNING - ../settings/scripts/_common.sh: /opt/yunohost/matrix-synapse/bin/pip3: /opt/yunohost/matrix-synapse/bin/python3: bad interpreter: No such file or directory

The install log does not have a specific version in its command, and installs a much newer version:


2023-10-19 19:59:56,824: DEBUG - ++ '[' -n /bin/bash -o -n '' ']'
2023-10-19 19:59:56,824: DEBUG - ++ hash -r
2023-10-19 19:59:56,824: DEBUG - + set -u
2023-10-19 19:59:56,824: DEBUG - + pip3 install --upgrade setuptools wheel pip
2023-10-19 20:00:00,647: DEBUG - Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2023-10-19 20:00:00,649: DEBUG - Requirement already satisfied: setuptools in /opt/yunohost/matrix-synapse/lib/python3.9/site-packages (44.1.1)
2023-10-19 20:00:05,317: DEBUG - Collecting setuptools
2023-10-19 20:00:05,446: DEBUG -   Downloading https://www.piwheels.org/simple/setuptools/setuptools-68.2.2-py3-none-any.whl (807 kB)
2023-10-19 20:00:06,185: DEBUG - Collecting wheel

Please have a look at the suggestion behind the link in my earlier post . I wrote the step-by-step instructions to replace the file in the archive. Take care to use the correct name for the backup, of course!