ended_at: 2021-08-20 09:04:15.644215 env: BASH_XTRACEFD: '7' NO_BACKUP_UPGRADE: '0' YNH_APP_CURRENT_VERSION: 7.0.5~ynh1 YNH_APP_ID: seafile YNH_APP_INSTANCE_NAME: seafile YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 8.0.5~ynh1 YNH_APP_UPGRADE_TYPE: UPGRADE_APP YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/scripts YNH_INTERFACE: api YNH_STDRETURN: /tmp/tmpn7pwouc_/stdreturn error: "Une erreur s\u2019est produite durant l\u2019ex\xE9cution du script de mise\ \ \xE0 niveau de l\u2019application" interface: api operation: app_upgrade parent: null related_to: - - app - seafile started_at: 2021-08-20 08:57:24.148968 success: false yunohost_version: 4.2.8 ============ 2021-08-20 10:57:24,155: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 2021-08-20 10:57:24,159: DEBUG - + source ./experimental_helper.sh 2021-08-20 10:57:24,159: DEBUG - + source ./_common.sh 2021-08-20 10:57:24,159: DEBUG - ++ app=seafile 2021-08-20 10:57:24,160: DEBUG - + source /usr/share/yunohost/helpers 2021-08-20 10:57:24,160: DEBUG - +++ set +o 2021-08-20 10:57:24,160: DEBUG - +++ grep xtrace 2021-08-20 10:57:24,161: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-08-20 10:57:24,161: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2021-08-20 10:57:24,182: DEBUG - + ynh_abort_if_errors 2021-08-20 10:57:24,182: DEBUG - + set -o errexit 2021-08-20 10:57:24,182: DEBUG - + set -o nounset 2021-08-20 10:57:24,182: DEBUG - + trap ynh_exit_properly EXIT 2021-08-20 10:57:24,216: DEBUG - + echo '[....................] > Loading installation settings...' 2021-08-20 10:57:24,216: INFO - [....................] > Loading installation settings... 2021-08-20 10:57:24,217: DEBUG - ++ ynh_app_setting_get --app seafile --key domain 2021-08-20 10:57:24,246: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:24,246: DEBUG - ++ ynh_app_setting get seafile domain 2021-08-20 10:57:24,282: DEBUG - + domain=domain2.tld 2021-08-20 10:57:24,283: DEBUG - +++ ynh_app_setting_get --app seafile --key path 2021-08-20 10:57:24,315: DEBUG - +++ [[ path =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:24,315: DEBUG - +++ ynh_app_setting get seafile path 2021-08-20 10:57:24,351: DEBUG - ++ ynh_normalize_url_path --path_url / 2021-08-20 10:57:24,360: DEBUG - ++ test -n / 2021-08-20 10:57:24,360: DEBUG - ++ '[' / '!=' / ']' 2021-08-20 10:57:24,360: DEBUG - ++ '[' / == / ']' 2021-08-20 10:57:24,360: DEBUG - ++ '[' 1 -gt 1 ']' 2021-08-20 10:57:24,360: DEBUG - ++ echo / 2021-08-20 10:57:24,360: DEBUG - + path_url=/ 2021-08-20 10:57:24,361: DEBUG - ++ ynh_app_setting_get --app seafile --key seahub_port 2021-08-20 10:57:24,389: DEBUG - ++ [[ seahub_port =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:24,389: DEBUG - ++ ynh_app_setting get seafile seahub_port 2021-08-20 10:57:24,421: DEBUG - + seahub_port=8000 2021-08-20 10:57:24,421: DEBUG - ++ ynh_app_setting_get --app seafile --key fileserver_port 2021-08-20 10:57:24,449: DEBUG - ++ [[ fileserver_port =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:24,449: DEBUG - ++ ynh_app_setting get seafile fileserver_port 2021-08-20 10:57:24,481: DEBUG - + fileserver_port=8082 2021-08-20 10:57:24,481: DEBUG - ++ ynh_app_setting_get --app seafile --key webdav_port 2021-08-20 10:57:24,509: DEBUG - ++ [[ webdav_port =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:24,509: DEBUG - ++ ynh_app_setting get seafile webdav_port 2021-08-20 10:57:24,542: DEBUG - + webdav_port=8080 2021-08-20 10:57:24,542: DEBUG - ++ ynh_app_setting_get --app seafile --key final_path 2021-08-20 10:57:24,570: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:24,571: DEBUG - ++ ynh_app_setting get seafile final_path 2021-08-20 10:57:24,603: DEBUG - + final_path=/opt/yunohost/seafile 2021-08-20 10:57:24,603: DEBUG - + seafile_user=seafile 2021-08-20 10:57:24,603: DEBUG - + seafile_data=/home/yunohost.app/seafile-data 2021-08-20 10:57:24,604: DEBUG - + installed_version=7.0.5 2021-08-20 10:57:24,604: DEBUG - ++ ynh_app_upstream_version 2021-08-20 10:57:24,605: DEBUG - ++ manifest= 2021-08-20 10:57:24,605: DEBUG - ++ [[ '' != '' ]] 2021-08-20 10:57:24,605: DEBUG - ++ version_key_=8.0.5~ynh1 2021-08-20 10:57:24,605: DEBUG - ++ echo 8.0.5 2021-08-20 10:57:24,605: DEBUG - + seafile_version=8.0.5 2021-08-20 10:57:24,605: DEBUG - ++ ynh_detect_arch 2021-08-20 10:57:24,606: DEBUG - +++ uname -m 2021-08-20 10:57:24,606: DEBUG - +++ grep arm64 2021-08-20 10:57:24,607: DEBUG - ++ '[' -n '' ']' 2021-08-20 10:57:24,608: DEBUG - +++ uname -m 2021-08-20 10:57:24,608: DEBUG - +++ grep aarch64 2021-08-20 10:57:24,609: DEBUG - ++ '[' -n '' ']' 2021-08-20 10:57:24,609: DEBUG - +++ uname -m 2021-08-20 10:57:24,609: DEBUG - +++ grep 64 2021-08-20 10:57:24,610: DEBUG - ++ '[' -n x86_64 ']' 2021-08-20 10:57:24,610: DEBUG - ++ architecture=x86-64 2021-08-20 10:57:24,611: DEBUG - ++ echo x86-64 2021-08-20 10:57:24,611: DEBUG - + architecture=x86-64 2021-08-20 10:57:24,611: DEBUG - + '[' 7.0.5~ynh1 == - ']' 2021-08-20 10:57:24,633: DEBUG - + echo '[....................] > Stoping services...' 2021-08-20 10:57:24,633: INFO - [....................] > Stoping services... 2021-08-20 10:57:24,634: DEBUG - + '[' -e /etc/init.d/seafile-server ']' 2021-08-20 10:57:24,634: DEBUG - + ynh_systemd_action --service_name seafile --action stop 2021-08-20 10:57:24,716: DEBUG - + service_name=seafile 2021-08-20 10:57:24,716: DEBUG - + action=stop 2021-08-20 10:57:24,716: DEBUG - + line_match= 2021-08-20 10:57:24,716: DEBUG - + length=20 2021-08-20 10:57:24,716: DEBUG - + log_path=/var/log/seafile/seafile.log 2021-08-20 10:57:24,716: DEBUG - + timeout=300 2021-08-20 10:57:24,716: DEBUG - + '[' stop == stop ']' 2021-08-20 10:57:24,717: DEBUG - + systemctl is-active --quiet seafile 2021-08-20 10:57:24,719: DEBUG - + [[ -n '' ]] 2021-08-20 10:57:24,719: DEBUG - + '[' stop == reload ']' 2021-08-20 10:57:24,719: DEBUG - + systemctl stop seafile 2021-08-20 10:57:24,793: DEBUG - + [[ -n '' ]] 2021-08-20 10:57:24,793: DEBUG - + ynh_systemd_action --service_name seahub --action stop 2021-08-20 10:57:24,884: DEBUG - + service_name=seahub 2021-08-20 10:57:24,884: DEBUG - + action=stop 2021-08-20 10:57:24,885: DEBUG - + line_match= 2021-08-20 10:57:24,885: DEBUG - + length=20 2021-08-20 10:57:24,885: DEBUG - + log_path=/var/log/seahub/seahub.log 2021-08-20 10:57:24,885: DEBUG - + timeout=300 2021-08-20 10:57:24,885: DEBUG - + '[' stop == stop ']' 2021-08-20 10:57:24,885: DEBUG - + systemctl is-active --quiet seahub 2021-08-20 10:57:24,887: DEBUG - + [[ -n '' ]] 2021-08-20 10:57:24,887: DEBUG - + '[' stop == reload ']' 2021-08-20 10:57:24,887: DEBUG - + systemctl stop seahub 2021-08-20 10:57:25,911: DEBUG - + [[ -n '' ]] 2021-08-20 10:57:25,911: DEBUG - + sleep 5 2021-08-20 10:57:30,912: DEBUG - + pkill -f seafile-controller 2021-08-20 10:57:30,917: DEBUG - + true 2021-08-20 10:57:30,917: DEBUG - + pkill -f seaf-server 2021-08-20 10:57:30,921: DEBUG - + true 2021-08-20 10:57:30,921: DEBUG - + pkill -f ccnet-server 2021-08-20 10:57:30,925: DEBUG - + true 2021-08-20 10:57:30,926: DEBUG - + pkill -f seahub 2021-08-20 10:57:30,930: DEBUG - + true 2021-08-20 10:57:30,967: DEBUG - + echo '[++++++++++..........] > Backing up the app before upgrading (may take a while)...' 2021-08-20 10:57:30,967: INFO - [++++++++++..........] > Backing up the app before upgrading (may take a while)... 2021-08-20 10:57:30,967: DEBUG - ++ ynh_app_setting_get --app=seafile --key=disable_backup_before_upgrade 2021-08-20 10:57:30,985: DEBUG - ++ [[ disable_backup_before_upgrade =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:30,985: DEBUG - ++ ynh_app_setting get seafile disable_backup_before_upgrade 2021-08-20 10:57:31,018: DEBUG - + '[' 0 -ne 1 ']' 2021-08-20 10:57:31,018: DEBUG - + ynh_compare_current_package_version --comparison=ge --version=7.0.5~ynh1 2021-08-20 10:57:31,018: DEBUG - + declare -Ar args_array 2021-08-20 10:57:31,035: DEBUG - + local current_version=7.0.5~ynh1 2021-08-20 10:57:31,035: DEBUG - + [[ ! 7.0.5~ynh1 =~ ~ynh ]] 2021-08-20 10:57:31,035: DEBUG - + [[ ! 7.0.5~ynh1 =~ ~ynh ]] 2021-08-20 10:57:31,035: DEBUG - + [[ ! ge =~ (lt|le|eq|ne|ge|gt) ]] 2021-08-20 10:57:31,035: DEBUG - + dpkg --compare-versions 7.0.5~ynh1 ge 7.0.5~ynh1 2021-08-20 10:57:31,036: DEBUG - + ynh_backup_before_upgrade 2021-08-20 10:57:31,037: DEBUG - + '[' '!' -e /etc/yunohost/apps/seafile/scripts/backup ']' 2021-08-20 10:57:31,037: DEBUG - + backup_number=1 2021-08-20 10:57:31,037: DEBUG - + local old_backup_number=2 2021-08-20 10:57:31,037: DEBUG - + local app_bck=seafile 2021-08-20 10:57:31,037: DEBUG - + NO_BACKUP_UPGRADE=0 2021-08-20 10:57:31,037: DEBUG - + '[' 0 -eq 0 ']' 2021-08-20 10:57:31,037: DEBUG - + ynh_backup_archive_exists seafile-pre-upgrade1 2021-08-20 10:57:31,037: DEBUG - + yunohost backup list --output-as json --quiet 2021-08-20 10:57:31,037: DEBUG - + jq -e --arg archive seafile-pre-upgrade1 '.archives | index($archive)' 2021-08-20 10:57:31,245: DEBUG - + BACKUP_CORE_ONLY=1 2021-08-20 10:57:31,245: DEBUG - + yunohost backup create --apps seafile --name seafile-pre-upgrade1 --debug 2021-08-20 10:57:31,335: DEBUG - 66 initializing base actions map parser for cli 2021-08-20 10:57:31,335: DEBUG - 67 loading actions map namespace 'yunohost' 2021-08-20 10:57:31,337: DEBUG - 68 building parser... 2021-08-20 10:57:31,339: DEBUG - 71 building parser took 0.002s 2021-08-20 10:57:31,340: DEBUG - 72 acquiring lock... 2021-08-20 10:57:31,368: DEBUG - 99 loading python module yunohost.backup took 0.021s 2021-08-20 10:57:31,368: DEBUG - 99 processing action [6063.1]: yunohost.backup.create with args={'name': 'seafile-pre-upgrade1', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['seafile'], 'dry_run': False} 2021-08-20 10:57:31,428: DEBUG - 159 Collecte des fichiers devant être sauvegardés pour seafile... 2021-08-20 10:57:31,671: DEBUG - 402 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_cwe321nz/scripts/backup" 7>&1']' 2021-08-20 10:57:31,674: DEBUG - 405 + source /usr/share/yunohost/helpers 2021-08-20 10:57:31,674: DEBUG - 406 +++ set +o 2021-08-20 10:57:31,675: DEBUG - 406 +++ grep xtrace 2021-08-20 10:57:31,675: DEBUG - 407 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-08-20 10:57:31,675: DEBUG - 407 ++ XTRACE_ENABLE='set -o xtrace' 2021-08-20 10:57:31,696: DEBUG - 427 + ynh_abort_if_errors 2021-08-20 10:57:31,696: DEBUG - 427 + set -o errexit 2021-08-20 10:57:31,696: DEBUG - 427 + set -o nounset 2021-08-20 10:57:31,696: DEBUG - 427 + trap ynh_exit_properly EXIT 2021-08-20 10:57:31,696: DEBUG - 428 + source ../settings/scripts/experimental_helper.sh 2021-08-20 10:57:31,696: DEBUG - 428 +++ uname -m 2021-08-20 10:57:31,696: DEBUG - 428 +++ grep 64 2021-08-20 10:57:31,698: DEBUG - 429 ++ '[' -n x86_64 ']' 2021-08-20 10:57:31,698: DEBUG - 429 ++ architecture=x86-64 2021-08-20 10:57:31,698: DEBUG - 430 + source ../settings/scripts/_common.sh 2021-08-20 10:57:31,698: DEBUG - 430 ++ app=seafile 2021-08-20 10:57:31,699: DEBUG - 430 ++ [[ -e ../settings/manifest.json ]] 2021-08-20 10:57:31,699: DEBUG - 430 +++ ynh_app_upstream_version 2021-08-20 10:57:31,699: DEBUG - 431 +++ manifest= 2021-08-20 10:57:31,699: DEBUG - 431 +++ [[ '' != '' ]] 2021-08-20 10:57:31,699: DEBUG - 431 +++ version_key_=7.0.5~ynh1 2021-08-20 10:57:31,700: DEBUG - 431 +++ echo 7.0.5 2021-08-20 10:57:31,700: DEBUG - 432 ++ seafile_version=7.0.5 2021-08-20 10:57:31,730: DEBUG - 462 + echo '[+...................] > Loading installation settings...' 2021-08-20 10:57:31,731: DEBUG - 462 [+...................] > Loading installation settings... 2021-08-20 10:57:31,731: DEBUG - 462 ++ ynh_app_setting_get --app seafile --key domain 2021-08-20 10:57:31,762: DEBUG - 493 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:31,762: DEBUG - 493 ++ ynh_app_setting get seafile domain 2021-08-20 10:57:31,798: DEBUG - 530 + domain=domain2.tld 2021-08-20 10:57:31,799: DEBUG - 530 ++ ynh_app_setting_get --app seafile --key mysqlpwd 2021-08-20 10:57:31,832: DEBUG - 563 ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:31,832: DEBUG - 563 ++ ynh_app_setting get seafile mysqlpwd 2021-08-20 10:57:31,869: DEBUG - 601 + db_pwd=********** 2021-08-20 10:57:31,869: DEBUG - 601 ++ ynh_app_setting_get --app seafile --key final_path 2021-08-20 10:57:31,901: DEBUG - 632 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:31,901: DEBUG - 633 ++ ynh_app_setting get seafile final_path 2021-08-20 10:57:31,937: DEBUG - 668 + final_path=/opt/yunohost/seafile 2021-08-20 10:57:31,937: DEBUG - 669 + seafile_user=seafile 2021-08-20 10:57:31,938: DEBUG - 669 ++ systemctl status seafile 2021-08-20 10:57:31,992: DEBUG - 723 + [[ ! ● seafile.service - Seafile 2021-08-20 10:57:31,993: DEBUG - 724 Loaded: loaded (/etc/systemd/system/seafile.service; enabled; vendor preset: enabled) 2021-08-20 10:57:31,993: DEBUG - 724 Active: inactive (dead) since Fri 2021-08-20 10:57:24 CEST; 7s ago 2021-08-20 10:57:31,993: DEBUG - 724 Process: 5750 ExecStop=/opt/yunohost/seafile/seafile-server-latest/seafile.sh stop (code=exited, status=0/SUCCESS) 2021-08-20 10:57:31,994: DEBUG - 724 2021-08-20 10:57:31,994: DEBUG - 725 août 20 00:15:19 maindomain.tld seafile.sh[18151]: Starting seafile server, please wait ... 2021-08-20 10:57:31,994: DEBUG - 725 août 20 00:15:19 maindomain.tld seafile-control[18172]: seafile-controller.c(718): No seafevents. 2021-08-20 10:57:31,994: DEBUG - 725 août 20 00:15:22 maindomain.tld seafile.sh[18151]: Seafile server started 2021-08-20 10:57:31,994: DEBUG - 725 août 20 00:15:22 maindomain.tld seafile.sh[18151]: Done. 2021-08-20 10:57:31,995: DEBUG - 725 août 20 00:15:22 maindomain.tld systemd[1]: Started Seafile. 2021-08-20 10:57:31,995: DEBUG - 725 août 20 10:57:24 maindomain.tld systemd[1]: Stopping Seafile... 2021-08-20 10:57:31,995: DEBUG - 726 août 20 10:57:24 maindomain.tld seafile.sh[5750]: Stopping seafile server ... 2021-08-20 10:57:31,995: DEBUG - 726 août 20 10:57:24 maindomain.tld seafile.sh[5750]: Done. 2021-08-20 10:57:31,995: DEBUG - 726 août 20 10:57:24 maindomain.tld systemd[1]: seafile.service: Succeeded. 2021-08-20 10:57:31,997: DEBUG - 726 août 20 10:57:24 maindomain.tld systemd[1]: Stopped Seafile. =~ Active: inactive \(dead\) ]] 2021-08-20 10:57:31,998: DEBUG - 726 ++ systemctl status seahub 2021-08-20 10:57:32,006: DEBUG - 737 + [[ ! ● seahub.service - Seafile hub 2021-08-20 10:57:32,006: DEBUG - 737 Loaded: loaded (/etc/systemd/system/seahub.service; enabled; vendor preset: enabled) 2021-08-20 10:57:32,006: DEBUG - 738 Active: failed (Result: signal) since Fri 2021-08-20 10:57:25 CEST; 6s ago 2021-08-20 10:57:32,006: DEBUG - 738 Process: 5920 ExecStop=/opt/yunohost/seafile/seafile-server-latest/seahub.sh stop (code=exited, status=0/SUCCESS) 2021-08-20 10:57:32,007: DEBUG - 738 Main PID: 18463 (code=killed, signal=KILL) 2021-08-20 10:57:32,007: DEBUG - 738 2021-08-20 10:57:32,007: DEBUG - 738 août 20 00:15:22 maindomain.tld seahub.sh[18448]: Starting seahub at port 8000 ... 2021-08-20 10:57:32,007: DEBUG - 738 août 20 00:15:27 maindomain.tld seahub.sh[18448]: Seahub is started 2021-08-20 10:57:32,007: DEBUG - 738 août 20 00:15:27 maindomain.tld seahub.sh[18448]: Done. 2021-08-20 10:57:32,007: DEBUG - 738 août 20 00:15:27 maindomain.tld systemd[1]: Started Seafile hub. 2021-08-20 10:57:32,008: DEBUG - 738 août 20 10:57:24 maindomain.tld systemd[1]: Stopping Seafile hub... 2021-08-20 10:57:32,008: DEBUG - 739 août 20 10:57:24 maindomain.tld seahub.sh[5920]: Stopping seahub ... 2021-08-20 10:57:32,008: DEBUG - 739 août 20 10:57:24 maindomain.tld systemd[1]: seahub.service: Main process exited, code=killed, status=9/KILL 2021-08-20 10:57:32,008: DEBUG - 739 août 20 10:57:25 maindomain.tld seahub.sh[5920]: Done. 2021-08-20 10:57:32,008: DEBUG - 739 août 20 10:57:25 maindomain.tld systemd[1]: seahub.service: Failed with result 'signal'. 2021-08-20 10:57:32,008: DEBUG - 739 août 20 10:57:25 maindomain.tld systemd[1]: Stopped Seafile hub. =~ Active: inactive \(dead\) ]] 2021-08-20 10:57:32,008: DEBUG - 739 + ynh_print_warn '--message=It'\''s hightly recommended to make your backup when the service is stopped. Please stop seafile service and seahub service with this command before to run the backup '\''systemctl stop seafile.service seahub.service'\''' 2021-08-20 10:57:32,016: DEBUG - 746 + ynh_print_log 'It'\''s hightly recommended to make your backup when the service is stopped. Please stop seafile service and seahub service with this command before to run the backup '\''systemctl stop seafile.service seahub.service'\''' 2021-08-20 10:57:32,016: WARNING - 747 It's hightly recommended to make your backup when the service is stopped. Please stop seafile service and seahub service with this command before to run the backup 'systemctl stop seafile.service seahub.service' 2021-08-20 10:57:32,017: DEBUG - 747 + echo -e 'It'\''s hightly recommended to make your backup when the service is stopped. Please stop seafile service and seahub service with this command before to run the backup '\''systemctl stop seafile.service seahub.service'\''' 2021-08-20 10:57:32,058: DEBUG - 790 [#+++................] > Backing up code... 2021-08-20 10:57:32,059: DEBUG - 790 + echo '[#+++................] > Backing up code...' 2021-08-20 10:57:32,059: DEBUG - 790 + ynh_backup --src_path /opt/yunohost/seafile 2021-08-20 10:57:32,093: DEBUG - 824 + dest_path= 2021-08-20 10:57:32,093: DEBUG - 824 + is_big=0 2021-08-20 10:57:32,093: DEBUG - 824 + not_mandatory=0 2021-08-20 10:57:32,093: DEBUG - 824 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,093: DEBUG - 824 + test -n seafile 2021-08-20 10:57:32,093: DEBUG - 825 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,109: DEBUG - 841 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,110: DEBUG - 841 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,143: DEBUG - 874 + do_not_backup_data= 2021-08-20 10:57:32,143: DEBUG - 874 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,143: DEBUG - 875 + '[' '!' -e /opt/yunohost/seafile ']' 2021-08-20 10:57:32,143: DEBUG - 875 ++ realpath /opt/yunohost/seafile 2021-08-20 10:57:32,144: DEBUG - 875 + src_path=/opt/yunohost/seafile 2021-08-20 10:57:32,144: DEBUG - 875 + [[ -z '' ]] 2021-08-20 10:57:32,144: DEBUG - 875 + dest_path=opt/yunohost/seafile 2021-08-20 10:57:32,144: DEBUG - 876 + [[ -e opt/yunohost/seafile ]] 2021-08-20 10:57:32,144: DEBUG - 876 + local rel_dir=/apps/seafile/backup 2021-08-20 10:57:32,144: DEBUG - 876 + rel_dir=/apps/seafile/backup/ 2021-08-20 10:57:32,145: DEBUG - 876 + dest_path=/apps/seafile/backup/opt/yunohost/seafile 2021-08-20 10:57:32,145: DEBUG - 876 + dest_path=apps/seafile/backup/opt/yunohost/seafile 2021-08-20 10:57:32,145: DEBUG - 876 ++ echo /opt/yunohost/seafile 2021-08-20 10:57:32,145: DEBUG - 876 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,146: DEBUG - 877 + local src=/opt/yunohost/seafile 2021-08-20 10:57:32,146: DEBUG - 877 ++ echo apps/seafile/backup/opt/yunohost/seafile 2021-08-20 10:57:32,146: DEBUG - 878 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,147: DEBUG - 879 + local dest=apps/seafile/backup/opt/yunohost/seafile 2021-08-20 10:57:32,147: DEBUG - 879 + echo '"/opt/yunohost/seafile","apps/seafile/backup/opt/yunohost/seafile"' 2021-08-20 10:57:32,147: DEBUG - 879 ++ dirname /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/opt/yunohost/seafile 2021-08-20 10:57:32,149: DEBUG - 880 + mkdir --parents /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/opt/yunohost 2021-08-20 10:57:32,203: DEBUG - 935 + echo '[####++++++++++++....] > Backing up user data...' 2021-08-20 10:57:32,204: DEBUG - 935 + ynh_backup --src_path=/home/yunohost.app/seafile-data --dest_path=data --is_big=1 2021-08-20 10:57:32,205: DEBUG - 936 [####++++++++++++....] > Backing up user data... 2021-08-20 10:57:32,263: DEBUG - 994 + dest_path=data 2021-08-20 10:57:32,263: DEBUG - 994 + is_big=1 2021-08-20 10:57:32,263: DEBUG - 995 + not_mandatory=0 2021-08-20 10:57:32,264: DEBUG - 995 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,264: DEBUG - 995 + test -n seafile 2021-08-20 10:57:32,264: DEBUG - 995 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,289: DEBUG - 1020 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,289: DEBUG - 1020 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,326: DEBUG - 1057 + do_not_backup_data= 2021-08-20 10:57:32,326: DEBUG - 1057 + '[' 1 -eq 1 ']' 2021-08-20 10:57:32,326: DEBUG - 1057 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,326: DEBUG - 1057 + '[' 1 -eq 1 ']' 2021-08-20 10:57:32,326: DEBUG - 1057 + '[' 1 -eq 1 ']' 2021-08-20 10:57:32,326: DEBUG - 1057 + ynh_print_info '--message=/home/yunohost.app/seafile-data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2021-08-20 10:57:32,331: DEBUG - 1063 + echo '/home/yunohost.app/seafile-data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2021-08-20 10:57:32,332: DEBUG - 1063 + return 0 2021-08-20 10:57:32,332: DEBUG - 1063 /home/yunohost.app/seafile-data will not be saved, because 'BACKUP_CORE_ONLY' is set. 2021-08-20 10:57:32,365: DEBUG - 1096 + echo '[################+...] > Backing up configuration...' 2021-08-20 10:57:32,365: DEBUG - 1096 + ynh_backup --src_path /etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,365: DEBUG - 1097 [################+...] > Backing up configuration... 2021-08-20 10:57:32,410: DEBUG - 1141 + dest_path= 2021-08-20 10:57:32,410: DEBUG - 1142 + is_big=0 2021-08-20 10:57:32,411: DEBUG - 1142 + not_mandatory=0 2021-08-20 10:57:32,411: DEBUG - 1142 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,411: DEBUG - 1142 + test -n seafile 2021-08-20 10:57:32,411: DEBUG - 1142 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,431: DEBUG - 1162 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,431: DEBUG - 1163 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,469: DEBUG - 1200 + do_not_backup_data= 2021-08-20 10:57:32,470: DEBUG - 1201 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,470: DEBUG - 1201 + '[' '!' -e /etc/nginx/conf.d/domain2.tld.d/seafile.conf ']' 2021-08-20 10:57:32,470: DEBUG - 1201 ++ realpath /etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,470: DEBUG - 1201 + src_path=/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,470: DEBUG - 1202 + [[ -z '' ]] 2021-08-20 10:57:32,471: DEBUG - 1202 + dest_path=etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,471: DEBUG - 1202 + [[ -e etc/nginx/conf.d/domain2.tld.d/seafile.conf ]] 2021-08-20 10:57:32,471: DEBUG - 1202 + local rel_dir=/apps/seafile/backup 2021-08-20 10:57:32,471: DEBUG - 1202 + rel_dir=/apps/seafile/backup/ 2021-08-20 10:57:32,471: DEBUG - 1202 + dest_path=/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,471: DEBUG - 1202 + dest_path=apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,471: DEBUG - 1202 ++ echo /etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,471: DEBUG - 1203 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,472: DEBUG - 1204 + local src=/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,473: DEBUG - 1204 ++ echo apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,473: DEBUG - 1204 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,474: DEBUG - 1205 + local dest=apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,474: DEBUG - 1205 + echo '"/etc/nginx/conf.d/domain2.tld.d/seafile.conf","apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf"' 2021-08-20 10:57:32,474: DEBUG - 1206 ++ dirname /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 10:57:32,475: DEBUG - 1206 + mkdir --parents /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d 2021-08-20 10:57:32,476: DEBUG - 1207 + ynh_backup --src_path /etc/systemd/system/seafile.service 2021-08-20 10:57:32,505: DEBUG - 1236 + dest_path= 2021-08-20 10:57:32,505: DEBUG - 1236 + is_big=0 2021-08-20 10:57:32,505: DEBUG - 1236 + not_mandatory=0 2021-08-20 10:57:32,505: DEBUG - 1236 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,505: DEBUG - 1236 + test -n seafile 2021-08-20 10:57:32,505: DEBUG - 1237 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,521: DEBUG - 1252 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,521: DEBUG - 1253 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,554: DEBUG - 1285 + do_not_backup_data= 2021-08-20 10:57:32,554: DEBUG - 1286 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,554: DEBUG - 1286 + '[' '!' -e /etc/systemd/system/seafile.service ']' 2021-08-20 10:57:32,554: DEBUG - 1286 ++ realpath /etc/systemd/system/seafile.service 2021-08-20 10:57:32,555: DEBUG - 1286 + src_path=/etc/systemd/system/seafile.service 2021-08-20 10:57:32,555: DEBUG - 1286 + [[ -z '' ]] 2021-08-20 10:57:32,555: DEBUG - 1287 + dest_path=etc/systemd/system/seafile.service 2021-08-20 10:57:32,555: DEBUG - 1287 + [[ -e etc/systemd/system/seafile.service ]] 2021-08-20 10:57:32,556: DEBUG - 1287 + local rel_dir=/apps/seafile/backup 2021-08-20 10:57:32,556: DEBUG - 1287 + rel_dir=/apps/seafile/backup/ 2021-08-20 10:57:32,556: DEBUG - 1287 + dest_path=/apps/seafile/backup/etc/systemd/system/seafile.service 2021-08-20 10:57:32,556: DEBUG - 1287 + dest_path=apps/seafile/backup/etc/systemd/system/seafile.service 2021-08-20 10:57:32,556: DEBUG - 1287 ++ echo /etc/systemd/system/seafile.service 2021-08-20 10:57:32,556: DEBUG - 1288 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,557: DEBUG - 1289 + local src=/etc/systemd/system/seafile.service 2021-08-20 10:57:32,558: DEBUG - 1289 ++ echo apps/seafile/backup/etc/systemd/system/seafile.service 2021-08-20 10:57:32,558: DEBUG - 1289 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,559: DEBUG - 1291 + local dest=apps/seafile/backup/etc/systemd/system/seafile.service 2021-08-20 10:57:32,559: DEBUG - 1291 + echo '"/etc/systemd/system/seafile.service","apps/seafile/backup/etc/systemd/system/seafile.service"' 2021-08-20 10:57:32,560: DEBUG - 1291 ++ dirname /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seafile.service 2021-08-20 10:57:32,560: DEBUG - 1291 + mkdir --parents /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system 2021-08-20 10:57:32,561: DEBUG - 1292 + ynh_backup --src_path /etc/systemd/system/seahub.service 2021-08-20 10:57:32,589: DEBUG - 1320 + dest_path= 2021-08-20 10:57:32,590: DEBUG - 1321 + is_big=0 2021-08-20 10:57:32,590: DEBUG - 1321 + not_mandatory=0 2021-08-20 10:57:32,590: DEBUG - 1321 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,590: DEBUG - 1321 + test -n seafile 2021-08-20 10:57:32,590: DEBUG - 1322 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,606: DEBUG - 1337 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,606: DEBUG - 1337 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,641: DEBUG - 1371 + do_not_backup_data= 2021-08-20 10:57:32,641: DEBUG - 1371 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,642: DEBUG - 1371 + '[' '!' -e /etc/systemd/system/seahub.service ']' 2021-08-20 10:57:32,642: DEBUG - 1371 ++ realpath /etc/systemd/system/seahub.service 2021-08-20 10:57:32,642: DEBUG - 1372 + src_path=/etc/systemd/system/seahub.service 2021-08-20 10:57:32,642: DEBUG - 1372 + [[ -z '' ]] 2021-08-20 10:57:32,642: DEBUG - 1372 + dest_path=etc/systemd/system/seahub.service 2021-08-20 10:57:32,642: DEBUG - 1372 + [[ -e etc/systemd/system/seahub.service ]] 2021-08-20 10:57:32,642: DEBUG - 1372 + local rel_dir=/apps/seafile/backup 2021-08-20 10:57:32,642: DEBUG - 1372 + rel_dir=/apps/seafile/backup/ 2021-08-20 10:57:32,642: DEBUG - 1372 + dest_path=/apps/seafile/backup/etc/systemd/system/seahub.service 2021-08-20 10:57:32,642: DEBUG - 1372 + dest_path=apps/seafile/backup/etc/systemd/system/seahub.service 2021-08-20 10:57:32,642: DEBUG - 1373 ++ echo /etc/systemd/system/seahub.service 2021-08-20 10:57:32,642: DEBUG - 1373 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,643: DEBUG - 1374 + local src=/etc/systemd/system/seahub.service 2021-08-20 10:57:32,644: DEBUG - 1375 ++ echo apps/seafile/backup/etc/systemd/system/seahub.service 2021-08-20 10:57:32,644: DEBUG - 1375 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,645: DEBUG - 1376 + local dest=apps/seafile/backup/etc/systemd/system/seahub.service 2021-08-20 10:57:32,645: DEBUG - 1376 + echo '"/etc/systemd/system/seahub.service","apps/seafile/backup/etc/systemd/system/seahub.service"' 2021-08-20 10:57:32,645: DEBUG - 1377 ++ dirname /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seahub.service 2021-08-20 10:57:32,646: DEBUG - 1377 + mkdir --parents /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system 2021-08-20 10:57:32,646: DEBUG - 1378 + ynh_backup --src_path /etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,683: DEBUG - 1414 + dest_path= 2021-08-20 10:57:32,684: DEBUG - 1415 + is_big=0 2021-08-20 10:57:32,684: DEBUG - 1415 + not_mandatory=0 2021-08-20 10:57:32,684: DEBUG - 1415 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,684: DEBUG - 1415 + test -n seafile 2021-08-20 10:57:32,684: DEBUG - 1416 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,708: DEBUG - 1439 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,708: DEBUG - 1439 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,745: DEBUG - 1476 + do_not_backup_data= 2021-08-20 10:57:32,745: DEBUG - 1477 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,745: DEBUG - 1477 + '[' '!' -e /etc/fail2ban/jail.d/seafile.conf ']' 2021-08-20 10:57:32,746: DEBUG - 1477 ++ realpath /etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,746: DEBUG - 1477 + src_path=/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,746: DEBUG - 1477 + [[ -z '' ]] 2021-08-20 10:57:32,746: DEBUG - 1478 + dest_path=etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,746: DEBUG - 1478 + [[ -e etc/fail2ban/jail.d/seafile.conf ]] 2021-08-20 10:57:32,746: DEBUG - 1478 + local rel_dir=/apps/seafile/backup 2021-08-20 10:57:32,746: DEBUG - 1478 + rel_dir=/apps/seafile/backup/ 2021-08-20 10:57:32,747: DEBUG - 1478 + dest_path=/apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,747: DEBUG - 1478 + dest_path=apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,747: DEBUG - 1478 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,747: DEBUG - 1478 ++ echo /etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,748: DEBUG - 1479 + local src=/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,748: DEBUG - 1479 ++ echo apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,748: DEBUG - 1480 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,749: DEBUG - 1481 + local dest=apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,750: DEBUG - 1481 + echo '"/etc/fail2ban/jail.d/seafile.conf","apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf"' 2021-08-20 10:57:32,750: DEBUG - 1481 ++ dirname /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf 2021-08-20 10:57:32,750: DEBUG - 1482 + mkdir --parents /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/jail.d 2021-08-20 10:57:32,751: DEBUG - 1483 + ynh_backup --src_path /etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,783: DEBUG - 1515 + dest_path= 2021-08-20 10:57:32,783: DEBUG - 1515 + is_big=0 2021-08-20 10:57:32,784: DEBUG - 1515 + not_mandatory=0 2021-08-20 10:57:32,784: DEBUG - 1515 + BACKUP_CORE_ONLY=1 2021-08-20 10:57:32,784: DEBUG - 1515 + test -n seafile 2021-08-20 10:57:32,784: DEBUG - 1515 ++ ynh_app_setting_get --app=seafile --key=do_not_backup_data 2021-08-20 10:57:32,803: DEBUG - 1534 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:57:32,803: DEBUG - 1535 ++ ynh_app_setting get seafile do_not_backup_data 2021-08-20 10:57:32,839: DEBUG - 1570 + do_not_backup_data= 2021-08-20 10:57:32,839: DEBUG - 1570 + '[' 0 -eq 1 ']' 2021-08-20 10:57:32,839: DEBUG - 1571 + '[' '!' -e /etc/fail2ban/filter.d/seafile.conf ']' 2021-08-20 10:57:32,839: DEBUG - 1571 ++ realpath /etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,840: DEBUG - 1571 + src_path=/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,840: DEBUG - 1571 + [[ -z '' ]] 2021-08-20 10:57:32,840: DEBUG - 1572 + dest_path=etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,840: DEBUG - 1572 + [[ -e etc/fail2ban/filter.d/seafile.conf ]] 2021-08-20 10:57:32,840: DEBUG - 1572 + local rel_dir=/apps/seafile/backup 2021-08-20 10:57:32,841: DEBUG - 1572 + rel_dir=/apps/seafile/backup/ 2021-08-20 10:57:32,841: DEBUG - 1572 + dest_path=/apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,841: DEBUG - 1572 + dest_path=apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,841: DEBUG - 1572 ++ echo /etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,841: DEBUG - 1572 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,842: DEBUG - 1573 + local src=/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,842: DEBUG - 1574 ++ echo apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,842: DEBUG - 1574 ++ sed --regexp-extended 's/"/\"\"/g' 2021-08-20 10:57:32,843: DEBUG - 1575 + local dest=apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,844: DEBUG - 1575 + echo '"/etc/fail2ban/filter.d/seafile.conf","apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf"' 2021-08-20 10:57:32,844: DEBUG - 1575 ++ dirname /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf 2021-08-20 10:57:32,844: DEBUG - 1576 + mkdir --parents /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/filter.d 2021-08-20 10:57:32,877: DEBUG - 1608 + echo '[#################+..] > Backing up database' 2021-08-20 10:57:32,878: DEBUG - 1609 [#################+..] > Backing up database 2021-08-20 10:57:32,878: DEBUG - 1609 + ynh_mysql_dump_db --database ccnetdb 2021-08-20 10:57:32,894: DEBUG - 1625 + mysqldump --single-transaction --skip-dump-date ccnetdb 2021-08-20 10:57:32,969: DEBUG - 1700 + ynh_mysql_dump_db --database seafiledb 2021-08-20 10:57:32,978: DEBUG - 1709 + mysqldump --single-transaction --skip-dump-date seafiledb 2021-08-20 10:57:33,046: DEBUG - 1778 + ynh_mysql_dump_db --database seahubdb 2021-08-20 10:57:33,055: DEBUG - 1786 + mysqldump --single-transaction --skip-dump-date seahubdb 2021-08-20 10:57:33,233: DEBUG - 1965 + echo '[####################] > Backup script completed for seafile. (YunoHost will then actually copy those files to the archive).' 2021-08-20 10:57:33,234: DEBUG - 1965 + ynh_exit_properly 2021-08-20 10:57:33,234: DEBUG - 1965 + local exit_code=0 2021-08-20 10:57:33,234: DEBUG - 1965 + rm -rf /var/cache/yunohost/download/ 2021-08-20 10:57:33,234: DEBUG - 1965 [####################] > Backup script completed for seafile. (YunoHost will then actually copy those files to the archive). 2021-08-20 10:57:33,234: DEBUG - 1966 + '[' 0 -eq 0 ']' 2021-08-20 10:57:33,235: DEBUG - 1966 + exit 0 2021-08-20 10:57:34,236: DEBUG - 2967 Permission de sauvegarde pour seafile 2021-08-20 10:57:34,277: DEBUG - 3009 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth' 2021-08-20 10:57:35,051: DEBUG - 3782 Création d’une archive de sauvegarde à partir des fichiers collectés... 2021-08-20 10:57:35,051: DEBUG - 3783 L'archive contiendra environ 2.6GiB de données. 2021-08-20 10:57:35,052: DEBUG - 3783 Création de l’archive TAR de la sauvegarde... 2021-08-20 10:58:18,015: DEBUG - 46747 L’archive TAR de la sauvegarde a été créée 2021-08-20 10:58:18,016: DEBUG - 46747 Sauvegarde terminée 2021-08-20 10:58:18,017: DEBUG - 46749 Pour voir le journal de cette opération 'Créer une archive de sauvegarde', utilisez la commande 'yunohost log show 20210820-085731-backup_create20210820-085731-backup_create' 2021-08-20 10:58:18,023: DEBUG - 46754 action [6063.1] executed in 46.655s 2021-08-20 10:58:18,023: DEBUG - name: seafile-pre-upgrade1 2021-08-20 10:58:18,023: DEBUG - results: 2021-08-20 10:58:18,024: DEBUG - apps: 2021-08-20 10:58:18,024: DEBUG - seafile: Success 2021-08-20 10:58:18,024: DEBUG - system: 2021-08-20 10:58:18,024: DEBUG - size: 2788707973 2021-08-20 10:58:18,083: DEBUG - + '[' 0 -eq 0 ']' 2021-08-20 10:58:18,083: DEBUG - + ynh_backup_archive_exists seafile-pre-upgrade2 2021-08-20 10:58:18,083: DEBUG - + yunohost backup list --output-as json --quiet 2021-08-20 10:58:18,083: DEBUG - + jq -e --arg archive seafile-pre-upgrade2 '.archives | index($archive)' 2021-08-20 10:58:18,241: DEBUG - + yunohost backup delete seafile-pre-upgrade2 2021-08-20 10:58:20,190: INFO - [##########..........] > Fixing old settings... 2021-08-20 10:58:20,191: DEBUG - + echo '[##########..........] > Fixing old settings...' 2021-08-20 10:58:20,191: DEBUG - + '[' -z /opt/yunohost/seafile ']' 2021-08-20 10:58:20,191: DEBUG - + '[' /opt/yunohost/seafile == /var/www/seafile ']' 2021-08-20 10:58:20,238: DEBUG - + echo '[##########++........] > Upgrading source files...' 2021-08-20 10:58:20,238: INFO - [##########++........] > Upgrading source files... 2021-08-20 10:58:20,239: DEBUG - + test -e /opt/yunohost/seafile/seafile-server-8.0.5 2021-08-20 10:58:20,239: DEBUG - + install_source 2021-08-20 10:58:20,239: DEBUG - + mkdir /opt/yunohost/seafile/seafile-server-8.0.5 2021-08-20 10:58:20,239: DEBUG - + [[ x86-64 == \i\3\8\6 ]] 2021-08-20 10:58:20,240: DEBUG - + ynh_setup_source /opt/yunohost/seafile/seafile-server-8.0.5 x86-64 2021-08-20 10:58:20,273: DEBUG - + source_id=x86-64 2021-08-20 10:58:20,273: DEBUG - + keep= 2021-08-20 10:58:20,273: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,273: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,274: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,275: DEBUG - + local src_url=https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz 2021-08-20 10:58:20,276: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,276: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,278: DEBUG - + local src_sum=4065e877e9675afba958aa1007db0d3a53949f8987d7f9849dfa29a6a13a06bf 2021-08-20 10:58:20,278: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,279: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,280: DEBUG - + local src_sumprg=sha256sum 2021-08-20 10:58:20,281: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,281: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,282: DEBUG - + local src_format=tar.gz 2021-08-20 10:58:20,282: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,283: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,284: DEBUG - + local src_extract= 2021-08-20 10:58:20,284: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,284: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,285: DEBUG - + local src_in_subdir=true 2021-08-20 10:58:20,286: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/conf/x86-64.src 2021-08-20 10:58:20,286: DEBUG - ++ cut --delimiter== --fields=2- 2021-08-20 10:58:20,287: DEBUG - + local src_filename= 2021-08-20 10:58:20,287: DEBUG - + src_sumprg=sha256sum 2021-08-20 10:58:20,287: DEBUG - + src_in_subdir=true 2021-08-20 10:58:20,287: DEBUG - + src_format=tar.gz 2021-08-20 10:58:20,288: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2021-08-20 10:58:20,288: DEBUG - ++ echo tar.gz 2021-08-20 10:58:20,289: DEBUG - + src_format=tar.gz 2021-08-20 10:58:20,289: DEBUG - + src_extract=true 2021-08-20 10:58:20,289: DEBUG - + '[' '' = '' ']' 2021-08-20 10:58:20,289: DEBUG - + src_filename=x86-64.tar.gz 2021-08-20 10:58:20,289: DEBUG - + local local_src=/opt/yunohost-apps-src/seafile/x86-64.tar.gz 2021-08-20 10:58:20,289: DEBUG - + mkdir -p /var/cache/yunohost/download/seafile/ 2021-08-20 10:58:20,289: DEBUG - + src_filename=/var/cache/yunohost/download/seafile/x86-64.tar.gz 2021-08-20 10:58:20,290: DEBUG - + test -e /opt/yunohost-apps-src/seafile/x86-64.tar.gz 2021-08-20 10:58:20,290: DEBUG - + '[' -n https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz ']' 2021-08-20 10:58:20,290: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/seafile/x86-64.tar.gz https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz 2021-08-20 10:58:21,115: DEBUG - + out='2021-08-20 10:58:21 URL:https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz [52900037/52900037] -> "/var/cache/yunohost/download/seafile/x86-64.tar.gz" [1]' 2021-08-20 10:58:21,116: DEBUG - + sha256sum --check --status 2021-08-20 10:58:21,116: DEBUG - + echo '4065e877e9675afba958aa1007db0d3a53949f8987d7f9849dfa29a6a13a06bf /var/cache/yunohost/download/seafile/x86-64.tar.gz' 2021-08-20 10:58:21,363: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2021-08-20 10:58:21,365: DEBUG - + '[' -n '' ']' 2021-08-20 10:58:21,365: DEBUG - + mkdir --parents /opt/yunohost/seafile/seafile-server-8.0.5 2021-08-20 10:58:21,365: DEBUG - + '[' -n /opt/yunohost/seafile ']' 2021-08-20 10:58:21,365: DEBUG - + '[' /opt/yunohost/seafile/seafile-server-8.0.5 == /opt/yunohost/seafile ']' 2021-08-20 10:58:21,366: DEBUG - + true 2021-08-20 10:58:21,366: DEBUG - + '[' tar.gz = zip ']' 2021-08-20 10:58:21,366: DEBUG - + local strip= 2021-08-20 10:58:21,366: DEBUG - + '[' true '!=' false ']' 2021-08-20 10:58:21,366: DEBUG - + '[' true == true ']' 2021-08-20 10:58:21,366: DEBUG - + local sub_dirs=1 2021-08-20 10:58:21,366: DEBUG - + strip='--strip-components 1' 2021-08-20 10:58:21,366: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2021-08-20 10:58:21,366: DEBUG - + tar --extract --file=/var/cache/yunohost/download/seafile/x86-64.tar.gz --directory=/opt/yunohost/seafile/seafile-server-8.0.5 --strip-components 1 2021-08-20 10:58:22,463: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/seafile/x86-64.tar.gz 2021-08-20 10:58:22,469: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app' 2021-08-20 10:58:22,469: DEBUG - + '[' 1 -ge 2 ']' 2021-08-20 10:58:22,469: DEBUG - + [[ -z /var/cache/yunohost/download/seafile/x86-64.tar.gz ]] 2021-08-20 10:58:22,469: DEBUG - + [[ /var/www /home/yunohost.app =~ /var/cache/yunohost/download/seafile/x86-64\.tar\.gz ]] 2021-08-20 10:58:22,469: DEBUG - + [[ /var/cache/yunohost/download/seafile/x86-64.tar.gz =~ ^/[[:alnum:]]+$ ]] 2021-08-20 10:58:22,469: DEBUG - + [[ z = \/ ]] 2021-08-20 10:58:22,469: DEBUG - + '[' -e /var/cache/yunohost/download/seafile/x86-64.tar.gz ']' 2021-08-20 10:58:22,469: DEBUG - + rm --recursive /var/cache/yunohost/download/seafile/x86-64.tar.gz 2021-08-20 10:58:22,476: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/sources/patches/ ']' 2021-08-20 10:58:22,477: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/sources/extra_files/x86-64 2021-08-20 10:58:22,477: DEBUG - + '[' -n '' ']' 2021-08-20 10:58:22,477: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2021-08-20 10:58:22,508: DEBUG - + echo '[############........] > Upgrading dependencies...' 2021-08-20 10:58:22,508: DEBUG - + install_dependance 2021-08-20 10:58:22,508: INFO - [############........] > Upgrading dependencies... 2021-08-20 10:58:22,508: DEBUG - + ynh_install_app_dependencies python3 python3-setuptools python3-pip python3-requests python3-dev libmariadb-dev-compat libmariadb-dev expect ffmpeg memcached libmemcached-dev python3-scipy python3-matplotlib libjpeg62-turbo-dev zlib1g-dev 2021-08-20 10:58:22,509: DEBUG - + local 'dependencies=python3 python3-setuptools python3-pip python3-requests python3-dev libmariadb-dev-compat libmariadb-dev expect ffmpeg memcached libmemcached-dev python3-scipy python3-matplotlib libjpeg62-turbo-dev zlib1g-dev' 2021-08-20 10:58:22,509: DEBUG - ++ echo 'python3 python3-setuptools python3-pip python3-requests python3-dev libmariadb-dev-compat libmariadb-dev expect ffmpeg memcached libmemcached-dev python3-scipy python3-matplotlib libjpeg62-turbo-dev zlib1g-dev' 2021-08-20 10:58:22,509: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2021-08-20 10:58:22,510: DEBUG - + dependencies='python3, python3-setuptools, python3-pip, python3-requests, python3-dev, libmariadb-dev-compat, libmariadb-dev, expect, ffmpeg, memcached, libmemcached-dev, python3-scipy, python3-matplotlib, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 10:58:22,510: DEBUG - + local 'dependencies=python3, python3-setuptools, python3-pip, python3-requests, python3-dev, libmariadb-dev-compat, libmariadb-dev, expect, ffmpeg, memcached, libmemcached-dev, python3-scipy, python3-matplotlib, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 10:58:22,510: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/manifest.json 2021-08-20 10:58:22,510: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_aoh0570q/manifest.json 2021-08-20 10:58:22,513: DEBUG - + local version=8.0.5~ynh1 2021-08-20 10:58:22,513: DEBUG - + '[' -z 8.0.5~ynh1 ']' 2021-08-20 10:58:22,514: DEBUG - + '[' 8.0.5~ynh1 == null ']' 2021-08-20 10:58:22,514: DEBUG - + local dep_app=seafile 2021-08-20 10:58:22,514: DEBUG - + [[ python3, python3-setuptools, python3-pip, python3-requests, python3-dev, libmariadb-dev-compat, libmariadb-dev, expect, ffmpeg, memcached, libmemcached-dev, python3-scipy, python3-matplotlib, libjpeg62-turbo-dev, zlib1g-dev =~ [<=>] ]] 2021-08-20 10:58:22,514: DEBUG - + echo python3, python3-setuptools, python3-pip, python3-requests, python3-dev, libmariadb-dev-compat, libmariadb-dev, expect, ffmpeg, memcached, libmemcached-dev, python3-scipy, python3-matplotlib, libjpeg62-turbo-dev, zlib1g-dev 2021-08-20 10:58:22,514: DEBUG - + grep --quiet php 2021-08-20 10:58:22,515: DEBUG - + cat 2021-08-20 10:58:22,516: DEBUG - + ynh_package_install_from_equivs /tmp/seafile-ynh-deps.control 2021-08-20 10:58:22,516: DEBUG - + local controlfile=/tmp/seafile-ynh-deps.control 2021-08-20 10:58:22,517: DEBUG - ++ grep '^Package: ' /tmp/seafile-ynh-deps.control 2021-08-20 10:58:22,517: DEBUG - ++ cut '--delimiter= ' --fields=2 2021-08-20 10:58:22,518: DEBUG - + local pkgname=seafile-ynh-deps 2021-08-20 10:58:22,519: DEBUG - ++ grep '^Version: ' /tmp/seafile-ynh-deps.control 2021-08-20 10:58:22,519: DEBUG - ++ cut '--delimiter= ' --fields=2 2021-08-20 10:58:22,520: DEBUG - + local pkgversion=8.0.5~ynh1 2021-08-20 10:58:22,521: DEBUG - + [[ -z seafile-ynh-deps ]] 2021-08-20 10:58:22,521: DEBUG - + [[ -z 8.0.5~ynh1 ]] 2021-08-20 10:58:22,521: DEBUG - + ynh_package_update 2021-08-20 10:58:22,521: DEBUG - + ynh_apt update 2021-08-20 10:58:22,521: DEBUG - + ynh_wait_dpkg_free 2021-08-20 10:58:22,649: DEBUG - + return 0 2021-08-20 10:58:22,649: DEBUG - + LC_ALL=C 2021-08-20 10:58:22,650: DEBUG - + DEBIAN_FRONTEND=noninteractive 2021-08-20 10:58:22,650: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2021-08-20 10:58:22,726: DEBUG - Hit:1 http://forge.yunohost.org/debian buster InRelease 2021-08-20 10:58:22,782: DEBUG - Hit:2 https://packages.sury.org/php buster InRelease 2021-08-20 10:58:23,028: DEBUG - Hit:3 http://security.debian.org/debian-security buster/updates InRelease 2021-08-20 10:58:23,199: DEBUG - Hit:4 http://ftp.debian.org/debian buster InRelease 2021-08-20 10:58:23,520: DEBUG - Hit:5 http://ftp.debian.org/debian buster-updates InRelease 2021-08-20 10:58:24,224: DEBUG - Reading package lists... 2021-08-20 10:58:24,250: DEBUG - ++ mktemp --directory 2021-08-20 10:58:24,250: DEBUG - + local TMPDIR=/tmp/tmp.9FWo8t3Ngh 2021-08-20 10:58:24,250: DEBUG - + echo 10 2021-08-20 10:58:24,251: DEBUG - + ynh_wait_dpkg_free 2021-08-20 10:58:24,368: DEBUG - + return 0 2021-08-20 10:58:24,368: DEBUG - + cp /tmp/seafile-ynh-deps.control /tmp/tmp.9FWo8t3Ngh/control 2021-08-20 10:58:24,369: DEBUG - + cd /tmp/tmp.9FWo8t3Ngh 2021-08-20 10:58:24,369: DEBUG - + LC_ALL=C 2021-08-20 10:58:24,369: DEBUG - + equivs-build ./control 2021-08-20 10:58:24,901: DEBUG - + LC_ALL=C 2021-08-20 10:58:24,901: DEBUG - + dpkg --force-depends --install ./seafile-ynh-deps_8.0.5~ynh1_all.deb 2021-08-20 10:58:24,902: DEBUG - + tee ./dpkg_log 2021-08-20 10:58:25,190: DEBUG - (Reading database ... 82031 files and directories currently installed.) 2021-08-20 10:58:25,192: DEBUG - Preparing to unpack .../seafile-ynh-deps_8.0.5~ynh1_all.deb ... 2021-08-20 10:58:25,206: DEBUG - Unpacking seafile-ynh-deps (8.0.5~ynh1) over (7.0.5~ynh1) ... 2021-08-20 10:58:25,259: DEBUG - dpkg: seafile-ynh-deps: dependency problems, but configuring anyway as you requested: 2021-08-20 10:58:25,259: DEBUG - seafile-ynh-deps depends on libmariadb-dev-compat; however: 2021-08-20 10:58:25,260: DEBUG - Package libmariadb-dev-compat is not installed. 2021-08-20 10:58:25,260: DEBUG - seafile-ynh-deps depends on libmariadb-dev; however: 2021-08-20 10:58:25,260: DEBUG - Package libmariadb-dev is not installed. 2021-08-20 10:58:25,260: DEBUG - seafile-ynh-deps depends on libmemcached-dev; however: 2021-08-20 10:58:25,260: DEBUG - Package libmemcached-dev is not installed. 2021-08-20 10:58:25,260: DEBUG - seafile-ynh-deps depends on python3-scipy; however: 2021-08-20 10:58:25,260: DEBUG - Package python3-scipy is not installed. 2021-08-20 10:58:25,260: DEBUG - seafile-ynh-deps depends on python3-matplotlib; however: 2021-08-20 10:58:25,260: DEBUG - Package python3-matplotlib is not installed. 2021-08-20 10:58:25,260: DEBUG - 2021-08-20 10:58:25,260: DEBUG - Setting up seafile-ynh-deps (8.0.5~ynh1) ... 2021-08-20 10:58:25,302: DEBUG - + ynh_package_install --fix-broken 2021-08-20 10:58:25,302: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-08-20 10:58:25,302: DEBUG - + ynh_wait_dpkg_free 2021-08-20 10:58:25,411: DEBUG - + return 0 2021-08-20 10:58:25,411: DEBUG - + LC_ALL=C 2021-08-20 10:58:25,411: DEBUG - + DEBIAN_FRONTEND=noninteractive 2021-08-20 10:58:25,411: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-08-20 10:58:25,599: DEBUG - Reading package lists... 2021-08-20 10:58:25,733: DEBUG - Building dependency tree... 2021-08-20 10:58:25,734: DEBUG - Reading state information... 2021-08-20 10:58:25,826: DEBUG - Correcting dependencies... Done 2021-08-20 10:58:25,958: DEBUG - The following packages were automatically installed and are no longer required: 2021-08-20 10:58:25,958: DEBUG - python-certifi python-chardet python-flup python-idna python-ldap 2021-08-20 10:58:25,958: DEBUG - python-memcache python-mysqldb python-olefile python-openssl python-pil 2021-08-20 10:58:25,958: DEBUG - python-pyasn1 python-pyasn1-modules python-requests python-simplejson 2021-08-20 10:58:25,958: DEBUG - python-urllib3 2021-08-20 10:58:25,959: DEBUG - Use 'apt autoremove' to remove them. 2021-08-20 10:58:25,959: DEBUG - The following additional packages will be installed: 2021-08-20 10:58:25,959: DEBUG - fonts-lyx libhashkit-dev libhashkit2 libjs-jquery-ui libmariadb-dev 2021-08-20 10:58:25,959: DEBUG - libmariadb-dev-compat libmemcached-dev libsasl2-dev python-matplotlib-data 2021-08-20 10:58:25,959: DEBUG - python3-cycler python3-dateutil python3-decorator python3-kiwisolver 2021-08-20 10:58:25,959: DEBUG - python3-matplotlib python3-numpy python3-olefile python3-pil python3-scipy 2021-08-20 10:58:25,960: DEBUG - Suggested packages: 2021-08-20 10:58:25,960: DEBUG - libjs-jquery-ui-docs python-cycler-doc dvipng gir1.2-gtk-3.0 inkscape 2021-08-20 10:58:25,960: DEBUG - ipython3 python-matplotlib-doc python3-cairocffi python3-gi-cairo 2021-08-20 10:58:25,960: DEBUG - python3-gobject python3-nose python3-pyqt4 python3-sip python3-tornado 2021-08-20 10:58:25,960: DEBUG - texlive-extra-utils texlive-latex-extra ttf-staypuft python-numpy-doc 2021-08-20 10:58:25,960: DEBUG - python3-pytest python3-numpy-dbg python-pil-doc python3-pil-dbg 2021-08-20 10:58:25,961: DEBUG - python-scipy-doc 2021-08-20 10:58:25,975: DEBUG - The following NEW packages will be installed: 2021-08-20 10:58:25,976: DEBUG - fonts-lyx libhashkit-dev libhashkit2 libjs-jquery-ui libmariadb-dev 2021-08-20 10:58:25,976: DEBUG - libmariadb-dev-compat libmemcached-dev libsasl2-dev python-matplotlib-data 2021-08-20 10:58:25,976: DEBUG - python3-cycler python3-dateutil python3-decorator python3-kiwisolver 2021-08-20 10:58:25,977: DEBUG - python3-matplotlib python3-numpy python3-olefile python3-pil python3-scipy 2021-08-20 10:58:26,407: DEBUG - 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded. 2021-08-20 10:58:26,407: DEBUG - Need to get 0 B/24.3 MB of archives. 2021-08-20 10:58:26,407: DEBUG - After this operation, 92.6 MB of additional disk space will be used. 2021-08-20 10:58:26,432: DEBUG - Selecting previously unselected package fonts-lyx. 2021-08-20 10:58:26,462: DEBUG - (Reading database ... 82031 files and directories currently installed.) 2021-08-20 10:58:26,465: DEBUG - Preparing to unpack .../00-fonts-lyx_2.3.2-1_all.deb ... 2021-08-20 10:58:26,469: DEBUG - Unpacking fonts-lyx (2.3.2-1) ... 2021-08-20 10:58:26,525: DEBUG - Selecting previously unselected package libhashkit2:amd64. 2021-08-20 10:58:26,531: DEBUG - Preparing to unpack .../01-libhashkit2_1.0.18-4.2_amd64.deb ... 2021-08-20 10:58:26,539: DEBUG - Unpacking libhashkit2:amd64 (1.0.18-4.2) ... 2021-08-20 10:58:26,664: DEBUG - Selecting previously unselected package libhashkit-dev:amd64. 2021-08-20 10:58:26,671: DEBUG - Preparing to unpack .../02-libhashkit-dev_1.0.18-4.2_amd64.deb ... 2021-08-20 10:58:26,691: DEBUG - Unpacking libhashkit-dev:amd64 (1.0.18-4.2) ... 2021-08-20 10:58:26,916: DEBUG - Selecting previously unselected package libjs-jquery-ui. 2021-08-20 10:58:26,921: DEBUG - Preparing to unpack .../03-libjs-jquery-ui_1.12.1+dfsg-5_all.deb ... 2021-08-20 10:58:26,930: DEBUG - Unpacking libjs-jquery-ui (1.12.1+dfsg-5) ... 2021-08-20 10:58:27,024: DEBUG - Selecting previously unselected package libmariadb-dev. 2021-08-20 10:58:27,030: DEBUG - Preparing to unpack .../04-libmariadb-dev_1%3a10.3.29-0+deb10u1_amd64.deb ... 2021-08-20 10:58:27,034: DEBUG - Unpacking libmariadb-dev (1:10.3.29-0+deb10u1) ... 2021-08-20 10:58:27,174: DEBUG - Selecting previously unselected package libmariadb-dev-compat:amd64. 2021-08-20 10:58:27,179: DEBUG - Preparing to unpack .../05-libmariadb-dev-compat_1%3a10.3.29-0+deb10u1_amd64.deb ... 2021-08-20 10:58:27,184: DEBUG - Unpacking libmariadb-dev-compat:amd64 (1:10.3.29-0+deb10u1) ... 2021-08-20 10:58:27,219: DEBUG - Selecting previously unselected package libsasl2-dev. 2021-08-20 10:58:27,225: DEBUG - Preparing to unpack .../06-libsasl2-dev_2.1.27+dfsg-1+deb10u1_amd64.deb ... 2021-08-20 10:58:27,230: DEBUG - Unpacking libsasl2-dev (2.1.27+dfsg-1+deb10u1) ... 2021-08-20 10:58:27,293: DEBUG - Selecting previously unselected package libmemcached-dev:amd64. 2021-08-20 10:58:27,299: DEBUG - Preparing to unpack .../07-libmemcached-dev_1.0.18-4.2_amd64.deb ... 2021-08-20 10:58:27,303: DEBUG - Unpacking libmemcached-dev:amd64 (1.0.18-4.2) ... 2021-08-20 10:58:27,374: DEBUG - Selecting previously unselected package python-matplotlib-data. 2021-08-20 10:58:27,380: DEBUG - Preparing to unpack .../08-python-matplotlib-data_3.0.2-2_all.deb ... 2021-08-20 10:58:27,384: DEBUG - Unpacking python-matplotlib-data (3.0.2-2) ... 2021-08-20 10:58:27,670: DEBUG - Selecting previously unselected package python3-cycler. 2021-08-20 10:58:27,676: DEBUG - Preparing to unpack .../09-python3-cycler_0.10.0-1_all.deb ... 2021-08-20 10:58:27,682: DEBUG - Unpacking python3-cycler (0.10.0-1) ... 2021-08-20 10:58:27,719: DEBUG - Selecting previously unselected package python3-dateutil. 2021-08-20 10:58:27,725: DEBUG - Preparing to unpack .../10-python3-dateutil_2.7.3-3_all.deb ... 2021-08-20 10:58:27,731: DEBUG - Unpacking python3-dateutil (2.7.3-3) ... 2021-08-20 10:58:27,781: DEBUG - Selecting previously unselected package python3-decorator. 2021-08-20 10:58:27,787: DEBUG - Preparing to unpack .../11-python3-decorator_4.3.0-1.1_all.deb ... 2021-08-20 10:58:27,791: DEBUG - Unpacking python3-decorator (4.3.0-1.1) ... 2021-08-20 10:58:27,823: DEBUG - Selecting previously unselected package python3-kiwisolver. 2021-08-20 10:58:27,829: DEBUG - Preparing to unpack .../12-python3-kiwisolver_1.0.1-2+b1_amd64.deb ... 2021-08-20 10:58:27,833: DEBUG - Unpacking python3-kiwisolver (1.0.1-2+b1) ... 2021-08-20 10:58:27,877: DEBUG - Selecting previously unselected package python3-numpy. 2021-08-20 10:58:27,883: DEBUG - Preparing to unpack .../13-python3-numpy_1%3a1.16.2-1_amd64.deb ... 2021-08-20 10:58:27,887: DEBUG - Unpacking python3-numpy (1:1.16.2-1) ... 2021-08-20 10:58:28,131: DEBUG - Selecting previously unselected package python3-matplotlib. 2021-08-20 10:58:28,137: DEBUG - Preparing to unpack .../14-python3-matplotlib_3.0.2-2_amd64.deb ... 2021-08-20 10:58:28,141: DEBUG - Unpacking python3-matplotlib (3.0.2-2) ... 2021-08-20 10:58:28,586: DEBUG - Selecting previously unselected package python3-olefile. 2021-08-20 10:58:28,593: DEBUG - Preparing to unpack .../15-python3-olefile_0.46-1_all.deb ... 2021-08-20 10:58:28,597: DEBUG - Unpacking python3-olefile (0.46-1) ... 2021-08-20 10:58:28,635: DEBUG - Selecting previously unselected package python3-pil:amd64. 2021-08-20 10:58:28,641: DEBUG - Preparing to unpack .../16-python3-pil_5.4.1-2+deb10u2_amd64.deb ... 2021-08-20 10:58:28,645: DEBUG - Unpacking python3-pil:amd64 (5.4.1-2+deb10u2) ... 2021-08-20 10:58:28,720: DEBUG - Selecting previously unselected package python3-scipy. 2021-08-20 10:58:28,725: DEBUG - Preparing to unpack .../17-python3-scipy_1.1.0-7_amd64.deb ... 2021-08-20 10:58:28,729: DEBUG - Unpacking python3-scipy (1.1.0-7) ... 2021-08-20 10:58:29,531: DEBUG - Setting up fonts-lyx (2.3.2-1) ... 2021-08-20 10:58:29,543: DEBUG - Setting up python3-olefile (0.46-1) ... 2021-08-20 10:58:29,673: DEBUG - Setting up libhashkit2:amd64 (1.0.18-4.2) ... 2021-08-20 10:58:29,688: DEBUG - Setting up python3-pil:amd64 (5.4.1-2+deb10u2) ... 2021-08-20 10:58:29,901: DEBUG - Setting up python3-decorator (4.3.0-1.1) ... 2021-08-20 10:58:30,023: DEBUG - Setting up libsasl2-dev (2.1.27+dfsg-1+deb10u1) ... 2021-08-20 10:58:30,037: DEBUG - Setting up libjs-jquery-ui (1.12.1+dfsg-5) ... 2021-08-20 10:58:30,053: DEBUG - Setting up python3-cycler (0.10.0-1) ... 2021-08-20 10:58:30,169: DEBUG - Setting up python3-kiwisolver (1.0.1-2+b1) ... 2021-08-20 10:58:30,181: DEBUG - Setting up python3-numpy (1:1.16.2-1) ... 2021-08-20 10:58:31,056: DEBUG - Setting up libmariadb-dev (1:10.3.29-0+deb10u1) ... 2021-08-20 10:58:31,069: DEBUG - Setting up python3-dateutil (2.7.3-3) ... 2021-08-20 10:58:31,219: DEBUG - Setting up python-matplotlib-data (3.0.2-2) ... 2021-08-20 10:58:31,236: DEBUG - Setting up libmariadb-dev-compat:amd64 (1:10.3.29-0+deb10u1) ... 2021-08-20 10:58:31,249: DEBUG - Setting up python3-matplotlib (3.0.2-2) ... 2021-08-20 10:58:31,984: DEBUG - Setting up python3-scipy (1.1.0-7) ... 2021-08-20 10:58:33,227: DEBUG - Setting up libhashkit-dev:amd64 (1.0.18-4.2) ... 2021-08-20 10:58:33,239: DEBUG - Setting up libmemcached-dev:amd64 (1.0.18-4.2) ... 2021-08-20 10:58:33,251: DEBUG - Processing triggers for man-db (2.8.5-2) ... 2021-08-20 10:58:33,541: DEBUG - Processing triggers for fontconfig (2.13.1-2) ... 2021-08-20 10:58:33,578: DEBUG - Processing triggers for libc-bin (2.28-10) ... 2021-08-20 10:58:33,742: DEBUG - + [[ -n /tmp/tmp.9FWo8t3Ngh ]] 2021-08-20 10:58:33,742: DEBUG - + rm --recursive --force /tmp/tmp.9FWo8t3Ngh 2021-08-20 10:58:33,743: DEBUG - + ynh_package_is_installed seafile-ynh-deps 2021-08-20 10:58:33,748: DEBUG - + ynh_wait_dpkg_free 2021-08-20 10:58:33,866: DEBUG - + return 0 2021-08-20 10:58:33,867: DEBUG - + dpkg-query --show '--showformat=${Status}' seafile-ynh-deps 2021-08-20 10:58:33,867: DEBUG - + grep --count 'ok installed' 2021-08-20 10:58:33,882: DEBUG - + rm /tmp/seafile-ynh-deps.control 2021-08-20 10:58:33,883: DEBUG - + ynh_app_setting_set --app=seafile --key=apt_dependencies '--value=python3, python3-setuptools, python3-pip, python3-requests, python3-dev, libmariadb-dev-compat, libmariadb-dev, expect, ffmpeg, memcached, libmemcached-dev, python3-scipy, python3-matplotlib, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 10:58:33,920: DEBUG - + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]] 2021-08-20 10:58:33,920: DEBUG - + ynh_app_setting set seafile apt_dependencies 'python3, python3-setuptools, python3-pip, python3-requests, python3-dev, libmariadb-dev-compat, libmariadb-dev, expect, ffmpeg, memcached, libmemcached-dev, python3-scipy, python3-matplotlib, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 10:58:33,957: DEBUG - + ynh_add_swap 2000 2021-08-20 10:58:33,957: DEBUG - + declare -Ar args_array 2021-08-20 10:58:33,963: DEBUG - + local swap_max_size=2048000 2021-08-20 10:58:33,964: DEBUG - ++ df --output=avail / 2021-08-20 10:58:33,964: DEBUG - ++ sed 1d 2021-08-20 10:58:33,966: DEBUG - + local free_space=39157240 2021-08-20 10:58:33,967: DEBUG - + local usable_space=19578620 2021-08-20 10:58:33,967: DEBUG - + SD_CARD_CAN_SWAP=0 2021-08-20 10:58:33,967: DEBUG - + ynh_is_main_device_a_sd_card 2021-08-20 10:58:33,967: DEBUG - +++ findmnt / --nofsroot --uniq --output source --noheadings --first-only 2021-08-20 10:58:33,973: DEBUG - ++ lsblk --output PKNAME --noheadings /dev/sdb6 2021-08-20 10:58:33,975: DEBUG - + local main_device=sdb 2021-08-20 10:58:33,975: DEBUG - + echo sdb 2021-08-20 10:58:33,976: DEBUG - + grep --quiet mmc 2021-08-20 10:58:33,976: DEBUG - + return 1 2021-08-20 10:58:33,977: DEBUG - + '[' 19578620 -ge 2048000 ']' 2021-08-20 10:58:33,977: DEBUG - + local swap_size=2048000 2021-08-20 10:58:33,977: DEBUG - + '[' 2048000 -ne 0 ']' 2021-08-20 10:58:33,977: DEBUG - + '[' '!' -e /swap_seafile ']' 2021-08-20 10:58:33,977: DEBUG - + fallocate -l 2048000K /swap_seafile 2021-08-20 10:58:33,984: DEBUG - + chmod 0600 /swap_seafile 2021-08-20 10:58:33,985: DEBUG - + mkswap /swap_seafile 2021-08-20 10:58:33,991: DEBUG - Configure l'espace d'échange (swap) en version 1, taille = 2 GiB (2097147904 octets) 2021-08-20 10:58:33,991: DEBUG - pas d'étiquette, UUID=40693f4c-d4e1-4e7e-be1a-0279887adc2d 2021-08-20 10:58:33,991: DEBUG - + swapon /swap_seafile 2021-08-20 10:58:34,029: DEBUG - + echo -e '/swap_seafile swap swap defaults 0 0 #Swap added by seafile' 2021-08-20 10:58:34,029: DEBUG - + chown -R seafile:seafile /opt/yunohost/seafile 2021-08-20 10:58:34,263: DEBUG - + sudo -u seafile pip3 install --user --no-warn-script-location --upgrade future mysqlclient pymysql Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha python3-ldap 2021-08-20 10:58:34,289: WARNING - Traceback (most recent call last): 2021-08-20 10:58:34,290: WARNING - File "/usr/bin/pip3", line 5, in <module> 2021-08-20 10:58:34,290: WARNING - from pip._internal.cli.main import main 2021-08-20 10:58:34,290: WARNING - ModuleNotFoundError: No module named 'pip' 2021-08-20 10:58:34,293: DEBUG - + ynh_exit_properly 2021-08-20 10:58:34,293: DEBUG - + local exit_code=1 2021-08-20 10:58:34,293: DEBUG - + rm -rf /var/cache/yunohost/download/ 2021-08-20 10:58:34,294: DEBUG - + '[' 1 -eq 0 ']' 2021-08-20 10:58:34,294: DEBUG - + trap '' EXIT 2021-08-20 10:58:34,294: DEBUG - + set +o errexit 2021-08-20 10:58:34,294: DEBUG - + set +o nounset 2021-08-20 10:58:34,294: DEBUG - + sleep 0.5 2021-08-20 10:58:34,794: DEBUG - + type -t ynh_clean_setup 2021-08-20 10:58:34,795: DEBUG - + ynh_clean_setup 2021-08-20 10:58:34,795: DEBUG - + ynh_clean_check_starting 2021-08-20 10:58:34,795: DEBUG - + '[' -n '' ']' 2021-08-20 10:58:34,795: DEBUG - + '[' -n '' ']' 2021-08-20 10:58:34,795: DEBUG - + ynh_restore_upgradebackup 2021-08-20 10:58:34,795: DEBUG - + ynh_print_err '--message=Upgrade failed.' 2021-08-20 10:58:34,801: DEBUG - + ynh_print_log '[Error] Upgrade failed.' 2021-08-20 10:58:34,801: DEBUG - + echo -e '[Error] Upgrade failed.' 2021-08-20 10:58:34,801: DEBUG - + local app_bck=seafile 2021-08-20 10:58:34,801: DEBUG - + NO_BACKUP_UPGRADE=0 2021-08-20 10:58:34,801: DEBUG - + '[' 0 -eq 0 ']' 2021-08-20 10:58:34,802: DEBUG - + ynh_backup_archive_exists seafile-pre-upgrade1 2021-08-20 10:58:34,802: WARNING - [Error] Upgrade failed. 2021-08-20 10:58:34,802: DEBUG - + yunohost backup list --output-as json --quiet 2021-08-20 10:58:34,802: DEBUG - + jq -e --arg archive seafile-pre-upgrade1 '.archives | index($archive)' 2021-08-20 10:58:34,953: DEBUG - + yunohost app remove seafile 2021-08-20 10:58:35,091: DEBUG - Suppression de seafile... 2021-08-20 10:58:36,078: DEBUG - [....................] > Loading installation settings... 2021-08-20 10:58:36,170: DEBUG - [+...................] > Stoping services... 2021-08-20 10:58:36,394: DEBUG - [#+..................] > Cleaning SSO configuration... 2021-08-20 10:58:36,413: WARNING - Traceback (most recent call last): 2021-08-20 10:58:36,413: WARNING - File "../conf/remove_sso_conf.py", line 5, in <module> 2021-08-20 10:58:36,413: WARNING - data["skipped_urls"].remove("/seafhttp") 2021-08-20 10:58:36,414: WARNING - KeyError: 'skipped_urls' 2021-08-20 10:58:36,439: DEBUG - [##+.................] > Removing logs... 2021-08-20 10:58:36,470: DEBUG - [###+................] > Removing code... 2021-08-20 10:58:36,480: DEBUG - '/var/www/seafile' wasn't deleted because it doesn't exist. 2021-08-20 10:58:37,030: DEBUG - [####+...............] > Removing databases... 2021-08-20 10:58:38,176: DEBUG - [#####+..............] > Removing systemd units... 2021-08-20 10:58:38,830: DEBUG - [######+.............] > Removing the dedicated system user... 2021-08-20 10:58:38,990: DEBUG - [#######+++++++++....] > Removing dependencies 2021-08-20 10:58:44,092: DEBUG - [################+...] > Removing nginx configuration... 2021-08-20 10:58:44,296: DEBUG - [#################+..] > Removing fail2ban configuration... 2021-08-20 10:58:47,005: DEBUG - [##################+.] > Removing seafile service... 2021-08-20 10:58:47,302: DEBUG - Due of the backup core only feature the data directory in '/home/yunohost.app/seafile-data' was not removed. It need to be removed manually to purge app user data. 2021-08-20 10:58:47,339: DEBUG - [####################] > Removal of seafile completed 2021-08-20 10:58:49,348: DEBUG - seafile désinstallé 2021-08-20 10:58:50,544: DEBUG - + yunohost backup restore seafile-pre-upgrade1 --apps seafile --force --debug 2021-08-20 10:58:50,637: DEBUG - 69 initializing base actions map parser for cli 2021-08-20 10:58:50,637: DEBUG - 70 loading actions map namespace 'yunohost' 2021-08-20 10:58:50,639: DEBUG - 72 building parser... 2021-08-20 10:58:50,642: DEBUG - 74 building parser took 0.002s 2021-08-20 10:58:50,642: DEBUG - 75 acquiring lock... 2021-08-20 10:58:50,671: DEBUG - 104 loading python module yunohost.backup took 0.022s 2021-08-20 10:58:50,672: DEBUG - 104 processing action [11032.1]: yunohost.backup.restore with args={'name': 'seafile-pre-upgrade1', 'system': None, 'apps': ['seafile'], 'force': True} 2021-08-20 10:58:50,672: DEBUG - 105 Préparation de l’archive pour restauration... 2021-08-20 10:58:50,690: DEBUG - 122 Extraction des fichiers nécessaires depuis l’archive… 2021-08-20 11:00:55,076: DEBUG - 124508 restoring from backup 'seafile-pre-upgrade1' created on 2021-08-20 08:57:31 2021-08-20 11:00:55,111: DEBUG - 124543 Restauration de seafile... 2021-08-20 11:00:56,974: DEBUG - 126407 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth' 2021-08-20 11:00:57,355: DEBUG - 126787 Permission 'seafile.main' mise à jour 2021-08-20 11:00:57,513: DEBUG - 126945 Pour voir le journal de cette opération 'Mise à jour de l’URL associée à l’autorisation 'seafile'', utilisez la commande 'yunohost log show 20210820-090057-permission_url-seafile20210820-090057-permission_url-seafile' 2021-08-20 11:00:57,833: DEBUG - 127266 Permission 'seafile.main' créée 2021-08-20 11:00:57,834: DEBUG - 127266 Pour voir le journal de cette opération 'Créer permission 'seafile'', utilisez la commande 'yunohost log show 20210820-090056-permission_create-seafile20210820-090056-permission_create-seafile' 2021-08-20 11:00:57,995: DEBUG - 127427 The permission database has been resynchronized 2021-08-20 11:00:58,195: DEBUG - 127627 La configuration de SSOwat a été regénérée 2021-08-20 11:00:58,202: DEBUG - 127634 Chargement de la migration 0017_postgresql_9p6_to_11... 2021-08-20 11:00:58,202: DEBUG - 127635 Chargement de la migration 0016_php70_to_php73_pools... 2021-08-20 11:00:58,203: DEBUG - 127635 Chargement de la migration 0018_xtable_to_nftable... 2021-08-20 11:00:58,203: DEBUG - 127636 Chargement de la migration 0015_migrate_to_buster... 2021-08-20 11:00:58,204: DEBUG - 127636 Chargement de la migration 0020_ssh_sftp_permissions... 2021-08-20 11:00:58,204: DEBUG - 127637 Chargement de la migration 0019_extend_permissions_features... 2021-08-20 11:00:58,214: DEBUG - 127647 Exécution du script de restauration de l’application 'seafile'… 2021-08-20 11:00:58,221: DEBUG - 127653 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_g8h_g9dr/restore" 7>&1']' 2021-08-20 11:00:58,231: DEBUG - 127663 + source /usr/share/yunohost/helpers 2021-08-20 11:00:58,231: DEBUG - 127663 +++ set +o 2021-08-20 11:00:58,231: DEBUG - 127664 +++ grep xtrace 2021-08-20 11:00:58,232: DEBUG - 127665 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-08-20 11:00:58,232: DEBUG - 127665 ++ XTRACE_ENABLE='set -o xtrace' 2021-08-20 11:00:58,255: DEBUG - 127687 + ynh_abort_if_errors 2021-08-20 11:00:58,255: DEBUG - 127688 + set -o errexit 2021-08-20 11:00:58,255: DEBUG - 127688 + set -o nounset 2021-08-20 11:00:58,256: DEBUG - 127688 + trap ynh_exit_properly EXIT 2021-08-20 11:00:58,256: DEBUG - 127688 + source ../settings/scripts/experimental_helper.sh 2021-08-20 11:00:58,256: DEBUG - 127688 +++ grep 64 2021-08-20 11:00:58,256: DEBUG - 127688 +++ uname -m 2021-08-20 11:00:58,256: DEBUG - 127689 ++ '[' -n x86_64 ']' 2021-08-20 11:00:58,256: DEBUG - 127689 ++ architecture=x86-64 2021-08-20 11:00:58,257: DEBUG - 127689 + source ../settings/scripts/_common.sh 2021-08-20 11:00:58,257: DEBUG - 127689 ++ app=seafile 2021-08-20 11:00:58,257: DEBUG - 127689 ++ [[ -e ../settings/manifest.json ]] 2021-08-20 11:00:58,257: DEBUG - 127690 +++ ynh_app_upstream_version 2021-08-20 11:00:58,258: DEBUG - 127690 +++ manifest= 2021-08-20 11:00:58,258: DEBUG - 127690 +++ [[ '' != '' ]] 2021-08-20 11:00:58,258: DEBUG - 127690 +++ version_key_=7.0.5~ynh1 2021-08-20 11:00:58,259: DEBUG - 127691 +++ echo 7.0.5 2021-08-20 11:00:58,259: DEBUG - 127691 ++ seafile_version=7.0.5 2021-08-20 11:00:58,291: DEBUG - 127724 + echo '[....................] > Loading settings...' 2021-08-20 11:00:58,291: DEBUG - 127724 [....................] > Loading settings... 2021-08-20 11:00:58,292: DEBUG - 127724 ++ ynh_app_setting_get --app seafile --key domain 2021-08-20 11:00:58,321: DEBUG - 127753 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:00:58,321: DEBUG - 127754 ++ ynh_app_setting get seafile domain 2021-08-20 11:00:58,357: DEBUG - 127790 + domain=domain2.tld 2021-08-20 11:00:58,358: DEBUG - 127790 +++ ynh_app_setting_get --app seafile --key path 2021-08-20 11:00:58,387: DEBUG - 127819 +++ [[ path =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:00:58,387: DEBUG - 127820 +++ ynh_app_setting get seafile path 2021-08-20 11:00:58,422: DEBUG - 127854 ++ ynh_normalize_url_path --path_url / 2021-08-20 11:00:58,430: DEBUG - 127862 ++ test -n / 2021-08-20 11:00:58,430: DEBUG - 127863 ++ '[' / '!=' / ']' 2021-08-20 11:00:58,431: DEBUG - 127863 ++ '[' / == / ']' 2021-08-20 11:00:58,431: DEBUG - 127863 ++ '[' 1 -gt 1 ']' 2021-08-20 11:00:58,431: DEBUG - 127863 ++ echo / 2021-08-20 11:00:58,431: DEBUG - 127863 + path_url=/ 2021-08-20 11:00:58,431: DEBUG - 127863 + seafile_data=/home/yunohost.app/seafile-data 2021-08-20 11:00:58,431: DEBUG - 127863 ++ ynh_app_setting_get --app seafile --key mysqlpwd 2021-08-20 11:00:58,459: DEBUG - 127892 ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:00:58,460: DEBUG - 127892 ++ ynh_app_setting get seafile mysqlpwd 2021-08-20 11:00:58,492: DEBUG - 127925 + db_pwd=********** 2021-08-20 11:00:58,492: DEBUG - 127925 ++ ynh_app_setting_get --app seafile --key final_path 2021-08-20 11:00:58,523: DEBUG - 127955 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:00:58,523: DEBUG - 127955 ++ ynh_app_setting get seafile final_path 2021-08-20 11:00:58,556: DEBUG - 127988 + final_path=/opt/yunohost/seafile 2021-08-20 11:00:58,556: DEBUG - 127989 + seafile_user=seafile 2021-08-20 11:00:58,556: DEBUG - 127989 + ynh_webpath_available --domain domain2.tld --path_url / 2021-08-20 11:00:58,586: DEBUG - 128018 + yunohost domain url-available domain2.tld / 2021-08-20 11:00:58,955: DEBUG - 128387 False 2021-08-20 11:00:59,021: DEBUG - 128453 + echo '[+++++++.............] > Restoring files...' 2021-08-20 11:00:59,022: DEBUG - 128454 + ynh_restore 2021-08-20 11:00:59,022: DEBUG - 128454 + local REL_DIR=apps/seafile/backup 2021-08-20 11:00:59,022: DEBUG - 128454 + REL_DIR=apps/seafile/backup/ 2021-08-20 11:00:59,022: DEBUG - 128454 + cat /home/yunohost.backup/tmp/seafile-pre-upgrade1/backup.csv 2021-08-20 11:00:59,022: DEBUG - 128454 [+++++++.............] > Restoring files... 2021-08-20 11:00:59,022: DEBUG - 128454 + grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/.*"$' 2021-08-20 11:00:59,022: DEBUG - 128454 + tr --delete $'\r' 2021-08-20 11:00:59,022: DEBUG - 128455 + read line 2021-08-20 11:00:59,024: DEBUG - 128456 ++ echo '"/opt/yunohost/seafile","apps/seafile/backup/opt/yunohost/seafile"' 2021-08-20 11:00:59,024: DEBUG - 128456 ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2021-08-20 11:00:59,025: DEBUG - 128457 + local ORIGIN_PATH=/opt/yunohost/seafile 2021-08-20 11:00:59,025: DEBUG - 128458 ++ echo '"/opt/yunohost/seafile","apps/seafile/backup/opt/yunohost/seafile"' 2021-08-20 11:00:59,025: DEBUG - 128458 ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/\K.*(?="$)' 2021-08-20 11:00:59,027: DEBUG - 128459 + local ARCHIVE_PATH=opt/yunohost/seafile 2021-08-20 11:00:59,028: DEBUG - 128460 + ynh_restore_file --origin_path=opt/yunohost/seafile --dest_path=/opt/yunohost/seafile 2021-08-20 11:00:59,051: DEBUG - 128483 + origin_path=/opt/yunohost/seafile 2021-08-20 11:00:59,052: DEBUG - 128483 + dest_path=/opt/yunohost/seafile 2021-08-20 11:00:59,052: DEBUG - 128484 + not_mandatory=0 2021-08-20 11:00:59,052: DEBUG - 128484 + local archive_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/opt/yunohost/seafile 2021-08-20 11:00:59,052: DEBUG - 128484 + '[' '!' -d /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/opt/yunohost/seafile ']' 2021-08-20 11:00:59,052: DEBUG - 128484 + [[ -e /opt/yunohost/seafile ]] 2021-08-20 11:00:59,052: DEBUG - 128484 ++ dirname /opt/yunohost/seafile 2021-08-20 11:00:59,052: DEBUG - 128485 + mkdir --parents /opt/yunohost 2021-08-20 11:00:59,053: DEBUG - 128485 + mountpoint --quiet /home/yunohost.backup/tmp/seafile-pre-upgrade1 2021-08-20 11:00:59,054: DEBUG - 128487 + mv /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/opt/yunohost/seafile /opt/yunohost/seafile 2021-08-20 11:02:36,042: DEBUG - 225474 + read line 2021-08-20 11:02:36,043: DEBUG - 225475 ++ echo '"/etc/nginx/conf.d/domain2.tld.d/seafile.conf","apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf"' 2021-08-20 11:02:36,043: DEBUG - 225475 ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2021-08-20 11:02:36,044: DEBUG - 225477 + local ORIGIN_PATH=/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,045: DEBUG - 225477 ++ echo '"/etc/nginx/conf.d/domain2.tld.d/seafile.conf","apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf"' 2021-08-20 11:02:36,045: DEBUG - 225477 ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/\K.*(?="$)' 2021-08-20 11:02:36,047: DEBUG - 225479 + local ARCHIVE_PATH=etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,047: DEBUG - 225479 + ynh_restore_file --origin_path=etc/nginx/conf.d/domain2.tld.d/seafile.conf --dest_path=/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,069: DEBUG - 225502 + origin_path=/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,070: DEBUG - 225502 + dest_path=/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,070: DEBUG - 225502 + not_mandatory=0 2021-08-20 11:02:36,070: DEBUG - 225502 + local archive_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,070: DEBUG - 225502 + '[' '!' -d /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf ']' 2021-08-20 11:02:36,070: DEBUG - 225503 + '[' '!' -f /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf ']' 2021-08-20 11:02:36,070: DEBUG - 225503 + [[ -e /etc/nginx/conf.d/domain2.tld.d/seafile.conf ]] 2021-08-20 11:02:36,070: DEBUG - 225503 ++ dirname /etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,071: DEBUG - 225504 + mkdir --parents /etc/nginx/conf.d/domain2.tld.d 2021-08-20 11:02:36,072: DEBUG - 225505 + mountpoint --quiet /home/yunohost.backup/tmp/seafile-pre-upgrade1 2021-08-20 11:02:36,073: DEBUG - 225506 + mv /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/nginx/conf.d/domain2.tld.d/seafile.conf /etc/nginx/conf.d/domain2.tld.d/seafile.conf 2021-08-20 11:02:36,086: DEBUG - 225519 + read line 2021-08-20 11:02:36,087: DEBUG - 225519 ++ echo '"/etc/systemd/system/seafile.service","apps/seafile/backup/etc/systemd/system/seafile.service"' 2021-08-20 11:02:36,087: DEBUG - 225520 ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2021-08-20 11:02:36,088: DEBUG - 225521 + local ORIGIN_PATH=/etc/systemd/system/seafile.service 2021-08-20 11:02:36,089: DEBUG - 225521 ++ echo '"/etc/systemd/system/seafile.service","apps/seafile/backup/etc/systemd/system/seafile.service"' 2021-08-20 11:02:36,089: DEBUG - 225521 ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/\K.*(?="$)' 2021-08-20 11:02:36,090: DEBUG - 225523 + local ARCHIVE_PATH=etc/systemd/system/seafile.service 2021-08-20 11:02:36,090: DEBUG - 225523 + ynh_restore_file --origin_path=etc/systemd/system/seafile.service --dest_path=/etc/systemd/system/seafile.service 2021-08-20 11:02:36,113: DEBUG - 225546 + origin_path=/etc/systemd/system/seafile.service 2021-08-20 11:02:36,113: DEBUG - 225546 + dest_path=/etc/systemd/system/seafile.service 2021-08-20 11:02:36,114: DEBUG - 225546 + not_mandatory=0 2021-08-20 11:02:36,114: DEBUG - 225546 + local archive_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seafile.service 2021-08-20 11:02:36,114: DEBUG - 225546 + '[' '!' -d /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seafile.service ']' 2021-08-20 11:02:36,114: DEBUG - 225546 + '[' '!' -f /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seafile.service ']' 2021-08-20 11:02:36,114: DEBUG - 225546 + [[ -e /etc/systemd/system/seafile.service ]] 2021-08-20 11:02:36,114: DEBUG - 225546 ++ dirname /etc/systemd/system/seafile.service 2021-08-20 11:02:36,114: DEBUG - 225547 + mkdir --parents /etc/systemd/system 2021-08-20 11:02:36,115: DEBUG - 225547 + mountpoint --quiet /home/yunohost.backup/tmp/seafile-pre-upgrade1 2021-08-20 11:02:36,116: DEBUG - 225548 + mv /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seafile.service /etc/systemd/system/seafile.service 2021-08-20 11:02:36,126: DEBUG - 225559 + read line 2021-08-20 11:02:36,126: DEBUG - 225559 ++ echo '"/etc/systemd/system/seahub.service","apps/seafile/backup/etc/systemd/system/seahub.service"' 2021-08-20 11:02:36,127: DEBUG - 225559 ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2021-08-20 11:02:36,128: DEBUG - 225560 + local ORIGIN_PATH=/etc/systemd/system/seahub.service 2021-08-20 11:02:36,128: DEBUG - 225561 ++ echo '"/etc/systemd/system/seahub.service","apps/seafile/backup/etc/systemd/system/seahub.service"' 2021-08-20 11:02:36,128: DEBUG - 225561 ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/\K.*(?="$)' 2021-08-20 11:02:36,130: DEBUG - 225562 + local ARCHIVE_PATH=etc/systemd/system/seahub.service 2021-08-20 11:02:36,130: DEBUG - 225562 + ynh_restore_file --origin_path=etc/systemd/system/seahub.service --dest_path=/etc/systemd/system/seahub.service 2021-08-20 11:02:36,153: DEBUG - 225586 + origin_path=/etc/systemd/system/seahub.service 2021-08-20 11:02:36,154: DEBUG - 225586 + dest_path=/etc/systemd/system/seahub.service 2021-08-20 11:02:36,154: DEBUG - 225586 + not_mandatory=0 2021-08-20 11:02:36,154: DEBUG - 225586 + local archive_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seahub.service 2021-08-20 11:02:36,154: DEBUG - 225586 + '[' '!' -d /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seahub.service ']' 2021-08-20 11:02:36,154: DEBUG - 225586 + '[' '!' -f /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seahub.service ']' 2021-08-20 11:02:36,154: DEBUG - 225587 + [[ -e /etc/systemd/system/seahub.service ]] 2021-08-20 11:02:36,154: DEBUG - 225587 ++ dirname /etc/systemd/system/seahub.service 2021-08-20 11:02:36,155: DEBUG - 225587 + mkdir --parents /etc/systemd/system 2021-08-20 11:02:36,155: DEBUG - 225588 + mountpoint --quiet /home/yunohost.backup/tmp/seafile-pre-upgrade1 2021-08-20 11:02:36,156: DEBUG - 225589 + mv /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/systemd/system/seahub.service /etc/systemd/system/seahub.service 2021-08-20 11:02:36,162: DEBUG - 225594 + read line 2021-08-20 11:02:36,162: DEBUG - 225595 ++ echo '"/etc/fail2ban/jail.d/seafile.conf","apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf"' 2021-08-20 11:02:36,163: DEBUG - 225595 ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2021-08-20 11:02:36,164: DEBUG - 225596 + local ORIGIN_PATH=/etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,164: DEBUG - 225597 ++ echo '"/etc/fail2ban/jail.d/seafile.conf","apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf"' 2021-08-20 11:02:36,164: DEBUG - 225597 ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/\K.*(?="$)' 2021-08-20 11:02:36,165: DEBUG - 225598 + local ARCHIVE_PATH=etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,166: DEBUG - 225598 + ynh_restore_file --origin_path=etc/fail2ban/jail.d/seafile.conf --dest_path=/etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,190: DEBUG - 225622 + origin_path=/etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,190: DEBUG - 225622 + dest_path=/etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,190: DEBUG - 225622 + not_mandatory=0 2021-08-20 11:02:36,190: DEBUG - 225622 + local archive_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,190: DEBUG - 225623 + '[' '!' -d /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf ']' 2021-08-20 11:02:36,190: DEBUG - 225623 + '[' '!' -f /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf ']' 2021-08-20 11:02:36,190: DEBUG - 225623 + [[ -e /etc/fail2ban/jail.d/seafile.conf ]] 2021-08-20 11:02:36,191: DEBUG - 225623 ++ dirname /etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,191: DEBUG - 225623 + mkdir --parents /etc/fail2ban/jail.d 2021-08-20 11:02:36,191: DEBUG - 225624 + mountpoint --quiet /home/yunohost.backup/tmp/seafile-pre-upgrade1 2021-08-20 11:02:36,192: DEBUG - 225625 + mv /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/jail.d/seafile.conf /etc/fail2ban/jail.d/seafile.conf 2021-08-20 11:02:36,193: DEBUG - 225626 + read line 2021-08-20 11:02:36,194: DEBUG - 225626 ++ echo '"/etc/fail2ban/filter.d/seafile.conf","apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf"' 2021-08-20 11:02:36,194: DEBUG - 225626 ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2021-08-20 11:02:36,195: DEBUG - 225628 + local ORIGIN_PATH=/etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,195: DEBUG - 225628 ++ echo '"/etc/fail2ban/filter.d/seafile.conf","apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf"' 2021-08-20 11:02:36,196: DEBUG - 225628 ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/seafile/backup/\K.*(?="$)' 2021-08-20 11:02:36,197: DEBUG - 225629 + local ARCHIVE_PATH=etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,198: DEBUG - 225630 + ynh_restore_file --origin_path=etc/fail2ban/filter.d/seafile.conf --dest_path=/etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,220: DEBUG - 225652 + origin_path=/etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,221: DEBUG - 225653 + dest_path=/etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,221: DEBUG - 225653 + not_mandatory=0 2021-08-20 11:02:36,221: DEBUG - 225653 + local archive_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,221: DEBUG - 225653 + '[' '!' -d /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf ']' 2021-08-20 11:02:36,221: DEBUG - 225653 + '[' '!' -f /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf ']' 2021-08-20 11:02:36,221: DEBUG - 225653 + [[ -e /etc/fail2ban/filter.d/seafile.conf ]] 2021-08-20 11:02:36,221: DEBUG - 225653 ++ dirname /etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,221: DEBUG - 225654 + mkdir --parents /etc/fail2ban/filter.d 2021-08-20 11:02:36,222: DEBUG - 225654 + mountpoint --quiet /home/yunohost.backup/tmp/seafile-pre-upgrade1 2021-08-20 11:02:36,223: DEBUG - 225655 + mv /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/etc/fail2ban/filter.d/seafile.conf /etc/fail2ban/filter.d/seafile.conf 2021-08-20 11:02:36,224: DEBUG - 225656 + read line 2021-08-20 11:02:36,247: DEBUG - 225680 + echo '[#######+............] > Configuring system user...' 2021-08-20 11:02:36,248: DEBUG - 225680 [#######+............] > Configuring system user... 2021-08-20 11:02:36,248: DEBUG - 225680 + ynh_system_user_create --username seafile --home_dir /opt/yunohost/seafile 2021-08-20 11:02:36,309: DEBUG - 225742 + use_shell=0 2021-08-20 11:02:36,309: DEBUG - 225742 + home_dir=/opt/yunohost/seafile 2021-08-20 11:02:36,310: DEBUG - 225742 + groups= 2021-08-20 11:02:36,310: DEBUG - 225742 + ynh_system_user_exists seafile 2021-08-20 11:02:36,314: DEBUG - 225747 + getent passwd seafile 2021-08-20 11:02:36,320: DEBUG - 225753 + '[' -n /opt/yunohost/seafile ']' 2021-08-20 11:02:36,321: DEBUG - 225753 + local 'user_home_dir=--home-dir /opt/yunohost/seafile' 2021-08-20 11:02:36,321: DEBUG - 225753 + '[' 0 -eq 1 ']' 2021-08-20 11:02:36,321: DEBUG - 225753 + local 'shell=--shell /usr/sbin/nologin' 2021-08-20 11:02:36,321: DEBUG - 225753 + useradd --home-dir /opt/yunohost/seafile --system --user-group seafile --shell /usr/sbin/nologin 2021-08-20 11:02:36,404: DEBUG - 225837 + echo '[########+++.........] > Reinstalling dependencies...' 2021-08-20 11:02:36,405: DEBUG - 225837 [########+++.........] > Reinstalling dependencies... 2021-08-20 11:02:36,405: DEBUG - 225837 + install_dependance 2021-08-20 11:02:36,405: DEBUG - 225837 ++ lsb_release --codename --short 2021-08-20 11:02:36,434: DEBUG - 225866 + '[' buster == stretch ']' 2021-08-20 11:02:36,434: DEBUG - 225866 + ynh_install_app_dependencies python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-pil python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache libjpeg62-turbo-dev zlib1g-dev 2021-08-20 11:02:36,434: DEBUG - 225866 + local 'dependencies=python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-pil python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache libjpeg62-turbo-dev zlib1g-dev' 2021-08-20 11:02:36,434: DEBUG - 225866 ++ echo 'python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-pil python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache libjpeg62-turbo-dev zlib1g-dev' 2021-08-20 11:02:36,434: DEBUG - 225867 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2021-08-20 11:02:36,436: DEBUG - 225868 + dependencies='python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-pil, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 11:02:36,436: DEBUG - 225869 + local 'dependencies=python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-pil, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 11:02:36,436: DEBUG - 225869 + local manifest_path=/home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/settings/manifest.json 2021-08-20 11:02:36,436: DEBUG - 225869 ++ jq -r .version /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/settings/manifest.json 2021-08-20 11:02:36,457: DEBUG - 225889 + local version=7.0.5~ynh1 2021-08-20 11:02:36,457: DEBUG - 225889 + '[' -z 7.0.5~ynh1 ']' 2021-08-20 11:02:36,457: DEBUG - 225890 + '[' 7.0.5~ynh1 == null ']' 2021-08-20 11:02:36,458: DEBUG - 225890 + local dep_app=seafile 2021-08-20 11:02:36,458: DEBUG - 225890 + [[ python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-pil, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev =~ [<=>] ]] 2021-08-20 11:02:36,458: DEBUG - 225890 + echo python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-pil, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev 2021-08-20 11:02:36,458: DEBUG - 225890 + grep --quiet php 2021-08-20 11:02:36,458: DEBUG - 225891 + cat 2021-08-20 11:02:36,459: DEBUG - 225892 + ynh_package_install_from_equivs /tmp/seafile-ynh-deps.control 2021-08-20 11:02:36,459: DEBUG - 225892 + local controlfile=/tmp/seafile-ynh-deps.control 2021-08-20 11:02:36,459: DEBUG - 225892 ++ grep '^Package: ' /tmp/seafile-ynh-deps.control 2021-08-20 11:02:36,460: DEBUG - 225892 ++ cut '--delimiter= ' --fields=2 2021-08-20 11:02:36,461: DEBUG - 225893 + local pkgname=seafile-ynh-deps 2021-08-20 11:02:36,461: DEBUG - 225894 ++ grep '^Version: ' /tmp/seafile-ynh-deps.control 2021-08-20 11:02:36,461: DEBUG - 225894 ++ cut '--delimiter= ' --fields=2 2021-08-20 11:02:36,463: DEBUG - 225895 + local pkgversion=7.0.5~ynh1 2021-08-20 11:02:36,463: DEBUG - 225895 + [[ -z seafile-ynh-deps ]] 2021-08-20 11:02:36,463: DEBUG - 225895 + [[ -z 7.0.5~ynh1 ]] 2021-08-20 11:02:36,463: DEBUG - 225895 + ynh_package_update 2021-08-20 11:02:36,463: DEBUG - 225895 + ynh_apt update 2021-08-20 11:02:36,463: DEBUG - 225895 + ynh_wait_dpkg_free 2021-08-20 11:02:36,580: DEBUG - 226012 + return 0 2021-08-20 11:02:36,580: DEBUG - 226013 + LC_ALL=C 2021-08-20 11:02:36,580: DEBUG - 226013 + DEBIAN_FRONTEND=noninteractive 2021-08-20 11:02:36,580: DEBUG - 226013 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2021-08-20 11:02:36,667: DEBUG - 226100 Hit:1 http://forge.yunohost.org/debian buster InRelease 2021-08-20 11:02:36,711: DEBUG - 226144 Hit:2 https://packages.sury.org/php buster InRelease 2021-08-20 11:02:37,121: DEBUG - 226554 Hit:3 http://ftp.debian.org/debian buster InRelease 2021-08-20 11:02:37,138: DEBUG - 226571 Hit:4 http://security.debian.org/debian-security buster/updates InRelease 2021-08-20 11:02:37,357: DEBUG - 226790 Hit:5 http://ftp.debian.org/debian buster-updates InRelease 2021-08-20 11:02:38,109: DEBUG - 227542 Reading package lists... 2021-08-20 11:02:38,134: DEBUG - 227567 ++ mktemp --directory 2021-08-20 11:02:38,135: DEBUG - 227568 + local TMPDIR=/tmp/tmp.Iny47aJ0Ic 2021-08-20 11:02:38,136: DEBUG - 227568 + echo 10 2021-08-20 11:02:38,136: DEBUG - 227568 + ynh_wait_dpkg_free 2021-08-20 11:02:38,262: DEBUG - 227695 + return 0 2021-08-20 11:02:38,262: DEBUG - 227695 + cp /tmp/seafile-ynh-deps.control /tmp/tmp.Iny47aJ0Ic/control 2021-08-20 11:02:38,263: DEBUG - 227696 + cd /tmp/tmp.Iny47aJ0Ic 2021-08-20 11:02:38,264: DEBUG - 227696 + LC_ALL=C 2021-08-20 11:02:38,264: DEBUG - 227696 + equivs-build ./control 2021-08-20 11:02:38,796: DEBUG - 228228 + tee ./dpkg_log 2021-08-20 11:02:38,796: DEBUG - 228228 + LC_ALL=C 2021-08-20 11:02:38,796: DEBUG - 228228 + dpkg --force-depends --install ./seafile-ynh-deps_7.0.5~ynh1_all.deb 2021-08-20 11:02:38,827: DEBUG - 228259 Selecting previously unselected package seafile-ynh-deps. 2021-08-20 11:02:39,058: DEBUG - 228490 (Reading database ... 81350 files and directories currently installed.) 2021-08-20 11:02:39,061: DEBUG - 228493 Preparing to unpack .../seafile-ynh-deps_7.0.5~ynh1_all.deb ... 2021-08-20 11:02:39,065: DEBUG - 228498 Unpacking seafile-ynh-deps (7.0.5~ynh1) ... 2021-08-20 11:02:39,107: DEBUG - 228540 dpkg: seafile-ynh-deps: dependency problems, but configuring anyway as you requested: 2021-08-20 11:02:39,108: DEBUG - 228540 seafile-ynh-deps depends on python-ldap; however: 2021-08-20 11:02:39,108: DEBUG - 228540 Package python-ldap is not installed. 2021-08-20 11:02:39,108: DEBUG - 228540 seafile-ynh-deps depends on python-urllib3; however: 2021-08-20 11:02:39,108: DEBUG - 228540 Package python-urllib3 is not installed. 2021-08-20 11:02:39,108: DEBUG - 228540 seafile-ynh-deps depends on python-simplejson; however: 2021-08-20 11:02:39,108: DEBUG - 228540 Package python-simplejson is not installed. 2021-08-20 11:02:39,108: DEBUG - 228541 seafile-ynh-deps depends on python-pil; however: 2021-08-20 11:02:39,108: DEBUG - 228541 Package python-pil is not installed. 2021-08-20 11:02:39,108: DEBUG - 228541 seafile-ynh-deps depends on python-mysqldb; however: 2021-08-20 11:02:39,108: DEBUG - 228541 Package python-mysqldb is not installed. 2021-08-20 11:02:39,109: DEBUG - 228541 seafile-ynh-deps depends on python-flup; however: 2021-08-20 11:02:39,109: DEBUG - 228541 Package python-flup is not installed. 2021-08-20 11:02:39,109: DEBUG - 228541 seafile-ynh-deps depends on expect; however: 2021-08-20 11:02:39,109: DEBUG - 228541 Package expect is not installed. 2021-08-20 11:02:39,109: DEBUG - 228541 seafile-ynh-deps depends on python-requests; however: 2021-08-20 11:02:39,109: DEBUG - 228541 Package python-requests is not installed. 2021-08-20 11:02:39,109: DEBUG - 228541 seafile-ynh-deps depends on python-memcache; however: 2021-08-20 11:02:39,109: DEBUG - 228541 Package python-memcache is not installed. 2021-08-20 11:02:39,109: DEBUG - 228541 2021-08-20 11:02:39,109: DEBUG - 228542 Setting up seafile-ynh-deps (7.0.5~ynh1) ... 2021-08-20 11:02:39,141: DEBUG - 228573 + ynh_package_install --fix-broken 2021-08-20 11:02:39,141: DEBUG - 228573 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-08-20 11:02:39,141: DEBUG - 228574 + ynh_wait_dpkg_free 2021-08-20 11:02:39,258: DEBUG - 228690 + return 0 2021-08-20 11:02:39,258: DEBUG - 228691 + LC_ALL=C 2021-08-20 11:02:39,258: DEBUG - 228691 + DEBIAN_FRONTEND=noninteractive 2021-08-20 11:02:39,258: DEBUG - 228691 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-08-20 11:02:39,450: DEBUG - 228883 Reading package lists... 2021-08-20 11:02:39,588: DEBUG - 229020 Building dependency tree... 2021-08-20 11:02:39,591: DEBUG - 229023 Reading state information... 2021-08-20 11:02:39,689: DEBUG - 229122 Correcting dependencies... Done 2021-08-20 11:02:39,823: DEBUG - 229255 The following additional packages will be installed: 2021-08-20 11:02:39,824: DEBUG - 229256 expect libimagequant0 python-certifi python-chardet python-flup python-idna 2021-08-20 11:02:39,824: DEBUG - 229256 python-ldap python-memcache python-mysqldb python-olefile python-openssl 2021-08-20 11:02:39,824: DEBUG - 229257 python-pil python-pyasn1 python-pyasn1-modules python-requests 2021-08-20 11:02:39,824: DEBUG - 229257 python-simplejson python-urllib3 tcl-expect 2021-08-20 11:02:39,825: DEBUG - 229258 Suggested packages: 2021-08-20 11:02:39,826: DEBUG - 229258 tk8.6 python-egenix-mxdatetime python-mysqldb-dbg python-openssl-doc 2021-08-20 11:02:39,826: DEBUG - 229258 python-openssl-dbg python-pil-doc python-pil-dbg python-socks python-ntlm 2021-08-20 11:02:39,840: DEBUG - 229272 The following NEW packages will be installed: 2021-08-20 11:02:39,841: DEBUG - 229273 expect libimagequant0 python-certifi python-chardet python-flup python-idna 2021-08-20 11:02:39,841: DEBUG - 229273 python-ldap python-memcache python-mysqldb python-olefile python-openssl 2021-08-20 11:02:39,841: DEBUG - 229274 python-pil python-pyasn1 python-pyasn1-modules python-requests 2021-08-20 11:02:39,841: DEBUG - 229274 python-simplejson python-urllib3 tcl-expect 2021-08-20 11:02:40,245: DEBUG - 229678 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded. 2021-08-20 11:02:40,246: DEBUG - 229678 Need to get 0 B/1628 kB of archives. 2021-08-20 11:02:40,246: DEBUG - 229678 After this operation, 6148 kB of additional disk space will be used. 2021-08-20 11:02:40,274: DEBUG - 229706 Selecting previously unselected package tcl-expect:amd64. 2021-08-20 11:02:40,303: DEBUG - 229735 (Reading database ... 81354 files and directories currently installed.) 2021-08-20 11:02:40,305: DEBUG - 229738 Preparing to unpack .../00-tcl-expect_5.45.4-2_amd64.deb ... 2021-08-20 11:02:40,313: DEBUG - 229746 Unpacking tcl-expect:amd64 (5.45.4-2) ... 2021-08-20 11:02:40,358: DEBUG - 229791 Selecting previously unselected package expect. 2021-08-20 11:02:40,364: DEBUG - 229796 Preparing to unpack .../01-expect_5.45.4-2_amd64.deb ... 2021-08-20 11:02:40,368: DEBUG - 229800 Unpacking expect (5.45.4-2) ... 2021-08-20 11:02:40,420: DEBUG - 229852 Selecting previously unselected package libimagequant0:amd64. 2021-08-20 11:02:40,425: DEBUG - 229858 Preparing to unpack .../02-libimagequant0_2.12.2-1.1_amd64.deb ... 2021-08-20 11:02:40,429: DEBUG - 229862 Unpacking libimagequant0:amd64 (2.12.2-1.1) ... 2021-08-20 11:02:40,467: DEBUG - 229900 Selecting previously unselected package python-certifi. 2021-08-20 11:02:40,473: DEBUG - 229906 Preparing to unpack .../03-python-certifi_2018.8.24-1_all.deb ... 2021-08-20 11:02:40,477: DEBUG - 229910 Unpacking python-certifi (2018.8.24-1) ... 2021-08-20 11:02:40,526: DEBUG - 229958 Selecting previously unselected package python-chardet. 2021-08-20 11:02:40,531: DEBUG - 229964 Preparing to unpack .../04-python-chardet_3.0.4-3_all.deb ... 2021-08-20 11:02:40,535: DEBUG - 229968 Unpacking python-chardet (3.0.4-3) ... 2021-08-20 11:02:40,583: DEBUG - 230015 Selecting previously unselected package python-flup. 2021-08-20 11:02:40,589: DEBUG - 230021 Preparing to unpack .../05-python-flup_1.0.2-5_all.deb ... 2021-08-20 11:02:40,593: DEBUG - 230025 Unpacking python-flup (1.0.2-5) ... 2021-08-20 11:02:40,631: DEBUG - 230063 Selecting previously unselected package python-idna. 2021-08-20 11:02:40,636: DEBUG - 230069 Preparing to unpack .../06-python-idna_2.6-1_all.deb ... 2021-08-20 11:02:40,640: DEBUG - 230073 Unpacking python-idna (2.6-1) ... 2021-08-20 11:02:40,695: DEBUG - 230127 Selecting previously unselected package python-pyasn1. 2021-08-20 11:02:40,700: DEBUG - 230133 Preparing to unpack .../07-python-pyasn1_0.4.2-3_all.deb ... 2021-08-20 11:02:40,704: DEBUG - 230137 Unpacking python-pyasn1 (0.4.2-3) ... 2021-08-20 11:02:40,747: DEBUG - 230179 Selecting previously unselected package python-pyasn1-modules. 2021-08-20 11:02:40,752: DEBUG - 230185 Preparing to unpack .../08-python-pyasn1-modules_0.2.1-0.2_all.deb ... 2021-08-20 11:02:40,757: DEBUG - 230189 Unpacking python-pyasn1-modules (0.2.1-0.2) ... 2021-08-20 11:02:40,798: DEBUG - 230230 Selecting previously unselected package python-ldap:amd64. 2021-08-20 11:02:40,804: DEBUG - 230236 Preparing to unpack .../09-python-ldap_3.1.0-2_amd64.deb ... 2021-08-20 11:02:40,808: DEBUG - 230240 Unpacking python-ldap:amd64 (3.1.0-2) ... 2021-08-20 11:02:40,856: DEBUG - 230289 Selecting previously unselected package python-memcache. 2021-08-20 11:02:40,862: DEBUG - 230294 Preparing to unpack .../10-python-memcache_1.59-1_all.deb ... 2021-08-20 11:02:40,866: DEBUG - 230298 Unpacking python-memcache (1.59-1) ... 2021-08-20 11:02:40,903: DEBUG - 230336 Selecting previously unselected package python-mysqldb. 2021-08-20 11:02:40,909: DEBUG - 230342 Preparing to unpack .../11-python-mysqldb_1.3.10-2_amd64.deb ... 2021-08-20 11:02:40,913: DEBUG - 230346 Unpacking python-mysqldb (1.3.10-2) ... 2021-08-20 11:02:40,953: DEBUG - 230386 Selecting previously unselected package python-olefile. 2021-08-20 11:02:40,959: DEBUG - 230391 Preparing to unpack .../12-python-olefile_0.46-1_all.deb ... 2021-08-20 11:02:40,963: DEBUG - 230395 Unpacking python-olefile (0.46-1) ... 2021-08-20 11:02:41,006: DEBUG - 230439 Selecting previously unselected package python-openssl. 2021-08-20 11:02:41,012: DEBUG - 230444 Preparing to unpack .../13-python-openssl_19.0.0-1_all.deb ... 2021-08-20 11:02:41,016: DEBUG - 230449 Unpacking python-openssl (19.0.0-1) ... 2021-08-20 11:02:41,056: DEBUG - 230489 Selecting previously unselected package python-pil:amd64. 2021-08-20 11:02:41,062: DEBUG - 230494 Preparing to unpack .../14-python-pil_5.4.1-2+deb10u2_amd64.deb ... 2021-08-20 11:02:41,066: DEBUG - 230499 Unpacking python-pil:amd64 (5.4.1-2+deb10u2) ... 2021-08-20 11:02:41,138: DEBUG - 230571 Selecting previously unselected package python-urllib3. 2021-08-20 11:02:41,144: DEBUG - 230576 Preparing to unpack .../15-python-urllib3_1.24.1-1_all.deb ... 2021-08-20 11:02:41,148: DEBUG - 230581 Unpacking python-urllib3 (1.24.1-1) ... 2021-08-20 11:02:41,195: DEBUG - 230628 Selecting previously unselected package python-requests. 2021-08-20 11:02:41,201: DEBUG - 230633 Preparing to unpack .../16-python-requests_2.21.0-1_all.deb ... 2021-08-20 11:02:41,205: DEBUG - 230638 Unpacking python-requests (2.21.0-1) ... 2021-08-20 11:02:41,247: DEBUG - 230679 Selecting previously unselected package python-simplejson. 2021-08-20 11:02:41,252: DEBUG - 230685 Preparing to unpack .../17-python-simplejson_3.16.0-1_amd64.deb ... 2021-08-20 11:02:41,257: DEBUG - 230689 Unpacking python-simplejson (3.16.0-1) ... 2021-08-20 11:02:41,328: DEBUG - 230760 Setting up python-urllib3 (1.24.1-1) ... 2021-08-20 11:02:41,429: DEBUG - 230861 Setting up tcl-expect:amd64 (5.45.4-2) ... 2021-08-20 11:02:41,451: DEBUG - 230884 Setting up python-simplejson (3.16.0-1) ... 2021-08-20 11:02:41,528: DEBUG - 230960 Setting up python-certifi (2018.8.24-1) ... 2021-08-20 11:02:41,589: DEBUG - 231021 Setting up python-pyasn1 (0.4.2-3) ... 2021-08-20 11:02:41,674: DEBUG - 231107 Setting up python-idna (2.6-1) ... 2021-08-20 11:02:41,774: DEBUG - 231206 Setting up python-pyasn1-modules (0.2.1-0.2) ... 2021-08-20 11:02:41,866: DEBUG - 231299 Setting up libimagequant0:amd64 (2.12.2-1.1) ... 2021-08-20 11:02:41,879: DEBUG - 231311 Setting up python-memcache (1.59-1) ... 2021-08-20 11:02:41,943: DEBUG - 231375 Setting up python-chardet (3.0.4-3) ... 2021-08-20 11:02:42,071: DEBUG - 231503 Setting up python-requests (2.21.0-1) ... 2021-08-20 11:02:42,147: DEBUG - 231579 Setting up python-flup (1.0.2-5) ... 2021-08-20 11:02:42,225: DEBUG - 231658 Setting up python-olefile (0.46-1) ... 2021-08-20 11:02:42,292: DEBUG - 231724 Setting up python-openssl (19.0.0-1) ... 2021-08-20 11:02:42,371: DEBUG - 231804 Setting up python-mysqldb (1.3.10-2) ... 2021-08-20 11:02:42,439: DEBUG - 231872 Setting up expect (5.45.4-2) ... 2021-08-20 11:02:42,451: DEBUG - 231884 Setting up python-ldap:amd64 (3.1.0-2) ... 2021-08-20 11:02:42,533: DEBUG - 231966 Setting up python-pil:amd64 (5.4.1-2+deb10u2) ... 2021-08-20 11:02:42,678: DEBUG - 232111 Processing triggers for libc-bin (2.28-10) ... 2021-08-20 11:02:42,706: DEBUG - 232138 Processing triggers for man-db (2.8.5-2) ... 2021-08-20 11:02:43,068: DEBUG - 232501 + [[ -n /tmp/tmp.Iny47aJ0Ic ]] 2021-08-20 11:02:43,069: DEBUG - 232501 + rm --recursive --force /tmp/tmp.Iny47aJ0Ic 2021-08-20 11:02:43,069: DEBUG - 232502 + ynh_package_is_installed seafile-ynh-deps 2021-08-20 11:02:43,074: DEBUG - 232507 + ynh_wait_dpkg_free 2021-08-20 11:02:43,195: DEBUG - 232627 + return 0 2021-08-20 11:02:43,195: DEBUG - 232628 + dpkg-query --show '--showformat=${Status}' seafile-ynh-deps 2021-08-20 11:02:43,195: DEBUG - 232628 + grep --count 'ok installed' 2021-08-20 11:02:43,210: DEBUG - 232642 + rm /tmp/seafile-ynh-deps.control 2021-08-20 11:02:43,211: DEBUG - 232643 + ynh_app_setting_set --app=seafile --key=apt_dependencies '--value=python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-pil, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 11:02:43,244: DEBUG - 232676 + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:02:43,244: DEBUG - 232676 + ynh_app_setting set seafile apt_dependencies 'python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-pil, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev' 2021-08-20 11:02:43,282: DEBUG - 232713 + ynh_add_swap 2000 2021-08-20 11:02:43,282: DEBUG - 232714 + declare -Ar args_array 2021-08-20 11:02:43,287: DEBUG - 232720 + local swap_max_size=2048000 2021-08-20 11:02:43,287: DEBUG - 232720 ++ df --output=avail / 2021-08-20 11:02:43,288: DEBUG - 232720 ++ sed 1d 2021-08-20 11:02:43,290: DEBUG - 232723 + local free_space=37390456 2021-08-20 11:02:43,291: DEBUG - 232723 + local usable_space=18695228 2021-08-20 11:02:43,291: DEBUG - 232723 + SD_CARD_CAN_SWAP=0 2021-08-20 11:02:43,291: DEBUG - 232723 + ynh_is_main_device_a_sd_card 2021-08-20 11:02:43,291: DEBUG - 232723 +++ findmnt / --nofsroot --uniq --output source --noheadings --first-only 2021-08-20 11:02:43,295: DEBUG - 232727 ++ lsblk --output PKNAME --noheadings /dev/sdb6 2021-08-20 11:02:43,297: DEBUG - 232730 + local main_device=sdb 2021-08-20 11:02:43,297: DEBUG - 232730 + echo sdb 2021-08-20 11:02:43,297: DEBUG - 232730 + grep --quiet mmc 2021-08-20 11:02:43,298: DEBUG - 232731 + return 1 2021-08-20 11:02:43,298: DEBUG - 232731 + '[' 18695228 -ge 2048000 ']' 2021-08-20 11:02:43,298: DEBUG - 232731 + local swap_size=2048000 2021-08-20 11:02:43,299: DEBUG - 232731 + '[' 2048000 -ne 0 ']' 2021-08-20 11:02:43,299: DEBUG - 232731 + '[' '!' -e /swap_seafile ']' 2021-08-20 11:02:43,299: DEBUG - 232731 + set_permission 2021-08-20 11:02:43,299: DEBUG - 232731 + chown -R seafile:seafile /opt/yunohost/seafile 2021-08-20 11:02:43,429: DEBUG - 232862 + test -e /home/yunohost.app/seafile-data 2021-08-20 11:02:43,430: DEBUG - 232862 + chown -R seafile:seafile /home/yunohost.app/seafile-data 2021-08-20 11:03:42,948: DEBUG - 292381 + true 2021-08-20 11:03:42,949: DEBUG - 292381 + sudo -u seafile pip install --user --upgrade Pillow 'moviepy<1.0' 'imageio<2.8' certifi idna 2021-08-20 11:03:43,365: WARNING - 292797 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. 2021-08-20 11:03:44,020: DEBUG - 293453 Requirement already up-to-date: Pillow in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (6.2.2) 2021-08-20 11:03:44,084: DEBUG - 293516 Requirement already up-to-date: moviepy<1.0 in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (0.2.3.5) 2021-08-20 11:03:44,177: DEBUG - 293610 Requirement already up-to-date: imageio<2.8 in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (2.6.1) 2021-08-20 11:03:44,288: DEBUG - 293720 Requirement already up-to-date: certifi in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (2021.5.30) 2021-08-20 11:03:44,352: DEBUG - 293785 Requirement already up-to-date: idna in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (2.10) 2021-08-20 11:03:44,354: DEBUG - 293786 Requirement already satisfied, skipping upgrade: decorator<5.0,>=4.0.2 in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (from moviepy<1.0) (4.4.2) 2021-08-20 11:03:44,355: DEBUG - 293788 Requirement already satisfied, skipping upgrade: tqdm<5.0,>=4.11.2 in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (from moviepy<1.0) (4.49.0) 2021-08-20 11:03:44,361: DEBUG - 293794 Requirement already satisfied, skipping upgrade: numpy in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (from moviepy<1.0) (1.16.6) 2021-08-20 11:03:44,362: DEBUG - 293795 Requirement already satisfied, skipping upgrade: futures in /opt/yunohost/seafile/.local/lib/python2.7/site-packages (from imageio<2.8) (3.3.0) 2021-08-20 11:03:44,363: DEBUG - 293796 Requirement already satisfied, skipping upgrade: enum34 in /usr/lib/python2.7/dist-packages (from imageio<2.8) (1.1.6) 2021-08-20 11:03:44,442: DEBUG - 293874 + ynh_del_swap 2021-08-20 11:03:44,442: DEBUG - 293875 + '[' -e /swap_seafile ']' 2021-08-20 11:03:44,442: DEBUG - 293875 + sed -i '/#Swap added by seafile/d' /etc/fstab 2021-08-20 11:03:44,443: DEBUG - 293876 + swapoff /swap_seafile 2021-08-20 11:03:51,247: DEBUG - 300679 + rm /swap_seafile 2021-08-20 11:03:51,287: DEBUG - 300720 + echo '[###########++.......] > Restoring database...' 2021-08-20 11:03:51,288: DEBUG - 300720 + db_user=seafile 2021-08-20 11:03:51,288: DEBUG - 300720 + ynh_mysql_setup_db --db_user seafile --db_name ccnetdb --db_pwd ********** 2021-08-20 11:03:51,289: DEBUG - 300721 + db_pwd= 2021-08-20 11:03:51,289: DEBUG - 300721 [###########++.......] > Restoring database... 2021-08-20 11:03:51,353: DEBUG - 300785 ++ ynh_string_random 2021-08-20 11:03:51,354: DEBUG - 300786 ++ length=24 2021-08-20 11:03:51,354: DEBUG - 300786 ++ dd if=/dev/urandom bs=1 count=1000 2021-08-20 11:03:51,354: DEBUG - 300786 ++ tr --complement --delete A-Za-z0-9 2021-08-20 11:03:51,354: DEBUG - 300786 ++ sed --quiet 's/\(.\{24\}\).*/\1/p' 2021-08-20 11:03:51,356: DEBUG - 300789 + local new_db_pwd=********** 2021-08-20 11:03:51,358: DEBUG - 300789 + db_pwd=********** 2021-08-20 11:03:51,358: DEBUG - 300789 + ynh_mysql_create_db ccnetdb seafile ********** 2021-08-20 11:03:51,358: DEBUG - 300789 + local db=ccnetdb 2021-08-20 11:03:51,358: DEBUG - 300789 + local 'sql=CREATE DATABASE ccnetdb;' 2021-08-20 11:03:51,358: DEBUG - 300789 + [[ 3 -gt 1 ]] 2021-08-20 11:03:51,358: DEBUG - 300789 + sql+=' GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\''' 2021-08-20 11:03:51,358: DEBUG - 300790 + [[ -n ********** ]] 2021-08-20 11:03:51,358: DEBUG - 300790 + sql+=' IDENTIFIED BY '\''**********'\''' 2021-08-20 11:03:51,358: DEBUG - 300790 + sql+=' WITH GRANT OPTION;' 2021-08-20 11:03:51,358: DEBUG - 300790 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE ccnetdb; GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2021-08-20 11:03:51,366: DEBUG - 300798 + database= 2021-08-20 11:03:51,366: DEBUG - 300799 + '[' -n '' ']' 2021-08-20 11:03:51,366: DEBUG - 300799 + mysql -B '' 2021-08-20 11:03:51,378: DEBUG - 300810 + ynh_app_setting_set --app=seafile --key=mysqlpwd --value=********** 2021-08-20 11:03:51,413: DEBUG - 300846 + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:03:51,414: DEBUG - 300846 + ynh_app_setting set seafile mysqlpwd ********** 2021-08-20 11:03:51,448: DEBUG - 300881 + ynh_mysql_setup_db --db_user seafile --db_name seafiledb --db_pwd ********** 2021-08-20 11:03:51,449: DEBUG - 300881 + db_pwd= 2021-08-20 11:03:51,510: DEBUG - 300942 ++ ynh_string_random 2021-08-20 11:03:51,511: DEBUG - 300943 ++ length=24 2021-08-20 11:03:51,511: DEBUG - 300943 ++ dd if=/dev/urandom bs=1 count=1000 2021-08-20 11:03:51,511: DEBUG - 300943 ++ sed --quiet 's/\(.\{24\}\).*/\1/p' 2021-08-20 11:03:51,511: DEBUG - 300943 ++ tr --complement --delete A-Za-z0-9 2021-08-20 11:03:51,513: DEBUG - 300945 + local new_db_pwd=********** 2021-08-20 11:03:51,513: DEBUG - 300946 + db_pwd=********** 2021-08-20 11:03:51,513: DEBUG - 300946 + ynh_mysql_create_db seafiledb seafile ********** 2021-08-20 11:03:51,513: DEBUG - 300946 + local db=seafiledb 2021-08-20 11:03:51,515: DEBUG - 300946 + local 'sql=CREATE DATABASE seafiledb;' 2021-08-20 11:03:51,515: DEBUG - 300946 + [[ 3 -gt 1 ]] 2021-08-20 11:03:51,515: DEBUG - 300946 + sql+=' GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\''' 2021-08-20 11:03:51,515: DEBUG - 300946 + [[ -n ********** ]] 2021-08-20 11:03:51,515: DEBUG - 300946 + sql+=' IDENTIFIED BY '\''**********'\''' 2021-08-20 11:03:51,515: DEBUG - 300947 + sql+=' WITH GRANT OPTION;' 2021-08-20 11:03:51,515: DEBUG - 300947 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE seafiledb; GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2021-08-20 11:03:51,523: DEBUG - 300955 + database= 2021-08-20 11:03:51,523: DEBUG - 300955 + '[' -n '' ']' 2021-08-20 11:03:51,523: DEBUG - 300955 + mysql -B '' 2021-08-20 11:03:51,528: DEBUG - 300961 + ynh_app_setting_set --app=seafile --key=mysqlpwd --value=********** 2021-08-20 11:03:51,563: DEBUG - 300996 + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:03:51,564: DEBUG - 300996 + ynh_app_setting set seafile mysqlpwd ********** 2021-08-20 11:03:51,598: DEBUG - 301030 + ynh_mysql_setup_db --db_user seafile --db_name seahubdb --db_pwd ********** 2021-08-20 11:03:51,599: DEBUG - 301031 + db_pwd= 2021-08-20 11:03:51,672: DEBUG - 301103 ++ ynh_string_random 2021-08-20 11:03:51,673: DEBUG - 301104 ++ length=24 2021-08-20 11:03:51,673: DEBUG - 301105 ++ dd if=/dev/urandom bs=1 count=1000 2021-08-20 11:03:51,673: DEBUG - 301106 ++ tr --complement --delete A-Za-z0-9 2021-08-20 11:03:51,674: DEBUG - 301107 ++ sed --quiet 's/\(.\{24\}\).*/\1/p' 2021-08-20 11:03:51,676: DEBUG - 301109 + local new_db_pwd=********** 2021-08-20 11:03:51,677: DEBUG - 301109 + db_pwd=********** 2021-08-20 11:03:51,678: DEBUG - 301109 + ynh_mysql_create_db seahubdb seafile ********** 2021-08-20 11:03:51,678: DEBUG - 301109 + local db=seahubdb 2021-08-20 11:03:51,678: DEBUG - 301109 + local 'sql=CREATE DATABASE seahubdb;' 2021-08-20 11:03:51,678: DEBUG - 301109 + [[ 3 -gt 1 ]] 2021-08-20 11:03:51,678: DEBUG - 301109 + sql+=' GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\''' 2021-08-20 11:03:51,678: DEBUG - 301109 + [[ -n ********** ]] 2021-08-20 11:03:51,678: DEBUG - 301109 + sql+=' IDENTIFIED BY '\''**********'\''' 2021-08-20 11:03:51,678: DEBUG - 301110 + sql+=' WITH GRANT OPTION;' 2021-08-20 11:03:51,678: DEBUG - 301110 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE seahubdb; GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2021-08-20 11:03:51,687: DEBUG - 301119 + database= 2021-08-20 11:03:51,687: DEBUG - 301119 + '[' -n '' ']' 2021-08-20 11:03:51,687: DEBUG - 301120 + mysql -B '' 2021-08-20 11:03:51,692: DEBUG - 301125 + ynh_app_setting_set --app=seafile --key=mysqlpwd --value=********** 2021-08-20 11:03:51,731: DEBUG - 301163 + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-08-20 11:03:51,731: DEBUG - 301164 + ynh_app_setting set seafile mysqlpwd ********** 2021-08-20 11:03:51,765: DEBUG - 301197 + su -c 'mysql -u seafile -p********** ccnetdb < /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/ccnetdb.dmp' 2021-08-20 11:03:52,034: DEBUG - 301466 + su -c 'mysql -u seafile -p********** seafiledb < /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/seafiledb.dmp' 2021-08-20 11:03:52,682: DEBUG - 302115 + su -c 'mysql -u seafile -p********** seahubdb < /home/yunohost.backup/tmp/seafile-pre-upgrade1/apps/seafile/backup/seahubdb.dmp' 2021-08-20 11:03:54,216: DEBUG - 303649 + echo '[#############+......] > Configuring permissions...' 2021-08-20 11:03:54,217: DEBUG - 303649 [#############+......] > Configuring permissions... 2021-08-20 11:03:54,217: DEBUG - 303649 + python3 ../settings/conf/add_sso_conf.py 2021-08-20 11:03:54,277: DEBUG - 303710 + echo '[##############......] > Configuring log rotation...' 2021-08-20 11:03:54,278: DEBUG - 303710 [##############......] > Configuring log rotation... 2021-08-20 11:03:54,278: DEBUG - 303710 + ynh_use_logrotate --logfile /opt/yunohost/seafile/logs 2021-08-20 11:03:54,315: DEBUG - 303747 + logfile=/opt/yunohost/seafile/logs 2021-08-20 11:03:54,315: DEBUG - 303747 + nonappend=0 2021-08-20 11:03:54,315: DEBUG - 303747 + specific_user= 2021-08-20 11:03:54,315: DEBUG - 303747 + '[' 2 -gt 0 ']' 2021-08-20 11:03:54,315: DEBUG - 303747 + '[' --logfile == --non-append ']' 2021-08-20 11:03:54,315: DEBUG - 303748 + '[' 2 -gt 1 ']' 2021-08-20 11:03:54,316: DEBUG - 303748 + '[' /opt/yunohost/seafile/logs == --non-append ']' 2021-08-20 11:03:54,316: DEBUG - 303748 + '[' 2 -gt 0 ']' 2021-08-20 11:03:54,317: DEBUG - 303748 ++ echo - 2021-08-20 11:03:54,317: DEBUG - 303748 + '[' - '!=' - ']' 2021-08-20 11:03:54,317: DEBUG - 303749 + local 'customtee=tee --append' 2021-08-20 11:03:54,317: DEBUG - 303749 + '[' 0 -eq 1 ']' 2021-08-20 11:03:54,317: DEBUG - 303749 + '[' -n /opt/yunohost/seafile/logs ']' 2021-08-20 11:03:54,317: DEBUG - 303749 + '[' '!' -f --logfile ']' 2021-08-20 11:03:54,317: DEBUG - 303749 ++ echo /opt/yunohost/seafile/logs 2021-08-20 11:03:54,317: DEBUG - 303749 + '[' /opt/yunohost/seafile/logs '!=' log ']' 2021-08-20 11:03:54,317: DEBUG - 303749 + local 'logfile=/opt/yunohost/seafile/logs/*.log' 2021-08-20 11:03:54,317: DEBUG - 303749 + local su_directive= 2021-08-20 11:03:54,317: DEBUG - 303749 + [[ -n '' ]] 2021-08-20 11:03:54,318: DEBUG - 303750 + cat 2021-08-20 11:03:54,318: DEBUG - 303750 ++ dirname '/opt/yunohost/seafile/logs/*.log' 2021-08-20 11:03:54,318: DEBUG - 303750 + mkdir --parents /opt/yunohost/seafile/logs 2021-08-20 11:03:54,318: DEBUG - 303751 + cat seafile-logrotate 2021-08-20 11:03:54,318: DEBUG - 303751 + tee --append /etc/logrotate.d/seafile 2021-08-20 11:03:54,319: DEBUG - 303752 + ln -s /opt/yunohost/seafile/logs /var/log/seafile 2021-08-20 11:03:54,344: DEBUG - 303777 + echo '[##############+.....] > Protecting directory...' 2021-08-20 11:03:54,344: DEBUG - 303777 + set_permission 2021-08-20 11:03:54,345: DEBUG - 303777 + chown -R seafile:seafile /opt/yunohost/seafile 2021-08-20 11:03:54,345: DEBUG - 303777 [##############+.....] > Protecting directory... 2021-08-20 11:03:54,469: DEBUG - 303901 + test -e /home/yunohost.app/seafile-data 2021-08-20 11:03:54,469: DEBUG - 303901 + chown -R seafile:seafile /home/yunohost.app/seafile-data 2021-08-20 11:03:55,308: DEBUG - 304741 + true 2021-08-20 11:03:55,333: DEBUG - 304765 + echo '[###############+....] > Reconfiguring application...' 2021-08-20 11:03:55,333: DEBUG - 304766 [###############+....] > Reconfiguring application... 2021-08-20 11:03:55,333: DEBUG - 304766 + systemctl daemon-reload 2021-08-20 11:03:55,468: DEBUG - 304900 + systemctl enable seafile 2021-08-20 11:03:55,471: DEBUG - 304903 Created symlink /etc/systemd/system/multi-user.target.wants/seafile.service → /etc/systemd/system/seafile.service. 2021-08-20 11:03:55,587: DEBUG - 305019 + systemctl enable seahub 2021-08-20 11:03:55,589: DEBUG - 305022 Created symlink /etc/systemd/system/multi-user.target.wants/seahub.service → /etc/systemd/system/seahub.service. 2021-08-20 11:03:55,735: DEBUG - 305167 + echo '[################....] > Register seafile service...' 2021-08-20 11:03:55,735: DEBUG - 305167 + yunohost service add seafile 2021-08-20 11:03:55,735: DEBUG - 305168 [################....] > Register seafile service... 2021-08-20 11:03:55,905: DEBUG - 305337 Le service 'seafile' a été ajouté 2021-08-20 11:03:55,927: DEBUG - 305359 + yunohost service add seahub 2021-08-20 11:03:56,068: DEBUG - 305500 Le service 'seahub' a été ajouté 2021-08-20 11:03:56,110: DEBUG - 305542 + echo '[################+...] > Reloading services...' 2021-08-20 11:03:56,110: DEBUG - 305543 + systemctl reload nginx.service 2021-08-20 11:03:56,110: DEBUG - 305543 [################+...] > Reloading services... 2021-08-20 11:03:56,223: DEBUG - 305656 + ynh_systemd_action --service_name=fail2ban --action=reload 2021-08-20 11:03:56,277: DEBUG - 305710 + service_name=fail2ban 2021-08-20 11:03:56,277: DEBUG - 305710 + action=reload 2021-08-20 11:03:56,277: DEBUG - 305710 + line_match= 2021-08-20 11:03:56,277: DEBUG - 305710 + length=20 2021-08-20 11:03:56,277: DEBUG - 305710 + log_path=/var/log/fail2ban/fail2ban.log 2021-08-20 11:03:56,278: DEBUG - 305710 + timeout=300 2021-08-20 11:03:56,278: DEBUG - 305710 + '[' reload == stop ']' 2021-08-20 11:03:56,278: DEBUG - 305710 + [[ -n '' ]] 2021-08-20 11:03:56,278: DEBUG - 305710 + '[' reload == reload ']' 2021-08-20 11:03:56,278: DEBUG - 305710 + action=reload-or-restart 2021-08-20 11:03:56,278: DEBUG - 305710 + systemctl reload-or-restart fail2ban 2021-08-20 11:03:56,395: DEBUG - 305828 + [[ -n '' ]] 2021-08-20 11:03:56,396: DEBUG - 305828 + sleep 5 2021-08-20 11:04:01,443: DEBUG - 310875 + echo '[#################++.] > Starting seafile services...' 2021-08-20 11:04:01,443: DEBUG - 310876 + ynh_systemd_action --service_name seafile -l 'spawned seaf-server, pid ' -p /var/log/seafile/controller.log 2021-08-20 11:04:01,445: DEBUG - 310877 [#################++.] > Starting seafile services... 2021-08-20 11:04:01,574: DEBUG - 311007 + service_name=seafile 2021-08-20 11:04:01,575: DEBUG - 311007 + action=start 2021-08-20 11:04:01,575: DEBUG - 311007 + line_match='spawned seaf-server, pid ' 2021-08-20 11:04:01,575: DEBUG - 311007 + length=20 2021-08-20 11:04:01,575: DEBUG - 311007 + log_path=/var/log/seafile/controller.log 2021-08-20 11:04:01,575: DEBUG - 311008 + timeout=300 2021-08-20 11:04:01,575: DEBUG - 311008 + '[' start == stop ']' 2021-08-20 11:04:01,575: DEBUG - 311008 + [[ -n spawned seaf-server, pid ]] 2021-08-20 11:04:01,575: DEBUG - 311008 ++ mktemp 2021-08-20 11:04:01,576: DEBUG - 311008 + local templog=/tmp/tmp.ZSNrsDzqMN 2021-08-20 11:04:01,576: DEBUG - 311008 + '[' /var/log/seafile/controller.log == systemd ']' 2021-08-20 11:04:01,576: DEBUG - 311008 + local pid_tail=14810 2021-08-20 11:04:01,576: DEBUG - 311008 + tail --follow=name --retry --lines=0 /var/log/seafile/controller.log 2021-08-20 11:04:01,576: DEBUG - 311008 + '[' start == reload ']' 2021-08-20 11:04:01,576: DEBUG - 311009 + systemctl start seafile 2021-08-20 11:04:04,762: DEBUG - 314194 + [[ -n spawned seaf-server, pid ]] 2021-08-20 11:04:04,769: DEBUG - 314201 + echo 'The service seafile has correctly executed the action start.' 2021-08-20 11:04:04,770: DEBUG - 314202 The service seafile has correctly executed the action start. 2021-08-20 11:04:04,770: DEBUG - 314202 + break 2021-08-20 11:04:04,771: DEBUG - 314202 + '[' 1 -ge 3 ']' 2021-08-20 11:04:04,771: DEBUG - 314202 + '[' 1 -eq 300 ']' 2021-08-20 11:04:04,771: DEBUG - 314202 + ynh_clean_check_starting 2021-08-20 11:04:04,771: DEBUG - 314202 + '[' -n 14810 ']' 2021-08-20 11:04:04,771: DEBUG - 314202 + kill -SIGTERM 14810 2021-08-20 11:04:04,771: DEBUG - 314202 + '[' -n /tmp/tmp.ZSNrsDzqMN ']' 2021-08-20 11:04:04,771: DEBUG - 314203 + ynh_secure_remove --file=/tmp/tmp.ZSNrsDzqMN 2021-08-20 11:04:04,775: DEBUG - 314208 + local 'forbidden_path= /var/www /home/yunohost.app' 2021-08-20 11:04:04,776: DEBUG - 314208 + '[' 1 -ge 2 ']' 2021-08-20 11:04:04,776: DEBUG - 314208 + [[ -z /tmp/tmp.ZSNrsDzqMN ]] 2021-08-20 11:04:04,776: DEBUG - 314209 + [[ /var/www /home/yunohost.app =~ /tmp/tmp\.ZSNrsDzqMN ]] 2021-08-20 11:04:04,777: DEBUG - 314209 + [[ /tmp/tmp.ZSNrsDzqMN =~ ^/[[:alnum:]]+$ ]] 2021-08-20 11:04:04,777: DEBUG - 314209 + [[ N = \/ ]] 2021-08-20 11:04:04,777: DEBUG - 314209 + '[' -e /tmp/tmp.ZSNrsDzqMN ']' 2021-08-20 11:04:04,778: DEBUG - 314209 + rm --recursive /tmp/tmp.ZSNrsDzqMN 2021-08-20 11:04:04,778: DEBUG - 314209 + ynh_systemd_action --service_name seahub -l 'Started Seafile hub.' -p systemd 2021-08-20 11:04:04,926: DEBUG - 314358 + service_name=seahub 2021-08-20 11:04:04,926: DEBUG - 314358 + action=start 2021-08-20 11:04:04,926: DEBUG - 314358 + line_match='Started Seafile hub.' 2021-08-20 11:04:04,927: DEBUG - 314359 + length=20 2021-08-20 11:04:04,927: DEBUG - 314359 + log_path=systemd 2021-08-20 11:04:04,927: DEBUG - 314359 + timeout=300 2021-08-20 11:04:04,927: DEBUG - 314359 + '[' start == stop ']' 2021-08-20 11:04:04,927: DEBUG - 314359 + [[ -n Started Seafile hub. ]] 2021-08-20 11:04:04,927: DEBUG - 314359 ++ mktemp 2021-08-20 11:04:04,927: DEBUG - 314360 + local templog=/tmp/tmp.YLJmJbjtrq 2021-08-20 11:04:04,927: DEBUG - 314360 + '[' systemd == systemd ']' 2021-08-20 11:04:04,927: DEBUG - 314360 + local pid_tail=15108 2021-08-20 11:04:04,927: DEBUG - 314360 + '[' start == reload ']' 2021-08-20 11:04:04,928: DEBUG - 314360 + journalctl --unit=seahub --follow --since=-0 --quiet 2021-08-20 11:04:04,928: DEBUG - 314360 + systemctl start seahub 2021-08-20 11:04:10,173: DEBUG - 319605 + [[ -n Started Seafile hub. ]] 2021-08-20 11:04:11,182: DEBUG - 320614 + echo 'The service seahub has correctly executed the action start.' 2021-08-20 11:04:11,182: DEBUG - 320615 The service seahub has correctly executed the action start. 2021-08-20 11:04:11,183: DEBUG - 320615 + break 2021-08-20 11:04:11,184: DEBUG - 320615 + '[' 2 -ge 3 ']' 2021-08-20 11:04:11,184: DEBUG - 320615 + '[' 2 -eq 300 ']' 2021-08-20 11:04:11,184: DEBUG - 320615 + ynh_clean_check_starting 2021-08-20 11:04:11,184: DEBUG - 320615 + '[' -n 15108 ']' 2021-08-20 11:04:11,184: DEBUG - 320615 + kill -SIGTERM 15108 2021-08-20 11:04:11,184: DEBUG - 320615 + '[' -n /tmp/tmp.YLJmJbjtrq ']' 2021-08-20 11:04:11,184: DEBUG - 320615 + ynh_secure_remove --file=/tmp/tmp.YLJmJbjtrq 2021-08-20 11:04:11,188: DEBUG - 320620 + local 'forbidden_path= /var/www /home/yunohost.app' 2021-08-20 11:04:11,188: DEBUG - 320621 + '[' 1 -ge 2 ']' 2021-08-20 11:04:11,188: DEBUG - 320621 + [[ -z /tmp/tmp.YLJmJbjtrq ]] 2021-08-20 11:04:11,188: DEBUG - 320621 + [[ /var/www /home/yunohost.app =~ /tmp/tmp\.YLJmJbjtrq ]] 2021-08-20 11:04:11,188: DEBUG - 320621 + [[ /tmp/tmp.YLJmJbjtrq =~ ^/[[:alnum:]]+$ ]] 2021-08-20 11:04:11,189: DEBUG - 320621 + [[ q = \/ ]] 2021-08-20 11:04:11,189: DEBUG - 320621 + '[' -e /tmp/tmp.YLJmJbjtrq ']' 2021-08-20 11:04:11,189: DEBUG - 320621 + rm --recursive /tmp/tmp.YLJmJbjtrq 2021-08-20 11:04:11,189: DEBUG - 320621 + sleep 2 2021-08-20 11:04:13,231: DEBUG - 322663 + echo '[####################] > Restoration completed for seafile' 2021-08-20 11:04:13,231: DEBUG - 322664 + ynh_exit_properly 2021-08-20 11:04:13,231: DEBUG - 322664 + local exit_code=0 2021-08-20 11:04:13,231: DEBUG - 322664 + rm -rf /var/cache/yunohost/download/ 2021-08-20 11:04:13,232: DEBUG - 322664 [####################] > Restoration completed for seafile 2021-08-20 11:04:13,232: DEBUG - 322664 + '[' 0 -eq 0 ']' 2021-08-20 11:04:13,232: DEBUG - 322665 + exit 0 2021-08-20 11:04:14,234: DEBUG - 323666 Pour voir le journal de cette opération 'Restaurer 'seafile' depuis une sauvegarde', utilisez la commande 'yunohost log show 20210820-090055-backup_restore_app-seafile20210820-090055-backup_restore_app-seafile' 2021-08-20 11:04:14,394: DEBUG - 323827 The permission database has been resynchronized 2021-08-20 11:04:14,595: WARNING - 324027 YunoHost automatically translated some legacy rules in /etc/ssowat/conf.json.persistent to match the new permission system 2021-08-20 11:04:14,595: DEBUG - 324027 La configuration de SSOwat a été regénérée 2021-08-20 11:04:14,601: DEBUG - 324034 Restauration terminée 2021-08-20 11:04:14,601: DEBUG - 324034 action [11032.1] executed in 323.930s 2021-08-20 11:04:14,601: DEBUG - apps: 2021-08-20 11:04:14,601: DEBUG - seafile: Success 2021-08-20 11:04:14,601: DEBUG - system: 2021-08-20 11:04:14,632: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.' 2021-08-20 11:04:14,642: DEBUG - + ret_code=1 2021-08-20 11:04:14,642: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.' 2021-08-20 11:04:14,642: WARNING - The app was restored to the way it was before the failed upgrade. 2021-08-20 11:04:14,643: DEBUG - + exit 1 2021-08-20 11:04:15,643: ERROR - Impossible de mettre à jour seafile : Une erreur s’est produite durant l’exécution du script de mise à niveau de l’application