My YunoHost server
Hardware: APU2D4 board (x86)
YunoHost version: 4.2.2 (testing)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
Description of my issue
I am on testing 4.2.2, and everything looks fine but… I started the upgrade of Synapse today. It crashed. But when I tried to restore, yunohost told me :
This backup archive can not be restored because it comes from a too-old YunoHost version.
Do you know a way to work around this ?
On the synapse sides, here are the lines when the upgrade failed :
2021-04-18 10:03:34,980: INFO - [##########++........] > Upgrading source files...
2021-04-18 10:03:34,983: DEBUG - + chown matrix-synapse:root -R /opt/yunohost/matrix-synapse
2021-04-18 10:03:35,479: DEBUG - ++ uname -m
2021-04-18 10:03:35,480: DEBUG - ++ grep arm
2021-04-18 10:03:35,494: DEBUG - + '[' -n '' ']'
2021-04-18 10:03:35,495: DEBUG - + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/yunohost/matrix-synapse/.cargo/bin:/opt/yunohost/matrix-synapse/.local/bin:/usr/local/sbin
2021-04-18 10:03:35,496: DEBUG - + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/yunohost/matrix-synapse/.cargo/bin:/opt/yunohost/matrix-synapse/.local/bin:/usr/local/sbin
2021-04-18 10:03:35,496: DEBUG - + '[' -e /opt/yunohost/matrix-synapse/.rustup ']'
2021-04-18 10:03:35,497: DEBUG - + sudo -u matrix-synapse bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable --profile=minimal'
2021-04-18 10:03:35,606: WARNING - shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
2021-04-18 10:03:35,616: WARNING - job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
2021-04-18 10:03:35,621: WARNING - sh: 0: getcwd() failed: No such file or directory
2021-04-18 10:03:36,257: WARNING - info: downloading installer
2021-04-18 10:03:42,077: WARNING - error: No such file or directory (os error 2)
2021-04-18 10:03:42,139: DEBUG - + ynh_exit_properly
2021-04-18 10:03:42,140: DEBUG - + local exit_code=1
2021-04-18 10:03:42,141: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-04-18 10:03:42,148: DEBUG - + '[' 1 -eq 0 ']'
2021-04-18 10:03:42,149: DEBUG - + trap '' EXIT
2021-04-18 10:03:42,150: DEBUG - + set +o errexit
2021-04-18 10:03:42,151: DEBUG - + set +o nounset
2021-04-18 10:03:42,152: DEBUG - + sleep 0.5
2021-04-18 10:03:42,658: DEBUG - + type -t ynh_clean_setup
2021-04-18 10:03:42,659: DEBUG - + ynh_clean_setup
2021-04-18 10:03:42,660: DEBUG - + ynh_clean_check_starting
2021-04-18 10:03:42,660: DEBUG - + '[' -n '' ']'
2021-04-18 10:03:42,661: DEBUG - + '[' -n '' ']'
2021-04-18 10:03:42,661: DEBUG - + ynh_restore_upgradebackup
2021-04-18 10:03:42,662: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2021-04-18 10:03:42,704: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2021-04-18 10:03:42,705: DEBUG - + echo -e '[Error] Upgrade failed.'
2021-04-18 10:03:42,706: DEBUG - + local app_bck=synapse
2021-04-18 10:03:42,707: DEBUG - + NO_BACKUP_UPGRADE=0
2021-04-18 10:03:42,707: DEBUG - + '[' 0 -eq 0 ']'
2021-04-18 10:03:42,708: DEBUG - + ynh_backup_archive_exists synapse-pre-upgrade1
2021-04-18 10:03:42,709: WARNING - [Error] Upgrade failed.
In summary, I have two issues :
- one related to yunohost 4.2.2 testing I think,
- one related to synapse upgrade.
Any help will be much appreciated !