ended_at: 2021-11-30 15:46:34.242753 env: BASH_XTRACEFD: '7' NO_BACKUP_UPGRADE: '0' YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3 YNH_APP_CURRENT_VERSION: 1.5.0~ynh2 YNH_APP_ID: roundcube YNH_APP_INSTANCE_NAME: roundcube YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 1.5.1~ynh1 YNH_APP_UPGRADE_TYPE: UPGRADE_FULL YNH_ARCH: amd64 YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/scripts YNH_INTERFACE: cli YNH_STDRETURN: /tmp/tmpp2x1y8vc/stdreturn error: "Une erreur s'est produite durant l'ex\xE9cution du script de mise \xE0 niveau\ \ de l'application" interface: cli operation: app_upgrade parent: null related_to: - - app - roundcube started_at: 2021-11-30 15:45:36.430013 success: false yunohost_version: 4.3.4.1 ============ 2021-11-30 16:45:36,442: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 2021-11-30 16:45:36,449: DEBUG - + source _common.sh 2021-11-30 16:45:36,450: DEBUG - ++ YNH_PHP_VERSION=7.3 2021-11-30 16:45:36,450: DEBUG - ++ pkg_dependencies='php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:45:36,451: DEBUG - ++ YNH_COMPOSER_VERSION=2.1.1 2021-11-30 16:45:36,451: DEBUG - ++ contextmenu_version=3.2.1 2021-11-30 16:45:36,451: DEBUG - ++ automatic_addressbook_version=v0.4.3 2021-11-30 16:45:36,452: DEBUG - ++ carddav_version=3.0.3 2021-11-30 16:45:36,452: DEBUG - + source /usr/share/yunohost/helpers 2021-11-30 16:45:36,473: DEBUG - +++ grep xtrace 2021-11-30 16:45:36,476: DEBUG - +++ set +o 2021-11-30 16:45:36,478: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-11-30 16:45:36,478: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2021-11-30 16:45:36,606: DEBUG - + app=roundcube 2021-11-30 16:45:36,606: INFO - [....................] > Loading installation settings... 2021-11-30 16:45:36,607: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=domain 2021-11-30 16:45:36,607: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:36,647: DEBUG - ++ app=roundcube 2021-11-30 16:45:36,647: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:36,647: DEBUG - ++ ynh_app_setting get roundcube domain 2021-11-30 16:45:36,706: DEBUG - + domain=maindomain.tld 2021-11-30 16:45:36,707: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=path 2021-11-30 16:45:36,707: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:36,746: DEBUG - ++ app=roundcube 2021-11-30 16:45:36,746: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:36,746: DEBUG - ++ ynh_app_setting get roundcube path 2021-11-30 16:45:36,799: DEBUG - + path_url=/webmail 2021-11-30 16:45:36,800: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=final_path 2021-11-30 16:45:36,801: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:36,838: DEBUG - ++ app=roundcube 2021-11-30 16:45:36,838: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:36,839: DEBUG - ++ ynh_app_setting get roundcube final_path 2021-11-30 16:45:36,889: DEBUG - + final_path=/var/www/roundcube 2021-11-30 16:45:36,890: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=db_name 2021-11-30 16:45:36,891: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:36,927: DEBUG - ++ app=roundcube 2021-11-30 16:45:36,927: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:36,927: DEBUG - ++ ynh_app_setting get roundcube db_name 2021-11-30 16:45:36,983: DEBUG - + db_name=roundcube 2021-11-30 16:45:36,983: DEBUG - + db_user=roundcube 2021-11-30 16:45:36,984: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=with_carddav 2021-11-30 16:45:36,984: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:37,022: DEBUG - ++ app=roundcube 2021-11-30 16:45:37,022: DEBUG - ++ [[ with_carddav =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:37,022: DEBUG - ++ ynh_app_setting get roundcube with_carddav 2021-11-30 16:45:37,073: DEBUG - + with_carddav=0 2021-11-30 16:45:37,074: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=phpversion 2021-11-30 16:45:37,075: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:37,109: DEBUG - ++ app=roundcube 2021-11-30 16:45:37,109: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:37,109: DEBUG - ++ ynh_app_setting get roundcube phpversion 2021-11-30 16:45:37,160: DEBUG - + phpversion=7.3 2021-11-30 16:45:37,161: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=language 2021-11-30 16:45:37,161: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:37,195: DEBUG - ++ app=roundcube 2021-11-30 16:45:37,196: DEBUG - ++ [[ language =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:37,196: DEBUG - ++ ynh_app_setting get roundcube language 2021-11-30 16:45:37,251: DEBUG - + language=fr_FR 2021-11-30 16:45:37,251: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=mysqlpwd 2021-11-30 16:45:37,252: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:37,286: DEBUG - ++ app=roundcube 2021-11-30 16:45:37,287: DEBUG - ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:37,287: DEBUG - ++ ynh_app_setting get roundcube mysqlpwd 2021-11-30 16:45:37,338: DEBUG - + db_pwd=********** 2021-11-30 16:45:37,339: DEBUG - ++ ynh_check_app_version_changed 2021-11-30 16:45:37,340: DEBUG - ++ local return_value=UPGRADE_FULL 2021-11-30 16:45:37,340: DEBUG - ++ '[' UPGRADE_FULL == UPGRADE_FULL ']' 2021-11-30 16:45:37,340: DEBUG - ++ return_value=UPGRADE_APP 2021-11-30 16:45:37,341: DEBUG - ++ echo UPGRADE_APP 2021-11-30 16:45:37,342: DEBUG - + upgrade_type=UPGRADE_APP 2021-11-30 16:45:37,420: DEBUG - + ynh_backup_before_upgrade 2021-11-30 16:45:37,420: DEBUG - + '[' '!' -e /etc/yunohost/apps/roundcube/scripts/backup ']' 2021-11-30 16:45:37,420: DEBUG - + backup_number=1 2021-11-30 16:45:37,420: DEBUG - + local old_backup_number=2 2021-11-30 16:45:37,420: DEBUG - + local app_bck=roundcube 2021-11-30 16:45:37,421: DEBUG - + NO_BACKUP_UPGRADE=0 2021-11-30 16:45:37,421: DEBUG - + ynh_backup_archive_exists roundcube-pre-upgrade1 2021-11-30 16:45:37,421: INFO - [+...................] > Backing up roundcube before upgrading (may take a while)... 2021-11-30 16:45:37,422: DEBUG - + jq -e --arg archive roundcube-pre-upgrade1 '.archives | index($archive)' 2021-11-30 16:45:37,422: DEBUG - + yunohost backup list --output-as json --quiet 2021-11-30 16:45:37,841: DEBUG - + backup_number=2 2021-11-30 16:45:37,841: DEBUG - + old_backup_number=1 2021-11-30 16:45:37,842: DEBUG - + BACKUP_CORE_ONLY=1 2021-11-30 16:45:37,842: DEBUG - + yunohost backup create --apps roundcube --name roundcube-pre-upgrade2 --debug 2021-11-30 16:45:37,991: DEBUG - 112 initializing base actions map parser for cli 2021-11-30 16:45:37,993: DEBUG - 114 loading actions map namespace 'yunohost' 2021-11-30 16:45:37,996: DEBUG - 118 building parser... 2021-11-30 16:45:38,001: DEBUG - 122 building parser took 0.004s 2021-11-30 16:45:38,002: DEBUG - 124 acquiring lock... 2021-11-30 16:45:38,034: DEBUG - 155 loading python module yunohost.backup took 0.019s 2021-11-30 16:45:38,035: DEBUG - 156 processing action [17083.1]: yunohost.backup.create with args={'name': 'roundcube-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['roundcube'], 'dry_run': False} 2021-11-30 16:45:38,203: DEBUG - 322 Collecte des fichiers devant être sauvegardés pour roundcube... 2021-11-30 16:45:38,240: DEBUG - 361 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_23b83xx6/scripts/backup" 7>&1']' 2021-11-30 16:45:38,248: DEBUG - 369 + source ../settings/scripts/_common.sh 2021-11-30 16:45:38,248: DEBUG - 370 ++ YNH_PHP_VERSION=7.3 2021-11-30 16:45:38,249: DEBUG - 371 ++ pkg_dependencies='php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:45:38,250: DEBUG - 371 ++ YNH_COMPOSER_VERSION=2.1.1 2021-11-30 16:45:38,250: DEBUG - 372 ++ contextmenu_version=3.2.1 2021-11-30 16:45:38,251: DEBUG - 372 ++ automatic_addressbook_version=v0.4.3 2021-11-30 16:45:38,251: DEBUG - 373 ++ carddav_version=3.0.3 2021-11-30 16:45:38,252: DEBUG - 373 + source /usr/share/yunohost/helpers 2021-11-30 16:45:38,254: DEBUG - 375 +++ grep xtrace 2021-11-30 16:45:38,256: DEBUG - 377 +++ set +o 2021-11-30 16:45:38,258: DEBUG - 379 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-11-30 16:45:38,258: DEBUG - 379 ++ XTRACE_ENABLE='set -o xtrace' 2021-11-30 16:45:38,289: DEBUG - 411 + ynh_abort_if_errors 2021-11-30 16:45:38,291: DEBUG - 413 + trap ynh_exit_properly EXIT 2021-11-30 16:45:38,292: DEBUG - 413 + ynh_print_info '--message=Loading installation settings...' 2021-11-30 16:45:38,308: DEBUG - 429 + echo 'Loading installation settings...' 2021-11-30 16:45:38,308: DEBUG - 429 + app=roundcube 2021-11-30 16:45:38,308: DEBUG - 429 Loading installation settings... 2021-11-30 16:45:38,309: DEBUG - 431 ++ ynh_app_setting_get --app=roundcube --key=final_path 2021-11-30 16:45:38,310: DEBUG - 431 ++ local _globalapp=roundcube 2021-11-30 16:45:38,349: DEBUG - 470 ++ app=roundcube 2021-11-30 16:45:38,349: DEBUG - 470 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:38,349: DEBUG - 470 ++ ynh_app_setting get roundcube final_path 2021-11-30 16:45:38,467: DEBUG - 588 + final_path=/var/www/roundcube 2021-11-30 16:45:38,469: DEBUG - 590 ++ ynh_app_setting_get --app=roundcube --key=domain 2021-11-30 16:45:38,470: DEBUG - 591 ++ local _globalapp=roundcube 2021-11-30 16:45:38,509: DEBUG - 630 ++ app=roundcube 2021-11-30 16:45:38,510: DEBUG - 631 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:38,510: DEBUG - 631 ++ ynh_app_setting get roundcube domain 2021-11-30 16:45:38,574: DEBUG - 695 + domain=maindomain.tld 2021-11-30 16:45:38,575: DEBUG - 697 ++ ynh_app_setting_get --app=roundcube --key=db_name 2021-11-30 16:45:38,576: DEBUG - 698 ++ local _globalapp=roundcube 2021-11-30 16:45:38,617: DEBUG - 738 ++ app=roundcube 2021-11-30 16:45:38,617: DEBUG - 738 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:38,617: DEBUG - 738 ++ ynh_app_setting get roundcube db_name 2021-11-30 16:45:38,674: DEBUG - 795 + db_name=roundcube 2021-11-30 16:45:38,674: DEBUG - 795 + phpversion=7.3 2021-11-30 16:45:38,674: DEBUG - 795 + ynh_print_info '--message=Declaring files to be backed up...' 2021-11-30 16:45:38,687: DEBUG - 808 + echo 'Declaring files to be backed up...' 2021-11-30 16:45:38,688: DEBUG - 808 + ynh_backup --src_path=/var/www/roundcube 2021-11-30 16:45:38,701: DEBUG - 809 Declaring files to be backed up... 2021-11-30 16:45:38,733: DEBUG - 854 + dest_path= 2021-11-30 16:45:38,733: DEBUG - 854 + is_big=0 2021-11-30 16:45:38,734: DEBUG - 855 + not_mandatory=0 2021-11-30 16:45:38,734: DEBUG - 855 + BACKUP_CORE_ONLY=1 2021-11-30 16:45:38,734: DEBUG - 855 + test -n roundcube 2021-11-30 16:45:38,735: DEBUG - 856 ++ ynh_app_setting_get --app=roundcube --key=do_not_backup_data 2021-11-30 16:45:38,735: DEBUG - 857 ++ local _globalapp=roundcube 2021-11-30 16:45:38,781: DEBUG - 902 ++ app=roundcube 2021-11-30 16:45:38,782: DEBUG - 903 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:38,783: DEBUG - 904 ++ ynh_app_setting get roundcube do_not_backup_data 2021-11-30 16:45:38,845: DEBUG - 967 + do_not_backup_data= 2021-11-30 16:45:38,846: DEBUG - 967 + '[' '!' -e /var/www/roundcube ']' 2021-11-30 16:45:38,847: DEBUG - 968 ++ realpath /var/www/roundcube 2021-11-30 16:45:38,850: DEBUG - 971 + src_path=/var/www/roundcube 2021-11-30 16:45:38,850: DEBUG - 971 + [[ -z '' ]] 2021-11-30 16:45:38,850: DEBUG - 971 + dest_path=var/www/roundcube 2021-11-30 16:45:38,850: DEBUG - 971 + [[ -e var/www/roundcube ]] 2021-11-30 16:45:38,850: DEBUG - 971 + local rel_dir=/apps/roundcube/backup 2021-11-30 16:45:38,850: DEBUG - 971 + rel_dir=/apps/roundcube/backup/ 2021-11-30 16:45:38,850: DEBUG - 971 + dest_path=/apps/roundcube/backup/var/www/roundcube 2021-11-30 16:45:38,851: DEBUG - 971 + dest_path=apps/roundcube/backup/var/www/roundcube 2021-11-30 16:45:38,852: DEBUG - 974 ++ sed --regexp-extended 's/"/\"\"/g' 2021-11-30 16:45:38,854: DEBUG - 976 ++ echo /var/www/roundcube 2021-11-30 16:45:38,856: DEBUG - 977 + local src=/var/www/roundcube 2021-11-30 16:45:38,857: DEBUG - 979 ++ sed --regexp-extended 's/"/\"\"/g' 2021-11-30 16:45:38,859: DEBUG - 981 ++ echo apps/roundcube/backup/var/www/roundcube 2021-11-30 16:45:38,861: DEBUG - 982 + local dest=apps/roundcube/backup/var/www/roundcube 2021-11-30 16:45:38,861: DEBUG - 983 + echo '"/var/www/roundcube","apps/roundcube/backup/var/www/roundcube"' 2021-11-30 16:45:38,862: DEBUG - 984 ++ dirname /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/var/www/roundcube 2021-11-30 16:45:38,864: DEBUG - 985 + mkdir --parents /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/var/www 2021-11-30 16:45:38,867: DEBUG - 988 + ynh_backup --src_path=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:38,901: DEBUG - 1022 + dest_path= 2021-11-30 16:45:38,902: DEBUG - 1022 + is_big=0 2021-11-30 16:45:38,902: DEBUG - 1023 + not_mandatory=0 2021-11-30 16:45:38,902: DEBUG - 1023 + BACKUP_CORE_ONLY=1 2021-11-30 16:45:38,902: DEBUG - 1023 + test -n roundcube 2021-11-30 16:45:38,903: DEBUG - 1024 ++ ynh_app_setting_get --app=roundcube --key=do_not_backup_data 2021-11-30 16:45:38,904: DEBUG - 1025 ++ local _globalapp=roundcube 2021-11-30 16:45:38,943: DEBUG - 1062 ++ app=roundcube 2021-11-30 16:45:38,962: DEBUG - 1062 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:38,962: DEBUG - 1062 ++ ynh_app_setting get roundcube do_not_backup_data 2021-11-30 16:45:39,018: DEBUG - 1139 + do_not_backup_data= 2021-11-30 16:45:39,018: DEBUG - 1140 + '[' '!' -e /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf ']' 2021-11-30 16:45:39,019: DEBUG - 1141 ++ realpath /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,023: DEBUG - 1143 + src_path=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,023: DEBUG - 1144 + [[ -z '' ]] 2021-11-30 16:45:39,023: DEBUG - 1144 + dest_path=etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,023: DEBUG - 1144 + [[ -e etc/nginx/conf.d/maindomain.tld.d/roundcube.conf ]] 2021-11-30 16:45:39,023: DEBUG - 1144 + local rel_dir=/apps/roundcube/backup 2021-11-30 16:45:39,023: DEBUG - 1144 + rel_dir=/apps/roundcube/backup/ 2021-11-30 16:45:39,023: DEBUG - 1144 + dest_path=/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,023: DEBUG - 1144 + dest_path=apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,025: DEBUG - 1147 ++ sed --regexp-extended 's/"/\"\"/g' 2021-11-30 16:45:39,027: DEBUG - 1149 ++ echo /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,029: DEBUG - 1151 + local src=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,030: DEBUG - 1152 ++ sed --regexp-extended 's/"/\"\"/g' 2021-11-30 16:45:39,032: DEBUG - 1154 ++ echo apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,034: DEBUG - 1156 + local dest=apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,035: DEBUG - 1156 + echo '"/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf","apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf"' 2021-11-30 16:45:39,036: DEBUG - 1157 ++ dirname /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:39,037: DEBUG - 1159 + mkdir --parents /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d 2021-11-30 16:45:39,041: DEBUG - 1162 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,076: DEBUG - 1197 + dest_path= 2021-11-30 16:45:39,076: DEBUG - 1197 + is_big=0 2021-11-30 16:45:39,076: DEBUG - 1197 + not_mandatory=0 2021-11-30 16:45:39,076: DEBUG - 1197 + BACKUP_CORE_ONLY=1 2021-11-30 16:45:39,076: DEBUG - 1197 + test -n roundcube 2021-11-30 16:45:39,077: DEBUG - 1199 ++ ynh_app_setting_get --app=roundcube --key=do_not_backup_data 2021-11-30 16:45:39,078: DEBUG - 1200 ++ local _globalapp=roundcube 2021-11-30 16:45:39,116: DEBUG - 1237 ++ app=roundcube 2021-11-30 16:45:39,116: DEBUG - 1237 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:39,116: DEBUG - 1237 ++ ynh_app_setting get roundcube do_not_backup_data 2021-11-30 16:45:39,167: DEBUG - 1288 + do_not_backup_data= 2021-11-30 16:45:39,167: DEBUG - 1288 + '[' '!' -e /etc/php/7.3/fpm/pool.d/roundcube.conf ']' 2021-11-30 16:45:39,168: DEBUG - 1290 ++ realpath /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,171: DEBUG - 1292 + src_path=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,171: DEBUG - 1292 + [[ -z '' ]] 2021-11-30 16:45:39,171: DEBUG - 1292 + dest_path=etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,171: DEBUG - 1292 + [[ -e etc/php/7.3/fpm/pool.d/roundcube.conf ]] 2021-11-30 16:45:39,172: DEBUG - 1292 + local rel_dir=/apps/roundcube/backup 2021-11-30 16:45:39,172: DEBUG - 1293 + rel_dir=/apps/roundcube/backup/ 2021-11-30 16:45:39,172: DEBUG - 1293 + dest_path=/apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,172: DEBUG - 1293 + dest_path=apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,173: DEBUG - 1295 ++ sed --regexp-extended 's/"/\"\"/g' 2021-11-30 16:45:39,176: DEBUG - 1297 ++ echo /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,177: DEBUG - 1299 + local src=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,178: DEBUG - 1300 ++ sed --regexp-extended 's/"/\"\"/g' 2021-11-30 16:45:39,180: DEBUG - 1302 ++ echo apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,182: DEBUG - 1304 + local dest=apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,183: DEBUG - 1304 + echo '"/etc/php/7.3/fpm/pool.d/roundcube.conf","apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf"' 2021-11-30 16:45:39,183: DEBUG - 1305 ++ dirname /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:39,196: DEBUG - 1317 + mkdir --parents /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/php/7.3/fpm/pool.d 2021-11-30 16:45:39,200: DEBUG - 1321 + ynh_print_info '--message=Backing up the MySQL database...' 2021-11-30 16:45:39,214: DEBUG - 1335 + echo 'Backing up the MySQL database...' 2021-11-30 16:45:39,215: DEBUG - 1335 + ynh_mysql_dump_db --database=roundcube 2021-11-30 16:45:39,215: DEBUG - 1336 Backing up the MySQL database... 2021-11-30 16:45:39,228: DEBUG - 1349 + mysqldump --single-transaction --skip-dump-date roundcube 2021-11-30 16:45:39,273: DEBUG - 1394 + ynh_print_info '--message=Backup script completed for roundcube. (YunoHost will then actually copy those files to the archive).' 2021-11-30 16:45:39,287: DEBUG - 1408 + echo 'Backup script completed for roundcube. (YunoHost will then actually copy those files to the archive).' 2021-11-30 16:45:39,287: DEBUG - 1408 + ynh_exit_properly 2021-11-30 16:45:39,287: DEBUG - 1408 Backup script completed for roundcube. (YunoHost will then actually copy those files to the archive). 2021-11-30 16:45:39,289: DEBUG - 1411 + exit 0 2021-11-30 16:45:40,295: DEBUG - 2417 Permission de sauvegarde pour roundcube 2021-11-30 16:45:40,364: DEBUG - 2486 initializing ldap interface 2021-11-30 16:45:40,479: DEBUG - 2600 Création d'une archive de sauvegarde à partir des fichiers collectés ... 2021-11-30 16:45:40,480: DEBUG - 2602 L'archive contiendra environ 91.0MiB de données. 2021-11-30 16:45:40,481: DEBUG - 2603 Création de l'archive TAR de la sauvegarde ... 2021-11-30 16:45:47,319: DEBUG - 9440 L'archive TAR de la sauvegarde a été créée 2021-11-30 16:45:47,322: DEBUG - 9443 Sauvegarde terminée 2021-11-30 16:45:47,327: DEBUG - 9448 Pour voir le journal de cette opération 'Créer une archive de sauvegarde', utilisez la commande 'yunohost log show 20211130-154538-backup_create' 2021-11-30 16:45:47,343: DEBUG - 9465 action [17083.1] executed in 9.308s 2021-11-30 16:45:47,344: DEBUG - name: roundcube-pre-upgrade2 2021-11-30 16:45:47,344: DEBUG - results: 2021-11-30 16:45:47,345: DEBUG - apps: 2021-11-30 16:45:47,345: DEBUG - roundcube: Success 2021-11-30 16:45:47,345: DEBUG - system: 2021-11-30 16:45:47,345: DEBUG - size: 95461957 2021-11-30 16:45:47,422: DEBUG - + ynh_backup_archive_exists roundcube-pre-upgrade1 2021-11-30 16:45:47,423: DEBUG - + jq -e --arg archive roundcube-pre-upgrade1 '.archives | index($archive)' 2021-11-30 16:45:47,424: DEBUG - + yunohost backup list --output-as json --quiet 2021-11-30 16:45:47,747: DEBUG - + yunohost backup delete roundcube-pre-upgrade1 2021-11-30 16:45:47,991: DEBUG - + ynh_abort_if_errors 2021-11-30 16:45:47,992: DEBUG - + trap ynh_exit_properly EXIT 2021-11-30 16:45:48,071: DEBUG - + '[' -z roundcube ']' 2021-11-30 16:45:48,071: DEBUG - + '[' -z /var/www/roundcube ']' 2021-11-30 16:45:48,071: DEBUG - + '[' -z 0 ']' 2021-11-30 16:45:48,071: DEBUG - + '[' -z fr_FR ']' 2021-11-30 16:45:48,071: DEBUG - + ynh_legacy_permissions_exists 2021-11-30 16:45:48,071: DEBUG - + for permission in "skipped" "unprotected" "protected" 2021-11-30 16:45:48,071: DEBUG - + ynh_permission_exists --permission=legacy_skipped_uris 2021-11-30 16:45:48,072: INFO - [#...................] > Ensuring downward compatibility... 2021-11-30 16:45:48,084: DEBUG - + jq -e --arg perm roundcube.legacy_skipped_uris '.permissions[$perm]' 2021-11-30 16:45:48,088: DEBUG - + yunohost user permission list roundcube --output-as json --quiet 2021-11-30 16:45:48,427: DEBUG - + for permission in "skipped" "unprotected" "protected" 2021-11-30 16:45:48,428: DEBUG - + ynh_permission_exists --permission=legacy_unprotected_uris 2021-11-30 16:45:48,439: DEBUG - + jq -e --arg perm roundcube.legacy_unprotected_uris '.permissions[$perm]' 2021-11-30 16:45:48,444: DEBUG - + yunohost user permission list roundcube --output-as json --quiet 2021-11-30 16:45:48,802: DEBUG - + for permission in "skipped" "unprotected" "protected" 2021-11-30 16:45:48,802: DEBUG - + ynh_permission_exists --permission=legacy_protected_uris 2021-11-30 16:45:48,816: DEBUG - + jq -e --arg perm roundcube.legacy_protected_uris '.permissions[$perm]' 2021-11-30 16:45:48,820: DEBUG - + yunohost user permission list roundcube --output-as json --quiet 2021-11-30 16:45:49,139: DEBUG - + return 1 2021-11-30 16:45:49,226: DEBUG - + ynh_system_user_create --username=roundcube --home_dir=/var/www/roundcube 2021-11-30 16:45:49,227: INFO - [#+..................] > Making sure dedicated system user exists... 2021-11-30 16:45:49,292: DEBUG - + use_shell=0 2021-11-30 16:45:49,292: DEBUG - + home_dir=/var/www/roundcube 2021-11-30 16:45:49,292: DEBUG - + groups= 2021-11-30 16:45:49,292: DEBUG - + ynh_system_user_exists roundcube 2021-11-30 16:45:49,304: DEBUG - + getent passwd roundcube 2021-11-30 16:45:49,309: DEBUG - ++ cut '-d'\''' -f4 2021-11-30 16:45:49,311: DEBUG - ++ grep RCMAIL_VERSION /var/www/roundcube/program/include/iniset.php 2021-11-30 16:45:49,315: DEBUG - + oldversion=1.5.0 2021-11-30 16:45:49,315: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']' 2021-11-30 16:45:49,397: DEBUG - + ynh_setup_source --dest_dir=/var/www/roundcube 2021-11-30 16:45:49,398: INFO - [##..................] > Upgrading source files... 2021-11-30 16:45:49,424: DEBUG - + source_id=app 2021-11-30 16:45:49,424: DEBUG - + keep= 2021-11-30 16:45:49,424: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,426: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,428: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,431: DEBUG - + local src_url=https://github.com/roundcube/roundcubemail/releases/download/1.5.1/roundcubemail-1.5.1.tar.gz 2021-11-30 16:45:49,432: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,434: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,437: DEBUG - + local src_sum=ad2e4b061035567a6d19ddbda5275b667e5bd1042b236e6d410a305c34569931 2021-11-30 16:45:49,438: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,440: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,442: DEBUG - + local src_sumprg=sha256sum 2021-11-30 16:45:49,443: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,445: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,448: DEBUG - + local src_format=tar.gz 2021-11-30 16:45:49,450: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,452: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,454: DEBUG - + local src_extract= 2021-11-30 16:45:49,455: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,457: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,460: DEBUG - + local src_in_subdir=true 2021-11-30 16:45:49,461: DEBUG - ++ cut --delimiter== --fields=2- 2021-11-30 16:45:49,463: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/app.src 2021-11-30 16:45:49,465: DEBUG - + local src_filename= 2021-11-30 16:45:49,466: DEBUG - + src_sumprg=sha256sum 2021-11-30 16:45:49,466: DEBUG - + src_in_subdir=true 2021-11-30 16:45:49,466: DEBUG - + src_format=tar.gz 2021-11-30 16:45:49,467: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2021-11-30 16:45:49,469: DEBUG - ++ echo tar.gz 2021-11-30 16:45:49,471: DEBUG - + src_format=tar.gz 2021-11-30 16:45:49,472: DEBUG - + src_extract=true 2021-11-30 16:45:49,472: DEBUG - + '[' '' = '' ']' 2021-11-30 16:45:49,472: DEBUG - + src_filename=app.tar.gz 2021-11-30 16:45:49,472: DEBUG - + local local_src=/opt/yunohost-apps-src/roundcube/app.tar.gz 2021-11-30 16:45:49,472: DEBUG - + mkdir -p /var/cache/yunohost/download/roundcube/ 2021-11-30 16:45:49,474: DEBUG - + src_filename=/var/cache/yunohost/download/roundcube/app.tar.gz 2021-11-30 16:45:49,475: DEBUG - + test -e /opt/yunohost-apps-src/roundcube/app.tar.gz 2021-11-30 16:45:49,475: DEBUG - + '[' -n https://github.com/roundcube/roundcubemail/releases/download/1.5.1/roundcubemail-1.5.1.tar.gz ']' 2021-11-30 16:45:49,476: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/roundcube/app.tar.gz https://github.com/roundcube/roundcubemail/releases/download/1.5.1/roundcubemail-1.5.1.tar.gz 2021-11-30 16:45:50,316: DEBUG - + out='2021-11-30 16:45:50 URL:https://github-releases.githubusercontent.com/4224042/8cfdaa16-e2f5-4c65-8096-01988a31e7fa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211130T154549Z&X-Amz-Expires=300&X-Amz-Signature=0a99559418c2a52f00b100eb6e12ca8016a3b7bd53e5bab431d98822829e176e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4224042&response-content-disposition=attachment%3B%20filename%3Droundcubemail-1.5.1.tar.gz&response-content-type=application%2Foctet-stream [4555564/4555564] -> "/var/cache/yunohost/download/roundcube/app.tar.gz" [1]' 2021-11-30 16:45:50,317: DEBUG - + sha256sum --check --status 2021-11-30 16:45:50,353: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2021-11-30 16:45:50,355: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:50,356: DEBUG - + mkdir --parents /var/www/roundcube 2021-11-30 16:45:50,357: DEBUG - + '[' -n /var/www/roundcube ']' 2021-11-30 16:45:50,358: DEBUG - + '[' /var/www/roundcube == /var/www/roundcube ']' 2021-11-30 16:45:50,358: DEBUG - + _ynh_apply_default_permissions /var/www/roundcube 2021-11-30 16:45:50,358: DEBUG - + local target=/var/www/roundcube 2021-11-30 16:45:50,359: DEBUG - ++ tr -d '>= ' 2021-11-30 16:45:50,361: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/manifest.json 2021-11-30 16:45:50,366: DEBUG - + local ynh_requirement=4.3.2 2021-11-30 16:45:50,366: DEBUG - + '[' -z 4.3.2 ']' 2021-11-30 16:45:50,366: DEBUG - + '[' 4.3.2 == null ']' 2021-11-30 16:45:50,366: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2021-11-30 16:45:50,370: DEBUG - + chmod o-rwx /var/www/roundcube 2021-11-30 16:45:50,371: DEBUG - + chmod g-w /var/www/roundcube 2021-11-30 16:45:50,373: DEBUG - + chown -R root:root /var/www/roundcube 2021-11-30 16:45:50,400: DEBUG - + ynh_system_user_exists roundcube 2021-11-30 16:45:50,412: DEBUG - + getent passwd roundcube 2021-11-30 16:45:50,414: DEBUG - + chown roundcube:roundcube /var/www/roundcube 2021-11-30 16:45:50,418: DEBUG - + true 2021-11-30 16:45:50,418: DEBUG - + '[' tar.gz = zip ']' 2021-11-30 16:45:50,418: DEBUG - + local strip= 2021-11-30 16:45:50,418: DEBUG - + '[' true '!=' false ']' 2021-11-30 16:45:50,418: DEBUG - + '[' true == true ']' 2021-11-30 16:45:50,418: DEBUG - + local sub_dirs=1 2021-11-30 16:45:50,418: DEBUG - + strip='--strip-components 1' 2021-11-30 16:45:50,418: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2021-11-30 16:45:50,418: DEBUG - + tar --extract --file=/var/cache/yunohost/download/roundcube/app.tar.gz --directory=/var/www/roundcube --strip-components 1 2021-11-30 16:45:51,563: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/roundcube/app.tar.gz 2021-11-30 16:45:51,594: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/patches/ ']' 2021-11-30 16:45:51,595: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/patches/ 2021-11-30 16:45:51,597: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/patches 2021-11-30 16:45:51,598: DEBUG - ++ wc --lines 2021-11-30 16:45:51,600: DEBUG - ++ find /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/patches -type f -name 'app-*.patch' 2021-11-30 16:45:51,604: DEBUG - + (( 1 > 0 )) 2021-11-30 16:45:51,605: DEBUG - + cd /var/www/roundcube 2021-11-30 16:45:51,607: DEBUG - + for p in $patches_folder/${source_id}-*.patch 2021-11-30 16:45:51,607: DEBUG - + echo /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/patches/app-fix-login-page-when-ssoed.patch 2021-11-30 16:45:51,608: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/patches/app-fix-login-page-when-ssoed.patch 2021-11-30 16:45:51,608: DEBUG - + patch --strip=1 2021-11-30 16:45:51,610: DEBUG - patching file index.php 2021-11-30 16:45:51,610: DEBUG - Hunk #1 succeeded at 225 (offset 15 lines). 2021-11-30 16:45:51,612: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/sources/extra_files/app 2021-11-30 16:45:51,612: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:51,612: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2021-11-30 16:45:51,614: DEBUG - + chmod 750 /var/www/roundcube 2021-11-30 16:45:51,615: DEBUG - + chmod -R o-rwx /var/www/roundcube 2021-11-30 16:45:51,642: DEBUG - + chown -R roundcube:www-data /var/www/roundcube 2021-11-30 16:45:51,765: DEBUG - + ynh_add_nginx_config 2021-11-30 16:45:51,765: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:51,765: DEBUG - + '[' /webmail '!=' / ']' 2021-11-30 16:45:51,766: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf 2021-11-30 16:45:51,767: INFO - [##..................] > Upgrading NGINX web server configuration... 2021-11-30 16:45:51,856: DEBUG - + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf 2021-11-30 16:45:51,859: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:51,899: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf//var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf ']' 2021-11-30 16:45:51,899: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf ']' 2021-11-30 16:45:51,899: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf 2021-11-30 16:45:51,899: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:51,911: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf 2021-11-30 16:45:51,912: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf 2021-11-30 16:45:51,913: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:51,957: DEBUG - ++ app=roundcube 2021-11-30 16:45:51,957: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:51,957: DEBUG - ++ ynh_app_setting get roundcube checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf 2021-11-30 16:45:52,023: DEBUG - + local checksum_value= 2021-11-30 16:45:52,024: DEBUG - + backup_file_checksum= 2021-11-30 16:45:52,024: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:52,024: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,026: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,028: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,029: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,032: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,032: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,033: DEBUG - ++ tr -d '>= ' 2021-11-30 16:45:52,036: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/manifest.json 2021-11-30 16:45:52,041: DEBUG - + local ynh_requirement=4.3.2 2021-11-30 16:45:52,041: DEBUG - + '[' -z 4.3.2 ']' 2021-11-30 16:45:52,042: DEBUG - + '[' 4.3.2 == null ']' 2021-11-30 16:45:52,042: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2021-11-30 16:45:52,045: DEBUG - + chmod o-rwx /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,046: DEBUG - + chmod g-w /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,048: DEBUG - + chown -R root:root /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,050: DEBUG - + ynh_system_user_exists roundcube 2021-11-30 16:45:52,064: DEBUG - + getent passwd roundcube 2021-11-30 16:45:52,066: DEBUG - + chown roundcube:roundcube /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,068: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,081: DEBUG - + test -n /webmail 2021-11-30 16:45:52,082: DEBUG - + local path_url_slash_less=/webmail 2021-11-30 16:45:52,082: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,155: DEBUG - + sed --in-place s@__PATH__/@/webmail/@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,158: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,262: DEBUG - + sed --in-place s@__PATH__@/webmail@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,265: DEBUG - + test -n roundcube 2021-11-30 16:45:52,266: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,365: DEBUG - + sed --in-place s@__NAME__@roundcube@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,368: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,448: DEBUG - + sed --in-place s@__NAMETOCHANGE__@roundcube@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,451: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,529: DEBUG - + sed --in-place s@__USER__@roundcube@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,531: DEBUG - + test -n /var/www/roundcube 2021-11-30 16:45:52,532: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/roundcube --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,626: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/roundcube@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,630: DEBUG - + test -n 7.3 2021-11-30 16:45:52,630: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,714: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,717: DEBUG - + test -n '' 2021-11-30 16:45:52,717: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 2021-11-30 16:45:52,719: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2021-11-30 16:45:52,720: DEBUG - ++ sort --unique 2021-11-30 16:45:52,723: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,728: DEBUG - + local delimit=@ 2021-11-30 16:45:52,728: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,729: DEBUG - + update_only=0 2021-11-30 16:45:52,750: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf 2021-11-30 16:45:52,752: DEBUG - ++ cut '--delimiter= ' --fields=1 2021-11-30 16:45:52,754: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:45:52,757: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf --value=c81c288f5f4428952d1240cf402715d7 2021-11-30 16:45:52,757: DEBUG - + local _globalapp=roundcube 2021-11-30 16:45:52,834: DEBUG - + app=roundcube 2021-11-30 16:45:52,834: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:52,834: DEBUG - + ynh_app_setting set roundcube checksum__etc_nginx_conf.d_maindomain.tld.d_roundcube.conf c81c288f5f4428952d1240cf402715d7 2021-11-30 16:45:52,893: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:52,893: DEBUG - + unset backup_file_checksum 2021-11-30 16:45:52,893: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2021-11-30 16:45:52,993: DEBUG - + service_name=nginx 2021-11-30 16:45:52,993: DEBUG - + action=reload 2021-11-30 16:45:52,994: DEBUG - + line_match= 2021-11-30 16:45:52,994: DEBUG - + length=20 2021-11-30 16:45:52,994: DEBUG - + log_path=/var/log/nginx/nginx.log 2021-11-30 16:45:52,994: DEBUG - + timeout=300 2021-11-30 16:45:52,994: DEBUG - + '[' reload == stop ']' 2021-11-30 16:45:52,994: DEBUG - + '[' reload == reload ']' 2021-11-30 16:45:52,994: DEBUG - + action=reload-or-restart 2021-11-30 16:45:52,994: DEBUG - + systemctl reload-or-restart nginx 2021-11-30 16:45:53,352: DEBUG - + ynh_install_app_dependencies php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl 2021-11-30 16:45:53,352: DEBUG - + local 'dependencies=php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:45:53,352: INFO - [##+.................] > Upgrading dependencies... 2021-11-30 16:45:53,353: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2021-11-30 16:45:53,356: DEBUG - ++ echo 'php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:45:53,357: DEBUG - + dependencies='php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl' 2021-11-30 16:45:53,357: DEBUG - + local 'dependencies=php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl' 2021-11-30 16:45:53,357: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/manifest.json 2021-11-30 16:45:53,358: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/manifest.json 2021-11-30 16:45:53,363: DEBUG - + local version=1.5.1~ynh1 2021-11-30 16:45:53,363: DEBUG - + '[' -z 1.5.1~ynh1 ']' 2021-11-30 16:45:53,363: DEBUG - + '[' 1.5.1~ynh1 == null ']' 2021-11-30 16:45:53,363: DEBUG - + local dep_app=roundcube 2021-11-30 16:45:53,363: DEBUG - + [[ php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl =~ [<=>] ]] 2021-11-30 16:45:53,365: DEBUG - ++ sort -u 2021-11-30 16:45:53,367: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 2021-11-30 16:45:53,368: DEBUG - ++ echo php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl 2021-11-30 16:45:53,370: DEBUG - + local specific_php_version=7.3 2021-11-30 16:45:53,371: DEBUG - + [[ 7.3 != \7\.\3 ]] 2021-11-30 16:45:53,371: DEBUG - + specific_php_version= 2021-11-30 16:45:53,371: DEBUG - + [[ true == \t\r\u\e ]] 2021-11-30 16:45:53,371: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2021-11-30 16:45:53,371: DEBUG - + grep --quiet php 2021-11-30 16:45:53,374: DEBUG - + grep --quiet --invert-match 7.0.33-0+deb9 2021-11-30 16:45:53,376: DEBUG - + grep php7.0 2021-11-30 16:45:53,378: DEBUG - + dpkg --list 2021-11-30 16:45:53,419: DEBUG - + grep --recursive --quiet '^ *deb.*sury' /etc/apt/sources.list /etc/apt/sources.list~ /etc/apt/sources.list.d 2021-11-30 16:45:53,421: DEBUG - + cat 2021-11-30 16:45:53,423: DEBUG - + ynh_package_install_from_equivs /tmp/roundcube-ynh-deps.control 2021-11-30 16:45:53,424: DEBUG - + local controlfile=/tmp/roundcube-ynh-deps.control 2021-11-30 16:45:53,425: DEBUG - ++ cut '--delimiter= ' --fields=2 2021-11-30 16:45:53,426: DEBUG - ++ grep '^Package: ' /tmp/roundcube-ynh-deps.control 2021-11-30 16:45:53,429: DEBUG - + local pkgname=roundcube-ynh-deps 2021-11-30 16:45:53,430: DEBUG - ++ cut '--delimiter= ' --fields=2 2021-11-30 16:45:53,431: DEBUG - ++ grep '^Version: ' /tmp/roundcube-ynh-deps.control 2021-11-30 16:45:53,434: DEBUG - + local pkgversion=1.5.1~ynh1 2021-11-30 16:45:53,434: DEBUG - + [[ -z roundcube-ynh-deps ]] 2021-11-30 16:45:53,434: DEBUG - + [[ -z 1.5.1~ynh1 ]] 2021-11-30 16:45:53,434: DEBUG - + ynh_package_update 2021-11-30 16:45:53,434: DEBUG - + ynh_apt update 2021-11-30 16:45:53,434: DEBUG - + ynh_wait_dpkg_free 2021-11-30 16:45:53,531: DEBUG - + return 0 2021-11-30 16:45:53,531: DEBUG - + LC_ALL=C 2021-11-30 16:45:53,531: DEBUG - + DEBIAN_FRONTEND=noninteractive 2021-11-30 16:45:53,531: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2021-11-30 16:45:53,699: DEBUG - Hit:1 http://security.debian.org buster/updates InRelease 2021-11-30 16:45:53,699: DEBUG - Hit:2 http://forge.yunohost.org/debian buster InRelease 2021-11-30 16:45:53,714: DEBUG - Hit:3 https://packages.sury.org/php buster InRelease 2021-11-30 16:45:53,739: DEBUG - Hit:4 http://deb.debian.org/debian buster InRelease 2021-11-30 16:45:53,751: DEBUG - Hit:5 http://deb.debian.org/debian buster-updates InRelease 2021-11-30 16:45:55,728: DEBUG - Reading package lists... 2021-11-30 16:45:55,791: DEBUG - ++ mktemp --directory 2021-11-30 16:45:55,793: DEBUG - + local TMPDIR=/tmp/tmp.JgZHyybV3h 2021-11-30 16:45:55,794: DEBUG - + echo 10 2021-11-30 16:45:56,005: DEBUG - + ynh_wait_dpkg_free 2021-11-30 16:45:56,119: DEBUG - + return 0 2021-11-30 16:45:56,120: DEBUG - + cp /tmp/roundcube-ynh-deps.control /tmp/tmp.JgZHyybV3h/control 2021-11-30 16:45:56,122: DEBUG - + cd /tmp/tmp.JgZHyybV3h 2021-11-30 16:45:56,123: DEBUG - + LC_ALL=C 2021-11-30 16:45:56,123: DEBUG - + equivs-build ./control 2021-11-30 16:45:57,144: DEBUG - + tee ./dpkg_log 2021-11-30 16:45:57,147: DEBUG - + LC_ALL=C 2021-11-30 16:45:57,148: DEBUG - + dpkg --force-depends --install ./roundcube-ynh-deps_1.5.1~ynh1_all.deb 2021-11-30 16:45:57,237: DEBUG - (Reading database ... 50651 files and directories currently installed.) 2021-11-30 16:45:57,240: DEBUG - Preparing to unpack .../roundcube-ynh-deps_1.5.1~ynh1_all.deb ... 2021-11-30 16:45:57,258: DEBUG - Unpacking roundcube-ynh-deps (1.5.1~ynh1) over (1.5.0~ynh2) ... 2021-11-30 16:45:57,293: DEBUG - Setting up roundcube-ynh-deps (1.5.1~ynh1) ... 2021-11-30 16:45:57,351: DEBUG - + ynh_package_install --fix-broken 2021-11-30 16:45:57,351: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-11-30 16:45:57,352: DEBUG - + ynh_wait_dpkg_free 2021-11-30 16:45:57,449: DEBUG - + return 0 2021-11-30 16:45:57,449: DEBUG - + LC_ALL=C 2021-11-30 16:45:57,449: DEBUG - + DEBIAN_FRONTEND=noninteractive 2021-11-30 16:45:57,450: 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-11-30 16:45:58,155: DEBUG - Reading package lists... 2021-11-30 16:45:58,413: DEBUG - Building dependency tree... 2021-11-30 16:45:58,415: DEBUG - Reading state information... 2021-11-30 16:45:58,744: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2021-11-30 16:45:58,746: DEBUG - + [[ -n /tmp/tmp.JgZHyybV3h ]] 2021-11-30 16:45:58,746: DEBUG - + rm --recursive --force /tmp/tmp.JgZHyybV3h 2021-11-30 16:45:58,749: DEBUG - + ynh_package_is_installed roundcube-ynh-deps 2021-11-30 16:45:58,763: DEBUG - + ynh_wait_dpkg_free 2021-11-30 16:45:58,862: DEBUG - + return 0 2021-11-30 16:45:58,863: DEBUG - + grep --count 'ok installed' 2021-11-30 16:45:58,864: DEBUG - + dpkg-query --show '--showformat=${Status}' roundcube-ynh-deps 2021-11-30 16:45:58,884: DEBUG - + rm /tmp/roundcube-ynh-deps.control 2021-11-30 16:45:58,886: DEBUG - + grep --quiet php 2021-11-30 16:45:58,889: DEBUG - + ynh_app_setting_set --app=roundcube --key=phpversion --value=7.3 2021-11-30 16:45:58,890: DEBUG - + local _globalapp=roundcube 2021-11-30 16:45:58,977: DEBUG - + app=roundcube 2021-11-30 16:45:58,977: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:58,977: DEBUG - + ynh_app_setting set roundcube phpversion 7.3 2021-11-30 16:45:59,128: DEBUG - + ynh_add_fpm_config 2021-11-30 16:45:59,129: DEBUG - + package= 2021-11-30 16:45:59,129: DEBUG - + use_template=1 2021-11-30 16:45:59,129: DEBUG - + usage= 2021-11-30 16:45:59,130: DEBUG - + footprint= 2021-11-30 16:45:59,130: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:59,130: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:59,130: DEBUG - + dedicated_service=0 2021-11-30 16:45:59,130: DEBUG - + phpversion=7.3 2021-11-30 16:45:59,130: INFO - [###+................] > Upgrading PHP-FPM configuration... 2021-11-30 16:45:59,131: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=phpversion 2021-11-30 16:45:59,131: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:59,169: DEBUG - ++ app=roundcube 2021-11-30 16:45:59,170: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:59,170: DEBUG - ++ ynh_app_setting get roundcube phpversion 2021-11-30 16:45:59,227: DEBUG - + local old_phpversion=7.3 2021-11-30 16:45:59,227: DEBUG - + '[' -n 7.3 ']' 2021-11-30 16:45:59,227: DEBUG - + '[' 7.3 '!=' 7.3 ']' 2021-11-30 16:45:59,228: DEBUG - + '[' -n '' ']' 2021-11-30 16:45:59,228: DEBUG - + local fpm_service=php7.3-fpm 2021-11-30 16:45:59,228: DEBUG - + local fpm_config_dir=/etc/php/7.3/fpm 2021-11-30 16:45:59,228: DEBUG - + mkdir --parents /etc/php/7.3/fpm/pool.d 2021-11-30 16:45:59,230: DEBUG - + ynh_app_setting_set --app=roundcube --key=fpm_config_dir --value=/etc/php/7.3/fpm 2021-11-30 16:45:59,231: DEBUG - + local _globalapp=roundcube 2021-11-30 16:45:59,314: DEBUG - + app=roundcube 2021-11-30 16:45:59,315: DEBUG - + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:59,315: DEBUG - + ynh_app_setting set roundcube fpm_config_dir /etc/php/7.3/fpm 2021-11-30 16:45:59,372: DEBUG - + ynh_app_setting_set --app=roundcube --key=fpm_service --value=php7.3-fpm 2021-11-30 16:45:59,372: DEBUG - + local _globalapp=roundcube 2021-11-30 16:45:59,445: DEBUG - + app=roundcube 2021-11-30 16:45:59,446: DEBUG - + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:59,446: DEBUG - + ynh_app_setting set roundcube fpm_service php7.3-fpm 2021-11-30 16:45:59,500: DEBUG - + ynh_app_setting_set --app=roundcube --key=fpm_dedicated_service --value=0 2021-11-30 16:45:59,500: DEBUG - + local _globalapp=roundcube 2021-11-30 16:45:59,578: DEBUG - + app=roundcube 2021-11-30 16:45:59,578: DEBUG - + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:59,578: DEBUG - + ynh_app_setting set roundcube fpm_dedicated_service 0 2021-11-30 16:45:59,636: DEBUG - + ynh_app_setting_set --app=roundcube --key=phpversion --value=7.3 2021-11-30 16:45:59,636: DEBUG - + local _globalapp=roundcube 2021-11-30 16:45:59,713: DEBUG - + app=roundcube 2021-11-30 16:45:59,714: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:59,714: DEBUG - + ynh_app_setting set roundcube phpversion 7.3 2021-11-30 16:45:59,783: DEBUG - + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf 2021-11-30 16:45:59,783: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf ']' 2021-11-30 16:45:59,783: DEBUG - + local finalphpconf=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,783: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,821: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf//var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf ']' 2021-11-30 16:45:59,821: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf ']' 2021-11-30 16:45:59,821: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf 2021-11-30 16:45:59,822: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,833: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:45:59,834: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:45:59,835: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:45:59,874: DEBUG - ++ app=roundcube 2021-11-30 16:45:59,874: DEBUG - ++ [[ checksum__etc_php_7.3_fpm_pool.d_roundcube.conf =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:45:59,874: DEBUG - ++ ynh_app_setting get roundcube checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:45:59,929: DEBUG - + local checksum_value=6b280cad08a3e51a185aab8120f5c402 2021-11-30 16:45:59,929: DEBUG - + backup_file_checksum= 2021-11-30 16:45:59,929: DEBUG - + '[' -n 6b280cad08a3e51a185aab8120f5c402 ']' 2021-11-30 16:45:59,929: DEBUG - + '[' -e /etc/php/7.3/fpm/pool.d/roundcube.conf ']' 2021-11-30 16:45:59,930: DEBUG - + md5sum --check --status 2021-11-30 16:45:59,933: DEBUG - + touch /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,935: DEBUG - + chown root:root /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,937: DEBUG - + chmod 640 /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,938: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,940: DEBUG - + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,941: DEBUG - + local target=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,942: DEBUG - ++ tr -d '>= ' 2021-11-30 16:45:59,944: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/manifest.json 2021-11-30 16:45:59,949: DEBUG - + local ynh_requirement=4.3.2 2021-11-30 16:45:59,949: DEBUG - + '[' -z 4.3.2 ']' 2021-11-30 16:45:59,949: DEBUG - + '[' 4.3.2 == null ']' 2021-11-30 16:45:59,949: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2021-11-30 16:45:59,952: DEBUG - + chmod o-rwx /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,954: DEBUG - + chmod g-w /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,955: DEBUG - + chown -R root:root /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,957: DEBUG - + ynh_system_user_exists roundcube 2021-11-30 16:45:59,970: DEBUG - + getent passwd roundcube 2021-11-30 16:45:59,971: DEBUG - + chown roundcube:roundcube /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,973: DEBUG - + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:45:59,985: DEBUG - + test -n /webmail 2021-11-30 16:45:59,985: DEBUG - + local path_url_slash_less=/webmail 2021-11-30 16:45:59,985: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,056: DEBUG - + sed --in-place s@__PATH__/@/webmail/@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,059: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,141: DEBUG - + sed --in-place s@__PATH__@/webmail@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,144: DEBUG - + test -n roundcube 2021-11-30 16:46:00,144: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,228: DEBUG - + sed --in-place s@__NAME__@roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,231: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,327: DEBUG - + sed --in-place s@__NAMETOCHANGE__@roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,330: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,408: DEBUG - + sed --in-place s@__USER__@roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,411: DEBUG - + test -n /var/www/roundcube 2021-11-30 16:46:00,411: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,486: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,489: DEBUG - + test -n 7.3 2021-11-30 16:46:00,490: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,568: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,571: DEBUG - + test -n '' 2021-11-30 16:46:00,571: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 2021-11-30 16:46:00,573: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2021-11-30 16:46:00,576: DEBUG - ++ sort --unique 2021-11-30 16:46:00,578: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,582: DEBUG - + local delimit=@ 2021-11-30 16:46:00,582: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,583: DEBUG - + update_only=0 2021-11-30 16:46:00,606: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:46:00,607: DEBUG - ++ cut '--delimiter= ' --fields=1 2021-11-30 16:46:00,610: DEBUG - ++ md5sum /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:00,613: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf --value=6b280cad08a3e51a185aab8120f5c402 2021-11-30 16:46:00,613: DEBUG - + local _globalapp=roundcube 2021-11-30 16:46:00,703: DEBUG - + app=roundcube 2021-11-30 16:46:00,704: DEBUG - + [[ checksum__etc_php_7.3_fpm_pool.d_roundcube.conf =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:00,704: DEBUG - + ynh_app_setting set roundcube checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 6b280cad08a3e51a185aab8120f5c402 2021-11-30 16:46:00,780: DEBUG - + '[' -n '' ']' 2021-11-30 16:46:00,780: DEBUG - + unset backup_file_checksum 2021-11-30 16:46:00,780: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/php-fpm.ini ']' 2021-11-30 16:46:00,781: DEBUG - + php-fpm7.3 --test 2021-11-30 16:46:00,942: DEBUG - + ynh_systemd_action --service_name=php7.3-fpm --action=reload 2021-11-30 16:46:01,041: DEBUG - + service_name=php7.3-fpm 2021-11-30 16:46:01,041: DEBUG - + action=reload 2021-11-30 16:46:01,042: DEBUG - + line_match= 2021-11-30 16:46:01,042: DEBUG - + length=20 2021-11-30 16:46:01,042: DEBUG - + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 2021-11-30 16:46:01,042: DEBUG - + timeout=300 2021-11-30 16:46:01,042: DEBUG - + '[' reload == stop ']' 2021-11-30 16:46:01,042: DEBUG - + '[' reload == reload ']' 2021-11-30 16:46:01,042: DEBUG - + action=reload-or-restart 2021-11-30 16:46:01,042: DEBUG - + systemctl reload-or-restart php7.3-fpm 2021-11-30 16:46:01,106: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']' 2021-11-30 16:46:01,382: INFO - [####................] > Reconfiguring Roundcube... 2021-11-30 16:46:01,383: DEBUG - ++ ynh_string_random --length=24 2021-11-30 16:46:01,459: DEBUG - ++ length=24 2021-11-30 16:46:01,460: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p' 2021-11-30 16:46:01,461: DEBUG - ++ tr --complement --delete A-Za-z0-9 2021-11-30 16:46:01,465: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000 2021-11-30 16:46:01,476: DEBUG - + deskey=********** 2021-11-30 16:46:01,476: DEBUG - + ynh_add_config --template=../conf/config.inc.php --destination=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,522: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/../conf/config.inc.php ']' 2021-11-30 16:46:01,522: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/../conf/config.inc.php 2021-11-30 16:46:01,522: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,537: DEBUG - + local checksum_setting_name=checksum__var_www_roundcube_config_config.inc.php 2021-11-30 16:46:01,538: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__var_www_roundcube_config_config.inc.php 2021-11-30 16:46:01,538: DEBUG - ++ local _globalapp=roundcube 2021-11-30 16:46:01,584: DEBUG - ++ app=roundcube 2021-11-30 16:46:01,585: DEBUG - ++ [[ checksum__var_www_roundcube_config_config.inc.php =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:01,585: DEBUG - ++ ynh_app_setting get roundcube checksum__var_www_roundcube_config_config.inc.php 2021-11-30 16:46:01,648: DEBUG - + local checksum_value=9410593c8c99e6d614fe453e096fb881 2021-11-30 16:46:01,648: DEBUG - + backup_file_checksum= 2021-11-30 16:46:01,648: DEBUG - + '[' -n 9410593c8c99e6d614fe453e096fb881 ']' 2021-11-30 16:46:01,649: DEBUG - + '[' -e /var/www/roundcube/config/config.inc.php ']' 2021-11-30 16:46:01,649: DEBUG - + md5sum --check --status 2021-11-30 16:46:01,653: DEBUG - + touch /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,654: DEBUG - + chown root:root /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,656: DEBUG - + chmod 640 /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,658: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/conf/../conf/config.inc.php /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,660: DEBUG - + _ynh_apply_default_permissions /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,660: DEBUG - + local target=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,662: DEBUG - ++ tr -d '>= ' 2021-11-30 16:46:01,664: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ub9je9h3/manifest.json 2021-11-30 16:46:01,670: DEBUG - + local ynh_requirement=4.3.2 2021-11-30 16:46:01,670: DEBUG - + '[' -z 4.3.2 ']' 2021-11-30 16:46:01,670: DEBUG - + '[' 4.3.2 == null ']' 2021-11-30 16:46:01,670: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2021-11-30 16:46:01,674: DEBUG - + chmod o-rwx /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,676: DEBUG - + chmod g-w /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,677: DEBUG - + chown -R root:root /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,680: DEBUG - + ynh_system_user_exists roundcube 2021-11-30 16:46:01,696: DEBUG - + getent passwd roundcube 2021-11-30 16:46:01,698: DEBUG - + chown roundcube:roundcube /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,700: DEBUG - + ynh_replace_vars --file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,715: DEBUG - + test -n /webmail 2021-11-30 16:46:01,716: DEBUG - + local path_url_slash_less=/webmail 2021-11-30 16:46:01,716: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,805: DEBUG - + sed --in-place s@__PATH__/@/webmail/@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,809: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,896: DEBUG - + sed --in-place s@__PATH__@/webmail@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,899: DEBUG - + test -n roundcube 2021-11-30 16:46:01,899: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,989: DEBUG - + sed --in-place s@__NAME__@roundcube@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:01,992: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,087: DEBUG - + sed --in-place s@__NAMETOCHANGE__@roundcube@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,090: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,183: DEBUG - + sed --in-place s@__USER__@roundcube@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,186: DEBUG - + test -n /var/www/roundcube 2021-11-30 16:46:02,186: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/roundcube --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,282: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/roundcube@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,285: DEBUG - + test -n 7.3 2021-11-30 16:46:02,285: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,378: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,385: DEBUG - + test -n '' 2021-11-30 16:46:02,386: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 2021-11-30 16:46:02,388: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2021-11-30 16:46:02,389: DEBUG - ++ sort --unique 2021-11-30 16:46:02,392: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,398: DEBUG - + local delimit=@ 2021-11-30 16:46:02,399: DEBUG - + for one_var in "${uniques_vars[@]}" 2021-11-30 16:46:02,399: DEBUG - + [[ -v db_name ]] 2021-11-30 16:46:02,399: DEBUG - + match_string=__DB_NAME__ 2021-11-30 16:46:02,399: DEBUG - + match_string=__DB_NAME__ 2021-11-30 16:46:02,399: DEBUG - + replace_string=roundcube 2021-11-30 16:46:02,399: DEBUG - + replace_string=roundcube 2021-11-30 16:46:02,399: DEBUG - + replace_string=roundcube 2021-11-30 16:46:02,399: DEBUG - + sed --in-place s@__DB_NAME__@roundcube@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,405: DEBUG - + for one_var in "${uniques_vars[@]}" 2021-11-30 16:46:02,406: DEBUG - + [[ -v db_pwd ]] 2021-11-30 16:46:02,407: DEBUG - + match_string=__DB_PWD__ 2021-11-30 16:46:02,407: DEBUG - + match_string=__DB_PWD__ 2021-11-30 16:46:02,408: DEBUG - + replace_string=********** 2021-11-30 16:46:02,409: DEBUG - + replace_string=********** 2021-11-30 16:46:02,410: DEBUG - + replace_string=********** 2021-11-30 16:46:02,411: DEBUG - + sed --in-place s@__DB_PWD__@**********@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,417: DEBUG - + for one_var in "${uniques_vars[@]}" 2021-11-30 16:46:02,417: DEBUG - + [[ -v deskey ]] 2021-11-30 16:46:02,417: DEBUG - + match_string=__DESKEY__ 2021-11-30 16:46:02,417: DEBUG - + match_string=__DESKEY__ 2021-11-30 16:46:02,418: DEBUG - + replace_string=********** 2021-11-30 16:46:02,418: DEBUG - + replace_string=********** 2021-11-30 16:46:02,418: DEBUG - + replace_string=********** 2021-11-30 16:46:02,418: DEBUG - + sed --in-place s@__DESKEY__@**********@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,423: DEBUG - + for one_var in "${uniques_vars[@]}" 2021-11-30 16:46:02,423: DEBUG - + [[ -v language ]] 2021-11-30 16:46:02,423: DEBUG - + match_string=__LANGUAGE__ 2021-11-30 16:46:02,423: DEBUG - + match_string=__LANGUAGE__ 2021-11-30 16:46:02,424: DEBUG - + replace_string=fr_FR 2021-11-30 16:46:02,424: DEBUG - + replace_string=fr_FR 2021-11-30 16:46:02,424: DEBUG - + replace_string=fr_FR 2021-11-30 16:46:02,425: DEBUG - + sed --in-place s@__LANGUAGE__@fr_FR@g /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,429: DEBUG - + ynh_store_file_checksum --file=/var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,430: DEBUG - + update_only=0 2021-11-30 16:46:02,457: DEBUG - + local checksum_setting_name=checksum__var_www_roundcube_config_config.inc.php 2021-11-30 16:46:02,459: DEBUG - ++ cut '--delimiter= ' --fields=1 2021-11-30 16:46:02,460: DEBUG - ++ md5sum /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:02,464: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__var_www_roundcube_config_config.inc.php --value=c2d7bf5eca38ef3cbaf8078f00649b5a 2021-11-30 16:46:02,465: DEBUG - + local _globalapp=roundcube 2021-11-30 16:46:02,560: DEBUG - + app=roundcube 2021-11-30 16:46:02,560: DEBUG - + [[ checksum__var_www_roundcube_config_config.inc.php =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:02,560: DEBUG - + ynh_app_setting set roundcube checksum__var_www_roundcube_config_config.inc.php c2d7bf5eca38ef3cbaf8078f00649b5a 2021-11-30 16:46:02,625: DEBUG - + '[' -n '' ']' 2021-11-30 16:46:02,626: DEBUG - + unset backup_file_checksum 2021-11-30 16:46:02,736: DEBUG - + ynh_install_composer 2021-11-30 16:46:02,737: DEBUG - + declare -Ar args_array 2021-11-30 16:46:02,738: DEBUG - + workdir=/var/www/roundcube 2021-11-30 16:46:02,738: DEBUG - + phpversion=7.3 2021-11-30 16:46:02,738: DEBUG - + install_args= 2021-11-30 16:46:02,739: DEBUG - + composerversion=2.1.1 2021-11-30 16:46:02,739: INFO - [####+++++++.........] > Updating dependencies with Composer... 2021-11-30 16:46:02,740: DEBUG - + COMPOSER_HOME=/var/www/roundcube/.composer 2021-11-30 16:46:02,741: DEBUG - + curl -sS https://getcomposer.org/installer 2021-11-30 16:46:02,741: DEBUG - + php7.3 -- --quiet --install-dir=/var/www/roundcube --version=2.1.1 2021-11-30 16:46:03,058: DEBUG - + ynh_composer_exec --phpversion=7.3 --workdir=/var/www/roundcube '--commands=install --no-dev ' 2021-11-30 16:46:03,059: DEBUG - + declare -Ar args_array 2021-11-30 16:46:03,159: DEBUG - + workdir=/var/www/roundcube 2021-11-30 16:46:03,160: DEBUG - + phpversion=7.3 2021-11-30 16:46:03,160: DEBUG - + COMPOSER_HOME=/var/www/roundcube/.composer 2021-11-30 16:46:03,160: DEBUG - + COMPOSER_MEMORY_LIMIT=-1 2021-11-30 16:46:03,160: DEBUG - + php7.3 /var/www/roundcube/composer.phar install --no-dev -d /var/www/roundcube --no-interaction --no-ansi 2021-11-30 16:46:03,380: DEBUG - Loading "roundcube/plugin-installer" which is a legacy composer-installer built for Composer 1.x, it is likely to cause issues as you are running Composer 2.x. 2021-11-30 16:46:03,385: DEBUG - Do not run Composer as root/super user! See https://getcomposer.org/root for details 2021-11-30 16:46:03,416: DEBUG - Installing dependencies from lock file 2021-11-30 16:46:03,418: DEBUG - Verifying lock file contents can be installed on current platform. 2021-11-30 16:46:03,433: DEBUG - Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`. 2021-11-30 16:46:03,447: DEBUG - Nothing to install, update or remove 2021-11-30 16:46:03,453: DEBUG - Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. 2021-11-30 16:46:03,454: DEBUG - Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested. 2021-11-30 16:46:03,454: DEBUG - Generating autoload files 2021-11-30 16:46:03,596: DEBUG - + '[' -f /var/www/roundcube/composer.json ']' 2021-11-30 16:46:03,596: DEBUG - + ynh_exec_warn_less ynh_composer_exec --commands=update 2021-11-30 16:46:03,597: DEBUG - + [[ 2 -eq 1 ]] 2021-11-30 16:46:03,597: DEBUG - + ynh_composer_exec --commands=update 2021-11-30 16:46:03,597: DEBUG - + declare -Ar args_array 2021-11-30 16:46:03,753: DEBUG - + workdir=/var/www/roundcube 2021-11-30 16:46:03,754: DEBUG - + phpversion=7.3 2021-11-30 16:46:03,754: DEBUG - + COMPOSER_HOME=/var/www/roundcube/.composer 2021-11-30 16:46:03,754: DEBUG - + COMPOSER_MEMORY_LIMIT=-1 2021-11-30 16:46:03,754: DEBUG - + php7.3 /var/www/roundcube/composer.phar update -d /var/www/roundcube --no-interaction --no-ansi 2021-11-30 16:46:03,953: DEBUG - Loading "roundcube/plugin-installer" which is a legacy composer-installer built for Composer 1.x, it is likely to cause issues as you are running Composer 2.x. 2021-11-30 16:46:03,955: DEBUG - Do not run Composer as root/super user! See https://getcomposer.org/root for details 2021-11-30 16:46:03,978: DEBUG - Loading composer repositories with package information 2021-11-30 16:46:04,415: DEBUG - Updating dependencies 2021-11-30 16:46:04,470: DEBUG - Lock file operations: 9 installs, 4 updates, 0 removals 2021-11-30 16:46:04,471: DEBUG - - Locking guzzlehttp/guzzle (6.5.5) 2021-11-30 16:46:04,471: DEBUG - - Locking guzzlehttp/promises (1.5.1) 2021-11-30 16:46:04,472: DEBUG - - Locking guzzlehttp/psr7 (1.8.3) 2021-11-30 16:46:04,473: DEBUG - - Upgrading masterminds/html5 (2.5.0 => 2.7.5) 2021-11-30 16:46:04,474: DEBUG - - Upgrading pear/net_smtp (1.8.1 => 1.10.0) 2021-11-30 16:46:04,474: DEBUG - - Locking psr/http-message (1.0.1) 2021-11-30 16:46:04,474: DEBUG - - Locking ralouphie/getallheaders (3.0.3) 2021-11-30 16:46:04,475: DEBUG - - Upgrading roundcube/plugin-installer (0.2.0 => 0.3.1) 2021-11-30 16:46:04,475: DEBUG - - Locking roundcube/rtf-html-php (v2.1) 2021-11-30 16:46:04,476: DEBUG - - Locking symfony/polyfill-intl-idn (v1.23.0) 2021-11-30 16:46:04,476: DEBUG - - Locking symfony/polyfill-intl-normalizer (v1.23.0) 2021-11-30 16:46:04,476: DEBUG - - Locking symfony/polyfill-php72 (v1.23.0) 2021-11-30 16:46:04,477: DEBUG - - Upgrading symfony/yaml (v4.4.29 => v4.4.34) 2021-11-30 16:46:04,481: DEBUG - Writing lock file 2021-11-30 16:46:04,481: DEBUG - Installing dependencies from lock file (including require-dev) 2021-11-30 16:46:04,486: DEBUG - Package operations: 35 installs, 3 updates, 0 removals 2021-11-30 16:46:04,487: DEBUG - - Downloading roundcube/plugin-installer (0.3.1) 2021-11-30 16:46:04,488: DEBUG - - Downloading symfony/polyfill-php72 (v1.23.0) 2021-11-30 16:46:04,489: DEBUG - - Downloading symfony/polyfill-intl-normalizer (v1.23.0) 2021-11-30 16:46:04,490: DEBUG - - Downloading symfony/polyfill-intl-idn (v1.23.0) 2021-11-30 16:46:04,491: DEBUG - - Downloading ralouphie/getallheaders (3.0.3) 2021-11-30 16:46:04,492: DEBUG - - Downloading psr/http-message (1.0.1) 2021-11-30 16:46:04,493: DEBUG - - Downloading guzzlehttp/psr7 (1.8.3) 2021-11-30 16:46:04,494: DEBUG - - Downloading guzzlehttp/promises (1.5.1) 2021-11-30 16:46:04,495: DEBUG - - Downloading guzzlehttp/guzzle (6.5.5) 2021-11-30 16:46:04,496: DEBUG - - Downloading masterminds/html5 (2.7.5) 2021-11-30 16:46:04,524: DEBUG - - Downloading pear/net_smtp (1.10.0) 2021-11-30 16:46:04,529: DEBUG - - Downloading symfony/yaml (v4.4.34) 2021-11-30 16:46:04,589: DEBUG - - Downloading roundcube/rtf-html-php (v2.1) 2021-11-30 16:46:05,411: DEBUG - - Removing roundcube/plugin-installer (0.2.0) 2021-11-30 16:46:05,433: DEBUG - - Installing roundcube/plugin-installer (0.3.1): Extracting archive 2021-11-30 16:46:05,488: DEBUG - - Installing symfony/polyfill-php72 (v1.23.0): Extracting archive 2021-11-30 16:46:05,498: DEBUG - - Installing symfony/polyfill-intl-normalizer (v1.23.0): Extracting archive 2021-11-30 16:46:05,509: DEBUG - - Installing symfony/polyfill-intl-idn (v1.23.0): Extracting archive 2021-11-30 16:46:05,600: DEBUG - - Installing ralouphie/getallheaders (3.0.3): Extracting archive 2021-11-30 16:46:05,633: DEBUG - - Installing psr/http-message (1.0.1): Extracting archive 2021-11-30 16:46:05,800: DEBUG - - Installing guzzlehttp/psr7 (1.8.3): Extracting archive 2021-11-30 16:46:05,814: DEBUG - - Installing guzzlehttp/promises (1.5.1): Extracting archive 2021-11-30 16:46:05,853: DEBUG - - Installing guzzlehttp/guzzle (6.5.5): Extracting archive 2021-11-30 16:46:05,892: DEBUG - - Upgrading masterminds/html5 (2.5.0 => 2.7.5): Extracting archive 2021-11-30 16:46:05,931: DEBUG - - Upgrading pear/net_smtp (1.8.1 => 1.10.0): Extracting archive 2021-11-30 16:46:05,959: DEBUG - - Installing symfony/polyfill-ctype (v1.23.0): Extracting archive 2021-11-30 16:46:06,014: DEBUG - - Installing webmozart/assert (1.10.0): Extracting archive 2021-11-30 16:46:06,015: DEBUG - - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive 2021-11-30 16:46:06,016: DEBUG - - Installing phpdocumentor/type-resolver (1.5.1): Extracting archive 2021-11-30 16:46:06,018: DEBUG - - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive 2021-11-30 16:46:06,019: DEBUG - - Installing phpunit/php-token-stream (2.0.2): Extracting archive 2021-11-30 16:46:06,020: DEBUG - - Installing symfony/yaml (v4.4.34): Extracting archive 2021-11-30 16:46:06,021: DEBUG - - Installing sebastian/version (2.0.1): Extracting archive 2021-11-30 16:46:06,022: DEBUG - - Installing sebastian/resource-operations (1.0.0): Extracting archive 2021-11-30 16:46:06,023: DEBUG - - Installing sebastian/recursion-context (2.0.0): Extracting archive 2021-11-30 16:46:06,024: DEBUG - - Installing sebastian/object-enumerator (2.0.1): Extracting archive 2021-11-30 16:46:06,025: DEBUG - - Installing sebastian/global-state (1.1.1): Extracting archive 2021-11-30 16:46:06,027: DEBUG - - Installing sebastian/exporter (2.0.0): Extracting archive 2021-11-30 16:46:06,028: DEBUG - - Installing sebastian/environment (2.0.0): Extracting archive 2021-11-30 16:46:06,038: DEBUG - - Installing sebastian/diff (1.4.3): Extracting archive 2021-11-30 16:46:06,042: DEBUG - - Installing sebastian/comparator (1.2.4): Extracting archive 2021-11-30 16:46:06,044: DEBUG - - Installing phpunit/php-text-template (1.2.1): Extracting archive 2021-11-30 16:46:06,046: DEBUG - - Installing doctrine/instantiator (1.4.0): Extracting archive 2021-11-30 16:46:06,050: DEBUG - - Installing phpunit/phpunit-mock-objects (3.4.4): Extracting archive 2021-11-30 16:46:06,053: DEBUG - - Installing phpunit/php-timer (1.0.9): Extracting archive 2021-11-30 16:46:06,057: DEBUG - - Installing phpunit/php-file-iterator (1.4.5): Extracting archive 2021-11-30 16:46:06,059: DEBUG - - Installing sebastian/code-unit-reverse-lookup (1.0.2): Extracting archive 2021-11-30 16:46:06,061: DEBUG - - Installing phpunit/php-code-coverage (4.0.8): Extracting archive 2021-11-30 16:46:06,072: DEBUG - - Installing phpspec/prophecy (v1.10.3): Extracting archive 2021-11-30 16:46:06,074: DEBUG - - Installing myclabs/deep-copy (1.10.2): Extracting archive 2021-11-30 16:46:06,077: DEBUG - - Installing phpunit/phpunit (5.7.27): Extracting archive 2021-11-30 16:46:06,078: DEBUG - - Installing roundcube/rtf-html-php (v2.1): Extracting archive 2021-11-30 16:46:08,555: DEBUG - 2 package suggestions were added by new dependencies, use `composer suggest` to see details. 2021-11-30 16:46:08,558: DEBUG - Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. 2021-11-30 16:46:08,558: DEBUG - Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested. 2021-11-30 16:46:08,559: DEBUG - Generating autoload files 2021-11-30 16:46:08,637: DEBUG - 10 packages you are using are looking for funding. 2021-11-30 16:46:08,637: DEBUG - Use the `composer fund` command to find out more! 2021-11-30 16:46:08,779: DEBUG - + mkdir -p /var/www/roundcube/logs /var/www/roundcube/temp 2021-11-30 16:46:08,780: INFO - [###########++++++...] > Upgrading additional plugins... 2021-11-30 16:46:08,781: DEBUG - + ynh_composer_exec '--commands=require kolab/net_ldap3' 2021-11-30 16:46:08,782: DEBUG - + declare -Ar args_array 2021-11-30 16:46:08,813: DEBUG - + workdir=/var/www/roundcube 2021-11-30 16:46:08,813: DEBUG - + phpversion=7.3 2021-11-30 16:46:08,813: DEBUG - + COMPOSER_HOME=/var/www/roundcube/.composer 2021-11-30 16:46:08,814: DEBUG - + COMPOSER_MEMORY_LIMIT=-1 2021-11-30 16:46:08,814: DEBUG - + php7.3 /var/www/roundcube/composer.phar require kolab/net_ldap3 -d /var/www/roundcube --no-interaction --no-ansi 2021-11-30 16:46:09,017: DEBUG - Do not run Composer as root/super user! See https://getcomposer.org/root for details 2021-11-30 16:46:09,176: DEBUG - Using version ^1.1 for kolab/net_ldap3 2021-11-30 16:46:09,179: DEBUG - ./composer.json has been updated 2021-11-30 16:46:09,237: DEBUG - Running composer update kolab/net_ldap3 2021-11-30 16:46:09,243: DEBUG - Loading composer repositories with package information 2021-11-30 16:46:09,341: DEBUG - Updating dependencies 2021-11-30 16:46:09,352: DEBUG - Nothing to modify in lock file 2021-11-30 16:46:09,358: DEBUG - Installing dependencies from lock file (including require-dev) 2021-11-30 16:46:09,361: DEBUG - Package operations: 3 installs, 0 updates, 0 removals 2021-11-30 16:46:09,364: DEBUG - - Installing roundcube/plugin-installer (0.3.1): Extracting archive 2021-11-30 16:46:09,481: DEBUG - - Installing johndoh/contextmenu (2.3): Extracting archive 2021-11-30 16:46:09,507: DEBUG - - Installing sblaisot/automatic_addressbook (v0.4.3): Extracting archive 2021-11-30 16:46:09,667: DEBUG - Updated local config at /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:09,714: DEBUG - Updated local config at /var/www/roundcube/config/config.inc.php 2021-11-30 16:46:09,714: DEBUG - Running database initialization script for automatic_addressbook 2021-11-30 16:46:09,718: DEBUG - Creating database schema... ERROR: [1050] Table 'collected_contacts' already exists (SQL Query: CREATE TABLE `collected_contacts` ( 2021-11-30 16:46:09,718: DEBUG - `contact_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 2021-11-30 16:46:09,719: DEBUG - `changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', 2021-11-30 16:46:09,719: DEBUG - `del` tinyint(1) NOT NULL DEFAULT '0', 2021-11-30 16:46:09,719: DEBUG - `name` varchar(128) NOT NULL DEFAULT '', 2021-11-30 16:46:09,719: DEBUG - `email` text NOT NULL, 2021-11-30 16:46:09,719: DEBUG - `firstname` varchar(128) NOT NULL DEFAULT '', 2021-11-30 16:46:09,719: DEBUG - `surname` varchar(128) NOT NULL DEFAULT '', 2021-11-30 16:46:09,719: DEBUG - `vcard` longtext NULL, 2021-11-30 16:46:09,719: DEBUG - `words` text NULL, 2021-11-30 16:46:09,719: DEBUG - `user_id` int(10) UNSIGNED NOT NULL, 2021-11-30 16:46:09,719: DEBUG - PRIMARY KEY(`contact_id`), 2021-11-30 16:46:09,720: DEBUG - CONSTRAINT `user_id_fk_collected_contacts` FOREIGN KEY (`user_id`) 2021-11-30 16:46:09,720: DEBUG - REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE, 2021-11-30 16:46:09,720: DEBUG - INDEX `user_collected_contacts_index` (`user_id`,`del`) 2021-11-30 16:46:09,724: DEBUG - ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */) 2021-11-30 16:46:09,725: DEBUG - [FAILED] 2021-11-30 16:46:09,725: DEBUG - ERROR: [1050] Table 'collected_contacts' already exists 2021-11-30 16:46:09,758: DEBUG - + ynh_exit_properly 2021-11-30 16:46:10,267: DEBUG - + ynh_clean_setup 2021-11-30 16:46:10,267: DEBUG - + ynh_restore_upgradebackup 2021-11-30 16:46:10,267: DEBUG - + ynh_print_err '--message=Upgrade failed.' 2021-11-30 16:46:10,287: DEBUG - + ynh_print_log '[Error] Upgrade failed.' 2021-11-30 16:46:10,287: DEBUG - + echo -e '[Error] Upgrade failed.' 2021-11-30 16:46:10,287: DEBUG - + local app_bck=roundcube 2021-11-30 16:46:10,287: DEBUG - + NO_BACKUP_UPGRADE=0 2021-11-30 16:46:10,287: DEBUG - + ynh_backup_archive_exists roundcube-pre-upgrade2 2021-11-30 16:46:10,290: WARNING - [Error] Upgrade failed. 2021-11-30 16:46:10,291: DEBUG - + jq -e --arg archive roundcube-pre-upgrade2 '.archives | index($archive)' 2021-11-30 16:46:10,291: DEBUG - + yunohost backup list --output-as json --quiet 2021-11-30 16:46:10,619: DEBUG - + yunohost app remove roundcube 2021-11-30 16:46:10,884: DEBUG - Suppression de roundcube... 2021-11-30 16:46:11,127: DEBUG - [....................] > Loading installation settings... 2021-11-30 16:46:11,539: DEBUG - [+++++++.............] > Removing dependencies... 2021-11-30 16:46:13,491: DEBUG - [#######++...........] > Removing the MySQL database... 2021-11-30 16:46:13,923: DEBUG - [#########+..........] > Removing dependencies... 2021-11-30 16:46:14,675: WARNING - E: Unable to locate package roundcube-ynh-deps 2021-11-30 16:46:14,774: DEBUG - [##########+++.......] > Removing roundcube main directory... 2021-11-30 16:46:15,043: DEBUG - [#############+......] > Removing NGINX web server configuration... 2021-11-30 16:46:15,482: DEBUG - [##############+++...] > Removing PHP-FPM configuration... 2021-11-30 16:46:16,543: DEBUG - [#################++.] > Removing the dedicated system user... 2021-11-30 16:46:16,857: DEBUG - [####################] > Removal of roundcube completed 2021-11-30 16:46:17,861: DEBUG - roundcube désinstallé 2021-11-30 16:46:18,964: DEBUG - + yunohost backup restore roundcube-pre-upgrade2 --apps roundcube --force --debug 2021-11-30 16:46:19,126: DEBUG - 120 initializing base actions map parser for cli 2021-11-30 16:46:19,127: DEBUG - 122 loading actions map namespace 'yunohost' 2021-11-30 16:46:19,131: DEBUG - 126 building parser... 2021-11-30 16:46:19,135: DEBUG - 130 building parser took 0.003s 2021-11-30 16:46:19,137: DEBUG - 131 acquiring lock... 2021-11-30 16:46:19,167: DEBUG - 161 loading python module yunohost.backup took 0.018s 2021-11-30 16:46:19,168: DEBUG - 162 processing action [23007.1]: yunohost.backup.restore with args={'name': 'roundcube-pre-upgrade2', 'system': None, 'apps': ['roundcube'], 'force': True} 2021-11-30 16:46:19,169: DEBUG - 163 Préparation de l'archive pour restauration... 2021-11-30 16:46:19,169: DEBUG - 164 Extraction des fichiers nécessaires depuis l'archive... 2021-11-30 16:46:20,578: DEBUG - 1572 restoring from backup 'roundcube-pre-upgrade2' created on 2021-11-30 15:45:38 2021-11-30 16:46:20,620: DEBUG - 1615 Restauration de roundcube... 2021-11-30 16:46:20,742: DEBUG - 1736 initializing ldap interface 2021-11-30 16:46:20,922: DEBUG - 1917 Permission 'roundcube.main' mise à jour 2021-11-30 16:46:20,988: DEBUG - 1983 Pour voir le journal de cette opération 'Mise à jour de l'URL associée à l'autorisation 'roundcube'', utilisez la commande 'yunohost log show 20211130-154620-permission_url-roundcube' 2021-11-30 16:46:21,136: DEBUG - 2130 Permission 'roundcube.main' créée 2021-11-30 16:46:21,137: DEBUG - 2131 Pour voir le journal de cette opération 'Créer permission 'roundcube'', utilisez la commande 'yunohost log show 20211130-154620-permission_create-roundcube' 2021-11-30 16:46:21,243: DEBUG - 2237 The permission database has been resynchronized 2021-11-30 16:46:21,351: DEBUG - 2345 La configuration de SSOwat a été regénérée 2021-11-30 16:46:21,366: DEBUG - 2360 Chargement de la migration 0016_php70_to_php73_pools... 2021-11-30 16:46:21,368: DEBUG - 2363 Chargement de la migration 0020_ssh_sftp_permissions... 2021-11-30 16:46:21,369: DEBUG - 2364 Chargement de la migration 0017_postgresql_9p6_to_11... 2021-11-30 16:46:21,371: DEBUG - 2365 Chargement de la migration 0019_extend_permissions_features... 2021-11-30 16:46:21,372: DEBUG - 2367 Chargement de la migration 0018_xtable_to_nftable... 2021-11-30 16:46:21,373: DEBUG - 2368 Chargement de la migration 0015_migrate_to_buster... 2021-11-30 16:46:21,395: DEBUG - 2388 Exécution du script de restauration de l'application 'roundcube'... 2021-11-30 16:46:21,411: DEBUG - 2405 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_gz38y3yp/restore" 7>&1']' 2021-11-30 16:46:21,421: DEBUG - 2416 + source ../settings/scripts/_common.sh 2021-11-30 16:46:21,422: DEBUG - 2417 ++ YNH_PHP_VERSION=7.3 2021-11-30 16:46:21,423: DEBUG - 2417 ++ pkg_dependencies='php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:46:21,423: DEBUG - 2418 ++ YNH_COMPOSER_VERSION=2.1.1 2021-11-30 16:46:21,424: DEBUG - 2418 ++ contextmenu_version=3.2.1 2021-11-30 16:46:21,424: DEBUG - 2419 ++ automatic_addressbook_version=v0.4.3 2021-11-30 16:46:21,424: DEBUG - 2419 ++ carddav_version=3.0.3 2021-11-30 16:46:21,425: DEBUG - 2420 + source /usr/share/yunohost/helpers 2021-11-30 16:46:21,427: DEBUG - 2421 +++ grep xtrace 2021-11-30 16:46:21,428: DEBUG - 2423 +++ set +o 2021-11-30 16:46:21,430: DEBUG - 2425 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-11-30 16:46:21,430: DEBUG - 2425 ++ XTRACE_ENABLE='set -o xtrace' 2021-11-30 16:46:21,459: DEBUG - 2454 + ynh_abort_if_errors 2021-11-30 16:46:21,461: DEBUG - 2456 + trap ynh_exit_properly EXIT 2021-11-30 16:46:21,554: DEBUG - 2549 + echo '[....................] > Loading settings...' 2021-11-30 16:46:21,555: DEBUG - 2549 + app=roundcube 2021-11-30 16:46:21,555: DEBUG - 2549 [....................] > Loading settings... 2021-11-30 16:46:21,556: DEBUG - 2550 ++ ynh_app_setting_get --app=roundcube --key=domain 2021-11-30 16:46:21,557: DEBUG - 2551 ++ local _globalapp=roundcube 2021-11-30 16:46:21,616: DEBUG - 2609 ++ app=roundcube 2021-11-30 16:46:21,617: DEBUG - 2610 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:21,617: DEBUG - 2610 ++ ynh_app_setting get roundcube domain 2021-11-30 16:46:21,681: DEBUG - 2675 + domain=maindomain.tld 2021-11-30 16:46:21,682: DEBUG - 2677 ++ ynh_app_setting_get --app=roundcube --key=path 2021-11-30 16:46:21,683: DEBUG - 2678 ++ local _globalapp=roundcube 2021-11-30 16:46:21,720: DEBUG - 2714 ++ app=roundcube 2021-11-30 16:46:21,721: DEBUG - 2715 ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:21,721: DEBUG - 2715 ++ ynh_app_setting get roundcube path 2021-11-30 16:46:21,775: DEBUG - 2770 + path_url=/webmail 2021-11-30 16:46:21,777: DEBUG - 2771 ++ ynh_app_setting_get --app=roundcube --key=final_path 2021-11-30 16:46:21,778: DEBUG - 2772 ++ local _globalapp=roundcube 2021-11-30 16:46:21,819: DEBUG - 2813 ++ app=roundcube 2021-11-30 16:46:21,819: DEBUG - 2813 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:21,819: DEBUG - 2813 ++ ynh_app_setting get roundcube final_path 2021-11-30 16:46:21,872: DEBUG - 2867 + final_path=/var/www/roundcube 2021-11-30 16:46:21,874: DEBUG - 2868 ++ ynh_app_setting_get --app=roundcube --key=db_name 2021-11-30 16:46:21,874: DEBUG - 2869 ++ local _globalapp=roundcube 2021-11-30 16:46:21,912: DEBUG - 2906 ++ app=roundcube 2021-11-30 16:46:21,912: DEBUG - 2906 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:21,913: DEBUG - 2907 ++ ynh_app_setting get roundcube db_name 2021-11-30 16:46:21,965: DEBUG - 2959 + db_name=roundcube 2021-11-30 16:46:21,965: DEBUG - 2959 + db_user=roundcube 2021-11-30 16:46:21,966: DEBUG - 2960 ++ ynh_app_setting_get --app=roundcube --key=phpversion 2021-11-30 16:46:21,967: DEBUG - 2961 ++ local _globalapp=roundcube 2021-11-30 16:46:22,006: DEBUG - 3000 ++ app=roundcube 2021-11-30 16:46:22,007: DEBUG - 3000 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:22,007: DEBUG - 3000 ++ ynh_app_setting get roundcube phpversion 2021-11-30 16:46:22,059: DEBUG - 3053 + phpversion=7.3 2021-11-30 16:46:22,136: DEBUG - 3129 + echo '[+++.................] > Validating restoration parameters...' 2021-11-30 16:46:22,136: DEBUG - 3130 + test '!' -d /var/www/roundcube 2021-11-30 16:46:22,136: DEBUG - 3130 + ynh_restore_file --origin_path=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:46:22,137: DEBUG - 3130 [+++.................] > Validating restoration parameters... 2021-11-30 16:46:22,166: DEBUG - 3159 + origin_path=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:46:22,166: DEBUG - 3160 + dest_path=/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:46:22,166: DEBUG - 3160 + not_mandatory=0 2021-11-30 16:46:22,166: DEBUG - 3160 + local archive_path=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:46:22,166: DEBUG - 3160 + '[' '!' -d /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf ']' 2021-11-30 16:46:22,166: DEBUG - 3160 + '[' '!' -f /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf ']' 2021-11-30 16:46:22,166: DEBUG - 3160 + [[ -e /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf ]] 2021-11-30 16:46:22,167: DEBUG - 3162 ++ dirname /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:46:22,169: DEBUG - 3164 + mkdir --parents /etc/nginx/conf.d/maindomain.tld.d 2021-11-30 16:46:22,171: DEBUG - 3166 + mountpoint --quiet /home/yunohost.backup/tmp/roundcube-pre-upgrade2 2021-11-30 16:46:22,175: DEBUG - 3170 + mv /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/nginx/conf.d/maindomain.tld.d/roundcube.conf /etc/nginx/conf.d/maindomain.tld.d/roundcube.conf 2021-11-30 16:46:22,266: DEBUG - 3260 + echo '[###++++.............] > Recreating the dedicated system user...' 2021-11-30 16:46:22,267: DEBUG - 3260 + ynh_system_user_create --username=roundcube --home_dir=/var/www/roundcube 2021-11-30 16:46:22,268: DEBUG - 3261 [###++++.............] > Recreating the dedicated system user... 2021-11-30 16:46:22,343: DEBUG - 3336 + use_shell=0 2021-11-30 16:46:22,343: DEBUG - 3336 + home_dir=/var/www/roundcube 2021-11-30 16:46:22,343: DEBUG - 3337 + groups= 2021-11-30 16:46:22,343: DEBUG - 3337 + ynh_system_user_exists roundcube 2021-11-30 16:46:22,358: DEBUG - 3352 + getent passwd roundcube 2021-11-30 16:46:22,362: DEBUG - 3356 + '[' -n /var/www/roundcube ']' 2021-11-30 16:46:22,363: DEBUG - 3357 + local 'user_home_dir=--home-dir /var/www/roundcube' 2021-11-30 16:46:22,363: DEBUG - 3357 + local 'shell=--shell /usr/sbin/nologin' 2021-11-30 16:46:22,363: DEBUG - 3357 + useradd --home-dir /var/www/roundcube --system --user-group roundcube --shell /usr/sbin/nologin 2021-11-30 16:46:22,585: DEBUG - 3578 + echo '[#######++++.........] > Restoring roundcube main directory...' 2021-11-30 16:46:22,585: DEBUG - 3578 + ynh_restore_file --origin_path=/var/www/roundcube 2021-11-30 16:46:22,586: DEBUG - 3579 [#######++++.........] > Restoring roundcube main directory... 2021-11-30 16:46:22,620: DEBUG - 3613 + origin_path=/var/www/roundcube 2021-11-30 16:46:22,620: DEBUG - 3614 + dest_path=/var/www/roundcube 2021-11-30 16:46:22,620: DEBUG - 3614 + not_mandatory=0 2021-11-30 16:46:22,620: DEBUG - 3614 + local archive_path=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/var/www/roundcube 2021-11-30 16:46:22,620: DEBUG - 3614 + '[' '!' -d /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/var/www/roundcube ']' 2021-11-30 16:46:22,620: DEBUG - 3614 + [[ -e /var/www/roundcube ]] 2021-11-30 16:46:22,622: DEBUG - 3616 ++ dirname /var/www/roundcube 2021-11-30 16:46:22,624: DEBUG - 3618 + mkdir --parents /var/www 2021-11-30 16:46:22,626: DEBUG - 3620 + mountpoint --quiet /home/yunohost.backup/tmp/roundcube-pre-upgrade2 2021-11-30 16:46:22,629: DEBUG - 3623 + mv /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/var/www/roundcube /var/www/roundcube 2021-11-30 16:46:22,631: DEBUG - 3626 + chmod 750 /var/www/roundcube 2021-11-30 16:46:22,633: DEBUG - 3627 + chmod -R o-rwx /var/www/roundcube 2021-11-30 16:46:22,661: DEBUG - 3656 + chown -R roundcube:www-data /var/www/roundcube 2021-11-30 16:46:22,772: DEBUG - 3765 + echo '[###########+........] > Restoring the PHP-FPM configuration...' 2021-11-30 16:46:22,772: DEBUG - 3766 + ynh_restore_file --origin_path=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:22,774: DEBUG - 3766 [###########+........] > Restoring the PHP-FPM configuration... 2021-11-30 16:46:22,806: DEBUG - 3799 + origin_path=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:22,806: DEBUG - 3800 + dest_path=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:22,806: DEBUG - 3800 + not_mandatory=0 2021-11-30 16:46:22,806: DEBUG - 3800 + local archive_path=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:22,806: DEBUG - 3800 + '[' '!' -d /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf ']' 2021-11-30 16:46:22,807: DEBUG - 3800 + '[' '!' -f /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf ']' 2021-11-30 16:46:22,807: DEBUG - 3800 + [[ -e /etc/php/7.3/fpm/pool.d/roundcube.conf ]] 2021-11-30 16:46:22,808: DEBUG - 3802 ++ dirname /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:22,811: DEBUG - 3805 + mkdir --parents /etc/php/7.3/fpm/pool.d 2021-11-30 16:46:22,813: DEBUG - 3807 + mountpoint --quiet /home/yunohost.backup/tmp/roundcube-pre-upgrade2 2021-11-30 16:46:22,816: DEBUG - 3810 + mv /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/backup/etc/php/7.3/fpm/pool.d/roundcube.conf /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:22,820: DEBUG - 3813 + ynh_add_fpm_config 2021-11-30 16:46:22,821: DEBUG - 3814 + package= 2021-11-30 16:46:22,822: DEBUG - 3816 + use_template=1 2021-11-30 16:46:22,822: DEBUG - 3817 + usage= 2021-11-30 16:46:22,823: DEBUG - 3817 + footprint= 2021-11-30 16:46:22,823: DEBUG - 3818 + '[' -n '' ']' 2021-11-30 16:46:22,824: DEBUG - 3818 + '[' -n '' ']' 2021-11-30 16:46:22,824: DEBUG - 3819 + dedicated_service=0 2021-11-30 16:46:22,825: DEBUG - 3819 + phpversion=7.3 2021-11-30 16:46:22,826: DEBUG - 3820 ++ ynh_app_setting_get --app=roundcube --key=phpversion 2021-11-30 16:46:22,826: DEBUG - 3821 ++ local _globalapp=roundcube 2021-11-30 16:46:22,866: DEBUG - 3860 ++ app=roundcube 2021-11-30 16:46:22,866: DEBUG - 3860 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:22,866: DEBUG - 3860 ++ ynh_app_setting get roundcube phpversion 2021-11-30 16:46:22,920: DEBUG - 3914 + local old_phpversion=7.3 2021-11-30 16:46:22,921: DEBUG - 3914 + '[' -n 7.3 ']' 2021-11-30 16:46:22,921: DEBUG - 3914 + '[' 7.3 '!=' 7.3 ']' 2021-11-30 16:46:22,921: DEBUG - 3915 + '[' -n '' ']' 2021-11-30 16:46:22,921: DEBUG - 3915 + local fpm_service=php7.3-fpm 2021-11-30 16:46:22,921: DEBUG - 3915 + local fpm_config_dir=/etc/php/7.3/fpm 2021-11-30 16:46:22,921: DEBUG - 3915 + mkdir --parents /etc/php/7.3/fpm/pool.d 2021-11-30 16:46:22,925: DEBUG - 3918 + ynh_app_setting_set --app=roundcube --key=fpm_config_dir --value=/etc/php/7.3/fpm 2021-11-30 16:46:22,925: DEBUG - 3918 + local _globalapp=roundcube 2021-11-30 16:46:22,994: DEBUG - 3988 + app=roundcube 2021-11-30 16:46:22,994: DEBUG - 3988 + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:22,994: DEBUG - 3988 + ynh_app_setting set roundcube fpm_config_dir /etc/php/7.3/fpm 2021-11-30 16:46:23,052: DEBUG - 4045 + ynh_app_setting_set --app=roundcube --key=fpm_service --value=php7.3-fpm 2021-11-30 16:46:23,052: DEBUG - 4045 + local _globalapp=roundcube 2021-11-30 16:46:23,139: DEBUG - 4133 + app=roundcube 2021-11-30 16:46:23,140: DEBUG - 4133 + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:23,140: DEBUG - 4133 + ynh_app_setting set roundcube fpm_service php7.3-fpm 2021-11-30 16:46:23,219: DEBUG - 4212 + ynh_app_setting_set --app=roundcube --key=fpm_dedicated_service --value=0 2021-11-30 16:46:23,220: DEBUG - 4212 + local _globalapp=roundcube 2021-11-30 16:46:23,296: DEBUG - 4290 + app=roundcube 2021-11-30 16:46:23,296: DEBUG - 4290 + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:23,296: DEBUG - 4290 + ynh_app_setting set roundcube fpm_dedicated_service 0 2021-11-30 16:46:23,355: DEBUG - 4349 + ynh_app_setting_set --app=roundcube --key=phpversion --value=7.3 2021-11-30 16:46:23,355: DEBUG - 4349 + local _globalapp=roundcube 2021-11-30 16:46:23,432: DEBUG - 4426 + app=roundcube 2021-11-30 16:46:23,432: DEBUG - 4426 + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:23,432: DEBUG - 4426 + ynh_app_setting set roundcube phpversion 7.3 2021-11-30 16:46:23,491: DEBUG - 4484 + local phpfpm_path=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf 2021-11-30 16:46:23,491: DEBUG - 4484 + '[' -e /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf ']' 2021-11-30 16:46:23,491: DEBUG - 4484 + local finalphpconf=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,491: DEBUG - 4484 + ynh_add_config --template=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,529: DEBUG - 4523 + '[' -f /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf//home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf ']' 2021-11-30 16:46:23,530: DEBUG - 4523 + '[' -f /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf ']' 2021-11-30 16:46:23,530: DEBUG - 4523 + template_path=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf 2021-11-30 16:46:23,530: DEBUG - 4523 + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,542: DEBUG - 4536 + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:46:23,543: DEBUG - 4538 ++ ynh_app_setting_get --app=roundcube --key=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:46:23,544: DEBUG - 4538 ++ local _globalapp=roundcube 2021-11-30 16:46:23,588: DEBUG - 4582 ++ app=roundcube 2021-11-30 16:46:23,588: DEBUG - 4582 ++ [[ checksum__etc_php_7.3_fpm_pool.d_roundcube.conf =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:23,588: DEBUG - 4582 ++ ynh_app_setting get roundcube checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:46:23,644: DEBUG - 4638 + local checksum_value=6b280cad08a3e51a185aab8120f5c402 2021-11-30 16:46:23,645: DEBUG - 4639 + backup_file_checksum= 2021-11-30 16:46:23,645: DEBUG - 4639 + '[' -n 6b280cad08a3e51a185aab8120f5c402 ']' 2021-11-30 16:46:23,645: DEBUG - 4639 + '[' -e /etc/php/7.3/fpm/pool.d/roundcube.conf ']' 2021-11-30 16:46:23,646: DEBUG - 4640 + md5sum --check --status 2021-11-30 16:46:23,648: DEBUG - 4643 + echo '6b280cad08a3e51a185aab8120f5c402 /etc/php/7.3/fpm/pool.d/roundcube.conf' 2021-11-30 16:46:23,650: DEBUG - 4644 + touch /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,652: DEBUG - 4646 + chown root:root /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,657: DEBUG - 4651 + chmod 640 /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,660: DEBUG - 4654 + cp -f /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,663: DEBUG - 4657 + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,663: DEBUG - 4658 + local target=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,665: DEBUG - 4660 ++ tr -d '>= ' 2021-11-30 16:46:23,668: DEBUG - 4663 ++ jq -r .requirements.yunohost /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/manifest.json 2021-11-30 16:46:23,676: DEBUG - 4670 + local ynh_requirement=4.3.2 2021-11-30 16:46:23,676: DEBUG - 4670 + '[' -z 4.3.2 ']' 2021-11-30 16:46:23,676: DEBUG - 4670 + '[' 4.3.2 == null ']' 2021-11-30 16:46:23,676: DEBUG - 4671 + dpkg --compare-versions 4.3.2 ge 4.2 2021-11-30 16:46:23,680: DEBUG - 4674 + chmod o-rwx /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,682: DEBUG - 4676 + chmod g-w /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,684: DEBUG - 4678 + chown -R root:root /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,687: DEBUG - 4681 + ynh_system_user_exists roundcube 2021-11-30 16:46:23,702: DEBUG - 4696 + getent passwd roundcube 2021-11-30 16:46:23,706: DEBUG - 4700 + chown roundcube:roundcube /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,716: DEBUG - 4709 + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,734: DEBUG - 4727 + test -n /webmail 2021-11-30 16:46:23,734: DEBUG - 4727 + local path_url_slash_less=/webmail 2021-11-30 16:46:23,734: DEBUG - 4727 + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,807: DEBUG - 4802 + sed --in-place s@__PATH__/@/webmail/@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,811: DEBUG - 4805 + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,886: DEBUG - 4880 + sed --in-place s@__PATH__@/webmail@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,890: DEBUG - 4884 + test -n roundcube 2021-11-30 16:46:23,890: DEBUG - 4884 + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,964: DEBUG - 4958 + sed --in-place s@__NAME__@roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:23,968: DEBUG - 4962 + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,046: DEBUG - 5041 + sed --in-place s@__NAMETOCHANGE__@roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,050: DEBUG - 5044 + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,143: DEBUG - 5137 + sed --in-place s@__USER__@roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,148: DEBUG - 5141 + test -n /var/www/roundcube 2021-11-30 16:46:24,148: DEBUG - 5141 + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/roundcube --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,229: DEBUG - 5223 + sed --in-place s@__FINALPATH__@/var/www/roundcube@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,233: DEBUG - 5226 + test -n 7.3 2021-11-30 16:46:24,233: DEBUG - 5226 + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,309: DEBUG - 5303 + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,313: DEBUG - 5307 + test -n '' 2021-11-30 16:46:24,313: DEBUG - 5307 + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 2021-11-30 16:46:24,316: DEBUG - 5310 ++ sed 's@__\([^.]*\)__@\L\1@g' 2021-11-30 16:46:24,319: DEBUG - 5313 ++ sort --unique 2021-11-30 16:46:24,321: DEBUG - 5315 ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,327: DEBUG - 5321 + local delimit=@ 2021-11-30 16:46:24,327: DEBUG - 5321 + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,329: DEBUG - 5321 + update_only=0 2021-11-30 16:46:24,352: DEBUG - 5346 + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 2021-11-30 16:46:24,354: DEBUG - 5348 ++ cut '--delimiter= ' --fields=1 2021-11-30 16:46:24,356: DEBUG - 5350 ++ md5sum /etc/php/7.3/fpm/pool.d/roundcube.conf 2021-11-30 16:46:24,360: DEBUG - 5353 + ynh_app_setting_set --app=roundcube --key=checksum__etc_php_7.3_fpm_pool.d_roundcube.conf --value=6b280cad08a3e51a185aab8120f5c402 2021-11-30 16:46:24,360: DEBUG - 5354 + local _globalapp=roundcube 2021-11-30 16:46:24,439: DEBUG - 5433 + app=roundcube 2021-11-30 16:46:24,440: DEBUG - 5434 + [[ checksum__etc_php_7.3_fpm_pool.d_roundcube.conf =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:24,440: DEBUG - 5434 + ynh_app_setting set roundcube checksum__etc_php_7.3_fpm_pool.d_roundcube.conf 6b280cad08a3e51a185aab8120f5c402 2021-11-30 16:46:24,499: DEBUG - 5493 + '[' -n '' ']' 2021-11-30 16:46:24,499: DEBUG - 5493 + unset backup_file_checksum 2021-11-30 16:46:24,499: DEBUG - 5493 + '[' -e /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/conf/php-fpm.ini ']' 2021-11-30 16:46:24,499: DEBUG - 5493 + php-fpm7.3 --test 2021-11-30 16:46:24,644: DEBUG - 5638 + ynh_systemd_action --service_name=php7.3-fpm --action=reload 2021-11-30 16:46:24,751: DEBUG - 5744 + service_name=php7.3-fpm 2021-11-30 16:46:24,751: DEBUG - 5744 + action=reload 2021-11-30 16:46:24,751: DEBUG - 5745 + line_match= 2021-11-30 16:46:24,751: DEBUG - 5745 + length=20 2021-11-30 16:46:24,751: DEBUG - 5745 + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 2021-11-30 16:46:24,751: DEBUG - 5745 + timeout=300 2021-11-30 16:46:24,751: DEBUG - 5745 + '[' reload == stop ']' 2021-11-30 16:46:24,752: DEBUG - 5745 + '[' reload == reload ']' 2021-11-30 16:46:24,752: DEBUG - 5745 + action=reload-or-restart 2021-11-30 16:46:24,752: DEBUG - 5745 + systemctl reload-or-restart php7.3-fpm 2021-11-30 16:46:25,052: DEBUG - 6046 + echo '[############+.......] > Reinstalling dependencies...' 2021-11-30 16:46:25,052: DEBUG - 6046 + ynh_install_app_dependencies php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl 2021-11-30 16:46:25,052: DEBUG - 6046 + local 'dependencies=php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:46:25,053: DEBUG - 6046 [############+.......] > Reinstalling dependencies... 2021-11-30 16:46:25,065: DEBUG - 6059 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2021-11-30 16:46:25,068: DEBUG - 6062 ++ echo 'php-pear php7.3-ldap php7.3-mysql php7.3-cli php7.3-intl php7.3-json php7.3-zip php7.3-gd php7.3-mbstring php7.3-dom php7.3-curl' 2021-11-30 16:46:25,082: DEBUG - 6076 + dependencies='php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl' 2021-11-30 16:46:25,082: DEBUG - 6076 + local 'dependencies=php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl' 2021-11-30 16:46:25,082: DEBUG - 6076 + local manifest_path=/home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/manifest.json 2021-11-30 16:46:25,084: DEBUG - 6079 ++ jq -r .version /home/yunohost.backup/tmp/roundcube-pre-upgrade2/apps/roundcube/settings/manifest.json 2021-11-30 16:46:25,098: DEBUG - 6092 + local version=1.5.0~ynh2 2021-11-30 16:46:25,099: DEBUG - 6093 + '[' -z 1.5.0~ynh2 ']' 2021-11-30 16:46:25,099: DEBUG - 6093 + '[' 1.5.0~ynh2 == null ']' 2021-11-30 16:46:25,099: DEBUG - 6093 + local dep_app=roundcube 2021-11-30 16:46:25,099: DEBUG - 6093 + [[ php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl =~ [<=>] ]] 2021-11-30 16:46:25,101: DEBUG - 6096 ++ sort -u 2021-11-30 16:46:25,104: DEBUG - 6098 ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 2021-11-30 16:46:25,107: DEBUG - 6101 ++ echo php-pear, php7.3-ldap, php7.3-mysql, php7.3-cli, php7.3-intl, php7.3-json, php7.3-zip, php7.3-gd, php7.3-mbstring, php7.3-dom, php7.3-curl 2021-11-30 16:46:25,110: DEBUG - 6104 + local specific_php_version=7.3 2021-11-30 16:46:25,110: DEBUG - 6104 + [[ 7.3 != \7\.\3 ]] 2021-11-30 16:46:25,110: DEBUG - 6104 + specific_php_version= 2021-11-30 16:46:25,110: DEBUG - 6104 + [[ true == \t\r\u\e ]] 2021-11-30 16:46:25,111: DEBUG - 6104 + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2021-11-30 16:46:25,111: DEBUG - 6104 + grep --quiet php 2021-11-30 16:46:25,115: DEBUG - 6109 + grep --quiet --invert-match 7.0.33-0+deb9 2021-11-30 16:46:25,117: DEBUG - 6111 + grep php7.0 2021-11-30 16:46:25,121: DEBUG - 6115 + dpkg --list 2021-11-30 16:46:25,147: DEBUG - 6141 + grep --recursive --quiet '^ *deb.*sury' /etc/apt/sources.list /etc/apt/sources.list~ /etc/apt/sources.list.d 2021-11-30 16:46:25,150: DEBUG - 6144 + cat 2021-11-30 16:46:25,152: DEBUG - 6147 + ynh_package_install_from_equivs /tmp/roundcube-ynh-deps.control 2021-11-30 16:46:25,153: DEBUG - 6147 + local controlfile=/tmp/roundcube-ynh-deps.control 2021-11-30 16:46:25,154: DEBUG - 6149 ++ cut '--delimiter= ' --fields=2 2021-11-30 16:46:25,157: DEBUG - 6151 ++ grep '^Package: ' /tmp/roundcube-ynh-deps.control 2021-11-30 16:46:25,160: DEBUG - 6154 + local pkgname=roundcube-ynh-deps 2021-11-30 16:46:25,161: DEBUG - 6156 ++ cut '--delimiter= ' --fields=2 2021-11-30 16:46:25,163: DEBUG - 6158 ++ grep '^Version: ' /tmp/roundcube-ynh-deps.control 2021-11-30 16:46:25,167: DEBUG - 6161 + local pkgversion=1.5.0~ynh2 2021-11-30 16:46:25,167: DEBUG - 6161 + [[ -z roundcube-ynh-deps ]] 2021-11-30 16:46:25,167: DEBUG - 6161 + [[ -z 1.5.0~ynh2 ]] 2021-11-30 16:46:25,167: DEBUG - 6161 + ynh_package_update 2021-11-30 16:46:25,167: DEBUG - 6161 + ynh_apt update 2021-11-30 16:46:25,167: DEBUG - 6161 + ynh_wait_dpkg_free 2021-11-30 16:46:25,252: DEBUG - 6246 + return 0 2021-11-30 16:46:25,252: DEBUG - 6246 + LC_ALL=C 2021-11-30 16:46:25,252: DEBUG - 6246 + DEBIAN_FRONTEND=noninteractive 2021-11-30 16:46:25,252: DEBUG - 6246 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2021-11-30 16:46:25,393: DEBUG - 6387 Hit:1 http://forge.yunohost.org/debian buster InRelease 2021-11-30 16:46:25,397: DEBUG - 6391 Hit:2 http://deb.debian.org/debian buster InRelease 2021-11-30 16:46:25,397: DEBUG - 6391 Hit:3 http://security.debian.org buster/updates InRelease 2021-11-30 16:46:25,405: DEBUG - 6400 Hit:4 http://deb.debian.org/debian buster-updates InRelease 2021-11-30 16:46:25,448: DEBUG - 6442 Hit:5 https://packages.sury.org/php buster InRelease 2021-11-30 16:46:27,461: DEBUG - 8455 Reading package lists... 2021-11-30 16:46:27,527: DEBUG - 8518 ++ mktemp --directory 2021-11-30 16:46:27,547: DEBUG - 8541 + local TMPDIR=/tmp/tmp.iekIm6SLSo 2021-11-30 16:46:27,547: DEBUG - 8541 + echo 10 2021-11-30 16:46:27,547: DEBUG - 8541 + ynh_wait_dpkg_free 2021-11-30 16:46:27,639: DEBUG - 8633 + return 0 2021-11-30 16:46:27,639: DEBUG - 8633 + cp /tmp/roundcube-ynh-deps.control /tmp/tmp.iekIm6SLSo/control 2021-11-30 16:46:27,642: DEBUG - 8637 + cd /tmp/tmp.iekIm6SLSo 2021-11-30 16:46:27,643: DEBUG - 8638 + LC_ALL=C 2021-11-30 16:46:27,644: DEBUG - 8638 + equivs-build ./control 2021-11-30 16:46:28,497: DEBUG - 9491 + tee ./dpkg_log 2021-11-30 16:46:28,501: DEBUG - 9495 + LC_ALL=C 2021-11-30 16:46:28,503: DEBUG - 9497 + dpkg --force-depends --install ./roundcube-ynh-deps_1.5.0~ynh2_all.deb 2021-11-30 16:46:28,550: DEBUG - 9545 Selecting previously unselected package roundcube-ynh-deps. 2021-11-30 16:46:28,593: DEBUG - 9587 (Reading database ... 50647 files and directories currently installed.) 2021-11-30 16:46:28,596: DEBUG - 9591 Preparing to unpack .../roundcube-ynh-deps_1.5.0~ynh2_all.deb ... 2021-11-30 16:46:28,602: DEBUG - 9596 Unpacking roundcube-ynh-deps (1.5.0~ynh2) ... 2021-11-30 16:46:28,635: DEBUG - 9630 Setting up roundcube-ynh-deps (1.5.0~ynh2) ... 2021-11-30 16:46:28,702: DEBUG - 9694 + ynh_package_install --fix-broken 2021-11-30 16:46:28,702: DEBUG - 9695 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-11-30 16:46:28,703: DEBUG - 9695 + ynh_wait_dpkg_free 2021-11-30 16:46:28,788: DEBUG - 9782 + return 0 2021-11-30 16:46:28,789: DEBUG - 9783 + LC_ALL=C 2021-11-30 16:46:28,789: DEBUG - 9783 + DEBIAN_FRONTEND=noninteractive 2021-11-30 16:46:28,789: DEBUG - 9783 + 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-11-30 16:46:29,136: DEBUG - 10130 Reading package lists... 2021-11-30 16:46:29,378: DEBUG - 10372 Building dependency tree... 2021-11-30 16:46:29,380: DEBUG - 10374 Reading state information... 2021-11-30 16:46:29,674: DEBUG - 10668 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2021-11-30 16:46:29,676: DEBUG - 10670 + [[ -n /tmp/tmp.iekIm6SLSo ]] 2021-11-30 16:46:29,676: DEBUG - 10671 + rm --recursive --force /tmp/tmp.iekIm6SLSo 2021-11-30 16:46:29,679: DEBUG - 10673 + ynh_package_is_installed roundcube-ynh-deps 2021-11-30 16:46:29,693: DEBUG - 10688 + ynh_wait_dpkg_free 2021-11-30 16:46:29,771: DEBUG - 10765 + return 0 2021-11-30 16:46:29,772: DEBUG - 10766 + grep --count 'ok installed' 2021-11-30 16:46:29,774: DEBUG - 10769 + dpkg-query --show '--showformat=${Status}' roundcube-ynh-deps 2021-11-30 16:46:29,792: DEBUG - 10786 + rm /tmp/roundcube-ynh-deps.control 2021-11-30 16:46:29,794: DEBUG - 10789 + grep --quiet php 2021-11-30 16:46:29,799: DEBUG - 10792 + ynh_app_setting_set --app=roundcube --key=phpversion --value=7.3 2021-11-30 16:46:29,799: DEBUG - 10792 + local _globalapp=roundcube 2021-11-30 16:46:29,870: DEBUG - 10864 + app=roundcube 2021-11-30 16:46:29,871: DEBUG - 10865 + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:29,871: DEBUG - 10865 + ynh_app_setting set roundcube phpversion 7.3 2021-11-30 16:46:30,037: DEBUG - 11031 + echo '[#############+++++..] > Restoring the MySQL database...' 2021-11-30 16:46:30,037: DEBUG - 11031 [#############+++++..] > Restoring the MySQL database... 2021-11-30 16:46:30,039: DEBUG - 11033 ++ ynh_app_setting_get --app=roundcube --key=mysqlpwd 2021-11-30 16:46:30,040: DEBUG - 11034 ++ local _globalapp=roundcube 2021-11-30 16:46:30,085: DEBUG - 11079 ++ app=roundcube 2021-11-30 16:46:30,085: DEBUG - 11079 ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:30,085: DEBUG - 11079 ++ ynh_app_setting get roundcube mysqlpwd 2021-11-30 16:46:30,138: DEBUG - 11131 + db_pwd=********** 2021-11-30 16:46:30,138: DEBUG - 11131 + ynh_mysql_setup_db --db_user=roundcube --db_name=roundcube --db_pwd=********** 2021-11-30 16:46:30,138: DEBUG - 11132 + db_pwd= 2021-11-30 16:46:30,219: DEBUG - 11213 ++ ynh_string_random 2021-11-30 16:46:30,224: DEBUG - 11218 ++ length=24 2021-11-30 16:46:30,225: DEBUG - 11220 ++ sed --quiet 's/\(.\{24\}\).*/\1/p' 2021-11-30 16:46:30,226: DEBUG - 11221 ++ tr --complement --delete A-Za-z0-9 2021-11-30 16:46:30,230: DEBUG - 11224 ++ dd if=/dev/urandom bs=1 count=1000 2021-11-30 16:46:30,242: DEBUG - 11234 + local new_db_pwd=********** 2021-11-30 16:46:30,242: DEBUG - 11235 + db_pwd=********** 2021-11-30 16:46:30,242: DEBUG - 11235 + ynh_mysql_create_db roundcube roundcube ********** 2021-11-30 16:46:30,242: DEBUG - 11235 + local db=roundcube 2021-11-30 16:46:30,243: DEBUG - 11235 + local 'sql=CREATE DATABASE roundcube;' 2021-11-30 16:46:30,243: DEBUG - 11235 + [[ 3 -gt 1 ]] 2021-11-30 16:46:30,243: DEBUG - 11235 + sql+=' GRANT ALL PRIVILEGES ON roundcube.* TO '\''roundcube'\''@'\''localhost'\''' 2021-11-30 16:46:30,243: DEBUG - 11235 + [[ -n ********** ]] 2021-11-30 16:46:30,243: DEBUG - 11235 + sql+=' IDENTIFIED BY '\''**********'\''' 2021-11-30 16:46:30,243: DEBUG - 11236 + sql+=' WITH GRANT OPTION;' 2021-11-30 16:46:30,243: DEBUG - 11236 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE roundcube; GRANT ALL PRIVILEGES ON roundcube.* TO '\''roundcube'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2021-11-30 16:46:30,268: DEBUG - 11262 + database= 2021-11-30 16:46:30,268: DEBUG - 11262 + '[' -n '' ']' 2021-11-30 16:46:30,268: DEBUG - 11262 + mysql -B '' 2021-11-30 16:46:30,284: DEBUG - 11278 + ynh_app_setting_set --app=roundcube --key=mysqlpwd --value=********** 2021-11-30 16:46:30,284: DEBUG - 11278 + local _globalapp=roundcube 2021-11-30 16:46:30,371: DEBUG - 11365 + app=roundcube 2021-11-30 16:46:30,371: DEBUG - 11365 + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2021-11-30 16:46:30,371: DEBUG - 11365 + ynh_app_setting set roundcube mysqlpwd ********** 2021-11-30 16:46:30,431: DEBUG - 11424 + ynh_mysql_connect_as --user=roundcube --password=********** --database=roundcube 2021-11-30 16:46:30,508: DEBUG - 11502 + database=roundcube 2021-11-30 16:46:30,508: DEBUG - 11502 + mysql --user=roundcube --password=********** --batch roundcube 2021-11-30 16:46:31,203: DEBUG - 12196 + echo '[##################+.] > Reloading NGINX web server and PHP-FPM...' 2021-11-30 16:46:31,204: DEBUG - 12197 + ynh_systemd_action --service_name=php7.3-fpm --action=reload 2021-11-30 16:46:31,205: DEBUG - 12198 [##################+.] > Reloading NGINX web server and PHP-FPM... 2021-11-30 16:46:31,317: DEBUG - 12309 + service_name=php7.3-fpm 2021-11-30 16:46:31,317: DEBUG - 12310 + action=reload 2021-11-30 16:46:31,317: DEBUG - 12310 + line_match= 2021-11-30 16:46:31,317: DEBUG - 12310 + length=20 2021-11-30 16:46:31,317: DEBUG - 12310 + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 2021-11-30 16:46:31,317: DEBUG - 12311 + timeout=300 2021-11-30 16:46:31,318: DEBUG - 12311 + '[' reload == stop ']' 2021-11-30 16:46:31,318: DEBUG - 12311 + '[' reload == reload ']' 2021-11-30 16:46:31,318: DEBUG - 12311 + action=reload-or-restart 2021-11-30 16:46:31,318: DEBUG - 12311 + systemctl reload-or-restart php7.3-fpm 2021-11-30 16:46:31,359: DEBUG - 12352 + ynh_systemd_action --service_name=nginx --action=reload 2021-11-30 16:46:31,651: DEBUG - 12644 + service_name=nginx 2021-11-30 16:46:31,651: DEBUG - 12644 + action=reload 2021-11-30 16:46:31,651: DEBUG - 12645 + line_match= 2021-11-30 16:46:31,651: DEBUG - 12645 + length=20 2021-11-30 16:46:31,651: DEBUG - 12645 + log_path=/var/log/nginx/nginx.log 2021-11-30 16:46:31,651: DEBUG - 12645 + timeout=300 2021-11-30 16:46:31,651: DEBUG - 12645 + '[' reload == stop ']' 2021-11-30 16:46:31,652: DEBUG - 12645 + '[' reload == reload ']' 2021-11-30 16:46:31,652: DEBUG - 12645 + action=reload-or-restart 2021-11-30 16:46:31,652: DEBUG - 12645 + systemctl reload-or-restart nginx 2021-11-30 16:46:31,926: DEBUG - 12920 + echo '[####################] > Restoration completed for roundcube' 2021-11-30 16:46:31,927: DEBUG - 12921 + ynh_exit_properly 2021-11-30 16:46:31,927: DEBUG - 12921 [####################] > Restoration completed for roundcube 2021-11-30 16:46:31,929: DEBUG - 12924 + exit 0 2021-11-30 16:46:32,937: DEBUG - 13931 Pour voir le journal de cette opération 'Restaurer 'roundcube' depuis une sauvegarde', utilisez la commande 'yunohost log show 20211130-154620-backup_restore_app-roundcube' 2021-11-30 16:46:33,031: DEBUG - 14025 The permission database has been resynchronized 2021-11-30 16:46:33,126: DEBUG - 14121 La configuration de SSOwat a été regénérée 2021-11-30 16:46:33,137: DEBUG - 14131 Restauration terminée 2021-11-30 16:46:33,138: DEBUG - 14132 action [23007.1] executed in 13.969s 2021-11-30 16:46:33,138: DEBUG - apps: 2021-11-30 16:46:33,138: DEBUG - roundcube: Success 2021-11-30 16:46:33,139: DEBUG - system: 2021-11-30 16:46:33,207: DEBUG - + [[ -d /etc/yunohost/apps/roundcube ]] 2021-11-30 16:46:33,207: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.' 2021-11-30 16:46:33,231: WARNING - The app was restored to the way it was before the failed upgrade. 2021-11-30 16:46:34,238: ERROR - Impossible de mettre à jour roundcube : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application