ended_at: 2020-03-21 14:22:08.106975 env: YNH_APP_ID: piwigo YNH_APP_INSTANCE_NAME: piwigo YNH_APP_INSTANCE_NUMBER: '1' YNH_CWD: /var/cache/yunohost/from_file/piwigo_ynh-4bcb8de9b29cdbdeea5ea0e38a170e6d3e5c5ad7/scripts YNH_INTERFACE: cli YNH_STDINFO: /tmp/tmpehtkdj/stdinfo YNH_STDRETURN: /tmp/tmpgiClDG/stdreturn error: Unable to upgrade piwigo operation: app_upgrade related_to: - - app - piwigo started_at: 2020-03-21 14:19:09.105252 success: false ============ 2020-03-21 14:19:09,387: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/piwigo_ynh-4bcb8de9b29cdbdeea5ea0e38a170e6d3e5c5ad7/scripts YNH_STDINFO=/tmp/tmpehtkdj/stdinfo YNH_APP_INSTANCE_NAME=piwigo YNH_INTERFACE=cli YNH_APP_ID=piwigo YNH_STDRETURN=/tmp/tmpgiClDG/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" piwigo 7>&1'… 2020-03-21 14:19:09,390: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/piwigo_ynh-4bcb8de9b29cdbdeea5ea0e38a170e6d3e5c5ad7/scripts YNH_STDINFO=/tmp/tmpehtkdj/stdinfo YNH_APP_INSTANCE_NAME=piwigo YNH_INTERFACE=cli YNH_APP_ID=piwigo YNH_STDRETURN=/tmp/tmpgiClDG/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" piwigo 7>&1']' 2020-03-21 14:19:09,520: DEBUG - + source _common.sh 2020-03-21 14:19:09,533: DEBUG - ++ pkg_dependencies='php-gd php-imagick imagemagick' 2020-03-21 14:19:09,533: DEBUG - + source /usr/share/yunohost/helpers 2020-03-21 14:19:09,534: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d 2020-03-21 14:19:09,535: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,536: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-03-21 14:19:09,537: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt 2020-03-21 14:19:09,538: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,539: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-03-21 14:19:09,540: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup 2020-03-21 14:19:09,540: DEBUG - +++ CAN_BIND=1 2020-03-21 14:19:09,541: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,542: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-03-21 14:19:09,543: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-03-21 14:19:09,544: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,545: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-03-21 14:19:09,546: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts 2020-03-21 14:19:09,546: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,547: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-03-21 14:19:09,548: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging 2020-03-21 14:19:09,549: DEBUG - +++ increment_progression=0 2020-03-21 14:19:09,550: DEBUG - +++ previous_weight=0 2020-03-21 14:19:09,551: DEBUG - +++ max_progression=-1 2020-03-21 14:19:09,551: DEBUG - +++ progress_scale=20 2020-03-21 14:19:09,552: DEBUG - +++ progress_string2='####################' 2020-03-21 14:19:09,553: DEBUG - +++ progress_string1=++++++++++++++++++++ 2020-03-21 14:19:09,554: DEBUG - +++ progress_string0=.................... 2020-03-21 14:19:09,555: DEBUG - ++++ date +%s 2020-03-21 14:19:09,556: DEBUG - +++ base_time=1584800349 2020-03-21 14:19:09,557: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,558: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-03-21 14:19:09,559: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate 2020-03-21 14:19:09,560: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,561: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-03-21 14:19:09,561: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql 2020-03-21 14:19:09,562: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-03-21 14:19:09,563: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,564: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-03-21 14:19:09,565: DEBUG - ++ . /usr/share/yunohost/helpers.d/network 2020-03-21 14:19:09,566: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,567: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-03-21 14:19:09,568: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx 2020-03-21 14:19:09,568: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,569: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-03-21 14:19:09,570: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs 2020-03-21 14:19:09,571: DEBUG - +++ n_install_dir=/opt/node_n 2020-03-21 14:19:09,572: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node 2020-03-21 14:19:09,572: DEBUG - +++ export N_PREFIX=/opt/node_n 2020-03-21 14:19:09,573: DEBUG - +++ N_PREFIX=/opt/node_n 2020-03-21 14:19:09,574: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,575: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-03-21 14:19:09,576: DEBUG - ++ . /usr/share/yunohost/helpers.d/php 2020-03-21 14:19:09,577: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,577: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-03-21 14:19:09,579: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql 2020-03-21 14:19:09,580: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-03-21 14:19:09,581: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,582: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-03-21 14:19:09,583: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting 2020-03-21 14:19:09,584: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,585: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-03-21 14:19:09,586: DEBUG - ++ . /usr/share/yunohost/helpers.d/string 2020-03-21 14:19:09,587: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,588: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-03-21 14:19:09,589: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd 2020-03-21 14:19:09,590: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,591: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-03-21 14:19:09,592: DEBUG - ++ . /usr/share/yunohost/helpers.d/user 2020-03-21 14:19:09,593: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:09,595: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-03-21 14:19:09,595: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils 2020-03-21 14:19:09,596: DEBUG - + source _ynh_local_curl 2020-03-21 14:19:09,597: DEBUG - + ynh_script_progression '--message=Loading installation settings...' --weight=2 2020-03-21 14:19:09,598: DEBUG - + set +x 2020-03-21 14:19:09,600: DEBUG - + set +x 2020-03-21 14:19:09,701: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:19:09,702: INFO - [....................] > Loading installation settings... 2020-03-21 14:19:09,703: DEBUG - + set +x 2020-03-21 14:19:09,704: DEBUG - + echo '[....................] > Loading installation settings...' 2020-03-21 14:19:09,705: DEBUG - + set -x 2020-03-21 14:19:09,706: DEBUG - + app=piwigo 2020-03-21 14:19:09,706: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:09,707: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:09,708: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:09,709: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:09,710: DEBUG - ++ local app 2020-03-21 14:19:09,711: DEBUG - ++ local key 2020-03-21 14:19:09,712: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:09,713: DEBUG - ++ set +x 2020-03-21 14:19:09,713: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:09,714: DEBUG - ++ ACTION=get 2020-03-21 14:19:09,715: DEBUG - ++ APP=piwigo 2020-03-21 14:19:09,715: DEBUG - ++ KEY=********** 2020-03-21 14:19:09,716: DEBUG - ++ VALUE= 2020-03-21 14:19:09,717: DEBUG - ++ python - 2020-03-21 14:19:10,118: DEBUG - + **********=cryostase.eu 2020-03-21 14:19:10,119: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:10,120: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:10,120: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:10,121: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:10,122: DEBUG - ++ local app 2020-03-21 14:19:10,122: DEBUG - ++ local key 2020-03-21 14:19:10,123: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:10,123: DEBUG - ++ set +x 2020-03-21 14:19:10,224: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:10,225: DEBUG - ++ ACTION=get 2020-03-21 14:19:10,226: DEBUG - ++ APP=piwigo 2020-03-21 14:19:10,226: DEBUG - ++ KEY=********** 2020-03-21 14:19:10,227: DEBUG - ++ VALUE= 2020-03-21 14:19:10,227: DEBUG - ++ python - 2020-03-21 14:19:10,629: DEBUG - + **********_url=/piwigo 2020-03-21 14:19:10,631: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:10,631: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:10,633: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:10,633: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:10,635: DEBUG - ++ local app 2020-03-21 14:19:10,635: DEBUG - ++ local key 2020-03-21 14:19:10,637: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:10,637: DEBUG - ++ set +x 2020-03-21 14:19:10,638: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:10,639: DEBUG - ++ ACTION=get 2020-03-21 14:19:10,640: DEBUG - ++ APP=piwigo 2020-03-21 14:19:10,641: DEBUG - ++ KEY=********** 2020-03-21 14:19:10,641: DEBUG - ++ VALUE= 2020-03-21 14:19:10,642: DEBUG - ++ python - 2020-03-21 14:19:11,144: DEBUG - + **********=vincent 2020-03-21 14:19:11,145: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:11,146: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:11,147: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:11,148: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:11,148: DEBUG - ++ local app 2020-03-21 14:19:11,149: DEBUG - ++ local key 2020-03-21 14:19:11,150: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:11,150: DEBUG - ++ set +x 2020-03-21 14:19:11,151: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:11,152: DEBUG - ++ ACTION=get 2020-03-21 14:19:11,152: DEBUG - ++ APP=piwigo 2020-03-21 14:19:11,153: DEBUG - ++ KEY=********** 2020-03-21 14:19:11,154: DEBUG - ++ VALUE= 2020-03-21 14:19:11,155: DEBUG - ++ python - 2020-03-21 14:19:11,657: DEBUG - + **********=1 2020-03-21 14:19:11,658: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=final_********** 2020-03-21 14:19:11,659: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:11,659: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:11,660: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:11,661: DEBUG - ++ local app 2020-03-21 14:19:11,662: DEBUG - ++ local key 2020-03-21 14:19:11,662: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=final_********** 2020-03-21 14:19:11,663: DEBUG - ++ set +x 2020-03-21 14:19:11,664: DEBUG - ++ ynh_app_setting get piwigo final_********** 2020-03-21 14:19:11,665: DEBUG - ++ ACTION=get 2020-03-21 14:19:11,665: DEBUG - ++ APP=piwigo 2020-03-21 14:19:11,666: DEBUG - ++ KEY=final_********** 2020-03-21 14:19:11,667: DEBUG - ++ VALUE= 2020-03-21 14:19:11,667: DEBUG - ++ python - 2020-03-21 14:19:12,170: DEBUG - + final_**********=/var/www/piwigo 2020-03-21 14:19:12,171: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:12,171: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:12,172: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:12,172: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:12,173: DEBUG - ++ local app 2020-03-21 14:19:12,173: DEBUG - ++ local key 2020-03-21 14:19:12,174: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:12,175: DEBUG - ++ set +x 2020-03-21 14:19:12,175: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:12,176: DEBUG - ++ ACTION=get 2020-03-21 14:19:12,177: DEBUG - ++ APP=piwigo 2020-03-21 14:19:12,177: DEBUG - ++ KEY=********** 2020-03-21 14:19:12,178: DEBUG - ++ VALUE= 2020-03-21 14:19:12,178: DEBUG - ++ python - 2020-03-21 14:19:12,580: DEBUG - + **********=en 2020-03-21 14:19:12,581: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:12,582: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:12,583: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:12,584: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:12,585: DEBUG - ++ local app 2020-03-21 14:19:12,586: DEBUG - ++ local key 2020-03-21 14:19:12,587: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:12,588: DEBUG - ++ set +x 2020-03-21 14:19:12,689: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:12,690: DEBUG - ++ ACTION=get 2020-03-21 14:19:12,690: DEBUG - ++ APP=piwigo 2020-03-21 14:19:12,691: DEBUG - ++ KEY=********** 2020-03-21 14:19:12,692: DEBUG - ++ VALUE= 2020-03-21 14:19:12,692: DEBUG - ++ python - 2020-03-21 14:19:13,095: DEBUG - + **********=piwigo 2020-03-21 14:19:13,096: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=**********_pwd 2020-03-21 14:19:13,097: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:13,097: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:13,098: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:13,099: DEBUG - ++ local app 2020-03-21 14:19:13,100: DEBUG - ++ local key 2020-03-21 14:19:13,100: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=**********_pwd 2020-03-21 14:19:13,101: DEBUG - ++ set +x 2020-03-21 14:19:13,102: DEBUG - ++ ynh_app_setting get piwigo **********_pwd 2020-03-21 14:19:13,102: DEBUG - ++ ACTION=get 2020-03-21 14:19:13,103: DEBUG - ++ APP=piwigo 2020-03-21 14:19:13,104: DEBUG - ++ KEY=**********_pwd 2020-03-21 14:19:13,105: DEBUG - ++ VALUE= 2020-03-21 14:19:13,105: DEBUG - ++ python - 2020-03-21 14:19:13,608: DEBUG - + **********_pwd=********** 2020-03-21 14:19:13,609: DEBUG - ++ ynh_check_app_version_changed 2020-03-21 14:19:13,610: DEBUG - ++ local force_upgrade=0 2020-03-21 14:19:13,611: DEBUG - ++ local package_check=0 2020-03-21 14:19:13,612: DEBUG - ++ local return_value=UPGRADE_APP 2020-03-21 14:19:13,612: DEBUG - +++ ynh_read_manifest --manifest=/etc/yunohost/apps/piwigo/manifest.json --manifest_key=********** 2020-03-21 14:19:13,613: DEBUG - +++ local legacy_args=mk 2020-03-21 14:19:13,614: DEBUG - +++ args_array=([m]=manifest= [k]=manifest_key=) 2020-03-21 14:19:13,615: DEBUG - +++ declare -Ar args_array 2020-03-21 14:19:13,616: DEBUG - +++ local manifest 2020-03-21 14:19:13,617: DEBUG - +++ local manifest_key 2020-03-21 14:19:13,618: DEBUG - +++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/piwigo/manifest.json --manifest_key=********** 2020-03-21 14:19:13,619: DEBUG - +++ set +x 2020-03-21 14:19:13,620: DEBUG - +++ '[' '!' -e /etc/yunohost/apps/piwigo/manifest.json ']' 2020-03-21 14:19:13,621: DEBUG - +++ jq .********** /etc/yunohost/apps/piwigo/manifest.json --raw-output 2020-03-21 14:19:13,621: DEBUG - ++ local current_**********=2.10.1~ynh1 2020-03-21 14:19:13,622: DEBUG - +++ ynh_app_upstream_********** --manifest=/etc/yunohost/apps/piwigo/manifest.json 2020-03-21 14:19:13,623: DEBUG - +++ local legacy_args=m 2020-03-21 14:19:13,624: DEBUG - +++ args_array=([m]=manifest=) 2020-03-21 14:19:13,625: DEBUG - +++ declare -Ar args_array 2020-03-21 14:19:13,626: DEBUG - +++ local manifest 2020-03-21 14:19:13,627: DEBUG - +++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/piwigo/manifest.json 2020-03-21 14:19:13,628: DEBUG - +++ set +x 2020-03-21 14:19:13,629: DEBUG - +++ manifest=/etc/yunohost/apps/piwigo/manifest.json 2020-03-21 14:19:13,629: DEBUG - ++++ ynh_read_manifest --manifest=/etc/yunohost/apps/piwigo/manifest.json --manifest_key=********** 2020-03-21 14:19:13,630: DEBUG - ++++ local legacy_args=mk 2020-03-21 14:19:13,631: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=) 2020-03-21 14:19:13,632: DEBUG - ++++ declare -Ar args_array 2020-03-21 14:19:13,633: DEBUG - ++++ local manifest 2020-03-21 14:19:13,634: DEBUG - ++++ local manifest_key 2020-03-21 14:19:13,635: DEBUG - ++++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/piwigo/manifest.json --manifest_key=********** 2020-03-21 14:19:13,636: DEBUG - ++++ set +x 2020-03-21 14:19:13,737: DEBUG - ++++ '[' '!' -e /etc/yunohost/apps/piwigo/manifest.json ']' 2020-03-21 14:19:13,738: DEBUG - ++++ jq .********** /etc/yunohost/apps/piwigo/manifest.json --raw-output 2020-03-21 14:19:13,739: DEBUG - +++ **********_key=********** 2020-03-21 14:19:13,739: DEBUG - +++ echo 2.10.1 2020-03-21 14:19:13,740: DEBUG - ++ local current_upstream_**********=2.10.1 2020-03-21 14:19:13,740: DEBUG - +++ ynh_read_manifest --manifest=../manifest.json --manifest_key=********** 2020-03-21 14:19:13,741: DEBUG - +++ local legacy_args=mk 2020-03-21 14:19:13,742: DEBUG - +++ args_array=([m]=manifest= [k]=manifest_key=) 2020-03-21 14:19:13,742: DEBUG - +++ declare -Ar args_array 2020-03-21 14:19:13,743: DEBUG - +++ local manifest 2020-03-21 14:19:13,743: DEBUG - +++ local manifest_key 2020-03-21 14:19:13,744: DEBUG - +++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=********** 2020-03-21 14:19:13,745: DEBUG - +++ set +x 2020-03-21 14:19:13,745: DEBUG - +++ '[' '!' -e ../manifest.json ']' 2020-03-21 14:19:13,746: DEBUG - +++ jq .********** ../manifest.json --raw-output 2020-03-21 14:19:13,747: DEBUG - ++ local update_**********=2.10.1~ynh2 2020-03-21 14:19:13,747: DEBUG - +++ ynh_app_upstream_********** 2020-03-21 14:19:13,748: DEBUG - +++ local legacy_args=m 2020-03-21 14:19:13,748: DEBUG - +++ args_array=([m]=manifest=) 2020-03-21 14:19:13,749: DEBUG - +++ declare -Ar args_array 2020-03-21 14:19:13,749: DEBUG - +++ local manifest 2020-03-21 14:19:13,750: DEBUG - +++ ynh_handle_getopts_args 2020-03-21 14:19:13,750: DEBUG - +++ set +x 2020-03-21 14:19:13,751: DEBUG - +++ manifest=../manifest.json 2020-03-21 14:19:13,751: DEBUG - ++++ ynh_read_manifest --manifest=../manifest.json --manifest_key=********** 2020-03-21 14:19:13,752: DEBUG - ++++ local legacy_args=mk 2020-03-21 14:19:13,753: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=) 2020-03-21 14:19:13,753: DEBUG - ++++ declare -Ar args_array 2020-03-21 14:19:13,754: DEBUG - ++++ local manifest 2020-03-21 14:19:13,755: DEBUG - ++++ local manifest_key 2020-03-21 14:19:13,756: DEBUG - ++++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=********** 2020-03-21 14:19:13,758: DEBUG - ++++ set +x 2020-03-21 14:19:13,759: DEBUG - ++++ '[' '!' -e ../manifest.json ']' 2020-03-21 14:19:13,761: DEBUG - ++++ jq .********** ../manifest.json --raw-output 2020-03-21 14:19:13,862: DEBUG - +++ **********_key=********** 2020-03-21 14:19:13,863: DEBUG - +++ echo 2.10.1 2020-03-21 14:19:13,864: DEBUG - ++ local update_upstream_**********=2.10.1 2020-03-21 14:19:13,865: DEBUG - ++ '[' ********** == ********** ']' 2020-03-21 14:19:13,866: DEBUG - ++ '[' 2.10.1 == 2.10.1 ']' 2020-03-21 14:19:13,867: DEBUG - ++ return_value=UPGRADE_PACKAGE 2020-03-21 14:19:13,868: DEBUG - ++ echo UPGRADE_PACKAGE 2020-03-21 14:19:13,868: DEBUG - + upgrade_type=UPGRADE_PACKAGE 2020-03-21 14:19:13,869: DEBUG - + ynh_script_progression '--message=Ensuring downward compatibility...' 2020-03-21 14:19:13,870: DEBUG - + set +x 2020-03-21 14:19:13,871: DEBUG - + set +x 2020-03-21 14:19:13,872: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:19:13,873: DEBUG - + set +x 2020-03-21 14:19:13,874: DEBUG - + echo '[+...................] > Ensuring downward compatibility...' 2020-03-21 14:19:13,875: DEBUG - + set -x 2020-03-21 14:19:13,876: DEBUG - + '[' -z piwigo ']' 2020-03-21 14:19:13,877: DEBUG - + '[' -z /var/www/piwigo ']' 2020-03-21 14:19:13,878: DEBUG - + '[' -z ********** ']' 2020-03-21 14:19:13,879: DEBUG - + '[' -z /piwigo ']' 2020-03-21 14:19:13,880: DEBUG - + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...' --weight=6 2020-03-21 14:19:13,882: DEBUG - + set +x 2020-03-21 14:19:13,884: DEBUG - + set +x 2020-03-21 14:19:13,885: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:19:13,886: DEBUG - + set +x 2020-03-21 14:19:13,887: DEBUG - + echo '[#+++................] > Backing up the app before upgrading (may take a while)...' 2020-03-21 14:19:13,888: DEBUG - + set -x 2020-03-21 14:19:13,889: DEBUG - + ynh_backup_before_upgrade 2020-03-21 14:19:13,889: DEBUG - + '[' '!' -e /etc/yunohost/apps/piwigo/scripts/backup ']' 2020-03-21 14:19:13,890: DEBUG - + backup_number=1 2020-03-21 14:19:13,891: DEBUG - + local old_backup_number=2 2020-03-21 14:19:13,892: DEBUG - + local app_bck=piwigo 2020-03-21 14:19:13,892: DEBUG - + NO_BACKUP_UPGRADE=0 2020-03-21 14:19:13,893: DEBUG - + '[' 0 -eq 0 ']' 2020-03-21 14:19:13,894: DEBUG - + sudo yunohost backup list 2020-03-21 14:19:13,894: DEBUG - + grep -q piwigo-pre-upgrade1 2020-03-21 14:19:13,895: INFO - [+...................] > Ensuring downward compatibility... 2020-03-21 14:19:15,401: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps piwigo --name piwigo-pre-upgrade1 --debug 2020-03-21 14:19:15,402: INFO - [#+++................] > Backing up the app before upgrading (may take a while)... 2020-03-21 14:19:16,105: DEBUG - 519 loading actions map namespace 'yunohost' 2020-03-21 14:19:16,206: DEBUG - 609 extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern'] 2020-03-21 14:19:16,207: DEBUG - 611 initializing base actions map parser for cli 2020-03-21 14:19:16,208: DEBUG - 615 registering new callback action 'yunohost.utils.packages.ynh_packages_**********' to ['-v', '--**********'] 2020-03-21 14:19:16,711: DEBUG - 1182 loading python module yunohost.backup took 0.258s 2020-03-21 14:19:16,711: DEBUG - 1183 processing action [8164.1]: yunohost.backup.create with args={'description': None, 'apps': ['piwigo'], 'system': None, 'output_directory': None, 'methods': None, 'no_compress': False, 'name': 'piwigo-pre-upgrade1'} 2020-03-21 14:19:16,712: DEBUG - 1185 custom hook folder not found for action 'backup' in /etc/yunohost/hooks.d/ 2020-03-21 14:19:16,813: DEBUG - 1197 Collecting files to be backuped for piwigo… 2020-03-21 14:19:16,814: DEBUG - 1221 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup YNH_STDINFO=/tmp/tmp6UZErV/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_4Pn9Jr YNH_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1 YNH_APP_INSTANCE_NAME=piwigo YNH_INTERFACE=cli YNH_APP_ID=piwigo YNH_STDRETURN=/tmp/tmpJZpSqG/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_EVm9zI" /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup piwigo 7>&1'… 2020-03-21 14:19:16,815: DEBUG - 1223 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup YNH_STDINFO=/tmp/tmp6UZErV/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_4Pn9Jr YNH_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1 YNH_APP_INSTANCE_NAME=piwigo YNH_INTERFACE=cli YNH_APP_ID=piwigo YNH_STDRETURN=/tmp/tmpJZpSqG/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_EVm9zI" /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup piwigo 7>&1']' 2020-03-21 14:19:16,816: DEBUG - 1250 + source ../settings/scripts/_common.sh 2020-03-21 14:19:16,816: DEBUG - 1252 ++ pkg_dependencies='php-gd php-imagick imagemagick' 2020-03-21 14:19:16,817: DEBUG - 1253 + source /usr/share/yunohost/helpers 2020-03-21 14:19:16,817: DEBUG - 1254 +++ run-parts --list /usr/share/yunohost/helpers.d 2020-03-21 14:19:16,818: DEBUG - 1255 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,819: DEBUG - 1257 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-03-21 14:19:16,819: DEBUG - 1258 ++ . /usr/share/yunohost/helpers.d/apt 2020-03-21 14:19:16,820: DEBUG - 1259 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,820: DEBUG - 1259 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-03-21 14:19:16,821: DEBUG - 1260 ++ . /usr/share/yunohost/helpers.d/backup 2020-03-21 14:19:16,821: DEBUG - 1261 +++ CAN_BIND=1 2020-03-21 14:19:16,923: DEBUG - 1362 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,923: DEBUG - 1363 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-03-21 14:19:16,925: DEBUG - 1364 ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-03-21 14:19:16,925: DEBUG - 1364 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,926: DEBUG - 1365 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-03-21 14:19:16,927: DEBUG - 1366 ++ . /usr/share/yunohost/helpers.d/getopts 2020-03-21 14:19:16,929: DEBUG - 1367 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,930: DEBUG - 1367 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-03-21 14:19:16,931: DEBUG - 1368 ++ . /usr/share/yunohost/helpers.d/logging 2020-03-21 14:19:16,931: DEBUG - 1369 +++ increment_progression=0 2020-03-21 14:19:16,932: DEBUG - 1370 +++ previous_weight=0 2020-03-21 14:19:16,933: DEBUG - 1371 +++ max_progression=-1 2020-03-21 14:19:16,934: DEBUG - 1371 +++ progress_scale=20 2020-03-21 14:19:16,935: DEBUG - 1372 +++ progress_string2='####################' 2020-03-21 14:19:16,936: DEBUG - 1373 +++ progress_string1=++++++++++++++++++++ 2020-03-21 14:19:16,937: DEBUG - 1374 +++ progress_string0=.................... 2020-03-21 14:19:16,938: DEBUG - 1374 ++++ date +%s 2020-03-21 14:19:16,939: DEBUG - 1375 +++ base_time=1584800356 2020-03-21 14:19:16,940: DEBUG - 1376 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,941: DEBUG - 1376 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-03-21 14:19:16,941: DEBUG - 1377 ++ . /usr/share/yunohost/helpers.d/logrotate 2020-03-21 14:19:16,942: DEBUG - 1378 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,943: DEBUG - 1379 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-03-21 14:19:16,944: DEBUG - 1379 ++ . /usr/share/yunohost/helpers.d/mysql 2020-03-21 14:19:16,946: DEBUG - 1380 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-03-21 14:19:16,947: DEBUG - 1381 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,947: DEBUG - 1382 ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-03-21 14:19:16,948: DEBUG - 1382 ++ . /usr/share/yunohost/helpers.d/network 2020-03-21 14:19:16,949: DEBUG - 1383 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,950: DEBUG - 1384 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-03-21 14:19:16,951: DEBUG - 1385 ++ . /usr/share/yunohost/helpers.d/nginx 2020-03-21 14:19:16,952: DEBUG - 1385 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,953: DEBUG - 1386 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-03-21 14:19:16,954: DEBUG - 1387 ++ . /usr/share/yunohost/helpers.d/nodejs 2020-03-21 14:19:16,955: DEBUG - 1388 +++ n_install_dir=/opt/node_n 2020-03-21 14:19:16,956: DEBUG - 1388 +++ node_**********_**********=/opt/node_n/n/**********s/node 2020-03-21 14:19:16,957: DEBUG - 1389 +++ export N_PREFIX=/opt/node_n 2020-03-21 14:19:16,958: DEBUG - 1390 +++ N_PREFIX=/opt/node_n 2020-03-21 14:19:16,959: DEBUG - 1391 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,960: DEBUG - 1392 ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-03-21 14:19:16,961: DEBUG - 1392 ++ . /usr/share/yunohost/helpers.d/php 2020-03-21 14:19:16,962: DEBUG - 1393 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,963: DEBUG - 1394 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-03-21 14:19:16,964: DEBUG - 1395 ++ . /usr/share/yunohost/helpers.d/postgresql 2020-03-21 14:19:16,965: DEBUG - 1395 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-03-21 14:19:16,966: DEBUG - 1396 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,967: DEBUG - 1397 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-03-21 14:19:16,968: DEBUG - 1398 ++ . /usr/share/yunohost/helpers.d/setting 2020-03-21 14:19:16,969: DEBUG - 1398 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,970: DEBUG - 1399 ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-03-21 14:19:16,971: DEBUG - 1400 ++ . /usr/share/yunohost/helpers.d/string 2020-03-21 14:19:16,972: DEBUG - 1401 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,973: DEBUG - 1401 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-03-21 14:19:16,975: DEBUG - 1402 ++ . /usr/share/yunohost/helpers.d/systemd 2020-03-21 14:19:16,976: DEBUG - 1403 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,976: DEBUG - 1404 ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-03-21 14:19:16,977: DEBUG - 1405 ++ . /usr/share/yunohost/helpers.d/user 2020-03-21 14:19:16,978: DEBUG - 1405 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:19:16,979: DEBUG - 1406 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-03-21 14:19:16,981: DEBUG - 1407 ++ . /usr/share/yunohost/helpers.d/utils 2020-03-21 14:19:16,982: DEBUG - 1408 + ynh_abort_if_errors 2020-03-21 14:19:16,983: DEBUG - 1409 + set -eu 2020-03-21 14:19:16,983: DEBUG - 1409 + trap ynh_exit_properly EXIT 2020-03-21 14:19:16,984: DEBUG - 1410 + ynh_script_progression '--message=Loading installation settings...' --weight=2 2020-03-21 14:19:16,985: DEBUG - 1411 + set +x 2020-03-21 14:19:16,986: DEBUG - 1412 + set +x 2020-03-21 14:19:17,087: DEBUG - 1513 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:17,088: DEBUG - 1514 + set +x 2020-03-21 14:19:17,089: DEBUG - 1514 + echo '[++++................] > Loading installation settings...' 2020-03-21 14:19:17,090: DEBUG - 1515 + set -x 2020-03-21 14:19:17,090: DEBUG - 1516 + app=piwigo 2020-03-21 14:19:17,091: DEBUG - 1516 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:17,092: DEBUG - 1517 ++ local legacy_args=ak 2020-03-21 14:19:17,093: DEBUG - 1518 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:17,093: DEBUG - 1519 ++ declare -Ar args_array 2020-03-21 14:19:17,094: DEBUG - 1519 ++ local app 2020-03-21 14:19:17,094: DEBUG - 1520 ++ local key 2020-03-21 14:19:17,095: DEBUG - 1521 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:17,096: DEBUG - 1521 ++ set +x 2020-03-21 14:19:17,096: DEBUG - 1522 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:17,097: DEBUG - 1523 ++ ACTION=get 2020-03-21 14:19:17,097: DEBUG - 1523 ++ APP=piwigo 2020-03-21 14:19:17,098: DEBUG - 1524 ++ KEY=********** 2020-03-21 14:19:17,098: DEBUG - 1525 ++ VALUE= 2020-03-21 14:19:17,099: DEBUG - 1525 ++ python - 2020-03-21 14:19:17,601: DEBUG - 2027 + **********=cryostase.eu 2020-03-21 14:19:17,602: DEBUG - 2028 [++++................] > Loading installation settings... 2020-03-21 14:19:17,603: DEBUG - 2029 ++ ynh_app_setting_get --app=piwigo --key=final_********** 2020-03-21 14:19:17,603: DEBUG - 2030 ++ local legacy_args=ak 2020-03-21 14:19:17,604: DEBUG - 2030 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:17,605: DEBUG - 2031 ++ declare -Ar args_array 2020-03-21 14:19:17,605: DEBUG - 2031 ++ local app 2020-03-21 14:19:17,606: DEBUG - 2032 ++ local key 2020-03-21 14:19:17,606: DEBUG - 2033 ++ ynh_handle_getopts_args --app=piwigo --key=final_********** 2020-03-21 14:19:17,607: DEBUG - 2033 ++ set +x 2020-03-21 14:19:17,608: DEBUG - 2034 ++ ynh_app_setting get piwigo final_********** 2020-03-21 14:19:17,608: DEBUG - 2035 ++ ACTION=get 2020-03-21 14:19:17,609: DEBUG - 2035 ++ APP=piwigo 2020-03-21 14:19:17,609: DEBUG - 2036 ++ KEY=final_********** 2020-03-21 14:19:17,610: DEBUG - 2037 ++ VALUE= 2020-03-21 14:19:17,610: DEBUG - 2037 ++ python - 2020-03-21 14:19:18,113: DEBUG - 2540 + final_**********=/var/www/piwigo 2020-03-21 14:19:18,114: DEBUG - 2540 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:18,115: DEBUG - 2541 ++ local legacy_args=ak 2020-03-21 14:19:18,115: DEBUG - 2542 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:18,116: DEBUG - 2543 ++ declare -Ar args_array 2020-03-21 14:19:18,117: DEBUG - 2544 ++ local app 2020-03-21 14:19:18,118: DEBUG - 2544 ++ local key 2020-03-21 14:19:18,118: DEBUG - 2545 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:18,119: DEBUG - 2546 ++ set +x 2020-03-21 14:19:18,120: DEBUG - 2546 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:18,120: DEBUG - 2547 ++ ACTION=get 2020-03-21 14:19:18,121: DEBUG - 2548 ++ APP=piwigo 2020-03-21 14:19:18,122: DEBUG - 2548 ++ KEY=********** 2020-03-21 14:19:18,123: DEBUG - 2549 ++ VALUE= 2020-03-21 14:19:18,123: DEBUG - 2550 ++ python - 2020-03-21 14:19:18,525: DEBUG - 2951 + **********=piwigo 2020-03-21 14:19:18,526: DEBUG - 2952 + ynh_script_progression '--message=Backing up the main app directory...' 2020-03-21 14:19:18,527: DEBUG - 2953 + set +x 2020-03-21 14:19:18,629: DEBUG - 3054 + set +x 2020-03-21 14:19:18,629: DEBUG - 3055 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:18,630: DEBUG - 3056 + set +x 2020-03-21 14:19:18,631: DEBUG - 3057 + echo '[####++..............] > Backing up the main app directory...' 2020-03-21 14:19:18,631: DEBUG - 3057 + set -x 2020-03-21 14:19:18,632: DEBUG - 3058 + ynh_backup --src_**********=/var/www/piwigo 2020-03-21 14:19:18,632: DEBUG - 3059 + local legacy_args=sdbm 2020-03-21 14:19:18,633: DEBUG - 3059 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-03-21 14:19:18,633: DEBUG - 3060 + declare -Ar args_array 2020-03-21 14:19:18,634: DEBUG - 3061 + local src_********** 2020-03-21 14:19:18,635: DEBUG - 3061 + local dest_********** 2020-03-21 14:19:18,636: DEBUG - 3062 + local is_big 2020-03-21 14:19:18,637: DEBUG - 3063 + local not_mandatory 2020-03-21 14:19:18,637: DEBUG - 3063 + ynh_handle_getopts_args --src_**********=/var/www/piwigo 2020-03-21 14:19:18,638: DEBUG - 3064 + set +x 2020-03-21 14:19:18,639: DEBUG - 3064 [####++..............] > Backing up the main app directory... 2020-03-21 14:19:18,640: DEBUG - 3065 + local dest_**********= 2020-03-21 14:19:18,641: DEBUG - 3066 + local is_big=0 2020-03-21 14:19:18,642: DEBUG - 3066 + local not_mandatory=0 2020-03-21 14:19:18,643: DEBUG - 3067 + BACKUP_CORE_ONLY=1 2020-03-21 14:19:18,644: DEBUG - 3068 + test -n piwigo 2020-03-21 14:19:18,644: DEBUG - 3068 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:18,645: DEBUG - 3069 ++ local legacy_args=ak 2020-03-21 14:19:18,646: DEBUG - 3070 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:18,646: DEBUG - 3070 ++ declare -Ar args_array 2020-03-21 14:19:18,647: DEBUG - 3071 ++ local app 2020-03-21 14:19:18,647: DEBUG - 3071 ++ local key 2020-03-21 14:19:18,648: DEBUG - 3072 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:18,648: DEBUG - 3073 ++ set +x 2020-03-21 14:19:18,649: DEBUG - 3073 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:18,650: DEBUG - 3074 ++ ACTION=get 2020-03-21 14:19:18,650: DEBUG - 3075 ++ APP=piwigo 2020-03-21 14:19:18,651: DEBUG - 3075 ++ KEY=********** 2020-03-21 14:19:18,651: DEBUG - 3076 ++ VALUE= 2020-03-21 14:19:18,652: DEBUG - 3076 ++ python - 2020-03-21 14:19:19,154: DEBUG - 3579 + **********= 2020-03-21 14:19:19,155: DEBUG - 3580 + '[' 0 -eq 1 ']' 2020-03-21 14:19:19,156: DEBUG - 3580 + [[ -e /var/www/piwigo ]] 2020-03-21 14:19:19,157: DEBUG - 3581 ++ real********** /var/www/piwigo 2020-03-21 14:19:19,158: DEBUG - 3582 + src_**********=/var/www/piwigo 2020-03-21 14:19:19,159: DEBUG - 3583 + [[ -z '' ]] 2020-03-21 14:19:19,160: DEBUG - 3584 + dest_**********=var/www/piwigo 2020-03-21 14:19:19,161: DEBUG - 3584 + [[ ! -e var/www/piwigo ]] 2020-03-21 14:19:19,162: DEBUG - 3585 + local rel_dir=/apps/piwigo/backup 2020-03-21 14:19:19,163: DEBUG - 3586 + rel_dir=/apps/piwigo/backup/ 2020-03-21 14:19:19,164: DEBUG - 3587 + dest_**********=/apps/piwigo/backup/var/www/piwigo 2020-03-21 14:19:19,165: DEBUG - 3587 + dest_**********=apps/piwigo/backup/var/www/piwigo 2020-03-21 14:19:19,166: DEBUG - 3588 ++ echo /var/www/piwigo 2020-03-21 14:19:19,167: DEBUG - 3589 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:19,167: DEBUG - 3590 + local src=/var/www/piwigo 2020-03-21 14:19:19,168: DEBUG - 3591 ++ echo apps/piwigo/backup/var/www/piwigo 2020-03-21 14:19:19,169: DEBUG - 3592 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:19,170: DEBUG - 3592 + local dest=apps/piwigo/backup/var/www/piwigo 2020-03-21 14:19:19,171: DEBUG - 3593 + echo '"/var/www/piwigo","apps/piwigo/backup/var/www/piwigo"' 2020-03-21 14:19:19,172: DEBUG - 3594 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/var/www/piwigo 2020-03-21 14:19:19,173: DEBUG - 3594 + mkdir -p /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/var/www 2020-03-21 14:19:19,174: DEBUG - 3595 + ynh_script_progression '--message=Backing up nginx web server configuration...' 2020-03-21 14:19:19,175: DEBUG - 3596 + set +x 2020-03-21 14:19:19,176: DEBUG - 3597 + set +x 2020-03-21 14:19:19,177: DEBUG - 3597 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:19,177: DEBUG - 3598 + set +x 2020-03-21 14:19:19,179: DEBUG - 3599 + echo '[######++............] > Backing up nginx web server configuration...' 2020-03-21 14:19:19,179: DEBUG - 3600 + set -x 2020-03-21 14:19:19,180: DEBUG - 3600 + ynh_backup --src_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,181: DEBUG - 3601 + local legacy_args=sdbm 2020-03-21 14:19:19,182: DEBUG - 3602 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-03-21 14:19:19,183: DEBUG - 3603 + declare -Ar args_array 2020-03-21 14:19:19,184: DEBUG - 3604 + local src_********** 2020-03-21 14:19:19,185: DEBUG - 3604 + local dest_********** 2020-03-21 14:19:19,185: DEBUG - 3605 + local is_big 2020-03-21 14:19:19,186: DEBUG - 3606 + local not_mandatory 2020-03-21 14:19:19,187: DEBUG - 3606 + ynh_handle_getopts_args --src_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,188: DEBUG - 3607 + set +x 2020-03-21 14:19:19,289: DEBUG - 3709 + local dest_**********= 2020-03-21 14:19:19,290: DEBUG - 3710 [######++............] > Backing up nginx web server configuration... 2020-03-21 14:19:19,291: DEBUG - 3710 + local is_big=0 2020-03-21 14:19:19,292: DEBUG - 3711 + local not_mandatory=0 2020-03-21 14:19:19,293: DEBUG - 3712 + BACKUP_CORE_ONLY=1 2020-03-21 14:19:19,294: DEBUG - 3712 + test -n piwigo 2020-03-21 14:19:19,295: DEBUG - 3713 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:19,296: DEBUG - 3713 ++ local legacy_args=ak 2020-03-21 14:19:19,297: DEBUG - 3714 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:19,298: DEBUG - 3714 ++ declare -Ar args_array 2020-03-21 14:19:19,299: DEBUG - 3715 ++ local app 2020-03-21 14:19:19,300: DEBUG - 3715 ++ local key 2020-03-21 14:19:19,301: DEBUG - 3716 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:19,302: DEBUG - 3716 ++ set +x 2020-03-21 14:19:19,303: DEBUG - 3717 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:19,304: DEBUG - 3717 ++ ACTION=get 2020-03-21 14:19:19,304: DEBUG - 3718 ++ APP=piwigo 2020-03-21 14:19:19,305: DEBUG - 3718 ++ KEY=********** 2020-03-21 14:19:19,306: DEBUG - 3719 ++ VALUE= 2020-03-21 14:19:19,307: DEBUG - 3719 ++ python - 2020-03-21 14:19:19,710: DEBUG - 4121 + **********= 2020-03-21 14:19:19,721: DEBUG - 4122 + '[' 0 -eq 1 ']' 2020-03-21 14:19:19,723: DEBUG - 4123 + [[ -e /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf ]] 2020-03-21 14:19:19,724: DEBUG - 4123 ++ real********** /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,725: DEBUG - 4124 + src_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,726: DEBUG - 4125 + [[ -z '' ]] 2020-03-21 14:19:19,727: DEBUG - 4125 + dest_**********=etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,728: DEBUG - 4126 + [[ ! -e etc/nginx/conf.d/cryostase.eu.d/piwigo.conf ]] 2020-03-21 14:19:19,729: DEBUG - 4127 + local rel_dir=/apps/piwigo/backup 2020-03-21 14:19:19,730: DEBUG - 4128 + rel_dir=/apps/piwigo/backup/ 2020-03-21 14:19:19,731: DEBUG - 4129 + dest_**********=/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,731: DEBUG - 4129 + dest_**********=apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,732: DEBUG - 4130 ++ echo /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,733: DEBUG - 4131 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:19,734: DEBUG - 4132 + local src=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,735: DEBUG - 4133 ++ echo apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,736: DEBUG - 4133 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:19,737: DEBUG - 4134 + local dest=apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,738: DEBUG - 4135 + echo '"/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf","apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf"' 2020-03-21 14:19:19,739: DEBUG - 4136 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:19,740: DEBUG - 4136 + mkdir -p /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d 2020-03-21 14:19:19,842: DEBUG - 4237 + ynh_script_progression '--message=Backing up php-fpm configuration...' 2020-03-21 14:19:19,843: DEBUG - 4238 + set +x 2020-03-21 14:19:19,844: DEBUG - 4239 + set +x 2020-03-21 14:19:19,845: DEBUG - 4240 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:19,846: DEBUG - 4241 + set +x 2020-03-21 14:19:19,846: DEBUG - 4242 + echo '[########+++.........] > Backing up php-fpm configuration...' 2020-03-21 14:19:19,847: DEBUG - 4242 + set -x 2020-03-21 14:19:19,847: DEBUG - 4243 + ynh_backup --src_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:19,848: DEBUG - 4244 + local legacy_args=sdbm 2020-03-21 14:19:19,848: DEBUG - 4245 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-03-21 14:19:19,849: DEBUG - 4246 + declare -Ar args_array 2020-03-21 14:19:19,850: DEBUG - 4246 + local src_********** 2020-03-21 14:19:19,850: DEBUG - 4247 + local dest_********** 2020-03-21 14:19:19,851: DEBUG - 4248 + local is_big 2020-03-21 14:19:19,851: DEBUG - 4248 + local not_mandatory 2020-03-21 14:19:19,852: DEBUG - 4249 + ynh_handle_getopts_args --src_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:19,853: DEBUG - 4250 + set +x 2020-03-21 14:19:19,853: DEBUG - 4251 + local dest_**********= 2020-03-21 14:19:19,854: DEBUG - 4252 + local is_big=0 2020-03-21 14:19:19,854: DEBUG - 4252 + local not_mandatory=0 2020-03-21 14:19:19,855: DEBUG - 4253 + BACKUP_CORE_ONLY=1 2020-03-21 14:19:19,856: DEBUG - 4254 + test -n piwigo 2020-03-21 14:19:19,856: DEBUG - 4255 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:19,857: DEBUG - 4255 ++ local legacy_args=ak 2020-03-21 14:19:19,857: DEBUG - 4256 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:19,858: DEBUG - 4257 ++ declare -Ar args_array 2020-03-21 14:19:19,858: DEBUG - 4258 ++ local app 2020-03-21 14:19:19,859: DEBUG - 4259 ++ local key 2020-03-21 14:19:19,860: DEBUG - 4259 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:19,860: DEBUG - 4260 ++ set +x 2020-03-21 14:19:19,861: DEBUG - 4261 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:19,861: DEBUG - 4261 ++ ACTION=get 2020-03-21 14:19:19,862: DEBUG - 4262 ++ APP=piwigo 2020-03-21 14:19:19,862: DEBUG - 4263 ++ KEY=********** 2020-03-21 14:19:19,863: DEBUG - 4264 ++ VALUE= 2020-03-21 14:19:19,864: DEBUG - 4264 ++ python - 2020-03-21 14:19:20,366: DEBUG - 4767 + **********= 2020-03-21 14:19:20,367: DEBUG - 4768 [########+++.........] > Backing up php-fpm configuration... 2020-03-21 14:19:20,368: DEBUG - 4769 + '[' 0 -eq 1 ']' 2020-03-21 14:19:20,368: DEBUG - 4770 + [[ -e /etc/php/7.0/fpm/pool.d/piwigo.conf ]] 2020-03-21 14:19:20,369: DEBUG - 4770 ++ real********** /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,370: DEBUG - 4771 + src_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,371: DEBUG - 4772 + [[ -z '' ]] 2020-03-21 14:19:20,372: DEBUG - 4773 + dest_**********=etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,373: DEBUG - 4773 + [[ ! -e etc/php/7.0/fpm/pool.d/piwigo.conf ]] 2020-03-21 14:19:20,374: DEBUG - 4774 + local rel_dir=/apps/piwigo/backup 2020-03-21 14:19:20,375: DEBUG - 4775 + rel_dir=/apps/piwigo/backup/ 2020-03-21 14:19:20,376: DEBUG - 4776 + dest_**********=/apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,376: DEBUG - 4776 + dest_**********=apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,377: DEBUG - 4777 ++ echo /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,378: DEBUG - 4778 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:20,379: DEBUG - 4779 + local src=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,380: DEBUG - 4780 ++ echo apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,382: DEBUG - 4780 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:20,383: DEBUG - 4781 + local dest=apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,384: DEBUG - 4782 + echo '"/etc/php/7.0/fpm/pool.d/piwigo.conf","apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf"' 2020-03-21 14:19:20,385: DEBUG - 4782 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:19:20,387: DEBUG - 4783 + mkdir -p /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/php/7.0/fpm/pool.d 2020-03-21 14:19:20,388: DEBUG - 4784 + ynh_script_progression '--message=Backing up the MySQL database...' 2020-03-21 14:19:20,389: DEBUG - 4785 + set +x 2020-03-21 14:19:20,389: DEBUG - 4785 + set +x 2020-03-21 14:19:20,491: DEBUG - 4886 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:20,492: DEBUG - 4888 [###########++.......] > Backing up the MySQL database... 2020-03-21 14:19:20,493: DEBUG - 4889 + set +x 2020-03-21 14:19:20,494: DEBUG - 4890 + echo '[###########++.......] > Backing up the MySQL database...' 2020-03-21 14:19:20,495: DEBUG - 4891 + set -x 2020-03-21 14:19:20,496: DEBUG - 4892 + ynh_mysql_dump_db --database=piwigo 2020-03-21 14:19:20,497: DEBUG - 4893 + local legacy_args=d 2020-03-21 14:19:20,498: DEBUG - 4894 + args_array=([d]=database=) 2020-03-21 14:19:20,499: DEBUG - 4895 + declare -Ar args_array 2020-03-21 14:19:20,500: DEBUG - 4896 + local database 2020-03-21 14:19:20,501: DEBUG - 4897 + ynh_handle_getopts_args --database=piwigo 2020-03-21 14:19:20,502: DEBUG - 4897 + set +x 2020-03-21 14:19:20,503: DEBUG - 4898 ++ sudo cat /etc/yunohost/mysql 2020-03-21 14:19:20,504: DEBUG - 4898 + mysqldump -u root -p********** --single-transaction --skip-dump-date piwigo 2020-03-21 14:19:20,806: DEBUG - 5200 + ynh_script_progression '--message=Backing up fail2ban configuration...' 2020-03-21 14:19:20,807: DEBUG - 5201 + set +x 2020-03-21 14:19:20,808: DEBUG - 5202 + set +x 2020-03-21 14:19:20,808: DEBUG - 5202 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:20,809: DEBUG - 5203 + set +x 2020-03-21 14:19:20,810: DEBUG - 5204 + echo '[#############++.....] > Backing up fail2ban configuration...' 2020-03-21 14:19:20,811: DEBUG - 5205 + set -x 2020-03-21 14:19:20,811: DEBUG - 5206 + ynh_backup --src_**********=/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:20,812: DEBUG - 5206 + local legacy_args=sdbm 2020-03-21 14:19:20,813: DEBUG - 5207 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-03-21 14:19:20,813: DEBUG - 5208 + declare -Ar args_array 2020-03-21 14:19:20,814: DEBUG - 5209 + local src_********** 2020-03-21 14:19:20,815: DEBUG - 5210 + local dest_********** 2020-03-21 14:19:20,816: DEBUG - 5211 + local is_big 2020-03-21 14:19:20,817: DEBUG - 5212 + local not_mandatory 2020-03-21 14:19:20,817: DEBUG - 5212 + ynh_handle_getopts_args --src_**********=/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:20,818: DEBUG - 5213 + set +x 2020-03-21 14:19:20,920: DEBUG - 5314 + local dest_**********= 2020-03-21 14:19:20,921: DEBUG - 5315 [#############++.....] > Backing up fail2ban configuration... 2020-03-21 14:19:20,922: DEBUG - 5316 + local is_big=0 2020-03-21 14:19:20,923: DEBUG - 5317 + local not_mandatory=0 2020-03-21 14:19:20,923: DEBUG - 5317 + BACKUP_CORE_ONLY=1 2020-03-21 14:19:20,925: DEBUG - 5318 + test -n piwigo 2020-03-21 14:19:20,925: DEBUG - 5319 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:20,926: DEBUG - 5320 ++ local legacy_args=ak 2020-03-21 14:19:20,927: DEBUG - 5320 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:20,928: DEBUG - 5321 ++ declare -Ar args_array 2020-03-21 14:19:20,929: DEBUG - 5322 ++ local app 2020-03-21 14:19:20,930: DEBUG - 5322 ++ local key 2020-03-21 14:19:20,931: DEBUG - 5323 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:20,932: DEBUG - 5323 ++ set +x 2020-03-21 14:19:20,933: DEBUG - 5324 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:20,933: DEBUG - 5324 ++ ACTION=get 2020-03-21 14:19:20,935: DEBUG - 5325 ++ APP=piwigo 2020-03-21 14:19:20,935: DEBUG - 5325 ++ KEY=********** 2020-03-21 14:19:20,936: DEBUG - 5326 ++ VALUE= 2020-03-21 14:19:20,937: DEBUG - 5326 ++ python - 2020-03-21 14:19:21,339: DEBUG - 5728 + **********= 2020-03-21 14:19:21,340: DEBUG - 5729 + '[' 0 -eq 1 ']' 2020-03-21 14:19:21,341: DEBUG - 5730 + [[ -e /etc/fail2ban/jail.d/piwigo.conf ]] 2020-03-21 14:19:21,342: DEBUG - 5731 ++ real********** /etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,343: DEBUG - 5731 + src_**********=/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,344: DEBUG - 5732 + [[ -z '' ]] 2020-03-21 14:19:21,345: DEBUG - 5733 + dest_**********=etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,346: DEBUG - 5734 + [[ ! -e etc/fail2ban/jail.d/piwigo.conf ]] 2020-03-21 14:19:21,346: DEBUG - 5735 + local rel_dir=/apps/piwigo/backup 2020-03-21 14:19:21,347: DEBUG - 5736 + rel_dir=/apps/piwigo/backup/ 2020-03-21 14:19:21,348: DEBUG - 5736 + dest_**********=/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,349: DEBUG - 5737 + dest_**********=apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,349: DEBUG - 5737 ++ echo /etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,350: DEBUG - 5738 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:21,351: DEBUG - 5738 + local src=/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,352: DEBUG - 5739 ++ echo apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,353: DEBUG - 5740 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:21,454: DEBUG - 5841 + local dest=apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,456: DEBUG - 5842 + echo '"/etc/fail2ban/jail.d/piwigo.conf","apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf"' 2020-03-21 14:19:21,456: DEBUG - 5842 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:19:21,457: DEBUG - 5843 + mkdir -p /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/jail.d 2020-03-21 14:19:21,458: DEBUG - 5843 + ynh_backup --src_**********=/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,459: DEBUG - 5844 + local legacy_args=sdbm 2020-03-21 14:19:21,460: DEBUG - 5845 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-03-21 14:19:21,461: DEBUG - 5845 + declare -Ar args_array 2020-03-21 14:19:21,462: DEBUG - 5846 + local src_********** 2020-03-21 14:19:21,463: DEBUG - 5847 + local dest_********** 2020-03-21 14:19:21,464: DEBUG - 5847 + local is_big 2020-03-21 14:19:21,465: DEBUG - 5848 + local not_mandatory 2020-03-21 14:19:21,466: DEBUG - 5849 + ynh_handle_getopts_args --src_**********=/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,467: DEBUG - 5849 + set +x 2020-03-21 14:19:21,468: DEBUG - 5850 + local dest_**********= 2020-03-21 14:19:21,468: DEBUG - 5851 + local is_big=0 2020-03-21 14:19:21,469: DEBUG - 5851 + local not_mandatory=0 2020-03-21 14:19:21,470: DEBUG - 5852 + BACKUP_CORE_ONLY=1 2020-03-21 14:19:21,471: DEBUG - 5853 + test -n piwigo 2020-03-21 14:19:21,472: DEBUG - 5853 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:21,473: DEBUG - 5854 ++ local legacy_args=ak 2020-03-21 14:19:21,474: DEBUG - 5854 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:21,475: DEBUG - 5855 ++ declare -Ar args_array 2020-03-21 14:19:21,476: DEBUG - 5856 ++ local app 2020-03-21 14:19:21,477: DEBUG - 5856 ++ local key 2020-03-21 14:19:21,478: DEBUG - 5857 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:21,479: DEBUG - 5857 ++ set +x 2020-03-21 14:19:21,479: DEBUG - 5858 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:21,480: DEBUG - 5859 ++ ACTION=get 2020-03-21 14:19:21,481: DEBUG - 5859 ++ APP=piwigo 2020-03-21 14:19:21,482: DEBUG - 5860 ++ KEY=********** 2020-03-21 14:19:21,483: DEBUG - 5860 ++ VALUE= 2020-03-21 14:19:21,484: DEBUG - 5861 ++ python - 2020-03-21 14:19:21,986: DEBUG - 6363 + **********= 2020-03-21 14:19:21,987: DEBUG - 6364 + '[' 0 -eq 1 ']' 2020-03-21 14:19:21,988: DEBUG - 6365 + [[ -e /etc/fail2ban/filter.d/piwigo.conf ]] 2020-03-21 14:19:21,989: DEBUG - 6366 ++ real********** /etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,990: DEBUG - 6366 + src_**********=/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,990: DEBUG - 6367 + [[ -z '' ]] 2020-03-21 14:19:21,991: DEBUG - 6368 + dest_**********=etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,992: DEBUG - 6369 + [[ ! -e etc/fail2ban/filter.d/piwigo.conf ]] 2020-03-21 14:19:21,992: DEBUG - 6370 + local rel_dir=/apps/piwigo/backup 2020-03-21 14:19:21,993: DEBUG - 6370 + rel_dir=/apps/piwigo/backup/ 2020-03-21 14:19:21,994: DEBUG - 6371 + dest_**********=/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,995: DEBUG - 6372 + dest_**********=apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,995: DEBUG - 6373 ++ echo /etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,996: DEBUG - 6373 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:21,997: DEBUG - 6374 + local src=/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,998: DEBUG - 6375 ++ echo apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:21,998: DEBUG - 6375 ++ sed -r 's/"/\"\"/g' 2020-03-21 14:19:21,999: DEBUG - 6376 + local dest=apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:22,000: DEBUG - 6377 + echo '"/etc/fail2ban/filter.d/piwigo.conf","apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf"' 2020-03-21 14:19:22,001: DEBUG - 6378 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:19:22,002: DEBUG - 6379 + mkdir -p /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/filter.d 2020-03-21 14:19:22,003: DEBUG - 6379 + ynh_script_progression '--message=Backing up data directory...' 2020-03-21 14:19:22,004: DEBUG - 6380 + set +x 2020-03-21 14:19:22,005: DEBUG - 6381 + set +x 2020-03-21 14:19:22,006: DEBUG - 6381 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:22,007: DEBUG - 6382 + set +x 2020-03-21 14:19:22,007: DEBUG - 6383 + echo '[###############++...] > Backing up data directory...' 2020-03-21 14:19:22,008: DEBUG - 6383 + set -x 2020-03-21 14:19:22,008: DEBUG - 6384 + ynh_backup --src_**********=/home/yunohost.app/piwigo/upload --is_big 2020-03-21 14:19:22,009: DEBUG - 6385 + local legacy_args=sdbm 2020-03-21 14:19:22,010: DEBUG - 6386 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-03-21 14:19:22,010: DEBUG - 6387 + declare -Ar args_array 2020-03-21 14:19:22,011: DEBUG - 6388 + local src_********** 2020-03-21 14:19:22,011: DEBUG - 6389 + local dest_********** 2020-03-21 14:19:22,012: DEBUG - 6390 + local is_big 2020-03-21 14:19:22,012: DEBUG - 6390 + local not_mandatory 2020-03-21 14:19:22,013: DEBUG - 6391 + ynh_handle_getopts_args --src_**********=/home/yunohost.app/piwigo/upload --is_big 2020-03-21 14:19:22,014: DEBUG - 6392 + set +x 2020-03-21 14:19:22,014: DEBUG - 6393 + local dest_**********= 2020-03-21 14:19:22,015: DEBUG - 6393 + local is_big=1 2020-03-21 14:19:22,015: DEBUG - 6394 + local not_mandatory=0 2020-03-21 14:19:22,016: DEBUG - 6395 + BACKUP_CORE_ONLY=1 2020-03-21 14:19:22,017: DEBUG - 6395 + test -n piwigo 2020-03-21 14:19:22,017: DEBUG - 6396 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:22,018: DEBUG - 6397 ++ local legacy_args=ak 2020-03-21 14:19:22,018: DEBUG - 6398 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:22,019: DEBUG - 6398 ++ declare -Ar args_array 2020-03-21 14:19:22,019: DEBUG - 6399 ++ local app 2020-03-21 14:19:22,020: DEBUG - 6400 ++ local key 2020-03-21 14:19:22,021: DEBUG - 6401 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:22,021: DEBUG - 6401 ++ set +x 2020-03-21 14:19:22,122: DEBUG - 6502 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:22,123: DEBUG - 6503 [###############++...] > Backing up data directory... 2020-03-21 14:19:22,124: DEBUG - 6504 ++ ACTION=get 2020-03-21 14:19:22,125: DEBUG - 6504 ++ APP=piwigo 2020-03-21 14:19:22,126: DEBUG - 6505 ++ KEY=********** 2020-03-21 14:19:22,126: DEBUG - 6505 ++ VALUE= 2020-03-21 14:19:22,127: DEBUG - 6506 ++ python - 2020-03-21 14:19:22,529: DEBUG - 6907 + **********= 2020-03-21 14:19:22,530: WARNING - 6908 [93m[1m[WARN][0m /home/yunohost.app/piwigo/upload will not be saved, because 'BACKUP_CORE_ONLY' is set. 2020-03-21 14:19:22,531: DEBUG - 6909 + '[' 1 -eq 1 ']' 2020-03-21 14:19:22,532: DEBUG - 6910 + '[' 0 -eq 1 ']' 2020-03-21 14:19:22,532: DEBUG - 6911 + '[' 1 -eq 1 ']' 2020-03-21 14:19:22,533: DEBUG - 6911 + '[' 1 -eq 1 ']' 2020-03-21 14:19:22,533: DEBUG - 6912 + ynh_print_warn '--message=/home/yunohost.app/piwigo/upload will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-03-21 14:19:22,534: DEBUG - 6913 + local legacy_args=m 2020-03-21 14:19:22,535: DEBUG - 6914 + args_array=([m]=message=) 2020-03-21 14:19:22,535: DEBUG - 6914 + declare -Ar args_array 2020-03-21 14:19:22,536: DEBUG - 6915 + local message 2020-03-21 14:19:22,536: DEBUG - 6916 + ynh_handle_getopts_args '--message=/home/yunohost.app/piwigo/upload will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-03-21 14:19:22,537: DEBUG - 6916 + set +x 2020-03-21 14:19:22,538: DEBUG - 6917 + ynh_print_log '\e[93m\e[1m[WARN]\e[0m /home/yunohost.app/piwigo/upload will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-03-21 14:19:22,538: DEBUG - 6918 + echo -e '\e[93m\e[1m[WARN]\e[0m /home/yunohost.app/piwigo/upload will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-03-21 14:19:22,539: DEBUG - 6919 + return 0 2020-03-21 14:19:22,539: DEBUG - 6920 + ynh_script_progression '--message=Backup script completed for piwigo. (YunoHost will then actually copy those files to the archive).' --last 2020-03-21 14:19:22,540: DEBUG - 6920 + set +x 2020-03-21 14:19:22,641: DEBUG - 7022 + set +x 2020-03-21 14:19:22,642: DEBUG - 7022 + echo '! Helper used in legacy mode !' 2020-03-21 14:19:22,643: DEBUG - 7023 + set +x 2020-03-21 14:19:22,643: DEBUG - 7023 + echo '[####################] > Backup script completed for piwigo. (YunoHost will then actually copy those files to the archive).' 2020-03-21 14:19:22,644: DEBUG - 7024 + set -x 2020-03-21 14:19:22,645: DEBUG - 7024 + ynh_exit_properly 2020-03-21 14:19:22,645: DEBUG - 7025 + local exit_code=0 2020-03-21 14:19:22,646: DEBUG - 7025 + '[' 0 -eq 0 ']' 2020-03-21 14:19:22,647: DEBUG - 7026 + exit 0 2020-03-21 14:19:22,747: DEBUG - 7211 Now creating a backup archive from the files collected… 2020-03-21 14:19:22,748: DEBUG - 7212 Creating the backup tar archive… 2020-03-21 14:19:51,622: DEBUG - 36042 Backup tar archive created 2020-03-21 14:19:51,623: DEBUG - 36043 Backup created 2020-03-21 14:19:51,624: DEBUG - 36044 action [8164.1] executed in 34.860s 2020-03-21 14:19:51,625: DEBUG - name: piwigo-pre-upgrade1 2020-03-21 14:19:51,626: DEBUG - results: 2020-03-21 14:19:51,627: DEBUG - apps: 2020-03-21 14:19:51,627: DEBUG - piwigo: Success 2020-03-21 14:19:51,628: DEBUG - system: 2020-03-21 14:19:51,629: DEBUG - size: 59845514 2020-03-21 14:19:51,730: DEBUG - + '[' 0 -eq 0 ']' 2020-03-21 14:19:51,731: DEBUG - + grep -q piwigo-pre-upgrade2 2020-03-21 14:19:51,732: DEBUG - + sudo yunohost backup list 2020-03-21 14:19:53,237: DEBUG - + sudo yunohost backup delete piwigo-pre-upgrade2 2020-03-21 14:19:54,743: DEBUG - + ynh_abort_if_errors 2020-03-21 14:19:54,744: DEBUG - + set -eu 2020-03-21 14:19:54,745: DEBUG - + trap ynh_exit_properly EXIT 2020-03-21 14:19:54,745: DEBUG - ++ ynh_normalize_url_********** --**********_url=/piwigo 2020-03-21 14:19:54,746: DEBUG - ++ local legacy_args=p 2020-03-21 14:19:54,747: DEBUG - ++ args_array=([p]=**********_url=) 2020-03-21 14:19:54,747: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:54,748: DEBUG - ++ local **********_url 2020-03-21 14:19:54,749: DEBUG - ++ ynh_handle_getopts_args --**********_url=/piwigo 2020-03-21 14:19:54,749: DEBUG - ++ set +x 2020-03-21 14:19:54,750: DEBUG - ++ test -n /piwigo 2020-03-21 14:19:54,751: DEBUG - ++ '[' / '!=' / ']' 2020-03-21 14:19:54,752: DEBUG - ++ '[' o == / ']' 2020-03-21 14:19:54,753: DEBUG - ++ echo /piwigo 2020-03-21 14:19:54,754: DEBUG - + **********_url=/piwigo 2020-03-21 14:19:54,755: DEBUG - + '[' UPGRADE_PACKAGE == UPGRADE_APP ']' 2020-03-21 14:19:54,755: DEBUG - + ynh_script_progression '--message=Upgrading nginx web server configuration...' --weight=2 2020-03-21 14:19:54,756: DEBUG - + set +x 2020-03-21 14:19:54,757: DEBUG - + set +x 2020-03-21 14:19:54,758: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:19:54,759: DEBUG - + set +x 2020-03-21 14:19:54,760: DEBUG - + echo '[####+...............] > Upgrading nginx web server configuration...' 2020-03-21 14:19:54,760: DEBUG - + set -x 2020-03-21 14:19:54,761: DEBUG - + ynh_add_nginx_config 2020-03-21 14:19:54,762: DEBUG - + finalnginxconf=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:54,763: DEBUG - + local others_var= 2020-03-21 14:19:54,764: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:54,765: DEBUG - + local legacy_args=f 2020-03-21 14:19:54,766: DEBUG - + args_array=([f]=file=) 2020-03-21 14:19:54,767: DEBUG - + declare -Ar args_array 2020-03-21 14:19:54,768: DEBUG - + local file 2020-03-21 14:19:54,769: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:54,770: DEBUG - + set +x 2020-03-21 14:19:54,771: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_cryostase.eu.d_piwigo.conf 2020-03-21 14:19:54,772: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:19:54,773: DEBUG - ++ local legacy_args=ak 2020-03-21 14:19:54,774: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:19:54,775: DEBUG - ++ declare -Ar args_array 2020-03-21 14:19:54,776: DEBUG - ++ local app 2020-03-21 14:19:54,777: DEBUG - ++ local key 2020-03-21 14:19:54,778: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:19:54,779: DEBUG - ++ set +x 2020-03-21 14:19:54,780: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:19:54,781: DEBUG - ++ ACTION=get 2020-03-21 14:19:54,782: DEBUG - ++ APP=piwigo 2020-03-21 14:19:54,783: DEBUG - ++ KEY=********** 2020-03-21 14:19:54,783: DEBUG - ++ VALUE= 2020-03-21 14:19:54,784: DEBUG - ++ python - 2020-03-21 14:19:55,287: DEBUG - + local checksum_value=8c18e3f68ee50b524a518ceb4d97b54c 2020-03-21 14:19:55,288: INFO - [####+...............] > Upgrading nginx web server configuration... 2020-03-21 14:19:55,292: DEBUG - + backup_file_checksum= 2020-03-21 14:19:55,294: DEBUG - + '[' -n 8c18e3f68ee50b524a518ceb4d97b54c ']' 2020-03-21 14:19:55,295: DEBUG - + echo '8c18e3f68ee50b524a518ceb4d97b54c /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf' 2020-03-21 14:19:55,296: DEBUG - + sudo md5sum -c --status 2020-03-21 14:19:55,397: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,498: DEBUG - + test -n /piwigo 2020-03-21 14:19:55,499: DEBUG - + local **********_url_slash_less=/piwigo 2020-03-21 14:19:55,501: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,502: DEBUG - + local legacy_args=mrf 2020-03-21 14:19:55,505: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:19:55,505: DEBUG - + declare -Ar args_array 2020-03-21 14:19:55,506: DEBUG - + local match_string 2020-03-21 14:19:55,507: DEBUG - + local replace_string 2020-03-21 14:19:55,507: DEBUG - + local target_file 2020-03-21 14:19:55,508: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,508: DEBUG - + set +x 2020-03-21 14:19:55,509: DEBUG - + local delimit=@ 2020-03-21 14:19:55,510: DEBUG - + match_string=__PATH__/ 2020-03-21 14:19:55,511: DEBUG - + replace_string=/piwigo/ 2020-03-21 14:19:55,512: DEBUG - + sudo sed --in-place s@__PATH__/@/piwigo/@g /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,613: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/piwigo --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,615: DEBUG - + local legacy_args=mrf 2020-03-21 14:19:55,616: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:19:55,617: DEBUG - + declare -Ar args_array 2020-03-21 14:19:55,618: DEBUG - + local match_string 2020-03-21 14:19:55,618: DEBUG - + local replace_string 2020-03-21 14:19:55,619: DEBUG - + local target_file 2020-03-21 14:19:55,620: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/piwigo --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,621: DEBUG - + set +x 2020-03-21 14:19:55,622: DEBUG - + local delimit=@ 2020-03-21 14:19:55,623: DEBUG - + match_string=__PATH__ 2020-03-21 14:19:55,625: DEBUG - + replace_string=/piwigo 2020-03-21 14:19:55,626: DEBUG - + sudo sed --in-place s@__PATH__@/piwigo@g /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,729: DEBUG - + test -n cryostase.eu 2020-03-21 14:19:55,730: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=cryostase.eu --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,732: DEBUG - + local legacy_args=mrf 2020-03-21 14:19:55,733: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:19:55,735: DEBUG - + declare -Ar args_array 2020-03-21 14:19:55,736: DEBUG - + local match_string 2020-03-21 14:19:55,737: DEBUG - + local replace_string 2020-03-21 14:19:55,737: DEBUG - + local target_file 2020-03-21 14:19:55,741: DEBUG - + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=cryostase.eu --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,743: DEBUG - + set +x 2020-03-21 14:19:55,744: DEBUG - + local delimit=@ 2020-03-21 14:19:55,746: DEBUG - + match_string=__DOMAIN__ 2020-03-21 14:19:55,747: DEBUG - + replace_string=cryostase.eu 2020-03-21 14:19:55,748: DEBUG - + sudo sed --in-place s@__DOMAIN__@cryostase.eu@g /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,849: DEBUG - + test -n '' 2020-03-21 14:19:55,850: DEBUG - + test -n piwigo 2020-03-21 14:19:55,851: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=piwigo --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,853: DEBUG - + local legacy_args=mrf 2020-03-21 14:19:55,856: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:19:55,857: DEBUG - + declare -Ar args_array 2020-03-21 14:19:55,859: DEBUG - + local match_string 2020-03-21 14:19:55,861: DEBUG - + local replace_string 2020-03-21 14:19:55,862: DEBUG - + local target_file 2020-03-21 14:19:55,863: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=piwigo --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,864: DEBUG - + set +x 2020-03-21 14:19:55,865: DEBUG - + local delimit=@ 2020-03-21 14:19:55,867: DEBUG - + match_string=__NAME__ 2020-03-21 14:19:55,868: DEBUG - + replace_string=piwigo 2020-03-21 14:19:55,870: DEBUG - + sudo sed --in-place s@__NAME__@piwigo@g /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,972: DEBUG - + test -n /var/www/piwigo 2020-03-21 14:19:55,975: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,976: DEBUG - + local legacy_args=mrf 2020-03-21 14:19:55,977: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:19:55,979: DEBUG - + declare -Ar args_array 2020-03-21 14:19:55,980: DEBUG - + local match_string 2020-03-21 14:19:55,981: DEBUG - + local replace_string 2020-03-21 14:19:55,982: DEBUG - + local target_file 2020-03-21 14:19:55,982: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:55,983: DEBUG - + set +x 2020-03-21 14:19:55,983: DEBUG - + local delimit=@ 2020-03-21 14:19:55,984: DEBUG - + match_string=__FINALPATH__ 2020-03-21 14:19:55,986: DEBUG - + replace_string=/var/www/piwigo 2020-03-21 14:19:55,987: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/piwigo@g /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,089: DEBUG - + '[' /piwigo '!=' / ']' 2020-03-21 14:19:56,090: DEBUG - + ynh_replace_string '--match_string=^#sub_**********_only' --replace_string= --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,092: DEBUG - + local legacy_args=mrf 2020-03-21 14:19:56,093: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:19:56,094: DEBUG - + declare -Ar args_array 2020-03-21 14:19:56,096: DEBUG - + local match_string 2020-03-21 14:19:56,097: DEBUG - + local replace_string 2020-03-21 14:19:56,098: DEBUG - + local target_file 2020-03-21 14:19:56,099: DEBUG - + ynh_handle_getopts_args '--match_string=^#sub_**********_only' --replace_string= --target_file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,100: DEBUG - + set +x 2020-03-21 14:19:56,101: DEBUG - + local delimit=@ 2020-03-21 14:19:56,103: DEBUG - + match_string='^#sub_**********_only' 2020-03-21 14:19:56,104: DEBUG - + replace_string= 2020-03-21 14:19:56,106: DEBUG - + sudo sed --in-place 's@^#sub_**********_only@@g' /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,207: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,208: DEBUG - + local legacy_args=f 2020-03-21 14:19:56,209: DEBUG - + args_array=([f]=file=) 2020-03-21 14:19:56,209: DEBUG - + declare -Ar args_array 2020-03-21 14:19:56,210: DEBUG - + local file 2020-03-21 14:19:56,210: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,211: DEBUG - + set +x 2020-03-21 14:19:56,212: DEBUG - + local checksum_setting_name=********** 2020-03-21 14:19:56,212: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:19:56,213: DEBUG - ++ cut '-d ' -f1 2020-03-21 14:19:56,314: DEBUG - + ynh_app_setting_set --app=piwigo --key=********** --value=8c18e3f68ee50b524a518ceb4d97b54c 2020-03-21 14:19:56,315: DEBUG - + local legacy_args=akv 2020-03-21 14:19:56,316: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:19:56,317: DEBUG - + declare -Ar args_array 2020-03-21 14:19:56,318: DEBUG - + local app 2020-03-21 14:19:56,319: DEBUG - + local key 2020-03-21 14:19:56,319: DEBUG - + local value 2020-03-21 14:19:56,320: DEBUG - + ynh_handle_getopts_args --app=piwigo --key=********** --value=8c18e3f68ee50b524a518ceb4d97b54c 2020-03-21 14:19:56,321: DEBUG - + set +x 2020-03-21 14:19:56,322: DEBUG - + ynh_app_setting set piwigo ********** 8c18e3f68ee50b524a518ceb4d97b54c 2020-03-21 14:19:56,323: DEBUG - + ACTION=set 2020-03-21 14:19:56,324: DEBUG - + APP=piwigo 2020-03-21 14:19:56,325: DEBUG - + KEY=********** 2020-03-21 14:19:56,326: DEBUG - + VALUE=8c18e3f68ee50b524a518ceb4d97b54c 2020-03-21 14:19:56,327: DEBUG - + python - 2020-03-21 14:19:56,829: DEBUG - + '[' -n '' ']' 2020-03-21 14:19:56,830: DEBUG - + unset backup_file_checksum 2020-03-21 14:19:56,831: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2020-03-21 14:19:56,832: DEBUG - + local legacy_args=nalpte 2020-03-21 14:19:56,833: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-03-21 14:19:56,834: DEBUG - + declare -Ar args_array 2020-03-21 14:19:56,835: DEBUG - + local service_name 2020-03-21 14:19:56,836: DEBUG - + local action 2020-03-21 14:19:56,837: DEBUG - + local line_match 2020-03-21 14:19:56,838: DEBUG - + local length 2020-03-21 14:19:56,838: DEBUG - + local log_********** 2020-03-21 14:19:56,839: DEBUG - + local timeout 2020-03-21 14:19:56,840: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload 2020-03-21 14:19:56,841: DEBUG - + set +x 2020-03-21 14:19:56,842: DEBUG - + local service_name=nginx 2020-03-21 14:19:56,843: DEBUG - + local action=reload 2020-03-21 14:19:56,844: DEBUG - + local log_**********=/var/log/nginx/nginx.log 2020-03-21 14:19:56,845: DEBUG - + local length=20 2020-03-21 14:19:56,845: DEBUG - + local timeout=300 2020-03-21 14:19:56,846: DEBUG - + [[ -n '' ]] 2020-03-21 14:19:56,847: DEBUG - + '[' reload == reload ']' 2020-03-21 14:19:56,847: DEBUG - + action=reload-or-restart 2020-03-21 14:19:56,848: DEBUG - + systemctl reload-or-restart nginx 2020-03-21 14:19:57,151: DEBUG - + [[ -n '' ]] 2020-03-21 14:19:57,152: DEBUG - + ynh_script_progression '--message=Upgrading dependencies...' --weight=6 2020-03-21 14:19:57,154: DEBUG - + set +x 2020-03-21 14:19:57,155: DEBUG - + set +x 2020-03-21 14:19:57,156: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:19:57,157: DEBUG - + set +x 2020-03-21 14:19:57,157: DEBUG - + echo '[#####++.............] > Upgrading dependencies...' 2020-03-21 14:19:57,158: DEBUG - + set -x 2020-03-21 14:19:57,159: DEBUG - + ynh_install_app_dependencies 'php-gd php-imagick imagemagick' 2020-03-21 14:19:57,160: DEBUG - + local 'dependencies=php-gd php-imagick imagemagick' 2020-03-21 14:19:57,161: DEBUG - + local 'dependencies=php-gd, php-imagick, imagemagick' 2020-03-21 14:19:57,162: DEBUG - + local 'dependencies=php-gd, php-imagick, imagemagick' 2020-03-21 14:19:57,163: DEBUG - + local manifest_**********=../manifest.json 2020-03-21 14:19:57,164: DEBUG - + '[' '!' -e ../manifest.json ']' 2020-03-21 14:19:57,164: DEBUG - ++ grep '\"**********\": ' ../manifest.json 2020-03-21 14:19:57,165: DEBUG - ++ cut -d '"' -f 4 2020-03-21 14:19:57,166: DEBUG - + local **********=********** 2020-03-21 14:19:57,168: DEBUG - + '[' 11 -eq 0 ']' 2020-03-21 14:19:57,169: DEBUG - + local dep_app=piwigo 2020-03-21 14:19:57,170: DEBUG - + echo php-gd, php-imagick, imagemagick 2020-03-21 14:19:57,171: DEBUG - + grep -q php 2020-03-21 14:19:57,172: DEBUG - + dpkg --list 2020-03-21 14:19:57,173: DEBUG - + grep -q -v 7.0.33-0+deb9 2020-03-21 14:19:57,173: DEBUG - + grep php7.0 2020-03-21 14:19:57,275: DEBUG - + cat 2020-03-21 14:19:57,276: INFO - [#####++.............] > Upgrading dependencies... 2020-03-21 14:19:57,277: DEBUG - + ynh_package_install_from_equivs /tmp/piwigo-ynh-deps.control 2020-03-21 14:19:57,277: DEBUG - + local controlfile=/tmp/piwigo-ynh-deps.control 2020-03-21 14:19:57,278: DEBUG - ++ grep '^Package: ' /tmp/piwigo-ynh-deps.control 2020-03-21 14:19:57,279: DEBUG - ++ cut '-d ' -f 2 2020-03-21 14:19:57,281: DEBUG - + local pkgname=piwigo-ynh-deps 2020-03-21 14:19:57,281: DEBUG - ++ grep '^Version: ' /tmp/piwigo-ynh-deps.control 2020-03-21 14:19:57,282: DEBUG - ++ cut '-d ' -f 2 2020-03-21 14:19:57,283: DEBUG - + local pkg**********=********** 2020-03-21 14:19:57,284: DEBUG - + [[ -z piwigo-ynh-deps ]] 2020-03-21 14:19:57,285: DEBUG - + [[ -z ********** ]] 2020-03-21 14:19:57,286: DEBUG - + ynh_package_update 2020-03-21 14:19:57,286: DEBUG - + ynh_apt update 2020-03-21 14:19:57,287: DEBUG - + ynh_wait_dpkg_free 2020-03-21 14:19:57,288: DEBUG - + local try 2020-03-21 14:19:57,289: DEBUG - ++ seq 1 17 2020-03-21 14:19:57,290: DEBUG - + for try in `seq 1 17` 2020-03-21 14:19:57,291: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:19:57,793: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:19:57,794: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:19:57,795: DEBUG - + read dpkg_file 2020-03-21 14:19:57,795: DEBUG - + echo '' 2020-03-21 14:19:57,796: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:19:57,796: DEBUG - + read dpkg_file 2020-03-21 14:19:57,797: DEBUG - + return 0 2020-03-21 14:19:57,798: DEBUG - + DEBIAN_FRONTEND=noninteractive 2020-03-21 14:19:57,798: DEBUG - + apt-get -y update 2020-03-21 14:19:58,100: DEBUG - Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease 2020-03-21 14:19:58,101: DEBUG - Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB] 2020-03-21 14:19:58,101: DEBUG - Hit:3 http://forge.yunohost.org/debian stretch InRelease 2020-03-21 14:19:59,507: DEBUG - Fetched 25.4 kB in 1s (16.9 kB/s) 2020-03-21 14:20:03,720: DEBUG - Reading package lists... 2020-03-21 14:20:03,922: DEBUG - ++ mktemp -d 2020-03-21 14:20:03,923: DEBUG - + local TMPDIR=/tmp/tmp.VGQPZawdCP 2020-03-21 14:20:03,924: DEBUG - + echo 10 2020-03-21 14:20:03,925: DEBUG - + ynh_wait_dpkg_free 2020-03-21 14:20:03,925: DEBUG - + local try 2020-03-21 14:20:03,926: DEBUG - ++ seq 1 17 2020-03-21 14:20:03,926: DEBUG - + for try in `seq 1 17` 2020-03-21 14:20:03,927: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:20:04,228: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:20:04,230: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:20:04,231: DEBUG - + read dpkg_file 2020-03-21 14:20:04,231: DEBUG - + echo '' 2020-03-21 14:20:04,232: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:20:04,233: DEBUG - + read dpkg_file 2020-03-21 14:20:04,235: DEBUG - + return 0 2020-03-21 14:20:04,236: DEBUG - + cp /tmp/piwigo-ynh-deps.control /tmp/tmp.VGQPZawdCP/control 2020-03-21 14:20:04,237: DEBUG - + cd /tmp/tmp.VGQPZawdCP 2020-03-21 14:20:04,237: DEBUG - + equivs-build ./control 2020-03-21 14:20:07,047: DEBUG - + dpkg --force-depends -i ./piwigo-ynh-deps_**********_all.deb 2020-03-21 14:20:07,248: DEBUG - (Reading database ... 54820 files and directories currently installed.) 2020-03-21 14:20:07,249: DEBUG - Preparing to unpack .../piwigo-ynh-deps_**********_all.deb ... 2020-03-21 14:20:07,451: DEBUG - Unpacking piwigo-ynh-deps (**********) over (**********) ... 2020-03-21 14:20:07,553: DEBUG - Setting up piwigo-ynh-deps (**********) ... 2020-03-21 14:20:07,755: DEBUG - + ynh_package_install -f 2020-03-21 14:20:07,757: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-03-21 14:20:07,759: DEBUG - + ynh_wait_dpkg_free 2020-03-21 14:20:07,761: DEBUG - + local try 2020-03-21 14:20:07,763: DEBUG - ++ seq 1 17 2020-03-21 14:20:07,765: DEBUG - + for try in `seq 1 17` 2020-03-21 14:20:07,766: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:20:08,168: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:20:08,169: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:20:08,170: DEBUG - + read dpkg_file 2020-03-21 14:20:08,170: DEBUG - + echo '' 2020-03-21 14:20:08,171: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:20:08,171: DEBUG - + read dpkg_file 2020-03-21 14:20:08,172: DEBUG - + return 0 2020-03-21 14:20:08,172: DEBUG - + DEBIAN_FRONTEND=noninteractive 2020-03-21 14:20:08,173: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-03-21 14:20:11,985: DEBUG - Reading package lists... 2020-03-21 14:20:12,789: DEBUG - Building dependency tree... 2020-03-21 14:20:13,340: DEBUG - Reading state information... 2020-03-21 14:20:14,043: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2020-03-21 14:20:14,045: DEBUG - + [[ -n /tmp/tmp.VGQPZawdCP ]] 2020-03-21 14:20:14,046: DEBUG - + rm -rf /tmp/tmp.VGQPZawdCP 2020-03-21 14:20:14,047: DEBUG - + ynh_package_is_installed piwigo-ynh-deps 2020-03-21 14:20:14,048: DEBUG - + local legacy_args=p 2020-03-21 14:20:14,049: DEBUG - + args_array=([p]=package=) 2020-03-21 14:20:14,050: DEBUG - + declare -Ar args_array 2020-03-21 14:20:14,051: DEBUG - + local package 2020-03-21 14:20:14,052: DEBUG - + ynh_handle_getopts_args piwigo-ynh-deps 2020-03-21 14:20:14,052: DEBUG - + set +x 2020-03-21 14:20:14,053: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:20:14,054: DEBUG - + set +x 2020-03-21 14:20:14,055: DEBUG - + ynh_wait_dpkg_free 2020-03-21 14:20:14,058: DEBUG - + local try 2020-03-21 14:20:14,059: DEBUG - ++ seq 1 17 2020-03-21 14:20:14,061: DEBUG - + for try in `seq 1 17` 2020-03-21 14:20:14,066: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:20:14,468: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:20:14,469: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:20:14,470: DEBUG - + read dpkg_file 2020-03-21 14:20:14,471: DEBUG - + echo '' 2020-03-21 14:20:14,472: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:20:14,473: DEBUG - + read dpkg_file 2020-03-21 14:20:14,474: DEBUG - + return 0 2020-03-21 14:20:14,475: DEBUG - + dpkg-query -W -f '${Status}' piwigo-ynh-deps 2020-03-21 14:20:14,476: DEBUG - + grep -c 'ok installed' 2020-03-21 14:20:14,477: DEBUG - + rm /tmp/piwigo-ynh-deps.control 2020-03-21 14:20:14,477: DEBUG - + ynh_app_setting_set --app=piwigo --key=apt_dependencies '--value=php-gd, php-imagick, imagemagick' 2020-03-21 14:20:14,478: DEBUG - + local legacy_args=akv 2020-03-21 14:20:14,479: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:20:14,480: DEBUG - + declare -Ar args_array 2020-03-21 14:20:14,481: DEBUG - + local app 2020-03-21 14:20:14,482: DEBUG - + local key 2020-03-21 14:20:14,483: DEBUG - + local value 2020-03-21 14:20:14,483: DEBUG - + ynh_handle_getopts_args --app=piwigo --key=apt_dependencies '--value=php-gd, php-imagick, imagemagick' 2020-03-21 14:20:14,484: DEBUG - + set +x 2020-03-21 14:20:14,586: DEBUG - + ynh_app_setting set piwigo apt_dependencies 'php-gd, php-imagick, imagemagick' 2020-03-21 14:20:14,586: DEBUG - + ACTION=set 2020-03-21 14:20:14,587: DEBUG - + APP=piwigo 2020-03-21 14:20:14,588: DEBUG - + KEY=apt_dependencies 2020-03-21 14:20:14,588: DEBUG - + VALUE='php-gd, php-imagick, imagemagick' 2020-03-21 14:20:14,589: DEBUG - + python - 2020-03-21 14:20:14,991: DEBUG - + ynh_script_progression '--message=Making sure dedicated system user exists...' 2020-03-21 14:20:14,992: DEBUG - + set +x 2020-03-21 14:20:15,093: DEBUG - + set +x 2020-03-21 14:20:15,094: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:20:15,095: DEBUG - + set +x 2020-03-21 14:20:15,096: DEBUG - + echo '[#######+............] > Making sure dedicated system user exists...' 2020-03-21 14:20:15,096: DEBUG - + set -x 2020-03-21 14:20:15,097: DEBUG - + ynh_system_user_create --username=piwigo 2020-03-21 14:20:15,097: DEBUG - + local legacy_args=uhs 2020-03-21 14:20:15,098: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell) 2020-03-21 14:20:15,098: DEBUG - + declare -Ar args_array 2020-03-21 14:20:15,099: DEBUG - + local username 2020-03-21 14:20:15,100: INFO - [#######+............] > Making sure dedicated system user exists... 2020-03-21 14:20:15,101: DEBUG - + local home_dir 2020-03-21 14:20:15,102: DEBUG - + local use_shell 2020-03-21 14:20:15,103: DEBUG - + ynh_handle_getopts_args --username=piwigo 2020-03-21 14:20:15,104: DEBUG - + set +x 2020-03-21 14:20:15,105: DEBUG - + use_shell=0 2020-03-21 14:20:15,106: DEBUG - + home_dir= 2020-03-21 14:20:15,107: DEBUG - + ynh_system_user_exists piwigo 2020-03-21 14:20:15,108: DEBUG - + local legacy_args=u 2020-03-21 14:20:15,108: DEBUG - + args_array=([u]=username=) 2020-03-21 14:20:15,109: DEBUG - + declare -Ar args_array 2020-03-21 14:20:15,110: DEBUG - + local username 2020-03-21 14:20:15,111: DEBUG - + ynh_handle_getopts_args piwigo 2020-03-21 14:20:15,112: DEBUG - + set +x 2020-03-21 14:20:15,113: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:20:15,114: DEBUG - + set +x 2020-03-21 14:20:15,115: DEBUG - + getent passwd piwigo 2020-03-21 14:20:15,116: DEBUG - + ynh_script_progression '--message=Upgrading php-fpm configuration...' --weight=3 2020-03-21 14:20:15,117: DEBUG - + set +x 2020-03-21 14:20:15,118: DEBUG - + set +x 2020-03-21 14:20:15,119: DEBUG - + echo '! Helper used in legacy mode !' 2020-03-21 14:20:15,120: DEBUG - + set +x 2020-03-21 14:20:15,121: DEBUG - + echo '[########+...........] > Upgrading php-fpm configuration...' 2020-03-21 14:20:15,122: DEBUG - + set -x 2020-03-21 14:20:15,123: DEBUG - + ynh_add_fpm_config 2020-03-21 14:20:15,124: DEBUG - + local legacy_args=v 2020-03-21 14:20:15,125: DEBUG - + args_array=([v]=php**********=) 2020-03-21 14:20:15,126: DEBUG - + declare -Ar args_array 2020-03-21 14:20:15,127: DEBUG - + local php********** 2020-03-21 14:20:15,128: DEBUG - + ynh_handle_getopts_args 2020-03-21 14:20:15,129: DEBUG - + set +x 2020-03-21 14:20:15,130: DEBUG - + php**********=7.0 2020-03-21 14:20:15,130: DEBUG - + local fpm_config_dir=/etc/php/7.0/fpm 2020-03-21 14:20:15,131: DEBUG - + local fpm_service=php7.0-fpm 2020-03-21 14:20:15,132: DEBUG - ++ ynh_get_debian_release 2020-03-21 14:20:15,133: DEBUG - +++ lsb_release --codename --short 2020-03-21 14:20:15,434: DEBUG - ++ echo stretch 2020-03-21 14:20:15,436: INFO - [########+...........] > Upgrading php-fpm configuration... 2020-03-21 14:20:15,437: DEBUG - + '[' stretch == jessie ']' 2020-03-21 14:20:15,438: DEBUG - + ynh_app_setting_set --app=piwigo --key=fpm_config_dir --value=/etc/php/7.0/fpm 2020-03-21 14:20:15,439: DEBUG - + local legacy_args=akv 2020-03-21 14:20:15,440: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:20:15,440: DEBUG - + declare -Ar args_array 2020-03-21 14:20:15,441: DEBUG - + local app 2020-03-21 14:20:15,442: DEBUG - + local key 2020-03-21 14:20:15,443: DEBUG - + local value 2020-03-21 14:20:15,444: DEBUG - + ynh_handle_getopts_args --app=piwigo --key=fpm_config_dir --value=/etc/php/7.0/fpm 2020-03-21 14:20:15,445: DEBUG - + set +x 2020-03-21 14:20:15,547: DEBUG - + ynh_app_setting set piwigo fpm_config_dir /etc/php/7.0/fpm 2020-03-21 14:20:15,548: DEBUG - + ACTION=set 2020-03-21 14:20:15,549: DEBUG - + APP=piwigo 2020-03-21 14:20:15,550: DEBUG - + KEY=fpm_config_dir 2020-03-21 14:20:15,551: DEBUG - + VALUE=/etc/php/7.0/fpm 2020-03-21 14:20:15,552: DEBUG - + python - 2020-03-21 14:20:16,055: DEBUG - + ynh_app_setting_set --app=piwigo --key=fpm_service --value=php7.0-fpm 2020-03-21 14:20:16,056: DEBUG - + local legacy_args=akv 2020-03-21 14:20:16,057: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:20:16,057: DEBUG - + declare -Ar args_array 2020-03-21 14:20:16,058: DEBUG - + local app 2020-03-21 14:20:16,058: DEBUG - + local key 2020-03-21 14:20:16,059: DEBUG - + local value 2020-03-21 14:20:16,059: DEBUG - + ynh_handle_getopts_args --app=piwigo --key=fpm_service --value=php7.0-fpm 2020-03-21 14:20:16,060: DEBUG - + set +x 2020-03-21 14:20:16,061: DEBUG - + ynh_app_setting set piwigo fpm_service php7.0-fpm 2020-03-21 14:20:16,061: DEBUG - + ACTION=set 2020-03-21 14:20:16,062: DEBUG - + APP=piwigo 2020-03-21 14:20:16,062: DEBUG - + KEY=fpm_service 2020-03-21 14:20:16,063: DEBUG - + VALUE=php7.0-fpm 2020-03-21 14:20:16,063: DEBUG - + python - 2020-03-21 14:20:16,566: DEBUG - + finalphpconf=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:16,567: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:16,567: DEBUG - + local legacy_args=f 2020-03-21 14:20:16,568: DEBUG - + args_array=([f]=file=) 2020-03-21 14:20:16,569: DEBUG - + declare -Ar args_array 2020-03-21 14:20:16,570: DEBUG - + local file 2020-03-21 14:20:16,570: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:16,571: DEBUG - + set +x 2020-03-21 14:20:16,572: DEBUG - + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_piwigo.conf 2020-03-21 14:20:16,572: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:20:16,573: DEBUG - ++ local legacy_args=ak 2020-03-21 14:20:16,574: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:20:16,575: DEBUG - ++ declare -Ar args_array 2020-03-21 14:20:16,576: DEBUG - ++ local app 2020-03-21 14:20:16,576: DEBUG - ++ local key 2020-03-21 14:20:16,577: DEBUG - ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:20:16,578: DEBUG - ++ set +x 2020-03-21 14:20:16,579: DEBUG - ++ ynh_app_setting get piwigo ********** 2020-03-21 14:20:16,579: DEBUG - ++ ACTION=get 2020-03-21 14:20:16,580: DEBUG - ++ APP=piwigo 2020-03-21 14:20:16,581: DEBUG - ++ KEY=********** 2020-03-21 14:20:16,581: DEBUG - ++ VALUE= 2020-03-21 14:20:16,582: DEBUG - ++ python - 2020-03-21 14:20:17,084: DEBUG - + local checksum_value=ac59f69774de8ca3e100eda2c17d3c49 2020-03-21 14:20:17,085: DEBUG - + backup_file_checksum= 2020-03-21 14:20:17,086: DEBUG - + '[' -n ac59f69774de8ca3e100eda2c17d3c49 ']' 2020-03-21 14:20:17,087: DEBUG - + echo 'ac59f69774de8ca3e100eda2c17d3c49 /etc/php/7.0/fpm/pool.d/piwigo.conf' 2020-03-21 14:20:17,088: DEBUG - + sudo md5sum -c --status 2020-03-21 14:20:17,089: DEBUG - + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,190: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,191: DEBUG - + local legacy_args=mrf 2020-03-21 14:20:17,192: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:20:17,193: DEBUG - + declare -Ar args_array 2020-03-21 14:20:17,193: DEBUG - + local match_string 2020-03-21 14:20:17,194: DEBUG - + local replace_string 2020-03-21 14:20:17,195: DEBUG - + local target_file 2020-03-21 14:20:17,195: DEBUG - + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,196: DEBUG - + set +x 2020-03-21 14:20:17,196: DEBUG - + local delimit=@ 2020-03-21 14:20:17,197: DEBUG - + match_string=__NAMETOCHANGE__ 2020-03-21 14:20:17,198: DEBUG - + replace_string=piwigo 2020-03-21 14:20:17,198: DEBUG - + sudo sed --in-place s@__NAMETOCHANGE__@piwigo@g /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,300: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,301: DEBUG - + local legacy_args=mrf 2020-03-21 14:20:17,302: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:20:17,303: DEBUG - + declare -Ar args_array 2020-03-21 14:20:17,303: DEBUG - + local match_string 2020-03-21 14:20:17,305: DEBUG - + local replace_string 2020-03-21 14:20:17,305: DEBUG - + local target_file 2020-03-21 14:20:17,306: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,307: DEBUG - + set +x 2020-03-21 14:20:17,308: DEBUG - + local delimit=@ 2020-03-21 14:20:17,309: DEBUG - + match_string=__FINALPATH__ 2020-03-21 14:20:17,310: DEBUG - + replace_string=/var/www/piwigo 2020-03-21 14:20:17,311: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/piwigo@g /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,412: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=piwigo --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,413: DEBUG - + local legacy_args=mrf 2020-03-21 14:20:17,414: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:20:17,415: DEBUG - + declare -Ar args_array 2020-03-21 14:20:17,415: DEBUG - + local match_string 2020-03-21 14:20:17,416: DEBUG - + local replace_string 2020-03-21 14:20:17,416: DEBUG - + local target_file 2020-03-21 14:20:17,417: DEBUG - + ynh_handle_getopts_args --match_string=__USER__ --replace_string=piwigo --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,417: DEBUG - + set +x 2020-03-21 14:20:17,518: DEBUG - + local delimit=@ 2020-03-21 14:20:17,520: DEBUG - + match_string=__USER__ 2020-03-21 14:20:17,521: DEBUG - + replace_string=piwigo 2020-03-21 14:20:17,522: DEBUG - + sudo sed --in-place s@__USER__@piwigo@g /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,523: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,524: DEBUG - + local legacy_args=mrf 2020-03-21 14:20:17,526: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-03-21 14:20:17,526: DEBUG - + declare -Ar args_array 2020-03-21 14:20:17,527: DEBUG - + local match_string 2020-03-21 14:20:17,527: DEBUG - + local replace_string 2020-03-21 14:20:17,528: DEBUG - + local target_file 2020-03-21 14:20:17,529: DEBUG - + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,529: DEBUG - + set +x 2020-03-21 14:20:17,630: DEBUG - + local delimit=@ 2020-03-21 14:20:17,631: DEBUG - + match_string=__PHPVERSION__ 2020-03-21 14:20:17,633: DEBUG - + replace_string=7.0 2020-03-21 14:20:17,634: DEBUG - + sudo sed --in-place s@__PHPVERSION__@7.0@g /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,735: DEBUG - + sudo chown root: /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,737: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,738: DEBUG - + local legacy_args=f 2020-03-21 14:20:17,739: DEBUG - + args_array=([f]=file=) 2020-03-21 14:20:17,740: DEBUG - + declare -Ar args_array 2020-03-21 14:20:17,741: DEBUG - + local file 2020-03-21 14:20:17,742: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,743: DEBUG - + set +x 2020-03-21 14:20:17,845: DEBUG - + local checksum_setting_name=********** 2020-03-21 14:20:17,846: DEBUG - ++ sudo md5sum /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:20:17,847: DEBUG - ++ cut '-d ' -f1 2020-03-21 14:20:17,847: DEBUG - + ynh_app_setting_set --app=piwigo --key=********** --value=ac59f69774de8ca3e100eda2c17d3c49 2020-03-21 14:20:17,848: DEBUG - + local legacy_args=akv 2020-03-21 14:20:17,849: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:20:17,850: DEBUG - + declare -Ar args_array 2020-03-21 14:20:17,851: DEBUG - + local app 2020-03-21 14:20:17,852: DEBUG - + local key 2020-03-21 14:20:17,853: DEBUG - + local value 2020-03-21 14:20:17,854: DEBUG - + ynh_handle_getopts_args --app=piwigo --key=********** --value=ac59f69774de8ca3e100eda2c17d3c49 2020-03-21 14:20:17,855: DEBUG - + set +x 2020-03-21 14:20:17,956: DEBUG - + ynh_app_setting set piwigo ********** ac59f69774de8ca3e100eda2c17d3c49 2020-03-21 14:20:17,957: DEBUG - + ACTION=set 2020-03-21 14:20:17,958: DEBUG - + APP=piwigo 2020-03-21 14:20:17,959: DEBUG - + KEY=********** 2020-03-21 14:20:17,959: DEBUG - + VALUE=ac59f69774de8ca3e100eda2c17d3c49 2020-03-21 14:20:17,960: DEBUG - + python - 2020-03-21 14:20:18,362: DEBUG - + '[' -n '' ']' 2020-03-21 14:20:18,363: DEBUG - + unset backup_file_checksum 2020-03-21 14:20:18,364: DEBUG - + '[' -e ../conf/php-fpm.ini ']' 2020-03-21 14:20:18,365: DEBUG - + ynh_systemd_action --service_name=php7.0-fpm --action=reload 2020-03-21 14:20:18,366: DEBUG - + local legacy_args=nalpte 2020-03-21 14:20:18,367: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-03-21 14:20:18,368: DEBUG - + declare -Ar args_array 2020-03-21 14:20:18,369: DEBUG - + local service_name 2020-03-21 14:20:18,370: DEBUG - + local action 2020-03-21 14:20:18,371: DEBUG - + local line_match 2020-03-21 14:20:18,372: DEBUG - + local length 2020-03-21 14:20:18,372: DEBUG - + local log_********** 2020-03-21 14:20:18,373: DEBUG - + local timeout 2020-03-21 14:20:18,374: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload 2020-03-21 14:20:18,375: DEBUG - + set +x 2020-03-21 14:20:18,476: DEBUG - + local service_name=php7.0-fpm 2020-03-21 14:20:18,477: WARNING - ./upgrade: line 162: tmpdir: unbound variable 2020-03-21 14:20:18,478: DEBUG - + local action=reload 2020-03-21 14:20:18,479: DEBUG - + local log_**********=/var/log/php7.0-fpm/php7.0-fpm.log 2020-03-21 14:20:18,480: DEBUG - + local length=20 2020-03-21 14:20:18,480: DEBUG - + local timeout=300 2020-03-21 14:20:18,481: DEBUG - + [[ -n '' ]] 2020-03-21 14:20:18,482: DEBUG - + '[' reload == reload ']' 2020-03-21 14:20:18,482: DEBUG - + action=reload-or-restart 2020-03-21 14:20:18,483: DEBUG - + systemctl reload-or-restart php7.0-fpm 2020-03-21 14:20:18,484: DEBUG - + [[ -n '' ]] 2020-03-21 14:20:18,485: DEBUG - + shopt -s extglob 2020-03-21 14:20:18,486: DEBUG - + data**********=/home/yunohost.app/piwigo 2020-03-21 14:20:18,487: DEBUG - ++ ynh_exit_properly 2020-03-21 14:20:18,488: DEBUG - ++ local exit_code=1 2020-03-21 14:20:18,489: DEBUG - ++ '[' 1 -eq 0 ']' 2020-03-21 14:20:18,490: DEBUG - ++ trap '' EXIT 2020-03-21 14:20:18,490: DEBUG - ++ set +eu 2020-03-21 14:20:18,491: DEBUG - ++ sleep 0.5 2020-03-21 14:20:18,993: DEBUG - ++ ynh_print_err '--message=!!\n piwigo'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-03-21 14:20:18,994: WARNING - [91m[1m[ERR][0m !! 2020-03-21 14:20:18,995: DEBUG - ++ local legacy_args=m 2020-03-21 14:20:18,996: WARNING - piwigo's script has encountered an error. Its execution was cancelled. 2020-03-21 14:20:18,997: DEBUG - ++ args_array=([m]=message=) 2020-03-21 14:20:18,998: WARNING - !! 2020-03-21 14:20:19,000: DEBUG - ++ declare -Ar args_array 2020-03-21 14:20:19,001: WARNING - [34m[1mPlease find here an extract of the log before the crash:[0m 2020-03-21 14:20:19,002: DEBUG - ++ local message 2020-03-21 14:20:19,003: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local legacy_args=nalpte 2020-03-21 14:20:19,004: DEBUG - ++ ynh_handle_getopts_args '--message=!!\n piwigo'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-03-21 14:20:19,005: WARNING - [34m[1m[DEBUG][0m: DEBUG -=length=) 2020-03-21 14:20:19,007: DEBUG - ++ set +x 2020-03-21 14:20:19,008: WARNING - [34m[1m[DEBUG][0m: DEBUG - + declare -Ar args_array 2020-03-21 14:20:19,009: DEBUG - ++ ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n piwigo'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-03-21 14:20:19,010: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local service_name 2020-03-21 14:20:19,011: DEBUG - ++ echo -e '\e[91m\e[1m[ERR]\e[0m !!\n piwigo'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-03-21 14:20:19,012: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local action 2020-03-21 14:20:19,013: DEBUG - ++ '[' cli == cli ']' 2020-03-21 14:20:19,013: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local line_match 2020-03-21 14:20:19,015: DEBUG - ++ set +x 2020-03-21 14:20:19,015: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local length 2020-03-21 14:20:19,016: DEBUG - ++ type -t ynh_clean_setup 2020-03-21 14:20:19,017: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local log_********** 2020-03-21 14:20:19,018: DEBUG - ++ ynh_clean_setup 2020-03-21 14:20:19,019: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local timeout 2020-03-21 14:20:19,020: DEBUG - ++ ynh_restore_upgradebackup 2020-03-21 14:20:19,021: WARNING - [34m[1m[DEBUG][0m: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload 2020-03-21 14:20:19,023: DEBUG - ++ ynh_print_err '--message=Upgrade failed.' 2020-03-21 14:20:19,023: WARNING - [34m[1m[DEBUG][0m: DEBUG - + set +x 2020-03-21 14:20:19,024: DEBUG - ++ local legacy_args=m 2020-03-21 14:20:19,025: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local service_name=php7.0-fpm 2020-03-21 14:20:19,026: DEBUG - ++ args_array=([m]=message=) 2020-03-21 14:20:19,027: WARNING - [34m[1m[DEBUG][0m: WARNING - ./upgrade: line 162: tmpdir: unbound variable 2020-03-21 14:20:19,028: DEBUG - ++ declare -Ar args_array 2020-03-21 14:20:19,028: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local action=reload 2020-03-21 14:20:19,029: DEBUG - ++ local message 2020-03-21 14:20:19,030: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local log_**********=/var/log/php7.0-fpm/php7.0-fpm.log 2020-03-21 14:20:19,031: DEBUG - ++ ynh_handle_getopts_args '--message=Upgrade failed.' 2020-03-21 14:20:19,032: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local length=20 2020-03-21 14:20:19,033: DEBUG - ++ set +x 2020-03-21 14:20:19,033: WARNING - [34m[1m[DEBUG][0m: DEBUG - + local timeout=300 2020-03-21 14:20:19,034: DEBUG - ++ ynh_print_log '\e[91m\e[1m[ERR]\e[0m Upgrade failed.' 2020-03-21 14:20:19,035: WARNING - [34m[1m[DEBUG][0m: DEBUG - 2020-03-21 14:20:19,036: DEBUG - ++ echo -e '\e[91m\e[1m[ERR]\e[0m Upgrade failed.' 2020-03-21 14:20:19,036: WARNING - [34m[1m[DEBUG][0m: DEBUG -' 2020-03-21 14:20:19,037: DEBUG - ++ local app_bck=piwigo 2020-03-21 14:20:19,038: WARNING - [34m[1m[DEBUG][0m: DEBUG - + action=reload-or-restart 2020-03-21 14:20:19,039: DEBUG - ++ NO_BACKUP_UPGRADE=0 2020-03-21 14:20:19,040: WARNING - [34m[1m[DEBUG][0m: DEBUG - + systemctl reload-or-restart php7.0-fpm 2020-03-21 14:20:19,041: DEBUG - ++ '[' 0 -eq 0 ']' 2020-03-21 14:20:19,043: WARNING - [34m[1m[DEBUG][0m: DEBUG - 2020-03-21 14:20:19,044: DEBUG - ++ sudo yunohost backup list 2020-03-21 14:20:19,045: WARNING - [34m[1m[DEBUG][0m: DEBUG - + shopt -s extglob 2020-03-21 14:20:19,046: DEBUG - ++ grep -q piwigo-pre-upgrade1 2020-03-21 14:20:19,047: WARNING - [34m[1m[DEBUG][0m: DEBUG - + data**********=/home/yunohost.app/piwigo 2020-03-21 14:20:19,048: WARNING - [34m[1m[DEBUG][0m: DEBUG - ++ ynh_exit_properly 2020-03-21 14:20:19,049: WARNING - [91m[1m[ERR][0m Upgrade failed. 2020-03-21 14:20:20,555: DEBUG - ++ sudo yunohost app remove piwigo 2020-03-21 14:20:21,760: DEBUG - Removing application piwigo… 2020-03-21 14:20:22,363: DEBUG - [+...................] > Loading installation settings... 2020-03-21 14:20:23,769: DEBUG - [#+..................] > Removing dependencies... 2020-03-21 14:20:35,208: DEBUG - [##+.................] > Removing the MySQL database... 2020-03-21 14:20:36,011: DEBUG - [###+................] > Removing app main directory... 2020-03-21 14:20:36,514: DEBUG - [####+++.............] > Removing nginx web server configuration... 2020-03-21 14:20:36,816: DEBUG - [#######+............] > Removing php-fpm configuration... 2020-03-21 14:20:38,028: DEBUG - /etc/php/7.0/fpm/conf.d/20-piwigo.ini wasn't deleted because it doesn't exist. 2020-03-21 14:20:38,130: DEBUG - [########+++++++++...] > Removing fail2ban configuration... 2020-03-21 14:20:47,169: DEBUG - [#################+..] > Removing the dedicated system user... 2020-03-21 14:20:47,775: DEBUG - piwigo has been removed 2020-03-21 14:20:48,478: DEBUG - The SSOwat configuration has been generated 2020-03-21 14:20:48,680: DEBUG - ++ sudo yunohost backup restore piwigo-pre-upgrade1 --apps piwigo --force --debug 2020-03-21 14:20:49,383: DEBUG - 518 loading actions map namespace 'yunohost' 2020-03-21 14:20:49,484: DEBUG - 611 extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern'] 2020-03-21 14:20:49,485: DEBUG - 612 initializing base actions map parser for cli 2020-03-21 14:20:49,486: DEBUG - 616 registering new callback action 'yunohost.utils.packages.ynh_packages_**********' to ['-v', '--**********'] 2020-03-21 14:20:49,988: DEBUG - 1179 loading python module yunohost.backup took 0.258s 2020-03-21 14:20:49,989: DEBUG - 1180 processing action [10222.1]: yunohost.backup.restore with args={'force': True, 'apps': ['piwigo'], 'name': 'piwigo-pre-upgrade1', 'system': None} 2020-03-21 14:20:49,990: DEBUG - 1181 custom hook folder not found for action 'restore' in /etc/yunohost/hooks.d/ 2020-03-21 14:20:49,991: DEBUG - 1182 Preparing archive for restoration… 2020-03-21 14:20:49,991: DEBUG - 1184 Extracting needed files from the archive… 2020-03-21 14:21:05,330: DEBUG - 16514 restoring from backup 'piwigo-pre-upgrade1' created on 2020-03-21 14:19:16 2020-03-21 14:21:05,331: DEBUG - 16521 Restoring application piwigo… 2020-03-21 14:21:05,632: DEBUG - 16762 Running restore script of app 'piwigo'… 2020-03-21 14:21:05,633: DEBUG - 16803 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup YNH_STDINFO=/tmp/tmpo2BpYN/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1 YNH_APP_INSTANCE_NAME=piwigo YNH_INTERFACE=cli YNH_APP_ID=piwigo YNH_STDRETURN=/tmp/tmpNbg5NP/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restorej5nEDi/restore" /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup piwigo 7>&1'… 2020-03-21 14:21:05,634: DEBUG - 16804 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup YNH_STDINFO=/tmp/tmpo2BpYN/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1 YNH_APP_INSTANCE_NAME=piwigo YNH_INTERFACE=cli YNH_APP_ID=piwigo YNH_STDRETURN=/tmp/tmpNbg5NP/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restorej5nEDi/restore" /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup piwigo 7>&1']' 2020-03-21 14:21:05,635: DEBUG - 16834 + source ../settings/scripts/_common.sh 2020-03-21 14:21:05,635: DEBUG - 16837 ++ pkg_dependencies='php-gd php-imagick imagemagick' 2020-03-21 14:21:05,636: DEBUG - 16839 + source /usr/share/yunohost/helpers 2020-03-21 14:21:05,636: DEBUG - 16840 +++ run-parts --list /usr/share/yunohost/helpers.d 2020-03-21 14:21:05,637: DEBUG - 16841 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,638: DEBUG - 16842 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-03-21 14:21:05,638: DEBUG - 16842 ++ . /usr/share/yunohost/helpers.d/apt 2020-03-21 14:21:05,639: DEBUG - 16843 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,640: DEBUG - 16844 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-03-21 14:21:05,640: DEBUG - 16845 ++ . /usr/share/yunohost/helpers.d/backup 2020-03-21 14:21:05,641: DEBUG - 16846 +++ CAN_BIND=1 2020-03-21 14:21:05,742: DEBUG - 16948 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,743: DEBUG - 16949 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-03-21 14:21:05,744: DEBUG - 16949 ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-03-21 14:21:05,745: DEBUG - 16950 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,746: DEBUG - 16951 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-03-21 14:21:05,747: DEBUG - 16952 ++ . /usr/share/yunohost/helpers.d/getopts 2020-03-21 14:21:05,748: DEBUG - 16953 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,749: DEBUG - 16954 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-03-21 14:21:05,750: DEBUG - 16955 ++ . /usr/share/yunohost/helpers.d/logging 2020-03-21 14:21:05,751: DEBUG - 16957 +++ increment_progression=0 2020-03-21 14:21:05,752: DEBUG - 16958 +++ previous_weight=0 2020-03-21 14:21:05,753: DEBUG - 16958 +++ max_progression=-1 2020-03-21 14:21:05,754: DEBUG - 16960 +++ progress_scale=20 2020-03-21 14:21:05,755: DEBUG - 16961 +++ progress_string2='####################' 2020-03-21 14:21:05,756: DEBUG - 16962 +++ progress_string1=++++++++++++++++++++ 2020-03-21 14:21:05,757: DEBUG - 16963 +++ progress_string0=.................... 2020-03-21 14:21:05,758: DEBUG - 16964 ++++ date +%s 2020-03-21 14:21:05,759: DEBUG - 16965 +++ base_time=1584800465 2020-03-21 14:21:05,760: DEBUG - 16966 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,761: DEBUG - 16967 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-03-21 14:21:05,762: DEBUG - 16968 ++ . /usr/share/yunohost/helpers.d/logrotate 2020-03-21 14:21:05,763: DEBUG - 16969 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,764: DEBUG - 16970 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-03-21 14:21:05,765: DEBUG - 16971 ++ . /usr/share/yunohost/helpers.d/mysql 2020-03-21 14:21:05,766: DEBUG - 16972 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-03-21 14:21:05,767: DEBUG - 16973 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,768: DEBUG - 16974 ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-03-21 14:21:05,769: DEBUG - 16975 ++ . /usr/share/yunohost/helpers.d/network 2020-03-21 14:21:05,770: DEBUG - 16976 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,771: DEBUG - 16977 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-03-21 14:21:05,772: DEBUG - 16978 ++ . /usr/share/yunohost/helpers.d/nginx 2020-03-21 14:21:05,773: DEBUG - 16979 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,774: DEBUG - 16980 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-03-21 14:21:05,775: DEBUG - 16981 ++ . /usr/share/yunohost/helpers.d/nodejs 2020-03-21 14:21:05,776: DEBUG - 16982 +++ n_install_dir=/opt/node_n 2020-03-21 14:21:05,778: DEBUG - 16983 +++ node_**********_**********=/opt/node_n/n/**********s/node 2020-03-21 14:21:05,779: DEBUG - 16984 +++ export N_PREFIX=/opt/node_n 2020-03-21 14:21:05,779: DEBUG - 16985 +++ N_PREFIX=/opt/node_n 2020-03-21 14:21:05,780: DEBUG - 16986 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,781: DEBUG - 16987 ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-03-21 14:21:05,782: DEBUG - 16988 ++ . /usr/share/yunohost/helpers.d/php 2020-03-21 14:21:05,784: DEBUG - 16989 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,785: DEBUG - 16990 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-03-21 14:21:05,785: DEBUG - 16991 ++ . /usr/share/yunohost/helpers.d/postgresql 2020-03-21 14:21:05,786: DEBUG - 16992 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-03-21 14:21:05,787: DEBUG - 16993 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,788: DEBUG - 16994 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-03-21 14:21:05,789: DEBUG - 16995 ++ . /usr/share/yunohost/helpers.d/setting 2020-03-21 14:21:05,790: DEBUG - 16996 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,791: DEBUG - 16997 ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-03-21 14:21:05,792: DEBUG - 16998 ++ . /usr/share/yunohost/helpers.d/string 2020-03-21 14:21:05,793: DEBUG - 16999 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,795: DEBUG - 17001 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-03-21 14:21:05,795: DEBUG - 17002 ++ . /usr/share/yunohost/helpers.d/systemd 2020-03-21 14:21:05,796: DEBUG - 17003 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,797: DEBUG - 17004 ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-03-21 14:21:05,798: DEBUG - 17005 ++ . /usr/share/yunohost/helpers.d/user 2020-03-21 14:21:05,799: DEBUG - 17006 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-03-21 14:21:05,800: DEBUG - 17007 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-03-21 14:21:05,801: DEBUG - 17008 ++ . /usr/share/yunohost/helpers.d/utils 2020-03-21 14:21:05,802: DEBUG - 17009 + ynh_abort_if_errors 2020-03-21 14:21:05,802: DEBUG - 17010 + set -eu 2020-03-21 14:21:05,803: DEBUG - 17011 + trap ynh_exit_properly EXIT 2020-03-21 14:21:05,804: DEBUG - 17012 + ynh_script_progression '--message=Loading settings...' --weight=2 2020-03-21 14:21:05,805: DEBUG - 17013 + set +x 2020-03-21 14:21:05,806: DEBUG - 17014 + set +x 2020-03-21 14:21:05,908: DEBUG - 17116 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:05,909: DEBUG - 17118 [....................] > Loading settings... 2020-03-21 14:21:05,911: DEBUG - 17119 + set +x 2020-03-21 14:21:05,912: DEBUG - 17121 + echo '[....................] > Loading settings...' 2020-03-21 14:21:05,914: DEBUG - 17122 + set -x 2020-03-21 14:21:05,915: DEBUG - 17124 + app=piwigo 2020-03-21 14:21:05,917: DEBUG - 17126 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:21:05,918: DEBUG - 17128 ++ local legacy_args=ak 2020-03-21 14:21:05,920: DEBUG - 17129 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:21:05,921: DEBUG - 17131 ++ declare -Ar args_array 2020-03-21 14:21:05,923: DEBUG - 17132 ++ local app 2020-03-21 14:21:05,925: DEBUG - 17134 ++ local key 2020-03-21 14:21:05,926: DEBUG - 17136 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:21:05,928: DEBUG - 17137 ++ set +x 2020-03-21 14:21:05,929: DEBUG - 17139 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:21:05,930: DEBUG - 17141 ++ ACTION=get 2020-03-21 14:21:05,932: DEBUG - 17142 ++ APP=piwigo 2020-03-21 14:21:05,933: DEBUG - 17144 ++ KEY=********** 2020-03-21 14:21:05,935: DEBUG - 17146 ++ VALUE= 2020-03-21 14:21:05,936: DEBUG - 17147 ++ python - 2020-03-21 14:21:06,439: DEBUG - 17650 + **********=cryostase.eu 2020-03-21 14:21:06,440: DEBUG - 17652 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:21:06,441: DEBUG - 17653 ++ local legacy_args=ak 2020-03-21 14:21:06,442: DEBUG - 17654 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:21:06,443: DEBUG - 17655 ++ declare -Ar args_array 2020-03-21 14:21:06,443: DEBUG - 17656 ++ local app 2020-03-21 14:21:06,445: DEBUG - 17656 ++ local key 2020-03-21 14:21:06,445: DEBUG - 17657 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:21:06,446: DEBUG - 17658 ++ set +x 2020-03-21 14:21:06,447: DEBUG - 17659 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:21:06,448: DEBUG - 17660 ++ ACTION=get 2020-03-21 14:21:06,449: DEBUG - 17661 ++ APP=piwigo 2020-03-21 14:21:06,449: DEBUG - 17662 ++ KEY=********** 2020-03-21 14:21:06,450: DEBUG - 17663 ++ VALUE= 2020-03-21 14:21:06,451: DEBUG - 17664 ++ python - 2020-03-21 14:21:06,953: DEBUG - 18167 + **********_url=/piwigo 2020-03-21 14:21:06,954: DEBUG - 18168 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:21:06,955: DEBUG - 18169 ++ local legacy_args=ak 2020-03-21 14:21:06,956: DEBUG - 18169 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:21:06,957: DEBUG - 18170 ++ declare -Ar args_array 2020-03-21 14:21:06,957: DEBUG - 18171 ++ local app 2020-03-21 14:21:06,958: DEBUG - 18172 ++ local key 2020-03-21 14:21:06,959: DEBUG - 18173 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:21:06,960: DEBUG - 18174 ++ set +x 2020-03-21 14:21:06,961: DEBUG - 18175 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:21:06,962: DEBUG - 18176 ++ ACTION=get 2020-03-21 14:21:06,963: DEBUG - 18177 ++ APP=piwigo 2020-03-21 14:21:06,963: DEBUG - 18178 ++ KEY=********** 2020-03-21 14:21:06,964: DEBUG - 18179 ++ VALUE= 2020-03-21 14:21:06,965: DEBUG - 18180 ++ python - 2020-03-21 14:21:07,467: DEBUG - 18682 + **********=1 2020-03-21 14:21:07,468: DEBUG - 18684 ++ ynh_app_setting_get --app=piwigo --key=final_********** 2020-03-21 14:21:07,469: DEBUG - 18685 ++ local legacy_args=ak 2020-03-21 14:21:07,470: DEBUG - 18686 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:21:07,471: DEBUG - 18687 ++ declare -Ar args_array 2020-03-21 14:21:07,472: DEBUG - 18688 ++ local app 2020-03-21 14:21:07,473: DEBUG - 18689 ++ local key 2020-03-21 14:21:07,474: DEBUG - 18690 ++ ynh_handle_getopts_args --app=piwigo --key=final_********** 2020-03-21 14:21:07,474: DEBUG - 18691 ++ set +x 2020-03-21 14:21:07,475: DEBUG - 18692 ++ ynh_app_setting get piwigo final_********** 2020-03-21 14:21:07,476: DEBUG - 18692 ++ ACTION=get 2020-03-21 14:21:07,476: DEBUG - 18693 ++ APP=piwigo 2020-03-21 14:21:07,477: DEBUG - 18694 ++ KEY=final_********** 2020-03-21 14:21:07,478: DEBUG - 18695 ++ VALUE= 2020-03-21 14:21:07,478: DEBUG - 18696 ++ python - 2020-03-21 14:21:07,880: DEBUG - 19098 + final_**********=/var/www/piwigo 2020-03-21 14:21:07,881: DEBUG - 19099 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:21:07,882: DEBUG - 19100 ++ local legacy_args=ak 2020-03-21 14:21:07,883: DEBUG - 19101 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:21:07,884: DEBUG - 19102 ++ declare -Ar args_array 2020-03-21 14:21:07,885: DEBUG - 19103 ++ local app 2020-03-21 14:21:07,886: DEBUG - 19104 ++ local key 2020-03-21 14:21:07,887: DEBUG - 19105 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:21:07,989: DEBUG - 19106 ++ set +x 2020-03-21 14:21:07,990: DEBUG - 19208 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:21:08,091: DEBUG - 19209 ++ ACTION=get 2020-03-21 14:21:08,092: DEBUG - 19210 ++ APP=piwigo 2020-03-21 14:21:08,093: DEBUG - 19210 ++ KEY=********** 2020-03-21 14:21:08,093: DEBUG - 19211 ++ VALUE= 2020-03-21 14:21:08,094: DEBUG - 19212 ++ python - 2020-03-21 14:21:08,396: DEBUG - 19614 + **********=piwigo 2020-03-21 14:21:08,497: DEBUG - 19615 + ynh_script_progression '--message=Validating restoration parameters...' 2020-03-21 14:21:08,499: DEBUG - 19616 + set +x 2020-03-21 14:21:08,500: DEBUG - 19617 + set +x 2020-03-21 14:21:08,501: DEBUG - 19719 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:08,502: DEBUG - 19720 [+...................] > Validating restoration parameters... 2020-03-21 14:21:08,503: DEBUG - 19720 + set +x 2020-03-21 14:21:08,503: DEBUG - 19721 + echo '[+...................] > Validating restoration parameters...' 2020-03-21 14:21:08,504: DEBUG - 19722 + set -x 2020-03-21 14:21:08,505: DEBUG - 19723 + ynh_web**********_available --**********=cryostase.eu --**********_url=/piwigo 2020-03-21 14:21:08,506: DEBUG - 19724 + local legacy_args=dp 2020-03-21 14:21:08,507: DEBUG - 19725 + args_array=([d]=**********= [p]=**********_url=) 2020-03-21 14:21:08,508: DEBUG - 19726 + declare -Ar args_array 2020-03-21 14:21:08,509: DEBUG - 19727 + local ********** 2020-03-21 14:21:08,610: DEBUG - 19728 + local **********_url 2020-03-21 14:21:08,611: DEBUG - 19729 + ynh_handle_getopts_args --**********=cryostase.eu --**********_url=/piwigo 2020-03-21 14:21:08,612: DEBUG - 19730 + set +x 2020-03-21 14:21:08,613: DEBUG - 19731 + sudo yunohost ********** url-available cryostase.eu /piwigo 2020-03-21 14:21:10,017: DEBUG - 21136 False 2020-03-21 14:21:10,119: DEBUG - 21237 + test '!' -d /var/www/piwigo 2020-03-21 14:21:10,120: DEBUG - 21238 + ynh_restore_file --origin_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,121: DEBUG - 21239 + local legacy_args=odm 2020-03-21 14:21:10,122: DEBUG - 21240 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-03-21 14:21:10,123: DEBUG - 21241 + declare -Ar args_array 2020-03-21 14:21:10,125: DEBUG - 21242 + local origin_********** 2020-03-21 14:21:10,126: DEBUG - 21244 + local archive_********** 2020-03-21 14:21:10,127: DEBUG - 21245 + local dest_********** 2020-03-21 14:21:10,128: DEBUG - 21246 + local not_mandatory 2020-03-21 14:21:10,129: DEBUG - 21247 + ynh_handle_getopts_args --origin_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,130: DEBUG - 21248 + set +x 2020-03-21 14:21:10,131: DEBUG - 21349 + local origin_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,132: DEBUG - 21350 + local archive_**********=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,133: DEBUG - 21351 + local dest_**********=/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,134: DEBUG - 21352 + local not_mandatory=0 2020-03-21 14:21:10,236: DEBUG - 21353 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf ']' 2020-03-21 14:21:10,237: DEBUG - 21355 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf ']' 2020-03-21 14:21:10,238: DEBUG - 21356 + [[ -e /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf ]] 2020-03-21 14:21:10,238: DEBUG - 21357 ++ dirname /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,239: DEBUG - 21358 + mkdir -p /etc/nginx/conf.d/cryostase.eu.d 2020-03-21 14:21:10,240: DEBUG - 21359 + mountpoint -q /home/yunohost.backup/tmp/piwigo-pre-upgrade1 2020-03-21 14:21:10,240: DEBUG - 21360 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/nginx/conf.d/cryostase.eu.d/piwigo.conf /etc/nginx/conf.d/cryostase.eu.d/piwigo.conf 2020-03-21 14:21:10,241: DEBUG - 21361 + ynh_script_progression '--message=Restoring the app main directory...' 2020-03-21 14:21:10,241: DEBUG - 21362 + set +x 2020-03-21 14:21:10,242: DEBUG - 21363 + set +x 2020-03-21 14:21:10,243: DEBUG - 21364 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:10,243: DEBUG - 21365 + set +x 2020-03-21 14:21:10,244: DEBUG - 21366 + echo '[#...................] > Restoring the app main directory...' 2020-03-21 14:21:10,244: DEBUG - 21367 + set -x 2020-03-21 14:21:10,245: DEBUG - 21368 + ynh_restore_file --origin_**********=/var/www/piwigo 2020-03-21 14:21:10,246: DEBUG - 21369 + local legacy_args=odm 2020-03-21 14:21:10,246: DEBUG - 21370 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-03-21 14:21:10,247: DEBUG - 21371 + declare -Ar args_array 2020-03-21 14:21:10,249: DEBUG - 21372 + local origin_********** 2020-03-21 14:21:10,250: DEBUG - 21373 + local archive_********** 2020-03-21 14:21:10,251: DEBUG - 21374 + local dest_********** 2020-03-21 14:21:10,252: DEBUG - 21375 + local not_mandatory 2020-03-21 14:21:10,253: DEBUG - 21376 + ynh_handle_getopts_args --origin_**********=/var/www/piwigo 2020-03-21 14:21:10,254: DEBUG - 21377 + set +x 2020-03-21 14:21:10,255: DEBUG - 21378 + local origin_**********=/var/www/piwigo 2020-03-21 14:21:10,256: DEBUG - 21379 + local archive_**********=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/var/www/piwigo 2020-03-21 14:21:10,256: DEBUG - 21380 + local dest_**********=/var/www/piwigo 2020-03-21 14:21:10,257: DEBUG - 21381 + local not_mandatory=0 2020-03-21 14:21:10,258: DEBUG - 21383 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/var/www/piwigo ']' 2020-03-21 14:21:10,259: DEBUG - 21384 + [[ -e /var/www/piwigo ]] 2020-03-21 14:21:10,259: DEBUG - 21385 ++ dirname /var/www/piwigo 2020-03-21 14:21:10,260: DEBUG - 21386 + mkdir -p /var/www 2020-03-21 14:21:10,261: DEBUG - 21387 + mountpoint -q /home/yunohost.backup/tmp/piwigo-pre-upgrade1 2020-03-21 14:21:10,262: DEBUG - 21388 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/var/www/piwigo /var/www/piwigo 2020-03-21 14:21:10,263: DEBUG - 21389 + ynh_script_progression '--message=Restoring the MySQL database...' --weight=2 2020-03-21 14:21:10,263: DEBUG - 21390 + set +x 2020-03-21 14:21:10,365: DEBUG - 21491 + set +x 2020-03-21 14:21:10,366: DEBUG - 21493 [#...................] > Restoring the app main directory... 2020-03-21 14:21:10,367: DEBUG - 21494 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:10,367: DEBUG - 21494 + set +x 2020-03-21 14:21:10,368: DEBUG - 21495 + echo '[#+..................] > Restoring the MySQL database...' 2020-03-21 14:21:10,369: DEBUG - 21496 + set -x 2020-03-21 14:21:10,370: DEBUG - 21497 ++ ynh_app_setting_get --app=piwigo --key=********** 2020-03-21 14:21:10,371: DEBUG - 21498 ++ local legacy_args=ak 2020-03-21 14:21:10,372: DEBUG - 21499 ++ args_array=([a]=app= [k]=key=) 2020-03-21 14:21:10,372: DEBUG - 21500 ++ declare -Ar args_array 2020-03-21 14:21:10,373: DEBUG - 21500 ++ local app 2020-03-21 14:21:10,374: DEBUG - 21501 ++ local key 2020-03-21 14:21:10,375: DEBUG - 21502 ++ ynh_handle_getopts_args --app=piwigo --key=********** 2020-03-21 14:21:10,376: DEBUG - 21503 ++ set +x 2020-03-21 14:21:10,377: DEBUG - 21504 ++ ynh_app_setting get piwigo ********** 2020-03-21 14:21:10,378: DEBUG - 21505 ++ ACTION=get 2020-03-21 14:21:10,379: DEBUG - 21506 ++ APP=piwigo 2020-03-21 14:21:10,380: DEBUG - 21507 ++ KEY=********** 2020-03-21 14:21:10,380: DEBUG - 21508 ++ VALUE= 2020-03-21 14:21:10,381: DEBUG - 21509 ++ python - 2020-03-21 14:21:10,884: DEBUG - 22011 + db_pwd=********** 2020-03-21 14:21:10,885: DEBUG - 22012 [#+..................] > Restoring the MySQL database... 2020-03-21 14:21:10,886: DEBUG - 22013 + ynh_mysql_setup_db --db_user=piwigo --**********=piwigo --db_pwd=********** 2020-03-21 14:21:10,887: DEBUG - 22014 + local legacy_args=unp 2020-03-21 14:21:10,888: DEBUG - 22015 + args_array=([u]=db_user= [n]=**********= [p]=db_pwd=) 2020-03-21 14:21:10,888: DEBUG - 22016 + declare -Ar args_array 2020-03-21 14:21:10,889: DEBUG - 22017 + local db_user 2020-03-21 14:21:10,889: DEBUG - 22018 + local ********** 2020-03-21 14:21:10,890: DEBUG - 22019 + db_pwd= 2020-03-21 14:21:10,890: DEBUG - 22019 + ynh_handle_getopts_args --db_user=piwigo --**********=piwigo --db_pwd=********** 2020-03-21 14:21:10,891: DEBUG - 22020 + set +x 2020-03-21 14:21:10,892: DEBUG - 22021 ++ ynh_string_random 2020-03-21 14:21:10,892: DEBUG - 22022 ++ local legacy_args=l 2020-03-21 14:21:10,893: DEBUG - 22022 ++ args_array=([l]=length=) 2020-03-21 14:21:10,894: DEBUG - 22023 ++ declare -Ar args_array 2020-03-21 14:21:10,895: DEBUG - 22024 ++ local length 2020-03-21 14:21:10,896: DEBUG - 22025 ++ ynh_handle_getopts_args 2020-03-21 14:21:10,897: DEBUG - 22026 ++ set +x 2020-03-21 14:21:10,897: DEBUG - 22027 ++ length=24 2020-03-21 14:21:10,898: DEBUG - 22028 ++ dd if=/dev/urandom bs=1 count=1000 2020-03-21 14:21:10,899: DEBUG - 22029 ++ tr -c -d A-Za-z0-9 2020-03-21 14:21:10,900: DEBUG - 22030 ++ sed -n 's/\(.\{24\}\).*/\1/p' 2020-03-21 14:21:10,901: DEBUG - 22031 + local new_db_pwd=********** 2020-03-21 14:21:10,903: DEBUG - 22032 + db_pwd=********** 2020-03-21 14:21:10,904: DEBUG - 22033 + ynh_mysql_create_db piwigo piwigo ********** 2020-03-21 14:21:10,904: DEBUG - 22034 + local db=piwigo 2020-03-21 14:21:10,905: DEBUG - 22035 + local 'sql=CREATE DATABASE piwigo;' 2020-03-21 14:21:10,906: DEBUG - 22036 + [[ 3 -gt 1 ]] 2020-03-21 14:21:10,907: DEBUG - 22037 + sql+=' GRANT ALL PRIVILEGES ON piwigo.* TO '\''piwigo'\''@'\''localhost'\''' 2020-03-21 14:21:10,908: DEBUG - 22037 + [[ -n ********** ]] 2020-03-21 14:21:10,909: DEBUG - 22038 + sql+=' IDENTIFIED BY '\''**********'\''' 2020-03-21 14:21:10,910: DEBUG - 22039 + sql+=' WITH GRANT OPTION;' 2020-03-21 14:21:10,910: DEBUG - 22040 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE piwigo; GRANT ALL PRIVILEGES ON piwigo.* TO '\''piwigo'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2020-03-21 14:21:10,911: DEBUG - 22040 + local legacy_args=sd 2020-03-21 14:21:10,912: DEBUG - 22041 + args_array=([s]=sql= [d]=database=) 2020-03-21 14:21:10,913: DEBUG - 22042 + declare -Ar args_array 2020-03-21 14:21:10,914: DEBUG - 22043 + local sql 2020-03-21 14:21:10,915: DEBUG - 22044 + local database 2020-03-21 14:21:10,916: DEBUG - 22044 + ynh_handle_getopts_args '--sql=CREATE DATABASE piwigo; GRANT ALL PRIVILEGES ON piwigo.* TO '\''piwigo'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2020-03-21 14:21:10,917: DEBUG - 22045 + set +x 2020-03-21 14:21:10,918: DEBUG - 22046 + database= 2020-03-21 14:21:10,919: DEBUG - 22047 ++ sudo cat /etc/yunohost/mysql 2020-03-21 14:21:11,020: DEBUG - 22148 + ynh_mysql_connect_as --user=root --password=********** --database= 2020-03-21 14:21:11,021: DEBUG - 22149 + local legacy_args=upd 2020-03-21 14:21:11,022: DEBUG - 22150 + args_array=([u]=user= [p]=password= [d]=database=) 2020-03-21 14:21:11,023: DEBUG - 22151 + declare -Ar args_array 2020-03-21 14:21:11,023: DEBUG - 22152 + local user 2020-03-21 14:21:11,024: DEBUG - 22153 + local password 2020-03-21 14:21:11,025: DEBUG - 22154 + local database 2020-03-21 14:21:11,026: DEBUG - 22155 + ynh_handle_getopts_args --user=root --password=********** --database= 2020-03-21 14:21:11,027: DEBUG - 22156 + set +x 2020-03-21 14:21:11,027: DEBUG - 22157 + database= 2020-03-21 14:21:11,028: DEBUG - 22158 + mysql -u root --password=********** -B '' 2020-03-21 14:21:11,129: DEBUG - 22259 + ynh_app_setting_set --app=piwigo --key=********** --value=********** 2020-03-21 14:21:11,130: DEBUG - 22260 + local legacy_args=akv 2020-03-21 14:21:11,131: DEBUG - 22261 + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:21:11,132: DEBUG - 22262 + declare -Ar args_array 2020-03-21 14:21:11,133: DEBUG - 22263 + local app 2020-03-21 14:21:11,134: DEBUG - 22264 + local key 2020-03-21 14:21:11,135: DEBUG - 22265 + local value 2020-03-21 14:21:11,136: DEBUG - 22265 + ynh_handle_getopts_args --app=piwigo --key=********** --value=********** 2020-03-21 14:21:11,137: DEBUG - 22266 + set +x 2020-03-21 14:21:11,138: DEBUG - 22267 + ynh_app_setting set piwigo ********** ********** 2020-03-21 14:21:11,139: DEBUG - 22267 + ACTION=set 2020-03-21 14:21:11,140: DEBUG - 22268 + APP=piwigo 2020-03-21 14:21:11,141: DEBUG - 22269 + KEY=********** 2020-03-21 14:21:11,141: DEBUG - 22270 + VALUE=********** 2020-03-21 14:21:11,142: DEBUG - 22270 + python - 2020-03-21 14:21:11,644: DEBUG - 22772 + ynh_mysql_connect_as --user=piwigo --password=********** --database=piwigo 2020-03-21 14:21:11,645: DEBUG - 22774 + local legacy_args=upd 2020-03-21 14:21:11,646: DEBUG - 22774 + args_array=([u]=user= [p]=password= [d]=database=) 2020-03-21 14:21:11,646: DEBUG - 22775 + declare -Ar args_array 2020-03-21 14:21:11,647: DEBUG - 22776 + local user 2020-03-21 14:21:11,647: DEBUG - 22776 + local password 2020-03-21 14:21:11,648: DEBUG - 22777 + local database 2020-03-21 14:21:11,649: DEBUG - 22785 + ynh_handle_getopts_args --user=piwigo --password=********** --database=piwigo 2020-03-21 14:21:11,649: DEBUG - 22786 + set +x 2020-03-21 14:21:11,650: DEBUG - 22787 + database=piwigo 2020-03-21 14:21:11,650: DEBUG - 22787 + mysql -u piwigo --password=********** -B piwigo 2020-03-21 14:21:12,654: DEBUG - 23791 + ynh_script_progression '--message=Recreating the dedicated system user...' --weight=3 2020-03-21 14:21:12,656: DEBUG - 23793 + set +x 2020-03-21 14:21:12,758: DEBUG - 23895 + set +x 2020-03-21 14:21:12,760: DEBUG - 23897 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:12,762: DEBUG - 23899 + set +x 2020-03-21 14:21:12,763: DEBUG - 23901 + echo '[##+.................] > Recreating the dedicated system user...' 2020-03-21 14:21:12,765: DEBUG - 23902 + set -x 2020-03-21 14:21:12,767: DEBUG - 23904 + ynh_system_user_create --username=piwigo 2020-03-21 14:21:12,769: DEBUG - 23906 + local legacy_args=uhs 2020-03-21 14:21:12,770: DEBUG - 23908 + args_array=([u]=username= [h]=home_dir= [s]=use_shell) 2020-03-21 14:21:12,772: DEBUG - 23910 + declare -Ar args_array 2020-03-21 14:21:12,774: DEBUG - 23912 + local username 2020-03-21 14:21:12,775: DEBUG - 23914 + local home_dir 2020-03-21 14:21:12,777: DEBUG - 23915 + local use_shell 2020-03-21 14:21:12,778: DEBUG - 23917 + ynh_handle_getopts_args --username=piwigo 2020-03-21 14:21:12,779: DEBUG - 23919 + set +x 2020-03-21 14:21:12,780: DEBUG - 23921 + use_shell=0 2020-03-21 14:21:12,780: DEBUG - 23923 + home_dir= 2020-03-21 14:21:12,782: DEBUG - 23925 [##+.................] > Recreating the dedicated system user... 2020-03-21 14:21:12,783: DEBUG - 23926 + ynh_system_user_exists piwigo 2020-03-21 14:21:12,784: DEBUG - 23928 + local legacy_args=u 2020-03-21 14:21:12,785: DEBUG - 23930 + args_array=([u]=username=) 2020-03-21 14:21:12,786: DEBUG - 23932 + declare -Ar args_array 2020-03-21 14:21:12,787: DEBUG - 23934 + local username 2020-03-21 14:21:12,788: DEBUG - 23936 + ynh_handle_getopts_args piwigo 2020-03-21 14:21:12,789: DEBUG - 23938 + set +x 2020-03-21 14:21:12,790: DEBUG - 23940 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:12,791: DEBUG - 23942 + set +x 2020-03-21 14:21:12,792: DEBUG - 23944 + getent passwd piwigo 2020-03-21 14:21:12,793: DEBUG - 23945 + '[' -n '' ']' 2020-03-21 14:21:12,794: DEBUG - 23947 + local user_home_dir=--no-create-home 2020-03-21 14:21:12,795: DEBUG - 23949 + '[' 0 -eq 1 ']' 2020-03-21 14:21:12,796: DEBUG - 23951 + local 'shell=--shell /usr/sbin/nologin' 2020-03-21 14:21:12,797: DEBUG - 23953 + useradd --no-create-home --system --user-group piwigo --shell /usr/sbin/nologin 2020-03-21 14:21:24,837: DEBUG - 35995 + ynh_restore_file --origin_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,839: DEBUG - 35996 + local legacy_args=odm 2020-03-21 14:21:24,840: DEBUG - 35998 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-03-21 14:21:24,841: DEBUG - 35999 + declare -Ar args_array 2020-03-21 14:21:24,841: DEBUG - 36000 + local origin_********** 2020-03-21 14:21:24,842: DEBUG - 36001 + local archive_********** 2020-03-21 14:21:24,843: DEBUG - 36002 + local dest_********** 2020-03-21 14:21:24,844: DEBUG - 36003 + local not_mandatory 2020-03-21 14:21:24,845: DEBUG - 36004 + ynh_handle_getopts_args --origin_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,846: DEBUG - 36005 + set +x 2020-03-21 14:21:24,947: DEBUG - 36107 + local origin_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,948: DEBUG - 36108 + local archive_**********=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,949: DEBUG - 36109 + local dest_**********=/etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,950: DEBUG - 36110 + local not_mandatory=0 2020-03-21 14:21:24,951: DEBUG - 36111 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf ']' 2020-03-21 14:21:24,952: DEBUG - 36112 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf ']' 2020-03-21 14:21:24,953: DEBUG - 36113 + [[ -e /etc/php/7.0/fpm/pool.d/piwigo.conf ]] 2020-03-21 14:21:24,954: DEBUG - 36114 ++ dirname /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,955: DEBUG - 36116 + mkdir -p /etc/php/7.0/fpm/pool.d 2020-03-21 14:21:24,956: DEBUG - 36117 + mountpoint -q /home/yunohost.backup/tmp/piwigo-pre-upgrade1 2020-03-21 14:21:24,957: DEBUG - 36118 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/php/7.0/fpm/pool.d/piwigo.conf /etc/php/7.0/fpm/pool.d/piwigo.conf 2020-03-21 14:21:24,958: DEBUG - 36119 + ynh_script_progression '--message=Restoring the fail2ban configuration...' --weight=7 2020-03-21 14:21:24,959: DEBUG - 36120 + set +x 2020-03-21 14:21:24,960: DEBUG - 36121 + set +x 2020-03-21 14:21:24,961: DEBUG - 36122 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:24,961: DEBUG - 36123 + set +x 2020-03-21 14:21:24,962: DEBUG - 36125 + echo '[###++...............] > Restoring the fail2ban configuration...' 2020-03-21 14:21:24,963: DEBUG - 36126 + set -x 2020-03-21 14:21:24,964: DEBUG - 36126 + ynh_restore_file /etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,965: DEBUG - 36127 + local legacy_args=odm 2020-03-21 14:21:24,966: DEBUG - 36128 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-03-21 14:21:24,967: DEBUG - 36130 + declare -Ar args_array 2020-03-21 14:21:24,968: DEBUG - 36131 + local origin_********** 2020-03-21 14:21:24,969: DEBUG - 36132 + local archive_********** 2020-03-21 14:21:24,970: DEBUG - 36133 + local dest_********** 2020-03-21 14:21:24,971: DEBUG - 36134 + local not_mandatory 2020-03-21 14:21:24,972: DEBUG - 36135 + ynh_handle_getopts_args /etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,972: DEBUG - 36136 + set +x 2020-03-21 14:21:24,974: DEBUG - 36137 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:24,975: DEBUG - 36138 + set +x 2020-03-21 14:21:24,976: DEBUG - 36139 + local origin_**********=/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,977: DEBUG - 36140 + local archive_**********=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,977: DEBUG - 36141 + local dest_**********=/etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,978: DEBUG - 36142 + local not_mandatory=0 2020-03-21 14:21:24,979: DEBUG - 36144 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf ']' 2020-03-21 14:21:24,980: DEBUG - 36145 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf ']' 2020-03-21 14:21:24,981: DEBUG - 36146 + [[ -e /etc/fail2ban/jail.d/piwigo.conf ]] 2020-03-21 14:21:24,982: DEBUG - 36147 ++ dirname /etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,983: DEBUG - 36148 + mkdir -p /etc/fail2ban/jail.d 2020-03-21 14:21:24,984: DEBUG - 36149 + mountpoint -q /home/yunohost.backup/tmp/piwigo-pre-upgrade1 2020-03-21 14:21:24,985: DEBUG - 36150 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf /etc/fail2ban/jail.d/piwigo.conf 2020-03-21 14:21:24,986: DEBUG - 36151 + ynh_restore_file /etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:24,987: DEBUG - 36152 + local legacy_args=odm 2020-03-21 14:21:24,987: DEBUG - 36153 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-03-21 14:21:24,988: DEBUG - 36155 + declare -Ar args_array 2020-03-21 14:21:24,989: DEBUG - 36156 + local origin_********** 2020-03-21 14:21:24,990: DEBUG - 36157 + local archive_********** 2020-03-21 14:21:24,991: DEBUG - 36158 + local dest_********** 2020-03-21 14:21:24,992: DEBUG - 36159 + local not_mandatory 2020-03-21 14:21:24,993: DEBUG - 36160 + ynh_handle_getopts_args /etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:24,994: DEBUG - 36161 + set +x 2020-03-21 14:21:24,995: DEBUG - 36162 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:24,996: DEBUG - 36163 + set +x 2020-03-21 14:21:24,996: DEBUG - 36164 + local origin_**********=/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:24,997: DEBUG - 36165 + local archive_**********=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:24,998: DEBUG - 36167 + local dest_**********=/etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:24,999: DEBUG - 36168 + local not_mandatory=0 2020-03-21 14:21:25,000: DEBUG - 36169 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf ']' 2020-03-21 14:21:25,001: DEBUG - 36170 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf ']' 2020-03-21 14:21:25,002: DEBUG - 36171 + [[ -e /etc/fail2ban/filter.d/piwigo.conf ]] 2020-03-21 14:21:25,003: DEBUG - 36172 ++ dirname /etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:25,004: DEBUG - 36173 + mkdir -p /etc/fail2ban/filter.d 2020-03-21 14:21:25,005: DEBUG - 36174 + mountpoint -q /home/yunohost.backup/tmp/piwigo-pre-upgrade1 2020-03-21 14:21:25,006: DEBUG - 36175 [###++...............] > Restoring the fail2ban configuration... 2020-03-21 14:21:25,107: DEBUG - 36277 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf /etc/fail2ban/filter.d/piwigo.conf 2020-03-21 14:21:25,109: DEBUG - 36278 + touch /var/log/piwigoFailedLogins.log 2020-03-21 14:21:25,110: DEBUG - 36279 + chown piwigo: /var/log/piwigoFailedLogins.log 2020-03-21 14:21:25,111: DEBUG - 36281 + ynh_systemd_action --action=restart --service_name=fail2ban 2020-03-21 14:21:25,112: DEBUG - 36282 + local legacy_args=nalpte 2020-03-21 14:21:25,113: DEBUG - 36283 + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-03-21 14:21:25,121: DEBUG - 36284 + declare -Ar args_array 2020-03-21 14:21:25,123: DEBUG - 36285 + local service_name 2020-03-21 14:21:25,124: DEBUG - 36286 + local action 2020-03-21 14:21:25,126: DEBUG - 36287 + local line_match 2020-03-21 14:21:25,127: DEBUG - 36287 + local length 2020-03-21 14:21:25,129: DEBUG - 36288 + local log_********** 2020-03-21 14:21:25,130: DEBUG - 36289 + local timeout 2020-03-21 14:21:25,132: DEBUG - 36290 + ynh_handle_getopts_args --action=restart --service_name=fail2ban 2020-03-21 14:21:25,133: DEBUG - 36291 + set +x 2020-03-21 14:21:25,135: DEBUG - 36292 + local service_name=fail2ban 2020-03-21 14:21:25,137: DEBUG - 36293 + local action=restart 2020-03-21 14:21:25,138: DEBUG - 36294 + local log_**********=/var/log/fail2ban/fail2ban.log 2020-03-21 14:21:25,140: DEBUG - 36295 + local length=20 2020-03-21 14:21:25,141: DEBUG - 36296 + local timeout=300 2020-03-21 14:21:25,143: DEBUG - 36297 + [[ -n '' ]] 2020-03-21 14:21:25,144: DEBUG - 36298 + '[' restart == reload ']' 2020-03-21 14:21:25,146: DEBUG - 36299 + systemctl restart fail2ban 2020-03-21 14:21:34,475: DEBUG - 45628 + [[ -n '' ]] 2020-03-21 14:21:34,476: DEBUG - 45629 + ynh_script_progression '--message=Reinstalling dependencies...' --weight=40 2020-03-21 14:21:34,477: DEBUG - 45630 + set +x 2020-03-21 14:21:34,579: DEBUG - 45732 + set +x 2020-03-21 14:21:34,580: DEBUG - 45733 + echo '! Helper used in legacy mode !' 2020-03-21 14:21:34,581: DEBUG - 45734 + set +x 2020-03-21 14:21:34,582: DEBUG - 45735 + echo '[#####+++++++++++++..] > Reinstalling dependencies...' 2020-03-21 14:21:34,583: DEBUG - 45736 + set -x 2020-03-21 14:21:34,584: DEBUG - 45737 + ynh_install_app_dependencies php-gd php-imagick imagemagick 2020-03-21 14:21:34,585: DEBUG - 45738 + local 'dependencies=php-gd php-imagick imagemagick' 2020-03-21 14:21:34,586: DEBUG - 45739 + local 'dependencies=php-gd, php-imagick, imagemagick' 2020-03-21 14:21:34,587: DEBUG - 45740 + local 'dependencies=php-gd, php-imagick, imagemagick' 2020-03-21 14:21:34,589: DEBUG - 45741 + local manifest_**********=../manifest.json 2020-03-21 14:21:34,590: DEBUG - 45742 + '[' '!' -e ../manifest.json ']' 2020-03-21 14:21:34,591: DEBUG - 45743 + manifest_**********=../settings/manifest.json 2020-03-21 14:21:34,592: DEBUG - 45744 ++ grep '\"**********\": ' ../settings/manifest.json 2020-03-21 14:21:34,592: DEBUG - 45744 ++ cut -d '"' -f 4 2020-03-21 14:21:34,593: DEBUG - 45745 + local **********=********** 2020-03-21 14:21:34,596: DEBUG - 45746 + '[' 11 -eq 0 ']' 2020-03-21 14:21:34,598: DEBUG - 45747 + local dep_app=piwigo 2020-03-21 14:21:34,599: DEBUG - 45748 + echo php-gd, php-imagick, imagemagick 2020-03-21 14:21:34,601: DEBUG - 45748 + grep -q php 2020-03-21 14:21:34,602: DEBUG - 45749 + dpkg --list 2020-03-21 14:21:34,603: DEBUG - 45750 + grep php7.0 2020-03-21 14:21:34,604: DEBUG - 45751 + grep -q -v 7.0.33-0+deb9 2020-03-21 14:21:34,706: DEBUG - 45852 + cat 2020-03-21 14:21:34,707: DEBUG - 45853 [#####+++++++++++++..] > Reinstalling dependencies... 2020-03-21 14:21:34,707: DEBUG - 45855 + ynh_package_install_from_equivs /tmp/piwigo-ynh-deps.control 2020-03-21 14:21:34,708: DEBUG - 45856 + local controlfile=/tmp/piwigo-ynh-deps.control 2020-03-21 14:21:34,708: DEBUG - 45857 ++ grep '^Package: ' /tmp/piwigo-ynh-deps.control 2020-03-21 14:21:34,709: DEBUG - 45859 ++ cut '-d ' -f 2 2020-03-21 14:21:34,709: DEBUG - 45860 + local pkgname=piwigo-ynh-deps 2020-03-21 14:21:34,710: DEBUG - 45861 ++ cut '-d ' -f 2 2020-03-21 14:21:34,711: DEBUG - 45862 ++ grep '^Version: ' /tmp/piwigo-ynh-deps.control 2020-03-21 14:21:34,711: DEBUG - 45863 + local pkg**********=********** 2020-03-21 14:21:34,712: DEBUG - 45864 + [[ -z piwigo-ynh-deps ]] 2020-03-21 14:21:34,712: DEBUG - 45865 + [[ -z ********** ]] 2020-03-21 14:21:34,713: DEBUG - 45865 + ynh_package_update 2020-03-21 14:21:34,713: DEBUG - 45866 + ynh_apt update 2020-03-21 14:21:34,714: DEBUG - 45867 + ynh_wait_dpkg_free 2020-03-21 14:21:34,715: DEBUG - 45868 + local try 2020-03-21 14:21:34,715: DEBUG - 45868 ++ seq 1 17 2020-03-21 14:21:34,716: DEBUG - 45869 + for try in `seq 1 17` 2020-03-21 14:21:34,716: DEBUG - 45870 + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:21:35,118: DEBUG - 46272 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:21:35,119: DEBUG - 46273 ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:21:35,120: DEBUG - 46274 + read dpkg_file 2020-03-21 14:21:35,121: DEBUG - 46275 + echo '' 2020-03-21 14:21:35,122: DEBUG - 46276 + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:21:35,123: DEBUG - 46277 + read dpkg_file 2020-03-21 14:21:35,124: DEBUG - 46278 + return 0 2020-03-21 14:21:35,125: DEBUG - 46279 + DEBIAN_FRONTEND=noninteractive 2020-03-21 14:21:35,126: DEBUG - 46280 + apt-get -y update 2020-03-21 14:21:35,427: DEBUG - 46582 Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB] 2020-03-21 14:21:35,429: DEBUG - 46583 Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease 2020-03-21 14:21:38,439: DEBUG - 49593 Hit:3 http://forge.yunohost.org/debian stretch InRelease 2020-03-21 14:21:39,845: DEBUG - 50999 Fetched 25.4 kB in 4s (5,561 B/s) 2020-03-21 14:21:44,286: DEBUG - 55413 Reading package lists... 2020-03-21 14:21:44,388: DEBUG - 55515 ++ mktemp -d 2020-03-21 14:21:44,389: DEBUG - 55516 + local TMPDIR=/tmp/tmp.IcyKCr2SFF 2020-03-21 14:21:44,390: DEBUG - 55517 + echo 10 2020-03-21 14:21:44,390: DEBUG - 55517 + ynh_wait_dpkg_free 2020-03-21 14:21:44,391: DEBUG - 55518 + local try 2020-03-21 14:21:44,392: DEBUG - 55519 ++ seq 1 17 2020-03-21 14:21:44,392: DEBUG - 55519 + for try in `seq 1 17` 2020-03-21 14:21:44,393: DEBUG - 55520 + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:21:44,795: DEBUG - 55922 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:21:44,796: DEBUG - 55923 ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:21:44,797: DEBUG - 55924 + read dpkg_file 2020-03-21 14:21:44,797: DEBUG - 55925 + echo '' 2020-03-21 14:21:44,798: DEBUG - 55927 + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:21:44,799: DEBUG - 55928 + read dpkg_file 2020-03-21 14:21:44,800: DEBUG - 55929 + return 0 2020-03-21 14:21:44,801: DEBUG - 55930 + cp /tmp/piwigo-ynh-deps.control /tmp/tmp.IcyKCr2SFF/control 2020-03-21 14:21:44,801: DEBUG - 55931 + cd /tmp/tmp.IcyKCr2SFF 2020-03-21 14:21:44,802: DEBUG - 55932 + equivs-build ./control 2020-03-21 14:21:47,511: DEBUG - 58642 + dpkg --force-depends -i ./piwigo-ynh-deps_**********_all.deb 2020-03-21 14:21:47,713: DEBUG - 58844 Selecting previously unselected package piwigo-ynh-deps. 2020-03-21 14:21:47,815: DEBUG - 58946 (Reading database ... 54795 files and directories currently installed.) 2020-03-21 14:21:47,816: DEBUG - 58947 Preparing to unpack .../piwigo-ynh-deps_**********_all.deb ... 2020-03-21 14:21:47,816: DEBUG - 58947 Unpacking piwigo-ynh-deps (**********) ... 2020-03-21 14:21:47,817: DEBUG - 58948 dpkg: piwigo-ynh-deps: dependency problems, but configuring anyway as you requested: 2020-03-21 14:21:47,818: DEBUG - 58949 piwigo-ynh-deps depends on php-imagick; however: 2020-03-21 14:21:47,818: DEBUG - 58950 Package php-imagick is not installed. 2020-03-21 14:21:47,819: DEBUG - 58955 2020-03-21 14:21:47,820: DEBUG - 58956 Setting up piwigo-ynh-deps (**********) ... 2020-03-21 14:21:47,924: DEBUG - 59058 + ynh_package_install -f 2020-03-21 14:21:47,926: DEBUG - 59059 + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-03-21 14:21:47,927: DEBUG - 59060 + ynh_wait_dpkg_free 2020-03-21 14:21:47,928: DEBUG - 59061 + local try 2020-03-21 14:21:47,929: DEBUG - 59063 ++ seq 1 17 2020-03-21 14:21:47,930: DEBUG - 59064 + for try in `seq 1 17` 2020-03-21 14:21:47,931: DEBUG - 59065 + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:21:48,334: DEBUG - 59467 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:21:48,335: DEBUG - 59469 ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:21:48,436: DEBUG - 59570 + read dpkg_file 2020-03-21 14:21:48,437: DEBUG - 59571 + echo '' 2020-03-21 14:21:48,438: DEBUG - 59572 + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:21:48,438: DEBUG - 59573 + read dpkg_file 2020-03-21 14:21:48,439: DEBUG - 59574 + return 0 2020-03-21 14:21:48,440: DEBUG - 59575 + DEBIAN_FRONTEND=noninteractive 2020-03-21 14:21:48,440: DEBUG - 59576 + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-03-21 14:21:52,654: DEBUG - 63788 Reading package lists... 2020-03-21 14:21:53,458: DEBUG - 64593 Building dependency tree... 2020-03-21 14:21:54,648: DEBUG - 65766 Reading state information... 2020-03-21 14:21:54,649: DEBUG - 65768 Correcting dependencies... Done 2020-03-21 14:21:55,252: DEBUG - 66370 The following additional packages will be installed: 2020-03-21 14:21:55,253: DEBUG - 66372 php-imagick ttf-dejavu-core 2020-03-21 14:21:55,354: DEBUG - 66473 The following NEW packages will be installed: 2020-03-21 14:21:55,355: DEBUG - 66474 php-imagick ttf-dejavu-core 2020-03-21 14:21:58,766: DEBUG - 69893 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 2020-03-21 14:21:58,767: DEBUG - 69894 Need to get 0 B/113 kB of archives. 2020-03-21 14:21:58,767: DEBUG - 69895 After this operation, 404 kB of additional disk space will be used. 2020-03-21 14:21:58,969: DEBUG - 70097 Selecting previously unselected package php-imagick. 2020-03-21 14:21:59,070: DEBUG - 70198 (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54799 files and directories currently installed.) 2020-03-21 14:21:59,071: DEBUG - 70201 Preparing to unpack .../php-imagick_3.4.3~rc2-2+deb9u1_armhf.deb ... 2020-03-21 14:21:59,074: DEBUG - 70204 Unpacking php-imagick (3.4.3~rc2-2+deb9u1) ... 2020-03-21 14:21:59,175: DEBUG - 70306 Selecting previously unselected package ttf-dejavu-core. 2020-03-21 14:21:59,176: DEBUG - 70307 Preparing to unpack .../ttf-dejavu-core_2.37-1_all.deb ... 2020-03-21 14:21:59,177: DEBUG - 70308 Unpacking ttf-dejavu-core (2.37-1) ... 2020-03-21 14:21:59,478: DEBUG - 70610 Setting up php-imagick (3.4.3~rc2-2+deb9u1) ... 2020-03-21 14:21:59,780: DEBUG - 70912 Setting up ttf-dejavu-core (2.37-1) ... 2020-03-21 14:21:59,882: DEBUG - 71013 Processing triggers for fontconfig (2.11.0-6.7) ... 2020-03-21 14:22:03,695: DEBUG - 74825 + [[ -n /tmp/tmp.IcyKCr2SFF ]] 2020-03-21 14:22:03,696: DEBUG - 74826 + rm -rf /tmp/tmp.IcyKCr2SFF 2020-03-21 14:22:03,697: DEBUG - 74827 + ynh_package_is_installed piwigo-ynh-deps 2020-03-21 14:22:03,697: DEBUG - 74828 + local legacy_args=p 2020-03-21 14:22:03,698: DEBUG - 74829 + args_array=([p]=package=) 2020-03-21 14:22:03,699: DEBUG - 74829 + declare -Ar args_array 2020-03-21 14:22:03,699: DEBUG - 74830 + local package 2020-03-21 14:22:03,700: DEBUG - 74831 + ynh_handle_getopts_args piwigo-ynh-deps 2020-03-21 14:22:03,701: DEBUG - 74832 + set +x 2020-03-21 14:22:03,701: DEBUG - 74833 + echo '! Helper used in legacy mode !' 2020-03-21 14:22:03,702: DEBUG - 74835 + set +x 2020-03-21 14:22:03,703: DEBUG - 74836 + ynh_wait_dpkg_free 2020-03-21 14:22:03,703: DEBUG - 74837 + local try 2020-03-21 14:22:03,704: DEBUG - 74838 ++ seq 1 17 2020-03-21 14:22:03,705: DEBUG - 74838 + for try in `seq 1 17` 2020-03-21 14:22:03,705: DEBUG - 74839 + sudo lsof /var/lib/dpkg/lock 2020-03-21 14:22:04,107: DEBUG - 75241 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-03-21 14:22:04,108: DEBUG - 75242 ++ ls -1 /var/lib/dpkg/updates/ 2020-03-21 14:22:04,109: DEBUG - 75243 + read dpkg_file 2020-03-21 14:22:04,109: DEBUG - 75244 + echo '' 2020-03-21 14:22:04,110: DEBUG - 75245 + grep -Pq '^[[:digit:]]+$' 2020-03-21 14:22:04,111: DEBUG - 75246 + read dpkg_file 2020-03-21 14:22:04,112: DEBUG - 75247 + return 0 2020-03-21 14:22:04,112: DEBUG - 75249 + dpkg-query -W -f '${Status}' piwigo-ynh-deps 2020-03-21 14:22:04,113: DEBUG - 75250 + grep -c 'ok installed' 2020-03-21 14:22:04,114: DEBUG - 75251 + rm /tmp/piwigo-ynh-deps.control 2020-03-21 14:22:04,216: DEBUG - 75353 + ynh_app_setting_set --app=piwigo --key=apt_dependencies '--value=php-gd, php-imagick, imagemagick' 2020-03-21 14:22:04,217: DEBUG - 75354 + local legacy_args=akv 2020-03-21 14:22:04,219: DEBUG - 75355 + args_array=([a]=app= [k]=key= [v]=value=) 2020-03-21 14:22:04,220: DEBUG - 75356 + declare -Ar args_array 2020-03-21 14:22:04,222: DEBUG - 75356 + local app 2020-03-21 14:22:04,224: DEBUG - 75357 + local key 2020-03-21 14:22:04,225: DEBUG - 75358 + local value 2020-03-21 14:22:04,227: DEBUG - 75358 + ynh_handle_getopts_args --app=piwigo --key=apt_dependencies '--value=php-gd, php-imagick, imagemagick' 2020-03-21 14:22:04,228: DEBUG - 75359 + set +x 2020-03-21 14:22:04,230: DEBUG - 75360 + ynh_app_setting set piwigo apt_dependencies 'php-gd, php-imagick, imagemagick' 2020-03-21 14:22:04,231: DEBUG - 75360 + ACTION=set 2020-03-21 14:22:04,232: DEBUG - 75361 + APP=piwigo 2020-03-21 14:22:04,234: DEBUG - 75362 + KEY=apt_dependencies 2020-03-21 14:22:04,236: DEBUG - 75362 + VALUE='php-gd, php-imagick, imagemagick' 2020-03-21 14:22:04,237: DEBUG - 75364 + python - 2020-03-21 14:22:04,740: DEBUG - 75867 + ynh_script_progression '--message=Restoring data directory...' 2020-03-21 14:22:04,741: DEBUG - 75868 + set +x 2020-03-21 14:22:04,742: DEBUG - 75869 + set +x 2020-03-21 14:22:04,742: DEBUG - 75870 + echo '! Helper used in legacy mode !' 2020-03-21 14:22:04,743: DEBUG - 75871 + set +x 2020-03-21 14:22:04,844: DEBUG - 75973 + echo '[##################+.] > Restoring data directory...' 2020-03-21 14:22:04,845: DEBUG - 75974 [##################+.] > Restoring data directory... 2020-03-21 14:22:04,846: DEBUG - 75975 + set -x 2020-03-21 14:22:04,847: DEBUG - 75976 + ynh_restore_file --origin_**********=/home/yunohost.app/piwigo/upload --not_mandatory 2020-03-21 14:22:04,848: DEBUG - 75977 + local legacy_args=odm 2020-03-21 14:22:04,849: DEBUG - 75978 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-03-21 14:22:04,850: DEBUG - 75979 + declare -Ar args_array 2020-03-21 14:22:04,851: DEBUG - 75980 + local origin_********** 2020-03-21 14:22:04,852: DEBUG - 75981 + local archive_********** 2020-03-21 14:22:04,853: DEBUG - 75982 + local dest_********** 2020-03-21 14:22:04,853: DEBUG - 75983 + local not_mandatory 2020-03-21 14:22:04,855: DEBUG - 75984 + ynh_handle_getopts_args --origin_**********=/home/yunohost.app/piwigo/upload --not_mandatory 2020-03-21 14:22:04,856: DEBUG - 75985 + set +x 2020-03-21 14:22:04,856: DEBUG - 75986 + local origin_**********=/home/yunohost.app/piwigo/upload 2020-03-21 14:22:04,857: DEBUG - 75987 + local archive_**********=/home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/home/yunohost.app/piwigo/upload 2020-03-21 14:22:04,858: DEBUG - 75988 + local dest_**********=/home/yunohost.app/piwigo/upload 2020-03-21 14:22:04,859: DEBUG - 75990 + local not_mandatory=1 2020-03-21 14:22:04,860: DEBUG - 75990 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/home/yunohost.app/piwigo/upload ']' 2020-03-21 14:22:04,861: DEBUG - 75992 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/home/yunohost.app/piwigo/upload ']' 2020-03-21 14:22:04,862: DEBUG - 75993 + '[' '!' -L /home/yunohost.backup/tmp/piwigo-pre-upgrade1/apps/piwigo/backup/home/yunohost.app/piwigo/upload ']' 2020-03-21 14:22:04,863: DEBUG - 75994 + '[' 1 == 0 ']' 2020-03-21 14:22:04,864: DEBUG - 75995 + return 0 2020-03-21 14:22:04,865: DEBUG - 75997 + mkdir -p /home/yunohost.app/piwigo/upload 2020-03-21 14:22:04,866: DEBUG - 75998 + mkdir -p /home/yunohost.app/piwigo/_data 2020-03-21 14:22:04,867: DEBUG - 75999 + chown -R piwigo: /var/www/piwigo 2020-03-21 14:22:04,868: DEBUG - 76000 + chown -R piwigo: /home/yunohost.app/piwigo 2020-03-21 14:22:04,969: DEBUG - 76102 + ynh_script_progression '--message=Reloading nginx web server and php-fpm...' --weight=2 2020-03-21 14:22:04,970: DEBUG - 76103 + set +x 2020-03-21 14:22:04,972: DEBUG - 76104 + set +x 2020-03-21 14:22:04,973: DEBUG - 76105 + echo '! Helper used in legacy mode !' 2020-03-21 14:22:04,975: DEBUG - 76105 + set +x 2020-03-21 14:22:04,976: DEBUG - 76106 + echo '[###################.] > Reloading nginx web server and php-fpm...' 2020-03-21 14:22:04,977: DEBUG - 76107 + set -x 2020-03-21 14:22:04,978: DEBUG - 76107 + ynh_systemd_action --service_name=php7.0-fpm --action=reload 2020-03-21 14:22:04,979: DEBUG - 76108 + local legacy_args=nalpte 2020-03-21 14:22:04,980: DEBUG - 76109 + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-03-21 14:22:04,981: DEBUG - 76109 + declare -Ar args_array 2020-03-21 14:22:04,982: DEBUG - 76110 + local service_name 2020-03-21 14:22:04,983: DEBUG - 76111 + local action 2020-03-21 14:22:04,984: DEBUG - 76111 + local line_match 2020-03-21 14:22:04,985: DEBUG - 76112 + local length 2020-03-21 14:22:04,986: DEBUG - 76119 [###################.] > Reloading nginx web server and php-fpm... 2020-03-21 14:22:04,988: DEBUG - 76120 + local log_********** 2020-03-21 14:22:04,989: DEBUG - 76120 + local timeout 2020-03-21 14:22:04,989: DEBUG - 76121 + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload 2020-03-21 14:22:04,991: DEBUG - 76122 + set +x 2020-03-21 14:22:04,992: DEBUG - 76133 + local service_name=php7.0-fpm 2020-03-21 14:22:04,993: DEBUG - 76134 + local action=reload 2020-03-21 14:22:04,994: DEBUG - 76135 + local log_**********=/var/log/php7.0-fpm/php7.0-fpm.log 2020-03-21 14:22:04,995: DEBUG - 76136 + local length=20 2020-03-21 14:22:04,996: DEBUG - 76137 + local timeout=300 2020-03-21 14:22:04,997: DEBUG - 76138 + [[ -n '' ]] 2020-03-21 14:22:04,998: DEBUG - 76139 + '[' reload == reload ']' 2020-03-21 14:22:04,999: DEBUG - 76141 + action=reload-or-restart 2020-03-21 14:22:05,001: DEBUG - 76142 + systemctl reload-or-restart php7.0-fpm 2020-03-21 14:22:05,102: DEBUG - 76244 + [[ -n '' ]] 2020-03-21 14:22:05,103: DEBUG - 76245 + ynh_systemd_action --service_name=nginx --action=reload 2020-03-21 14:22:05,105: DEBUG - 76246 + local legacy_args=nalpte 2020-03-21 14:22:05,106: DEBUG - 76247 + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-03-21 14:22:05,107: DEBUG - 76252 + declare -Ar args_array 2020-03-21 14:22:05,108: DEBUG - 76255 + local service_name 2020-03-21 14:22:05,110: DEBUG - 76256 + local action 2020-03-21 14:22:05,111: DEBUG - 76258 + local line_match 2020-03-21 14:22:05,112: DEBUG - 76260 + local length 2020-03-21 14:22:05,113: DEBUG - 76261 + local log_********** 2020-03-21 14:22:05,114: DEBUG - 76262 + local timeout 2020-03-21 14:22:05,115: DEBUG - 76263 + ynh_handle_getopts_args --service_name=nginx --action=reload 2020-03-21 14:22:05,116: DEBUG - 76265 + set +x 2020-03-21 14:22:05,117: DEBUG - 76266 + local service_name=nginx 2020-03-21 14:22:05,118: DEBUG - 76267 + local action=reload 2020-03-21 14:22:05,119: DEBUG - 76269 + local log_**********=/var/log/nginx/nginx.log 2020-03-21 14:22:05,120: DEBUG - 76271 + local length=20 2020-03-21 14:22:05,121: DEBUG - 76272 + local timeout=300 2020-03-21 14:22:05,122: DEBUG - 76274 + [[ -n '' ]] 2020-03-21 14:22:05,122: DEBUG - 76275 + '[' reload == reload ']' 2020-03-21 14:22:05,123: DEBUG - 76277 + action=reload-or-restart 2020-03-21 14:22:05,124: DEBUG - 76278 + systemctl reload-or-restart nginx 2020-03-21 14:22:05,325: DEBUG - 76480 + [[ -n '' ]] 2020-03-21 14:22:05,326: DEBUG - 76482 + ynh_script_progression '--message=Restoration completed for piwigo' --last 2020-03-21 14:22:05,328: DEBUG - 76483 + set +x 2020-03-21 14:22:05,429: DEBUG - 76588 + set +x 2020-03-21 14:22:05,430: DEBUG - 76589 + echo '! Helper used in legacy mode !' 2020-03-21 14:22:05,431: DEBUG - 76590 + set +x 2020-03-21 14:22:05,431: DEBUG - 76592 + echo '[####################] > Restoration completed for piwigo' 2020-03-21 14:22:05,432: DEBUG - 76594 + set -x 2020-03-21 14:22:05,432: DEBUG - 76595 + ynh_exit_properly 2020-03-21 14:22:05,434: DEBUG - 76596 + local exit_code=0 2020-03-21 14:22:05,434: DEBUG - 76597 + '[' 0 -eq 0 ']' 2020-03-21 14:22:05,435: DEBUG - 76598 + exit 0 2020-03-21 14:22:05,436: DEBUG - 76651 To view the log of the operation 'Restore 'piwigo' from a backup archive', use the command 'yunohost log display 20200321-142105-backup_restore_app-piwigo' 2020-03-21 14:22:07,750: DEBUG - The SSOwat configuration has been generated 2020-03-21 14:22:07,851: DEBUG - 78998 Restore complete 2020-03-21 14:22:07,852: DEBUG - 78998 action [10222.1] executed in 77.818s 2020-03-21 14:22:07,853: DEBUG - apps: 2020-03-21 14:22:07,854: DEBUG - piwigo: Success 2020-03-21 14:22:07,855: DEBUG - system: 2020-03-21 14:22:07,956: DEBUG - ++ ynh_die '--message=The app was restored to the way it was before the failed upgrade.' 2020-03-21 14:22:07,957: WARNING - The app was restored to the way it was before the failed upgrade. 2020-03-21 14:22:07,958: DEBUG - ++ local legacy_args=mc 2020-03-21 14:22:07,959: DEBUG - ++ args_array=([m]=message= [c]=ret_code=) 2020-03-21 14:22:07,959: DEBUG - ++ declare -Ar args_array 2020-03-21 14:22:07,960: DEBUG - ++ local message 2020-03-21 14:22:07,960: DEBUG - ++ local ret_code 2020-03-21 14:22:07,961: DEBUG - ++ ynh_handle_getopts_args '--message=The app was restored to the way it was before the failed upgrade.' 2020-03-21 14:22:07,962: DEBUG - ++ set +x 2020-03-21 14:22:07,962: DEBUG - ++ echo 'The app was restored to the way it was before the failed upgrade.' 2020-03-21 14:22:07,963: DEBUG - ++ exit 1 2020-03-21 14:22:08,105: ERROR - Unable to upgrade piwigo