ended_at: 2021-03-15 15:47:46.902855 env: YNH_APP_CURRENT_VERSION: 1.0.5~ynh1 YNH_APP_ID: garradin YNH_APP_INSTANCE_NAME: garradin__2 YNH_APP_INSTANCE_NUMBER: '2' YNH_APP_MANIFEST_VERSION: 1.0.6~ynh1 YNH_APP_UPGRADE_TYPE: UPGRADE_APP YNH_CWD: /var/cache/yunohost/from_file/scripts YNH_INTERFACE: api YNH_STDINFO: /tmp/tmp8U90Vx/stdinfo YNH_STDRETURN: /tmp/tmpeefKD7/stdreturn error: null interface: api operation: app_upgrade parent: null related_to: - - app - garradin__2 started_at: 2021-03-15 15:46:53.434919 success: true yunohost_version: 4.1.7.1 ============ 2021-03-15 15:46:53,528: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=2 YNH_APP_ID=garradin YNH_APP_MANIFEST_VERSION='1.0.6~ynh1' YNH_STDINFO=/tmp/tmp8U90Vx/stdinfo YNH_APP_UPGRADE_TYPE=UPGRADE_APP YNH_CWD=/var/cache/yunohost/from_file/scripts YNH_APP_INSTANCE_NAME=garradin__2 YNH_INTERFACE=api YNH_APP_CURRENT_VERSION='1.0.5~ynh1' YNH_STDRETURN=/tmp/tmpeefKD7/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" garradin__2 7>&1' 2021-03-15 15:46:53,634: DEBUG - + source _common.sh 2021-03-15 15:46:53,636: DEBUG - ++ YNH_PHP_VERSION=7.3 2021-03-15 15:46:53,637: DEBUG - ++ extra_php_dependencies=php7.3-sqlite3 2021-03-15 15:46:53,637: DEBUG - + source /usr/share/yunohost/helpers 2021-03-15 15:46:53,639: DEBUG - +++ set +o 2021-03-15 15:46:53,640: DEBUG - +++ grep xtrace 2021-03-15 15:46:53,641: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-03-15 15:46:53,641: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2021-03-15 15:46:54,052: DEBUG - + echo '[....................] > Loading installation settings...' 2021-03-15 15:46:54,054: DEBUG - + app=garradin__2 2021-03-15 15:46:54,055: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=domain 2021-03-15 15:46:54,162: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:46:54,164: INFO - [....................] > Loading installation settings... 2021-03-15 15:46:54,169: DEBUG - ++ ynh_app_setting get garradin__2 domain 2021-03-15 15:46:54,673: DEBUG - + domain=maindomain.tld 2021-03-15 15:46:54,675: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=path 2021-03-15 15:46:54,785: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:46:54,787: DEBUG - ++ ynh_app_setting get garradin__2 path 2021-03-15 15:46:55,091: DEBUG - + path_url=/garra20 2021-03-15 15:46:55,093: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=final_path 2021-03-15 15:46:55,204: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:46:55,206: DEBUG - ++ ynh_app_setting get garradin__2 final_path 2021-03-15 15:46:55,611: DEBUG - + final_path=/var/www/garradin__2 2021-03-15 15:46:55,612: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=phpversion 2021-03-15 15:46:55,720: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:46:55,721: DEBUG - ++ ynh_app_setting get garradin__2 phpversion 2021-03-15 15:46:56,125: DEBUG - + phpversion=7.3 2021-03-15 15:46:56,127: DEBUG - ++ ynh_check_app_version_changed 2021-03-15 15:46:56,129: DEBUG - ++ local return_value=UPGRADE_APP 2021-03-15 15:46:56,130: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FULL ']' 2021-03-15 15:46:56,131: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FORCED ']' 2021-03-15 15:46:56,132: DEBUG - ++ '[' UPGRADE_APP == DOWNGRADE_FORCED ']' 2021-03-15 15:46:56,133: DEBUG - ++ echo UPGRADE_APP 2021-03-15 15:46:56,134: DEBUG - + upgrade_type=UPGRADE_APP 2021-03-15 15:46:56,343: DEBUG - + echo '[....................] > Ensuring downward compatibility...' 2021-03-15 15:46:56,346: DEBUG - + '[' -z /var/www/garradin__2 ']' 2021-03-15 15:46:56,348: DEBUG - + '[' -n '' ']' 2021-03-15 15:46:56,653: INFO - [....................] > Ensuring downward compatibility... 2021-03-15 15:46:56,661: DEBUG - + echo '[+++++++.............] > Backing up the data before upgrading (may take a while)...' 2021-03-15 15:46:56,664: DEBUG - + bdd=/var/www/garradin__2/association.sqlite 2021-03-15 15:46:56,664: DEBUG - + squelettes=/var/www/garradin__2/www/squelettes 2021-03-15 15:46:56,665: DEBUG - + '[' -d /var/www/garradin__2/www/squelettes ']' 2021-03-15 15:46:56,666: DEBUG - + cp -ar /var/www/garradin__2/www/squelettes /tmp/squelettes 2021-03-15 15:46:56,666: DEBUG - + '[' -e /var/www/garradin__2/association.sqlite ']' 2021-03-15 15:46:56,667: DEBUG - + cp -a /var/www/garradin__2/association.sqlite /tmp/association.sqlite 2021-03-15 15:46:56,771: INFO - [+++++++.............] > Backing up the data before upgrading (may take a while)... 2021-03-15 15:46:56,979: DEBUG - + echo '[#######+++++++......] > Backing up Garradin before upgrading (may take a while)...' 2021-03-15 15:46:56,982: DEBUG - + ynh_backup_before_upgrade 2021-03-15 15:46:56,983: DEBUG - + '[' '!' -e /etc/yunohost/apps/garradin__2/scripts/backup ']' 2021-03-15 15:46:56,984: DEBUG - + backup_number=1 2021-03-15 15:46:56,985: DEBUG - + local old_backup_number=2 2021-03-15 15:46:56,986: DEBUG - + local app_bck=garradin--2 2021-03-15 15:46:56,988: DEBUG - + NO_BACKUP_UPGRADE=0 2021-03-15 15:46:56,989: DEBUG - + '[' 0 -eq 0 ']' 2021-03-15 15:46:56,990: DEBUG - + yunohost backup list 2021-03-15 15:46:56,991: DEBUG - + grep --quiet garradin--2-pre-upgrade1 2021-03-15 15:46:57,895: DEBUG - + backup_number=2 2021-03-15 15:46:57,896: INFO - [#######+++++++......] > Backing up Garradin before upgrading (may take a while)... 2021-03-15 15:46:57,899: DEBUG - + old_backup_number=1 2021-03-15 15:46:57,900: DEBUG - + BACKUP_CORE_ONLY=1 2021-03-15 15:46:57,901: DEBUG - + yunohost backup create --apps garradin__2 --name garradin--2-pre-upgrade2 --debug 2021-03-15 15:46:58,304: DEBUG - 319 initializing base actions map parser for cli 2021-03-15 15:46:58,305: DEBUG - 324 loading actions map namespace 'yunohost' 2021-03-15 15:46:58,406: DEBUG - 395 building parser... 2021-03-15 15:46:58,408: DEBUG - 412 building parser took 0.016s 2021-03-15 15:46:58,409: DEBUG - 417 acquiring lock... 2021-03-15 15:46:58,610: DEBUG - 654 loading python module yunohost.backup took 0.149s 2021-03-15 15:46:58,612: DEBUG - 654 processing action [28112.1]: yunohost.backup.create with args={'methods': None, 'description': None, 'apps': ['garradin__2'], 'system': None, 'output_directory': None, 'name': 'garradin--2-pre-upgrade2'} 2021-03-15 15:46:58,613: DEBUG - 666 Collecting files to be backed up for garradin__2... 2021-03-15 15:46:58,715: DEBUG - 756 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=2 YNH_CWD=/home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup YNH_APP_MANIFEST_VERSION='1.0.5~ynh1' YNH_BACKUP_CSV=/tmp/backupcsv_9E32lh YNH_BACKUP_DIR=/home/yunohost.backup/tmp/garradin--2-pre-upgrade2 YNH_APP_INSTANCE_NAME=garradin__2 YNH_STDRETURN=/tmp/tmpeOicTY/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup YNH_STDINFO=/tmp/tmp1wnKPp/stdinfo YNH_INTERFACE=cli YNH_APP_ID=garradin BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_i5r_J8" /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup garradin__2 7>&1' 2021-03-15 15:46:58,716: DEBUG - 791 + source ../settings/scripts/_common.sh 2021-03-15 15:46:58,717: DEBUG - 793 ++ YNH_PHP_VERSION=7.3 2021-03-15 15:46:58,718: DEBUG - 794 ++ extra_php_dependencies=php7.3-sqlite3 2021-03-15 15:46:58,719: DEBUG - 795 + source /usr/share/yunohost/helpers 2021-03-15 15:46:58,720: DEBUG - 796 +++ grep xtrace 2021-03-15 15:46:58,720: DEBUG - 797 +++ set +o 2021-03-15 15:46:58,721: DEBUG - 798 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-03-15 15:46:58,722: DEBUG - 799 ++ XTRACE_ENABLE='set -o xtrace' 2021-03-15 15:46:58,824: DEBUG - 900 + ynh_abort_if_errors 2021-03-15 15:46:58,826: DEBUG - 901 + set -o errexit 2021-03-15 15:46:58,827: DEBUG - 903 + set -o nounset 2021-03-15 15:46:58,829: DEBUG - 904 + trap ynh_exit_properly EXIT 2021-03-15 15:46:59,138: DEBUG - 1211 + echo '[++++++++++++++++++++] > Loading installation settings...' 2021-03-15 15:46:59,139: DEBUG - 1212 [++++++++++++++++++++] > Loading installation settings... 2021-03-15 15:46:59,143: DEBUG - 1215 + app=garradin__2 2021-03-15 15:46:59,145: DEBUG - 1216 ++ ynh_app_setting_get --app=garradin__2 --key=final_path 2021-03-15 15:46:59,254: DEBUG - 1325 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:46:59,256: DEBUG - 1326 ++ ynh_app_setting get garradin__2 final_path 2021-03-15 15:46:59,560: DEBUG - 1629 + final_path=/var/www/garradin__2 2021-03-15 15:46:59,561: DEBUG - 1630 ++ ynh_app_setting_get --app=garradin__2 --key=domain 2021-03-15 15:46:59,669: DEBUG - 1741 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:46:59,670: DEBUG - 1742 ++ ynh_app_setting get garradin__2 domain 2021-03-15 15:47:00,073: DEBUG - 2146 + domain=maindomain.tld 2021-03-15 15:47:00,075: DEBUG - 2147 ++ ynh_app_setting_get --app=garradin__2 --key=phpversion 2021-03-15 15:47:00,184: DEBUG - 2257 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:00,186: DEBUG - 2258 ++ ynh_app_setting get garradin__2 phpversion 2021-03-15 15:47:00,590: DEBUG - 2661 + phpversion=7.3 2021-03-15 15:47:00,592: DEBUG - 2663 Declaring files to be backed up... 2021-03-15 15:47:00,593: DEBUG - 2664 + ynh_print_info '--message=Declaring files to be backed up...' 2021-03-15 15:47:00,599: DEBUG - 2672 + echo 'Declaring files to be backed up...' 2021-03-15 15:47:00,601: DEBUG - 2673 + ynh_backup --src_path=/var/www/garradin__2 2021-03-15 15:47:00,712: DEBUG - 2784 + dest_path= 2021-03-15 15:47:00,713: DEBUG - 2786 + is_big=0 2021-03-15 15:47:00,714: DEBUG - 2787 + not_mandatory=0 2021-03-15 15:47:00,715: DEBUG - 2788 + BACKUP_CORE_ONLY=1 2021-03-15 15:47:00,716: DEBUG - 2789 + test -n garradin__2 2021-03-15 15:47:00,718: DEBUG - 2790 ++ ynh_app_setting_get --app=garradin__2 --key=do_not_backup_data 2021-03-15 15:47:00,828: DEBUG - 2897 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:00,829: DEBUG - 2898 ++ ynh_app_setting get garradin__2 do_not_backup_data 2021-03-15 15:47:01,233: DEBUG - 3302 + do_not_backup_data= 2021-03-15 15:47:01,235: DEBUG - 3303 + '[' 0 -eq 1 ']' 2021-03-15 15:47:01,236: DEBUG - 3304 + '[' '!' -e /var/www/garradin__2 ']' 2021-03-15 15:47:01,238: DEBUG - 3305 ++ realpath /var/www/garradin__2 2021-03-15 15:47:01,239: DEBUG - 3306 + src_path=/var/www/garradin__2 2021-03-15 15:47:01,240: DEBUG - 3306 + [[ -z '' ]] 2021-03-15 15:47:01,241: DEBUG - 3307 + dest_path=var/www/garradin__2 2021-03-15 15:47:01,242: DEBUG - 3308 + [[ -e var/www/garradin__2 ]] 2021-03-15 15:47:01,243: DEBUG - 3309 + local rel_dir=/apps/garradin__2/backup 2021-03-15 15:47:01,244: DEBUG - 3310 + rel_dir=/apps/garradin__2/backup/ 2021-03-15 15:47:01,245: DEBUG - 3311 + dest_path=/apps/garradin__2/backup/var/www/garradin__2 2021-03-15 15:47:01,246: DEBUG - 3313 + dest_path=apps/garradin__2/backup/var/www/garradin__2 2021-03-15 15:47:01,247: DEBUG - 3315 ++ echo /var/www/garradin__2 2021-03-15 15:47:01,248: DEBUG - 3316 ++ sed --regexp-extended 's/"/\"\"/g' 2021-03-15 15:47:01,249: DEBUG - 3317 + local src=/var/www/garradin__2 2021-03-15 15:47:01,251: DEBUG - 3318 ++ echo apps/garradin__2/backup/var/www/garradin__2 2021-03-15 15:47:01,252: DEBUG - 3318 ++ sed --regexp-extended 's/"/\"\"/g' 2021-03-15 15:47:01,253: DEBUG - 3319 + local dest=apps/garradin__2/backup/var/www/garradin__2 2021-03-15 15:47:01,254: DEBUG - 3320 + echo '"/var/www/garradin__2","apps/garradin__2/backup/var/www/garradin__2"' 2021-03-15 15:47:01,255: DEBUG - 3321 ++ dirname /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup/var/www/garradin__2 2021-03-15 15:47:01,256: DEBUG - 3322 + mkdir --parents /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup/var/www 2021-03-15 15:47:01,257: DEBUG - 3323 + ynh_backup --src_path=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,365: DEBUG - 3433 + dest_path= 2021-03-15 15:47:01,367: DEBUG - 3434 + is_big=0 2021-03-15 15:47:01,368: DEBUG - 3436 + not_mandatory=0 2021-03-15 15:47:01,370: DEBUG - 3437 + BACKUP_CORE_ONLY=1 2021-03-15 15:47:01,371: DEBUG - 3438 + test -n garradin__2 2021-03-15 15:47:01,373: DEBUG - 3439 ++ ynh_app_setting_get --app=garradin__2 --key=do_not_backup_data 2021-03-15 15:47:01,484: DEBUG - 3546 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:01,486: DEBUG - 3547 ++ ynh_app_setting get garradin__2 do_not_backup_data 2021-03-15 15:47:01,890: DEBUG - 3951 + do_not_backup_data= 2021-03-15 15:47:01,891: DEBUG - 3952 + '[' 0 -eq 1 ']' 2021-03-15 15:47:01,893: DEBUG - 3954 + '[' '!' -e /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf ']' 2021-03-15 15:47:01,894: DEBUG - 3955 ++ realpath /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,896: DEBUG - 3956 + src_path=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,897: DEBUG - 3957 + [[ -z '' ]] 2021-03-15 15:47:01,898: DEBUG - 3958 + dest_path=etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,900: DEBUG - 3959 + [[ -e etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf ]] 2021-03-15 15:47:01,901: DEBUG - 3960 + local rel_dir=/apps/garradin__2/backup 2021-03-15 15:47:01,902: DEBUG - 3961 + rel_dir=/apps/garradin__2/backup/ 2021-03-15 15:47:01,903: DEBUG - 3961 + dest_path=/apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,904: DEBUG - 3962 + dest_path=apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,904: DEBUG - 3963 ++ echo /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,905: DEBUG - 3964 ++ sed --regexp-extended 's/"/\"\"/g' 2021-03-15 15:47:01,906: DEBUG - 3965 + local src=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,907: DEBUG - 3966 ++ echo apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,908: DEBUG - 3967 ++ sed --regexp-extended 's/"/\"\"/g' 2021-03-15 15:47:01,909: DEBUG - 3968 + local dest=apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,911: DEBUG - 3968 + echo '"/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf","apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf"' 2021-03-15 15:47:01,911: DEBUG - 3969 ++ dirname /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:01,912: DEBUG - 3970 + mkdir --parents /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup/etc/nginx/conf.d/maindomain.tld.d 2021-03-15 15:47:01,913: DEBUG - 3971 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,023: DEBUG - 4079 + dest_path= 2021-03-15 15:47:02,024: DEBUG - 4080 + is_big=0 2021-03-15 15:47:02,025: DEBUG - 4081 + not_mandatory=0 2021-03-15 15:47:02,027: DEBUG - 4081 + BACKUP_CORE_ONLY=1 2021-03-15 15:47:02,028: DEBUG - 4082 + test -n garradin__2 2021-03-15 15:47:02,029: DEBUG - 4083 ++ ynh_app_setting_get --app=garradin__2 --key=do_not_backup_data 2021-03-15 15:47:02,138: DEBUG - 4192 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:02,139: DEBUG - 4192 ++ ynh_app_setting get garradin__2 do_not_backup_data 2021-03-15 15:47:02,543: DEBUG - 4595 + do_not_backup_data= 2021-03-15 15:47:02,545: DEBUG - 4596 + '[' 0 -eq 1 ']' 2021-03-15 15:47:02,546: DEBUG - 4598 + '[' '!' -e /etc/php/7.3/fpm/pool.d/garradin__2.conf ']' 2021-03-15 15:47:02,548: DEBUG - 4599 ++ realpath /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,550: DEBUG - 4600 + src_path=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,551: DEBUG - 4601 + [[ -z '' ]] 2021-03-15 15:47:02,552: DEBUG - 4602 + dest_path=etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,553: DEBUG - 4603 + [[ -e etc/php/7.3/fpm/pool.d/garradin__2.conf ]] 2021-03-15 15:47:02,554: DEBUG - 4603 + local rel_dir=/apps/garradin__2/backup 2021-03-15 15:47:02,556: DEBUG - 4605 + rel_dir=/apps/garradin__2/backup/ 2021-03-15 15:47:02,557: DEBUG - 4606 + dest_path=/apps/garradin__2/backup/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,559: DEBUG - 4608 + dest_path=apps/garradin__2/backup/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,560: DEBUG - 4609 ++ echo /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,561: DEBUG - 4610 ++ sed --regexp-extended 's/"/\"\"/g' 2021-03-15 15:47:02,562: DEBUG - 4610 + local src=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,563: DEBUG - 4612 ++ echo apps/garradin__2/backup/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,563: DEBUG - 4612 ++ sed --regexp-extended 's/"/\"\"/g' 2021-03-15 15:47:02,564: DEBUG - 4613 + local dest=apps/garradin__2/backup/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,565: DEBUG - 4614 + echo '"/etc/php/7.3/fpm/pool.d/garradin__2.conf","apps/garradin__2/backup/etc/php/7.3/fpm/pool.d/garradin__2.conf"' 2021-03-15 15:47:02,566: DEBUG - 4615 ++ dirname /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:02,566: DEBUG - 4616 + mkdir --parents /home/yunohost.backup/tmp/garradin--2-pre-upgrade2/apps/garradin__2/backup/etc/php/7.3/fpm/pool.d 2021-03-15 15:47:02,567: DEBUG - 4617 + ynh_print_info '--message=Backup script completed for garradin__2. (YunoHost will then actually copy those files to the archive).' 2021-03-15 15:47:02,673: DEBUG - 4724 + echo 'Backup script completed for garradin__2. (YunoHost will then actually copy those files to the archive).' 2021-03-15 15:47:02,675: DEBUG - 4725 + ynh_exit_properly 2021-03-15 15:47:02,676: DEBUG - 4727 + local exit_code=0 2021-03-15 15:47:02,678: DEBUG - 4728 + '[' 0 -eq 0 ']' 2021-03-15 15:47:02,679: DEBUG - 4730 + exit 0 2021-03-15 15:47:02,781: DEBUG - 4773 Backup permission for garradin__2 2021-03-15 15:47:02,982: DEBUG - 4990 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth' 2021-03-15 15:47:03,786: DEBUG - 5834 Creating a backup archive from the collected files... 2021-03-15 15:47:03,787: DEBUG - 5835 Creating the backup TAR archive... 2021-03-15 15:47:05,091: DEBUG - 7134 TAR backup archive created 2021-03-15 15:47:05,092: DEBUG - 7134 Backup created 2021-03-15 15:47:05,093: DEBUG - 7135 action [28112.1] executed in 6.480s 2021-03-15 15:47:05,095: DEBUG - name: garradin--2-pre-upgrade2 2021-03-15 15:47:05,096: DEBUG - results: 2021-03-15 15:47:05,097: DEBUG - apps: 2021-03-15 15:47:05,098: DEBUG - garradin__2: Success 2021-03-15 15:47:05,099: DEBUG - system: 2021-03-15 15:47:05,100: DEBUG - size: 4244747 2021-03-15 15:47:05,201: DEBUG - + '[' 0 -eq 0 ']' 2021-03-15 15:47:05,203: DEBUG - + yunohost backup list 2021-03-15 15:47:05,204: DEBUG - + grep --quiet garradin--2-pre-upgrade1 2021-03-15 15:47:06,007: DEBUG - + yunohost backup delete garradin--2-pre-upgrade1 2021-03-15 15:47:06,811: DEBUG - + ynh_abort_if_errors 2021-03-15 15:47:06,812: DEBUG - + set -o errexit 2021-03-15 15:47:06,813: DEBUG - + set -o nounset 2021-03-15 15:47:06,813: DEBUG - + trap ynh_exit_properly EXIT 2021-03-15 15:47:07,121: DEBUG - + echo '[##############+.....] > Upgrading source files...' 2021-03-15 15:47:07,125: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']' 2021-03-15 15:47:07,126: DEBUG - + ynh_setup_source --dest_dir=/var/www/garradin__2 2021-03-15 15:47:07,235: DEBUG - + source_id=app 2021-03-15 15:47:07,236: INFO - [##############+.....] > Upgrading source files... 2021-03-15 15:47:07,240: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,241: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/scripts/../conf/app.src ']' 2021-03-15 15:47:07,242: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,243: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,244: DEBUG - + local src_url=https://fossil.kd2.org/garradin/uv/garradin-1.0.6.tar.bz2 2021-03-15 15:47:07,245: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,246: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,247: DEBUG - + local src_sum=dcb2b5481fdd9ca2544f1e1f81fff1067d6eb7189e0f8547c98f6413040cf65b 2021-03-15 15:47:07,248: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,248: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,249: DEBUG - + local src_sumprg=sha256sum 2021-03-15 15:47:07,250: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,251: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,252: DEBUG - + local src_format=tar.bz2 2021-03-15 15:47:07,252: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,253: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,254: DEBUG - + local src_extract= 2021-03-15 15:47:07,255: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,255: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,256: DEBUG - + local src_in_subdir=true 2021-03-15 15:47:07,257: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/scripts/../conf/app.src 2021-03-15 15:47:07,258: DEBUG - ++ cut --delimiter== --fields=2- 2021-03-15 15:47:07,259: DEBUG - + local src_filename= 2021-03-15 15:47:07,260: DEBUG - + src_sumprg=sha256sum 2021-03-15 15:47:07,260: DEBUG - + src_in_subdir=true 2021-03-15 15:47:07,261: DEBUG - + src_format=tar.bz2 2021-03-15 15:47:07,262: DEBUG - ++ echo tar.bz2 2021-03-15 15:47:07,263: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2021-03-15 15:47:07,263: DEBUG - + src_format=tar.bz2 2021-03-15 15:47:07,264: DEBUG - + src_extract=true 2021-03-15 15:47:07,265: DEBUG - + '[' '' = '' ']' 2021-03-15 15:47:07,266: DEBUG - + src_filename=app.tar.bz2 2021-03-15 15:47:07,267: DEBUG - + local local_src=/opt/yunohost-apps-src/garradin/app.tar.bz2 2021-03-15 15:47:07,267: DEBUG - + test -e /opt/yunohost-apps-src/garradin/app.tar.bz2 2021-03-15 15:47:07,269: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=app.tar.bz2 https://fossil.kd2.org/garradin/uv/garradin-1.0.6.tar.bz2 2021-03-15 15:47:08,273: DEBUG - + out='2021-03-15 15:47:08 URL:https://fossil.kd2.org/garradin/uv/garradin-1.0.6.tar.bz2 [389407/389407] -> "app.tar.bz2" [1]' 2021-03-15 15:47:08,275: DEBUG - + echo 'dcb2b5481fdd9ca2544f1e1f81fff1067d6eb7189e0f8547c98f6413040cf65b app.tar.bz2' 2021-03-15 15:47:08,276: DEBUG - + sha256sum --check --status 2021-03-15 15:47:08,278: DEBUG - + mkdir --parents /var/www/garradin__2 2021-03-15 15:47:08,279: DEBUG - + true 2021-03-15 15:47:08,280: DEBUG - + '[' tar.bz2 = zip ']' 2021-03-15 15:47:08,281: DEBUG - + local strip= 2021-03-15 15:47:08,282: DEBUG - + '[' true '!=' false ']' 2021-03-15 15:47:08,282: DEBUG - + '[' true == true ']' 2021-03-15 15:47:08,283: DEBUG - + local sub_dirs=1 2021-03-15 15:47:08,284: DEBUG - + strip='--strip-components 1' 2021-03-15 15:47:08,285: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2021-03-15 15:47:08,286: DEBUG - + tar --extract --file=app.tar.bz2 --directory=/var/www/garradin__2 --strip-components 1 2021-03-15 15:47:08,689: DEBUG - ++ find /var/cache/yunohost/from_file/scripts/../sources/patches/ -type f -name 'app-*.patch' 2021-03-15 15:47:08,691: DEBUG - ++ wc --lines 2021-03-15 15:47:08,692: DEBUG - + (( 0 > 0 )) 2021-03-15 15:47:08,694: DEBUG - + test -e /var/cache/yunohost/from_file/scripts/../sources/extra_files/app 2021-03-15 15:47:08,905: DEBUG - + echo '[###############.....] > Making sure dedicated system user exists...' 2021-03-15 15:47:08,907: DEBUG - + ynh_system_user_create --username=garradin__2 2021-03-15 15:47:09,016: DEBUG - + use_shell=0 2021-03-15 15:47:09,017: INFO - [###############.....] > Making sure dedicated system user exists... 2021-03-15 15:47:09,019: DEBUG - + home_dir= 2021-03-15 15:47:09,020: DEBUG - + ynh_system_user_exists garradin__2 2021-03-15 15:47:09,031: DEBUG - + getent passwd garradin__2 2021-03-15 15:47:09,341: DEBUG - + echo '[###############+....] > Upgrading NGINX web server configuration...' 2021-03-15 15:47:09,344: DEBUG - + ynh_add_nginx_config 2021-03-15 15:47:09,346: DEBUG - + finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:09,348: DEBUG - + local others_var= 2021-03-15 15:47:09,350: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:09,459: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf 2021-03-15 15:47:09,460: INFO - [###############+....] > Upgrading NGINX web server configuration... 2021-03-15 15:47:09,463: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf 2021-03-15 15:47:09,572: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:09,573: DEBUG - ++ ynh_app_setting get garradin__2 checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf 2021-03-15 15:47:09,976: DEBUG - + local checksum_value=13d449492ac14960071390c3786e6359 2021-03-15 15:47:09,978: DEBUG - + backup_file_checksum= 2021-03-15 15:47:09,980: DEBUG - + '[' -n 13d449492ac14960071390c3786e6359 ']' 2021-03-15 15:47:09,982: DEBUG - + '[' -e /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf ']' 2021-03-15 15:47:09,983: DEBUG - + echo '13d449492ac14960071390c3786e6359 /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf' 2021-03-15 15:47:09,985: DEBUG - + md5sum --check --status 2021-03-15 15:47:09,986: DEBUG - + cp ../conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:09,987: DEBUG - + test -n /garra20 2021-03-15 15:47:09,988: DEBUG - + local path_url_slash_less=/garra20 2021-03-15 15:47:09,989: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/garra20/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:10,198: DEBUG - + local delimit=@ 2021-03-15 15:47:10,199: DEBUG - + match_string=__PATH__/ 2021-03-15 15:47:10,200: DEBUG - + replace_string=/garra20/ 2021-03-15 15:47:10,202: DEBUG - + sed --in-place s@__PATH__/@/garra20/@g /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:10,203: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/garra20 --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:10,513: DEBUG - + local delimit=@ 2021-03-15 15:47:10,515: DEBUG - + match_string=__PATH__ 2021-03-15 15:47:10,516: DEBUG - + replace_string=/garra20 2021-03-15 15:47:10,517: DEBUG - + sed --in-place s@__PATH__@/garra20@g /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:10,519: DEBUG - + test -n maindomain.tld 2021-03-15 15:47:10,520: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=maindomain.tld --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:10,730: DEBUG - + local delimit=@ 2021-03-15 15:47:10,731: DEBUG - + match_string=__DOMAIN__ 2021-03-15 15:47:10,732: DEBUG - + replace_string=maindomain.tld 2021-03-15 15:47:10,733: DEBUG - + sed --in-place s@__DOMAIN__@maindomain.tld@g /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:10,735: DEBUG - + test -n '' 2021-03-15 15:47:10,736: DEBUG - + test -n garradin__2 2021-03-15 15:47:10,737: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=garradin__2 --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,046: DEBUG - + local delimit=@ 2021-03-15 15:47:11,047: DEBUG - + match_string=__NAME__ 2021-03-15 15:47:11,049: DEBUG - + replace_string=garradin__2 2021-03-15 15:47:11,051: DEBUG - + sed --in-place s@__NAME__@garradin__2@g /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,052: DEBUG - + test -n /var/www/garradin__2 2021-03-15 15:47:11,054: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/garradin__2 --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,263: DEBUG - + local delimit=@ 2021-03-15 15:47:11,265: DEBUG - + match_string=__FINALPATH__ 2021-03-15 15:47:11,266: DEBUG - + replace_string=/var/www/garradin__2 2021-03-15 15:47:11,268: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/garradin__2@g /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,269: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,580: DEBUG - + local delimit=@ 2021-03-15 15:47:11,581: DEBUG - + match_string=__PHPVERSION__ 2021-03-15 15:47:11,583: DEBUG - + replace_string=7.3 2021-03-15 15:47:11,585: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,586: DEBUG - + '[' /garra20 '!=' / ']' 2021-03-15 15:47:11,587: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,797: DEBUG - + local delimit=@ 2021-03-15 15:47:11,799: DEBUG - + match_string='^#sub_path_only' 2021-03-15 15:47:11,800: DEBUG - + replace_string= 2021-03-15 15:47:11,802: DEBUG - + sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,805: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,912: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf 2021-03-15 15:47:11,913: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/garradin__2.conf 2021-03-15 15:47:11,914: DEBUG - ++ cut '--delimiter= ' --fields=1 2021-03-15 15:47:11,915: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf --value=13d449492ac14960071390c3786e6359 2021-03-15 15:47:12,124: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:12,126: DEBUG - + ynh_app_setting set garradin__2 checksum__etc_nginx_conf.d_maindomain.tld.d_garradin__2.conf 13d449492ac14960071390c3786e6359 2021-03-15 15:47:12,529: DEBUG - + '[' -n '' ']' 2021-03-15 15:47:12,531: DEBUG - + unset backup_file_checksum 2021-03-15 15:47:12,532: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2021-03-15 15:47:12,849: DEBUG - + service_name=nginx 2021-03-15 15:47:12,850: DEBUG - + action=reload 2021-03-15 15:47:12,851: DEBUG - + line_match= 2021-03-15 15:47:12,852: DEBUG - + length=20 2021-03-15 15:47:12,853: DEBUG - + log_path=/var/log/nginx/nginx.log 2021-03-15 15:47:12,854: DEBUG - + timeout=300 2021-03-15 15:47:12,855: DEBUG - + [[ -n '' ]] 2021-03-15 15:47:12,856: DEBUG - + '[' reload == reload ']' 2021-03-15 15:47:12,857: DEBUG - + action=reload-or-restart 2021-03-15 15:47:12,858: DEBUG - + systemctl reload-or-restart nginx 2021-03-15 15:47:13,160: DEBUG - + [[ -n '' ]] 2021-03-15 15:47:13,470: DEBUG - + echo '[################....] > Upgrading PHP-FPM configuration...' 2021-03-15 15:47:13,471: INFO - [################....] > Upgrading PHP-FPM configuration... 2021-03-15 15:47:13,475: DEBUG - + ynh_add_fpm_config --package=php7.3-sqlite3 2021-03-15 15:47:13,590: DEBUG - + package=php7.3-sqlite3 2021-03-15 15:47:13,591: DEBUG - + use_template=1 2021-03-15 15:47:13,592: DEBUG - + usage= 2021-03-15 15:47:13,593: DEBUG - + footprint= 2021-03-15 15:47:13,594: DEBUG - + '[' -n '' ']' 2021-03-15 15:47:13,595: DEBUG - + '[' -n '' ']' 2021-03-15 15:47:13,597: DEBUG - + dedicated_service=0 2021-03-15 15:47:13,599: DEBUG - + phpversion=7.3 2021-03-15 15:47:13,600: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=phpversion 2021-03-15 15:47:13,708: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:13,709: DEBUG - ++ ynh_app_setting get garradin__2 phpversion 2021-03-15 15:47:14,113: DEBUG - + local old_phpversion=7.3 2021-03-15 15:47:14,115: DEBUG - + '[' -n 7.3 ']' 2021-03-15 15:47:14,116: DEBUG - + '[' 7.3 '!=' 7.3 ']' 2021-03-15 15:47:14,118: DEBUG - + '[' 7.3 '!=' 7.3 ']' 2021-03-15 15:47:14,119: DEBUG - + '[' -n php7.3-sqlite3 ']' 2021-03-15 15:47:14,121: DEBUG - + ynh_add_app_dependencies --package=php7.3-sqlite3 2021-03-15 15:47:14,129: DEBUG - + replace=0 2021-03-15 15:47:14,130: DEBUG - + local current_dependencies= 2021-03-15 15:47:14,131: DEBUG - + '[' 0 -eq 0 ']' 2021-03-15 15:47:14,133: DEBUG - + local dep_app=garradin--2 2021-03-15 15:47:14,134: DEBUG - + ynh_package_is_installed --package=garradin--2-ynh-deps 2021-03-15 15:47:14,242: DEBUG - + ynh_wait_dpkg_free 2021-03-15 15:47:14,747: DEBUG - + return 0 2021-03-15 15:47:14,748: DEBUG - + dpkg-query --show '--showformat=${Status}' garradin--2-ynh-deps 2021-03-15 15:47:14,749: DEBUG - + grep --count 'ok installed' 2021-03-15 15:47:14,750: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' garradin--2-ynh-deps 2021-03-15 15:47:14,851: DEBUG - + current_dependencies='php-sqlite3, php7.3-sqlite3 ' 2021-03-15 15:47:14,853: DEBUG - + current_dependencies='php-sqlite3, php7.3-sqlite3 ' 2021-03-15 15:47:14,854: DEBUG - + ynh_install_app_dependencies 'php-sqlite3, php7.3-sqlite3 php7.3-sqlite3' 2021-03-15 15:47:14,855: DEBUG - + local 'dependencies=php-sqlite3, php7.3-sqlite3 php7.3-sqlite3' 2021-03-15 15:47:14,856: DEBUG - ++ echo 'php-sqlite3, php7.3-sqlite3 php7.3-sqlite3' 2021-03-15 15:47:14,857: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2021-03-15 15:47:14,858: DEBUG - + dependencies='php-sqlite3,, php7.3-sqlite3, php7.3-sqlite3' 2021-03-15 15:47:14,859: DEBUG - + local 'dependencies=php-sqlite3,, php7.3-sqlite3, php7.3-sqlite3' 2021-03-15 15:47:14,860: DEBUG - + local manifest_path=../manifest.json 2021-03-15 15:47:14,861: DEBUG - + '[' '!' -e ../manifest.json ']' 2021-03-15 15:47:14,863: DEBUG - ++ grep '\"version\": ' ../manifest.json 2021-03-15 15:47:14,864: DEBUG - ++ cut '--delimiter="' --fields=4 2021-03-15 15:47:14,865: DEBUG - + local version=1.0.6~ynh1 2021-03-15 15:47:14,866: DEBUG - + '[' 10 -eq 0 ']' 2021-03-15 15:47:14,867: DEBUG - + local dep_app=garradin--2 2021-03-15 15:47:14,868: DEBUG - + [[ php-sqlite3,, php7.3-sqlite3, php7.3-sqlite3 =~ [<=>] ]] 2021-03-15 15:47:14,869: DEBUG - + echo php-sqlite3,, php7.3-sqlite3, php7.3-sqlite3 2021-03-15 15:47:14,870: DEBUG - + grep --quiet php 2021-03-15 15:47:14,871: DEBUG - + dpkg --list 2021-03-15 15:47:14,872: DEBUG - + grep php7.0 2021-03-15 15:47:14,873: DEBUG - + grep --quiet --invert-match 7.0.33-0+deb9 2021-03-15 15:47:14,975: DEBUG - + grep --recursive --quiet '^ *deb.*sury' /etc/apt/sources.list /etc/apt/sources.list~ /etc/apt/sources.list.d 2021-03-15 15:47:14,977: DEBUG - + cat 2021-03-15 15:47:14,979: DEBUG - + ynh_package_install_from_equivs /tmp/garradin--2-ynh-deps.control 2021-03-15 15:47:14,980: DEBUG - + local controlfile=/tmp/garradin--2-ynh-deps.control 2021-03-15 15:47:14,982: DEBUG - ++ grep '^Package: ' /tmp/garradin--2-ynh-deps.control 2021-03-15 15:47:14,983: DEBUG - ++ cut '--delimiter= ' --fields=2 2021-03-15 15:47:14,984: DEBUG - + local pkgname=garradin--2-ynh-deps 2021-03-15 15:47:14,984: DEBUG - ++ grep '^Version: ' /tmp/garradin--2-ynh-deps.control 2021-03-15 15:47:14,985: DEBUG - ++ cut '--delimiter= ' --fields=2 2021-03-15 15:47:14,986: DEBUG - + local pkgversion=1.0.6~ynh1 2021-03-15 15:47:14,987: DEBUG - + [[ -z garradin--2-ynh-deps ]] 2021-03-15 15:47:14,988: DEBUG - + [[ -z 1.0.6~ynh1 ]] 2021-03-15 15:47:14,988: DEBUG - + ynh_package_update 2021-03-15 15:47:14,989: DEBUG - + ynh_apt update 2021-03-15 15:47:14,990: DEBUG - + ynh_wait_dpkg_free 2021-03-15 15:47:15,493: DEBUG - + return 0 2021-03-15 15:47:15,495: DEBUG - + LC_ALL=C 2021-03-15 15:47:15,495: DEBUG - + DEBIAN_FRONTEND=noninteractive 2021-03-15 15:47:15,496: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2021-03-15 15:47:15,998: DEBUG - Hit:1 http://forge.yunohost.org/debian buster InRelease 2021-03-15 15:47:15,999: DEBUG - Get:2 http://debian.mirrors.ovh.net/debian buster InRelease [122 kB] 2021-03-15 15:47:16,001: DEBUG - Get:3 http://debian.mirrors.ovh.net/debian buster-updates InRelease [51.9 kB] 2021-03-15 15:47:16,001: DEBUG - Hit:4 http://security.debian.org/debian-security buster/updates InRelease 2021-03-15 15:47:16,003: DEBUG - Get:5 https://last-public-ovh-metrics.snap.mirrors.ovh.net/debian buster InRelease [4911 B] 2021-03-15 15:47:16,105: DEBUG - Get:6 https://last-public-ovh-rtm.snap.mirrors.ovh.net/debian buster InRelease [4914 B] 2021-03-15 15:47:16,106: DEBUG - Hit:7 https://download.docker.com/linux/debian buster InRelease 2021-03-15 15:47:16,107: DEBUG - Hit:8 https://packages.sury.org/php buster InRelease 2021-03-15 15:47:16,108: DEBUG - Get:9 https://last-public-ovh-kernel.snap.mirrors.ovh.net/debian ovhkernel InRelease [4957 B] 2021-03-15 15:47:21,226: DEBUG - sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor 2021-03-15 15:47:21,327: DEBUG - Fetched 188 kB in 5s (35.2 kB/s) 2021-03-15 15:47:25,438: DEBUG - Reading package lists... 2021-03-15 15:47:25,640: DEBUG - ++ mktemp --directory 2021-03-15 15:47:25,642: DEBUG - + local TMPDIR=/tmp/tmp.BR7GN6yEak 2021-03-15 15:47:25,643: DEBUG - + echo 10 2021-03-15 15:47:25,644: DEBUG - + ynh_wait_dpkg_free 2021-03-15 15:47:26,148: DEBUG - + return 0 2021-03-15 15:47:26,149: DEBUG - + cp /tmp/garradin--2-ynh-deps.control /tmp/tmp.BR7GN6yEak/control 2021-03-15 15:47:26,150: DEBUG - + cd /tmp/tmp.BR7GN6yEak 2021-03-15 15:47:26,151: DEBUG - + LC_ALL=C 2021-03-15 15:47:26,152: DEBUG - + equivs-build ./control 2021-03-15 15:47:29,763: DEBUG - + LC_ALL=C 2021-03-15 15:47:29,764: DEBUG - + dpkg --force-depends --install ./garradin--2-ynh-deps_1.0.6~ynh1_all.deb 2021-03-15 15:47:29,765: DEBUG - + tee ./dpkg_log 2021-03-15 15:47:30,267: DEBUG - (Reading database ... 40857 files and directories currently installed.) 2021-03-15 15:47:30,268: DEBUG - Preparing to unpack .../garradin--2-ynh-deps_1.0.6~ynh1_all.deb ... 2021-03-15 15:47:30,369: DEBUG - Unpacking garradin--2-ynh-deps (1.0.6~ynh1) over (1.0.5~ynh1) ... 2021-03-15 15:47:30,570: DEBUG - Setting up garradin--2-ynh-deps (1.0.6~ynh1) ... 2021-03-15 15:47:30,772: DEBUG - + ynh_package_install --fix-broken 2021-03-15 15:47:30,774: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2021-03-15 15:47:30,775: DEBUG - + ynh_wait_dpkg_free 2021-03-15 15:47:31,281: DEBUG - + return 0 2021-03-15 15:47:31,282: DEBUG - + LC_ALL=C 2021-03-15 15:47:31,283: DEBUG - + DEBIAN_FRONTEND=noninteractive 2021-03-15 15:47:31,285: 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-03-15 15:47:31,988: DEBUG - Reading package lists... 2021-03-15 15:47:32,591: DEBUG - Building dependency tree... 2021-03-15 15:47:32,592: DEBUG - Reading state information... 2021-03-15 15:47:33,596: DEBUG - The following package was automatically installed and is no longer required: 2021-03-15 15:47:33,597: DEBUG - php7.3 2021-03-15 15:47:33,599: DEBUG - Use 'apt autoremove' to remove it. 2021-03-15 15:47:33,700: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. 2021-03-15 15:47:33,701: DEBUG - + [[ -n /tmp/tmp.BR7GN6yEak ]] 2021-03-15 15:47:33,703: DEBUG - + rm --recursive --force /tmp/tmp.BR7GN6yEak 2021-03-15 15:47:33,704: DEBUG - + ynh_package_is_installed garradin--2-ynh-deps 2021-03-15 15:47:33,716: DEBUG - + ynh_wait_dpkg_free 2021-03-15 15:47:34,221: DEBUG - + return 0 2021-03-15 15:47:34,222: DEBUG - + dpkg-query --show '--showformat=${Status}' garradin--2-ynh-deps 2021-03-15 15:47:34,223: DEBUG - + grep --count 'ok installed' 2021-03-15 15:47:34,324: DEBUG - + rm /tmp/garradin--2-ynh-deps.control 2021-03-15 15:47:34,325: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=apt_dependencies '--value=php-sqlite3,, php7.3-sqlite3, php7.3-sqlite3' 2021-03-15 15:47:34,536: DEBUG - + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:34,537: DEBUG - + ynh_app_setting set garradin__2 apt_dependencies 'php-sqlite3,, php7.3-sqlite3, php7.3-sqlite3' 2021-03-15 15:47:34,941: DEBUG - + '[' 0 -eq 1 ']' 2021-03-15 15:47:34,943: DEBUG - + local fpm_service=php7.3-fpm 2021-03-15 15:47:34,945: DEBUG - + local fpm_config_dir=/etc/php/7.3/fpm 2021-03-15 15:47:34,947: DEBUG - + mkdir --parents /etc/php/7.3/fpm/pool.d 2021-03-15 15:47:34,949: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=fpm_config_dir --value=/etc/php/7.3/fpm 2021-03-15 15:47:35,159: DEBUG - + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:35,161: DEBUG - + ynh_app_setting set garradin__2 fpm_config_dir /etc/php/7.3/fpm 2021-03-15 15:47:35,566: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=fpm_service --value=php7.3-fpm 2021-03-15 15:47:35,877: DEBUG - + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:35,879: DEBUG - + ynh_app_setting set garradin__2 fpm_service php7.3-fpm 2021-03-15 15:47:36,183: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=fpm_dedicated_service --value=0 2021-03-15 15:47:36,491: DEBUG - + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:36,493: DEBUG - + ynh_app_setting set garradin__2 fpm_dedicated_service 0 2021-03-15 15:47:36,896: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=phpversion --value=7.3 2021-03-15 15:47:37,107: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:37,108: DEBUG - + ynh_app_setting set garradin__2 phpversion 7.3 2021-03-15 15:47:37,511: DEBUG - + finalphpconf=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:37,512: DEBUG - + '[' 0 -eq 1 ']' 2021-03-15 15:47:37,512: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:37,522: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf 2021-03-15 15:47:37,524: DEBUG - ++ ynh_app_setting_get --app=garradin__2 --key=checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf 2021-03-15 15:47:37,634: DEBUG - ++ [[ checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:37,635: DEBUG - ++ ynh_app_setting get garradin__2 checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf 2021-03-15 15:47:38,039: DEBUG - + local checksum_value=9136f94b594ebce90166138834f4aa98 2021-03-15 15:47:38,040: DEBUG - + backup_file_checksum= 2021-03-15 15:47:38,041: DEBUG - + '[' -n 9136f94b594ebce90166138834f4aa98 ']' 2021-03-15 15:47:38,042: DEBUG - + '[' -e /etc/php/7.3/fpm/pool.d/garradin__2.conf ']' 2021-03-15 15:47:38,043: DEBUG - + echo '9136f94b594ebce90166138834f4aa98 /etc/php/7.3/fpm/pool.d/garradin__2.conf' 2021-03-15 15:47:38,044: DEBUG - + md5sum --check --status 2021-03-15 15:47:38,045: DEBUG - + '[' 1 -eq 1 ']' 2021-03-15 15:47:38,046: DEBUG - + local phpfpm_path=../conf/php-fpm.conf 2021-03-15 15:47:38,047: DEBUG - + '[' '!' -e ../conf/php-fpm.conf ']' 2021-03-15 15:47:38,048: DEBUG - + '[' -e ../conf/php-fpm.conf ']' 2021-03-15 15:47:38,049: DEBUG - + cp ../conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,049: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=garradin__2 --target_file=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,258: DEBUG - + local delimit=@ 2021-03-15 15:47:38,259: DEBUG - + match_string=__NAMETOCHANGE__ 2021-03-15 15:47:38,261: DEBUG - + replace_string=garradin__2 2021-03-15 15:47:38,262: DEBUG - + sed --in-place s@__NAMETOCHANGE__@garradin__2@g /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,363: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/garradin__2 --target_file=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,576: DEBUG - + local delimit=@ 2021-03-15 15:47:38,578: DEBUG - + match_string=__FINALPATH__ 2021-03-15 15:47:38,579: DEBUG - + replace_string=/var/www/garradin__2 2021-03-15 15:47:38,580: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/garradin__2@g /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,581: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=garradin__2 --target_file=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,791: DEBUG - + local delimit=@ 2021-03-15 15:47:38,793: DEBUG - + match_string=__USER__ 2021-03-15 15:47:38,794: DEBUG - + replace_string=garradin__2 2021-03-15 15:47:38,795: DEBUG - + sed --in-place s@__USER__@garradin__2@g /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:38,896: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:39,109: DEBUG - + local delimit=@ 2021-03-15 15:47:39,110: DEBUG - + match_string=__PHPVERSION__ 2021-03-15 15:47:39,111: DEBUG - + replace_string=7.3 2021-03-15 15:47:39,112: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:39,112: DEBUG - + chown root: /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:39,114: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:39,121: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf 2021-03-15 15:47:39,122: DEBUG - ++ md5sum /etc/php/7.3/fpm/pool.d/garradin__2.conf 2021-03-15 15:47:39,123: DEBUG - ++ cut '--delimiter= ' --fields=1 2021-03-15 15:47:39,124: DEBUG - + ynh_app_setting_set --app=garradin__2 --key=checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf --value=9136f94b594ebce90166138834f4aa98 2021-03-15 15:47:39,433: DEBUG - + [[ checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf =~ (unprotected|protected|skipped)_ ]] 2021-03-15 15:47:39,434: DEBUG - + ynh_app_setting set garradin__2 checksum__etc_php_7.3_fpm_pool.d_garradin__2.conf 9136f94b594ebce90166138834f4aa98 2021-03-15 15:47:39,838: DEBUG - + '[' -n '' ']' 2021-03-15 15:47:39,839: DEBUG - + unset backup_file_checksum 2021-03-15 15:47:39,840: DEBUG - + '[' -e ../conf/php-fpm.ini ']' 2021-03-15 15:47:39,841: DEBUG - + '[' 0 -eq 1 ']' 2021-03-15 15:47:39,842: DEBUG - + php-fpm7.3 --test 2021-03-15 15:47:40,344: DEBUG - + ynh_systemd_action --service_name=php7.3-fpm --action=reload 2021-03-15 15:47:40,561: DEBUG - + service_name=php7.3-fpm 2021-03-15 15:47:40,562: DEBUG - + action=reload 2021-03-15 15:47:40,563: DEBUG - + line_match= 2021-03-15 15:47:40,564: DEBUG - + length=20 2021-03-15 15:47:40,565: DEBUG - + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 2021-03-15 15:47:40,565: DEBUG - + timeout=300 2021-03-15 15:47:40,571: DEBUG - + [[ -n '' ]] 2021-03-15 15:47:40,572: DEBUG - + '[' reload == reload ']' 2021-03-15 15:47:40,572: DEBUG - + action=reload-or-restart 2021-03-15 15:47:40,573: DEBUG - + systemctl reload-or-restart php7.3-fpm 2021-03-15 15:47:40,675: DEBUG - + [[ -n '' ]] 2021-03-15 15:47:40,983: INFO - [################+++.] > restore data... 2021-03-15 15:47:40,987: DEBUG - + echo '[################+++.] > restore data...' 2021-03-15 15:47:40,990: DEBUG - + backup_bdd=/tmp/association.sqlite 2021-03-15 15:47:40,991: DEBUG - + backup_squelettes=/tmp/squelettes 2021-03-15 15:47:40,993: DEBUG - + '[' -d /tmp/squelettes ']' 2021-03-15 15:47:40,994: DEBUG - + cp -ar /tmp/squelettes /var/www/garradin__2/www/squelettes 2021-03-15 15:47:40,996: DEBUG - + '[' -e /tmp/association.sqlite ']' 2021-03-15 15:47:40,997: DEBUG - + cp -a /tmp/association.sqlite /var/www/garradin__2/association.sqlite 2021-03-15 15:47:40,999: DEBUG - ++ ynh_string_random --length=50 2021-03-15 15:47:41,008: DEBUG - ++ length=50 2021-03-15 15:47:41,009: DEBUG - ++ tr --complement --delete A-Za-z0-9 2021-03-15 15:47:41,010: DEBUG - ++ sed --quiet 's/\(.\{50\}\).*/\1/p' 2021-03-15 15:47:41,011: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000 2021-03-15 15:47:41,112: DEBUG - + key=dznygNWcbyH3393mPZDtzGagoiPbRfABY3u2vgeoekMLJeeGO9 2021-03-15 15:47:41,113: DEBUG - + cp -a /var/www/garradin__2/config.dist.php /var/www/garradin__2/config.local.php 2021-03-15 15:47:41,115: DEBUG - + ynh_replace_string '--match_string=const SECRET_KEY = '\''3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r'\'';' '--replace_string=const SECRET_KEY = '\''dznygNWcbyH3393mPZDtzGagoiPbRfABY3u2vgeoekMLJeeGO9'\'';' --target_file=/var/www/garradin__2/config.local.php 2021-03-15 15:47:41,327: DEBUG - + local delimit=@ 2021-03-15 15:47:41,329: DEBUG - + match_string='const SECRET_KEY = '\''3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r'\'';' 2021-03-15 15:47:41,331: DEBUG - + replace_string='const SECRET_KEY = '\''dznygNWcbyH3393mPZDtzGagoiPbRfABY3u2vgeoekMLJeeGO9'\'';' 2021-03-15 15:47:41,334: DEBUG - + sed --in-place 's@const SECRET_KEY = '\''3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r'\'';@const SECRET_KEY = '\''dznygNWcbyH3393mPZDtzGagoiPbRfABY3u2vgeoekMLJeeGO9'\'';@g' /var/www/garradin__2/config.local.php 2021-03-15 15:47:41,335: DEBUG - + '[' /garra20 == / ']' 2021-03-15 15:47:41,337: DEBUG - + ynh_replace_string '--match_string=//const WWW_URI = '\''/asso/'\'';' '--replace_string=const WWW_URI = '\''/garra20/'\'';' --target_file=/var/www/garradin__2/config.local.php 2021-03-15 15:47:41,656: DEBUG - + local delimit=@ 2021-03-15 15:47:41,657: DEBUG - + match_string='//const WWW_URI = '\''/asso/'\'';' 2021-03-15 15:47:41,658: DEBUG - + replace_string='const WWW_URI = '\''/garra20/'\'';' 2021-03-15 15:47:41,659: DEBUG - + sed --in-place 's@//const WWW_URI = '\''/asso/'\'';@const WWW_URI = '\''/garra20/'\'';@g' /var/www/garradin__2/config.local.php 2021-03-15 15:47:41,660: DEBUG - + chown garradin__2:garradin__2 /var/www/garradin__2 -R 2021-03-15 15:47:41,661: DEBUG - + chmod 755 /var/www/garradin__2 -R 2021-03-15 15:47:42,071: DEBUG - + echo '[###################.] > Upgrading permissions configuration...' 2021-03-15 15:47:42,073: DEBUG - + ynh_permission_exists --permission visitors 2021-03-15 15:47:42,079: INFO - [###################.] > Upgrading permissions configuration... 2021-03-15 15:47:42,085: DEBUG - + yunohost user permission list --short 2021-03-15 15:47:42,086: DEBUG - + grep --word-regexp --quiet garradin__2.visitors 2021-03-15 15:47:43,800: DEBUG - + echo '[###################.] > Reloading NGINX web server...' 2021-03-15 15:47:43,802: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2021-03-15 15:47:44,214: DEBUG - + service_name=nginx 2021-03-15 15:47:44,215: INFO - [###################.] > Reloading NGINX web server... 2021-03-15 15:47:44,217: DEBUG - + action=reload 2021-03-15 15:47:44,218: DEBUG - + line_match= 2021-03-15 15:47:44,219: DEBUG - + length=20 2021-03-15 15:47:44,220: DEBUG - + log_path=/var/log/nginx/nginx.log 2021-03-15 15:47:44,221: DEBUG - + timeout=300 2021-03-15 15:47:44,222: DEBUG - + [[ -n '' ]] 2021-03-15 15:47:44,223: DEBUG - + '[' reload == reload ']' 2021-03-15 15:47:44,225: DEBUG - + action=reload-or-restart 2021-03-15 15:47:44,226: DEBUG - + systemctl reload-or-restart nginx 2021-03-15 15:47:44,427: DEBUG - + [[ -n '' ]] 2021-03-15 15:47:44,739: DEBUG - + echo '[####################] > Upgrade of Garradin completed' 2021-03-15 15:47:44,742: DEBUG - + ynh_exit_properly 2021-03-15 15:47:44,743: DEBUG - + local exit_code=0 2021-03-15 15:47:44,745: DEBUG - + '[' 0 -eq 0 ']' 2021-03-15 15:47:44,746: DEBUG - + exit 0 2021-03-15 15:47:44,804: DEBUG - Checking that required services are up and running... 2021-03-15 15:47:46,900: SUCCESS - garradin__2 mis à jour