This is the log of the upgrade which failed :
$ yunohost log display /var/log/yunohost/categories/operation/20190112-191630-app_upgrade-synapse
description: Upgrade 'synapse' application
log_path: /var/log/yunohost/categories/operation/20190112-191630-app_upgrade-synapse.log
logs:
- 2019-01-12 19:17:32,770: WARNING - /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
- 2019-01-12 19:17:33,558: DEBUG - + set +eu
- 2019-01-12 19:17:33,558: DEBUG - + echo -e '!!\n synapse'\''s script has encountered an error. Its execution was cancelled.\n!!'
- 2019-01-12 19:17:33,558: DEBUG - + type -t ynh_clean_setup
- 2019-01-12 19:17:33,558: DEBUG - + ynh_clean_setup
- 2019-01-12 19:17:33,558: DEBUG - + ynh_restore_upgradebackup
- 2019-01-12 19:17:33,558: DEBUG - + echo 'Upgrade failed.'
- 2019-01-12 19:17:33,559: DEBUG - + local app_bck=synapse
- 2019-01-12 19:17:33,559: DEBUG - + NO_BACKUP_UPGRADE=0
- 2019-01-12 19:17:33,559: DEBUG - + '[' 0 -eq 0 ']'
- 2019-01-12 19:17:33,559: DEBUG - + sudo yunohost backup list
- 2019-01-12 19:17:33,559: DEBUG - + grep -q synapse-pre-upgrade2
- 2019-01-12 19:17:33,860: DEBUG - + sudo yunohost app remove synapse
- 2019-01-12 19:17:35,664: WARNING - Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
- 2019-01-12 19:17:36,266: WARNING - Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
- 2019-01-12 19:17:37,268: WARNING - Port 8448 is already closed for IPv4 connections
- 2019-01-12 19:17:37,269: WARNING - Port 8448 is already closed for IPv6 connections
- 2019-01-12 19:18:10,555: WARNING - could not change directory to "/tmp/yunohost_remove/scripts": Permission denied
- 2019-01-12 19:18:10,956: WARNING - could not change directory to "/tmp/yunohost_remove/scripts": Permission denied
- 2019-01-12 19:18:10,956: WARNING - Remove the user matrix-synapse
- 2019-01-12 19:18:11,859: DEBUG - synapse has been removed
- 2019-01-12 19:18:12,160: DEBUG - The SSOwat configuration has been generated
- 2019-01-12 19:18:12,160: DEBUG - + sudo yunohost backup restore synapse-pre-upgrade2 --apps synapse --force
- 2019-01-12 19:18:48,531: WARNING - E: Packages need to be removed but remove is disabled.
- 2019-01-12 19:18:48,531: WARNING - Unable to install dependencies
- 2019-01-12 19:18:48,532: WARNING - !!
- 2019-01-12 19:18:48,532: WARNING - synapse's script has encountered an error. Its execution was cancelled.
- 2019-01-12 19:18:48,533: WARNING - !!
- 2019-01-12 19:18:48,533: WARNING -
- 2019-01-12 19:18:48,634: DEBUG - The operation 'Restore 'synapse' from a backup archive' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190112-191838-backup_restore_app-synapse --share'
- 2019-01-12 19:18:48,634: WARNING - Unable to restore the app 'synapse'
- 2019-01-12 19:18:52,542: WARNING - Traceback (most recent call last):
- 2019-01-12 19:18:52,543: WARNING - File "/opt/yunohost/matrix-synapse/remove_sso_conf.py", line 5, in <module>
- 2019-01-12 19:18:52,543: WARNING - data["skipped_urls"].remove("/_matrix")
- 2019-01-12 19:18:52,543: WARNING - ValueError: list.remove(x): x not in list
- 2019-01-12 19:18:54,047: WARNING - /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
- 2019-01-12 19:18:54,749: WARNING - could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade2/apps/synapse/settings/scripts": Permission denied
- 2019-01-12 19:18:54,749: WARNING - dropdb: database removal failed: ERROR: database "matrix_synapse" does not exist
- 2019-01-12 19:18:54,850: WARNING - could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade2/apps/synapse/settings/scripts": Permission denied
- 2019-01-12 19:18:54,850: WARNING - dropuser: removal of role "matrix_synapse" failed: ERROR: role "matrix_synapse" does not exist
- 2019-01-12 19:18:54,850: WARNING - The user matrix-synapse was not found
- 2019-01-12 19:18:55,051: WARNING - Unknown service 'matrix-synapse'
- 2019-01-12 19:18:55,352: DEBUG - The operation 'Remove 'synapse' after a failed restore from a backup archive' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20190112-191848-remove_on_failed_restore-synapse --share'
- 2019-01-12 19:18:55,352: WARNING - Unknown service 'coturn-synapse'
- 2019-01-12 19:18:55,353: DEBUG - + ynh_die 'The app was restored to the way it was before the failed upgrade.'
- 2019-01-12 19:18:55,353: WARNING - synapse has not been properly removed
- 2019-01-12 19:18:55,354: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.'
- 2019-01-12 19:18:55,354: WARNING - Nothing has been restored
- 2019-01-12 19:18:55,354: DEBUG - + exit 1
- 2019-01-12 19:18:55,355: WARNING - The app was restored to the way it was before the failed upgrade.
- 2019-01-12 19:18:55,474: ERROR - Unable to upgrade synapse
metadata:
ended_at: 2019-01-12 19:18:55.474780
env:
YNH_APP_ID: synapse
YNH_APP_INSTANCE_NAME: synapse
YNH_APP_INSTANCE_NUMBER: 1
YNH_CWD: /var/cache/yunohost/from_file/synapse_ynh-testing/scripts
YNH_STDINFO: /tmp/tmpTJdGpq/stdinfo
error: Unable to upgrade synapse
operation: app_upgrade
related_to:
- app
- synapse
started_at: 2019-01-12 19:16:30.025496
success: False
metadata_path: /var/log/yunohost/categories/operation/20190112-191630-app_upgrade-synapse.yml
name: 20190112-191630-app_upgrade-synapse
Oups. Refer to the first WARNING, it seem the file was not saved