ended_at: 2020-01-02 10:45:11.150160 env: YNH_APP_ID: nextcloud YNH_APP_INSTANCE_NAME: nextcloud YNH_APP_INSTANCE_NUMBER: '1' YNH_CWD: /var/cache/yunohost/from_file/nextcloud_ynh-ff1c6872af752f4a2c05689c8b7fe2606067b2b7/scripts YNH_INTERFACE: api YNH_STDINFO: /tmp/tmp_cwcIe/stdinfo YNH_STDRETURN: /tmp/tmpwqKZz7/stdreturn error: Unable to upgrade nextcloud operation: app_upgrade related_to: - - app - nextcloud started_at: 2020-01-02 10:18:56.216031 success: false ============ 2020-01-02 11:18:56,856: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/nextcloud_ynh-ff1c6872af752f4a2c05689c8b7fe2606067b2b7/scripts YNH_STDINFO=/tmp/tmp_cwcIe/stdinfo YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=api YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmpwqKZz7/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" nextcloud 7>&1'… 2020-01-02 11:18:56,858: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/nextcloud_ynh-ff1c6872af752f4a2c05689c8b7fe2606067b2b7/scripts YNH_STDINFO=/tmp/tmp_cwcIe/stdinfo YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=api YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmpwqKZz7/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" nextcloud 7>&1']' 2020-01-02 11:18:57,010: DEBUG - + source _common.sh 2020-01-02 11:18:57,019: DEBUG - ++ pkg_dependencies='php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at' 2020-01-02 11:18:57,027: DEBUG - + source /usr/share/yunohost/helpers 2020-01-02 11:18:57,029: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d 2020-01-02 11:18:57,033: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,035: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-01-02 11:18:57,037: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt 2020-01-02 11:18:57,140: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,142: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-01-02 11:18:57,144: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup 2020-01-02 11:18:57,146: DEBUG - +++ CAN_BIND=1 2020-01-02 11:18:57,149: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,152: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-01-02 11:18:57,155: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-01-02 11:18:57,157: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,161: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-01-02 11:18:57,163: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts 2020-01-02 11:18:57,165: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,167: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-01-02 11:18:57,170: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging 2020-01-02 11:18:57,172: DEBUG - +++ increment_progression=0 2020-01-02 11:18:57,175: DEBUG - +++ previous_weight=0 2020-01-02 11:18:57,177: DEBUG - +++ max_progression=-1 2020-01-02 11:18:57,179: DEBUG - +++ progress_scale=20 2020-01-02 11:18:57,181: DEBUG - +++ progress_string2='####################' 2020-01-02 11:18:57,184: DEBUG - +++ progress_string1=++++++++++++++++++++ 2020-01-02 11:18:57,187: DEBUG - +++ progress_string0=.................... 2020-01-02 11:18:57,189: DEBUG - ++++ date +%s 2020-01-02 11:18:57,191: DEBUG - +++ base_time=1577960337 2020-01-02 11:18:57,193: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,195: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-01-02 11:18:57,197: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate 2020-01-02 11:18:57,200: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,202: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-01-02 11:18:57,204: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql 2020-01-02 11:18:57,206: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-01-02 11:18:57,208: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,210: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-01-02 11:18:57,212: DEBUG - ++ . /usr/share/yunohost/helpers.d/network 2020-01-02 11:18:57,215: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,216: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-01-02 11:18:57,219: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx 2020-01-02 11:18:57,221: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,223: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-01-02 11:18:57,225: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs 2020-01-02 11:18:57,227: DEBUG - +++ n_install_dir=/opt/node_n 2020-01-02 11:18:57,229: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node 2020-01-02 11:18:57,232: DEBUG - +++ export N_PREFIX=/opt/node_n 2020-01-02 11:18:57,234: DEBUG - +++ N_PREFIX=/opt/node_n 2020-01-02 11:18:57,236: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,238: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-01-02 11:18:57,240: DEBUG - ++ . /usr/share/yunohost/helpers.d/php 2020-01-02 11:18:57,242: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,244: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-01-02 11:18:57,246: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql 2020-01-02 11:18:57,248: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-01-02 11:18:57,251: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,253: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-01-02 11:18:57,256: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting 2020-01-02 11:18:57,259: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,261: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-01-02 11:18:57,263: DEBUG - ++ . /usr/share/yunohost/helpers.d/string 2020-01-02 11:18:57,266: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,268: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-01-02 11:18:57,270: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd 2020-01-02 11:18:57,272: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,274: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-01-02 11:18:57,276: DEBUG - ++ . /usr/share/yunohost/helpers.d/user 2020-01-02 11:18:57,278: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:18:57,280: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-01-02 11:18:57,282: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils 2020-01-02 11:18:57,384: DEBUG - + ynh_script_progression '--message=Loading installation settings...' --weight=3 2020-01-02 11:18:57,386: DEBUG - + set +x 2020-01-02 11:18:57,388: DEBUG - + set +x 2020-01-02 11:18:57,596: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:18:57,599: DEBUG - + set +x 2020-01-02 11:18:57,602: DEBUG - + echo '[....................] > Loading installation settings...' 2020-01-02 11:18:57,604: DEBUG - + set -x 2020-01-02 11:18:57,607: DEBUG - + app=nextcloud 2020-01-02 11:18:57,613: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:18:57,616: DEBUG - ++ local legacy_args=ak 2020-01-02 11:18:57,619: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:18:57,621: DEBUG - ++ declare -Ar args_array 2020-01-02 11:18:57,623: DEBUG - ++ local app 2020-01-02 11:18:57,625: DEBUG - ++ local key 2020-01-02 11:18:57,628: INFO - [....................] > Loading installation settings... 2020-01-02 11:18:57,637: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:18:57,640: DEBUG - ++ set +x 2020-01-02 11:18:57,642: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:18:57,644: DEBUG - ++ ACTION=get 2020-01-02 11:18:57,646: DEBUG - ++ APP=nextcloud 2020-01-02 11:18:57,648: DEBUG - ++ KEY=********** 2020-01-02 11:18:57,651: DEBUG - ++ VALUE= 2020-01-02 11:18:57,653: DEBUG - ++ python - 2020-01-02 11:18:59,565: DEBUG - + **********=didiercl.me 2020-01-02 11:18:59,567: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:18:59,569: DEBUG - ++ local legacy_args=ak 2020-01-02 11:18:59,573: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:18:59,578: DEBUG - ++ declare -Ar args_array 2020-01-02 11:18:59,587: DEBUG - ++ local app 2020-01-02 11:18:59,591: DEBUG - ++ local key 2020-01-02 11:18:59,597: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:18:59,602: DEBUG - ++ set +x 2020-01-02 11:18:59,708: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:18:59,711: DEBUG - ++ ACTION=get 2020-01-02 11:18:59,713: DEBUG - ++ APP=nextcloud 2020-01-02 11:18:59,716: DEBUG - ++ KEY=********** 2020-01-02 11:18:59,719: DEBUG - ++ VALUE= 2020-01-02 11:18:59,727: DEBUG - ++ python - 2020-01-02 11:19:00,538: DEBUG - + **********_url=/nextcloud 2020-01-02 11:19:00,541: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:00,544: DEBUG - ++ local legacy_args=ak 2020-01-02 11:19:00,548: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:00,551: DEBUG - ++ declare -Ar args_array 2020-01-02 11:19:00,558: DEBUG - ++ local app 2020-01-02 11:19:00,561: DEBUG - ++ local key 2020-01-02 11:19:00,563: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:00,566: DEBUG - ++ set +x 2020-01-02 11:19:00,575: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:00,578: DEBUG - ++ ACTION=get 2020-01-02 11:19:00,580: DEBUG - ++ APP=nextcloud 2020-01-02 11:19:00,583: DEBUG - ++ KEY=********** 2020-01-02 11:19:00,585: DEBUG - ++ VALUE= 2020-01-02 11:19:00,588: DEBUG - ++ python - 2020-01-02 11:19:01,495: DEBUG - + **********=dclaus 2020-01-02 11:19:01,497: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=final_********** 2020-01-02 11:19:01,498: DEBUG - ++ local legacy_args=ak 2020-01-02 11:19:01,500: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:01,502: DEBUG - ++ declare -Ar args_array 2020-01-02 11:19:01,503: DEBUG - ++ local app 2020-01-02 11:19:01,505: DEBUG - ++ local key 2020-01-02 11:19:01,507: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=final_********** 2020-01-02 11:19:01,511: DEBUG - ++ set +x 2020-01-02 11:19:01,514: DEBUG - ++ ynh_app_setting get nextcloud final_********** 2020-01-02 11:19:01,517: DEBUG - ++ ACTION=get 2020-01-02 11:19:01,519: DEBUG - ++ APP=nextcloud 2020-01-02 11:19:01,521: DEBUG - ++ KEY=final_********** 2020-01-02 11:19:01,524: DEBUG - ++ VALUE= 2020-01-02 11:19:01,526: DEBUG - ++ python - 2020-01-02 11:19:03,036: DEBUG - + final_**********=/var/www/nextcloud 2020-01-02 11:19:03,038: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:03,041: DEBUG - ++ local legacy_args=ak 2020-01-02 11:19:03,044: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:03,069: DEBUG - ++ declare -Ar args_array 2020-01-02 11:19:03,071: DEBUG - ++ local app 2020-01-02 11:19:03,074: DEBUG - ++ local key 2020-01-02 11:19:03,092: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:03,094: DEBUG - ++ set +x 2020-01-02 11:19:03,113: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:03,116: DEBUG - ++ ACTION=get 2020-01-02 11:19:03,118: DEBUG - ++ APP=nextcloud 2020-01-02 11:19:03,132: DEBUG - ++ KEY=********** 2020-01-02 11:19:03,134: DEBUG - ++ VALUE= 2020-01-02 11:19:03,137: DEBUG - ++ python - 2020-01-02 11:19:04,446: DEBUG - + **********=nextcloud 2020-01-02 11:19:04,448: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:04,451: DEBUG - ++ local legacy_args=ak 2020-01-02 11:19:04,453: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:04,466: DEBUG - ++ declare -Ar args_array 2020-01-02 11:19:04,469: DEBUG - ++ local app 2020-01-02 11:19:04,477: DEBUG - ++ local key 2020-01-02 11:19:04,495: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:04,497: DEBUG - ++ set +x 2020-01-02 11:19:04,616: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:04,618: DEBUG - ++ ACTION=get 2020-01-02 11:19:04,620: DEBUG - ++ APP=nextcloud 2020-01-02 11:19:04,622: DEBUG - ++ KEY=********** 2020-01-02 11:19:04,631: DEBUG - ++ VALUE= 2020-01-02 11:19:04,639: DEBUG - ++ python - 2020-01-02 11:19:06,060: DEBUG - + **********=0 2020-01-02 11:19:06,063: DEBUG - ++ ynh_check_app_version_changed 2020-01-02 11:19:06,065: DEBUG - ++ local force_upgrade=0 2020-01-02 11:19:06,068: DEBUG - ++ local package_check=0 2020-01-02 11:19:06,070: DEBUG - ++ local return_value=UPGRADE_APP 2020-01-02 11:19:06,072: DEBUG - +++ ynh_read_manifest --manifest=/etc/yunohost/apps/nextcloud/manifest.json --manifest_key=********** 2020-01-02 11:19:06,074: DEBUG - +++ local legacy_args=mk 2020-01-02 11:19:06,076: DEBUG - +++ args_array=([m]=manifest= [k]=manifest_key=) 2020-01-02 11:19:06,078: DEBUG - +++ declare -Ar args_array 2020-01-02 11:19:06,082: DEBUG - +++ local manifest 2020-01-02 11:19:06,085: DEBUG - +++ local manifest_key 2020-01-02 11:19:06,087: DEBUG - +++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/nextcloud/manifest.json --manifest_key=********** 2020-01-02 11:19:06,090: DEBUG - +++ set +x 2020-01-02 11:19:06,092: DEBUG - +++ '[' '!' -e /etc/yunohost/apps/nextcloud/manifest.json ']' 2020-01-02 11:19:06,093: DEBUG - +++ jq .********** /etc/yunohost/apps/nextcloud/manifest.json --raw-output 2020-01-02 11:19:06,196: DEBUG - ++ local current_**********=15.0.12~ynh1 2020-01-02 11:19:06,199: DEBUG - +++ ynh_app_upstream_********** --manifest=/etc/yunohost/apps/nextcloud/manifest.json 2020-01-02 11:19:06,201: DEBUG - +++ local legacy_args=m 2020-01-02 11:19:06,208: DEBUG - +++ args_array=([m]=manifest=) 2020-01-02 11:19:06,211: DEBUG - +++ declare -Ar args_array 2020-01-02 11:19:06,213: DEBUG - +++ local manifest 2020-01-02 11:19:06,216: DEBUG - +++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/nextcloud/manifest.json 2020-01-02 11:19:06,222: DEBUG - +++ set +x 2020-01-02 11:19:06,225: DEBUG - +++ manifest=/etc/yunohost/apps/nextcloud/manifest.json 2020-01-02 11:19:06,227: DEBUG - ++++ ynh_read_manifest --manifest=/etc/yunohost/apps/nextcloud/manifest.json --manifest_key=********** 2020-01-02 11:19:06,230: DEBUG - ++++ local legacy_args=mk 2020-01-02 11:19:06,232: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=) 2020-01-02 11:19:06,234: DEBUG - ++++ declare -Ar args_array 2020-01-02 11:19:06,236: DEBUG - ++++ local manifest 2020-01-02 11:19:06,238: DEBUG - ++++ local manifest_key 2020-01-02 11:19:06,240: DEBUG - ++++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/nextcloud/manifest.json --manifest_key=********** 2020-01-02 11:19:06,242: DEBUG - ++++ set +x 2020-01-02 11:19:06,244: DEBUG - ++++ '[' '!' -e /etc/yunohost/apps/nextcloud/manifest.json ']' 2020-01-02 11:19:06,246: DEBUG - ++++ jq .********** /etc/yunohost/apps/nextcloud/manifest.json --raw-output 2020-01-02 11:19:06,348: DEBUG - +++ **********_key=********** 2020-01-02 11:19:06,350: DEBUG - +++ echo 15.0.12 2020-01-02 11:19:06,352: DEBUG - ++ local current_upstream_**********=15.0.12 2020-01-02 11:19:06,354: DEBUG - +++ ynh_read_manifest --manifest=../manifest.json --manifest_key=********** 2020-01-02 11:19:06,356: DEBUG - +++ local legacy_args=mk 2020-01-02 11:19:06,358: DEBUG - +++ args_array=([m]=manifest= [k]=manifest_key=) 2020-01-02 11:19:06,360: DEBUG - +++ declare -Ar args_array 2020-01-02 11:19:06,362: DEBUG - +++ local manifest 2020-01-02 11:19:06,364: DEBUG - +++ local manifest_key 2020-01-02 11:19:06,366: DEBUG - +++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=********** 2020-01-02 11:19:06,368: DEBUG - +++ set +x 2020-01-02 11:19:06,372: DEBUG - +++ '[' '!' -e ../manifest.json ']' 2020-01-02 11:19:06,377: DEBUG - +++ jq .********** ../manifest.json --raw-output 2020-01-02 11:19:06,380: DEBUG - ++ local update_**********=15.0.13~ynh1 2020-01-02 11:19:06,385: DEBUG - +++ ynh_app_upstream_********** 2020-01-02 11:19:06,389: DEBUG - +++ local legacy_args=m 2020-01-02 11:19:06,391: DEBUG - +++ args_array=([m]=manifest=) 2020-01-02 11:19:06,394: DEBUG - +++ declare -Ar args_array 2020-01-02 11:19:06,398: DEBUG - +++ local manifest 2020-01-02 11:19:06,401: DEBUG - +++ ynh_handle_getopts_args 2020-01-02 11:19:06,404: DEBUG - +++ set +x 2020-01-02 11:19:06,407: DEBUG - +++ manifest=../manifest.json 2020-01-02 11:19:06,410: DEBUG - ++++ ynh_read_manifest --manifest=../manifest.json --manifest_key=********** 2020-01-02 11:19:06,412: DEBUG - ++++ local legacy_args=mk 2020-01-02 11:19:06,415: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=) 2020-01-02 11:19:06,417: DEBUG - ++++ declare -Ar args_array 2020-01-02 11:19:06,420: DEBUG - ++++ local manifest 2020-01-02 11:19:06,423: DEBUG - ++++ local manifest_key 2020-01-02 11:19:06,426: DEBUG - ++++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=********** 2020-01-02 11:19:06,428: DEBUG - ++++ set +x 2020-01-02 11:19:06,531: DEBUG - ++++ '[' '!' -e ../manifest.json ']' 2020-01-02 11:19:06,533: DEBUG - ++++ jq .********** ../manifest.json --raw-output 2020-01-02 11:19:06,535: DEBUG - +++ **********_key=********** 2020-01-02 11:19:06,537: DEBUG - +++ echo 15.0.13 2020-01-02 11:19:06,540: DEBUG - ++ local update_upstream_**********=15.0.13 2020-01-02 11:19:06,542: DEBUG - ++ '[' ********** == ********** ']' 2020-01-02 11:19:06,545: DEBUG - ++ '[' 15.0.12 == 15.0.13 ']' 2020-01-02 11:19:06,548: DEBUG - ++ echo UPGRADE_APP 2020-01-02 11:19:06,551: DEBUG - + upgrade_type=UPGRADE_APP 2020-01-02 11:19:06,553: DEBUG - + ynh_script_progression '--message=Ensuring downward compatibility...' 2020-01-02 11:19:06,556: DEBUG - + set +x 2020-01-02 11:19:06,559: DEBUG - + set +x 2020-01-02 11:19:06,662: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:19:06,665: INFO - [+...................] > Ensuring downward compatibility... 2020-01-02 11:19:06,671: DEBUG - + set +x 2020-01-02 11:19:06,673: DEBUG - + echo '[+...................] > Ensuring downward compatibility...' 2020-01-02 11:19:06,676: DEBUG - + set -x 2020-01-02 11:19:06,678: DEBUG - + '[' -z nextcloud ']' 2020-01-02 11:19:06,681: DEBUG - + '[' -z /var/www/nextcloud ']' 2020-01-02 11:19:06,683: DEBUG - + ynh_app_setting_delete --app=nextcloud --key=********** 2020-01-02 11:19:06,686: DEBUG - + local legacy_args=ak 2020-01-02 11:19:06,688: DEBUG - + args_array=([a]=app= [k]=key=) 2020-01-02 11:19:06,690: DEBUG - + declare -Ar args_array 2020-01-02 11:19:06,692: DEBUG - + local app 2020-01-02 11:19:06,695: DEBUG - + local key 2020-01-02 11:19:06,697: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:06,699: DEBUG - + set +x 2020-01-02 11:19:06,701: DEBUG - + ynh_app_setting delete nextcloud ********** 2020-01-02 11:19:06,704: DEBUG - + ACTION=delete 2020-01-02 11:19:06,706: DEBUG - + APP=nextcloud 2020-01-02 11:19:06,709: DEBUG - + KEY=********** 2020-01-02 11:19:06,713: DEBUG - + VALUE= 2020-01-02 11:19:06,715: DEBUG - + python - 2020-01-02 11:19:07,622: DEBUG - + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...' --weight=30 2020-01-02 11:19:07,625: DEBUG - + set +x 2020-01-02 11:19:07,626: DEBUG - + set +x 2020-01-02 11:19:07,729: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:19:07,731: INFO - [#+++++++............] > Backing up the app before upgrading (may take a while)... 2020-01-02 11:19:07,736: DEBUG - + set +x 2020-01-02 11:19:07,737: DEBUG - + echo '[#+++++++............] > Backing up the app before upgrading (may take a while)...' 2020-01-02 11:19:07,743: DEBUG - + set -x 2020-01-02 11:19:07,748: DEBUG - ++ grep OC_VersionString /var/www/nextcloud/**********.php 2020-01-02 11:19:07,750: DEBUG - ++ cut '-d'\''' -f2 2020-01-02 11:19:07,753: DEBUG - + current_**********=15.0.12 2020-01-02 11:19:07,755: DEBUG - + current_major_**********=15 2020-01-02 11:19:07,758: DEBUG - + '[' 15 -gt 11 ']' 2020-01-02 11:19:07,761: DEBUG - + ynh_app_setting_set --app=nextcloud --key=********** --value=1 2020-01-02 11:19:07,765: DEBUG - + local legacy_args=akv 2020-01-02 11:19:07,767: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:19:07,770: DEBUG - + declare -Ar args_array 2020-01-02 11:19:07,773: DEBUG - + local app 2020-01-02 11:19:07,775: DEBUG - + local key 2020-01-02 11:19:07,778: DEBUG - + local value 2020-01-02 11:19:07,780: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=********** --value=1 2020-01-02 11:19:07,782: DEBUG - + set +x 2020-01-02 11:19:07,785: DEBUG - + ynh_app_setting set nextcloud ********** 1 2020-01-02 11:19:07,787: DEBUG - + ACTION=set 2020-01-02 11:19:07,789: DEBUG - + APP=nextcloud 2020-01-02 11:19:07,792: DEBUG - + KEY=********** 2020-01-02 11:19:07,794: DEBUG - + VALUE=1 2020-01-02 11:19:07,797: DEBUG - + python - 2020-01-02 11:19:08,704: DEBUG - + ynh_backup_before_upgrade 2020-01-02 11:19:08,708: DEBUG - + '[' '!' -e /etc/yunohost/apps/nextcloud/scripts/backup ']' 2020-01-02 11:19:08,711: DEBUG - + backup_number=1 2020-01-02 11:19:08,713: DEBUG - + local old_backup_number=2 2020-01-02 11:19:08,723: DEBUG - + local app_bck=nextcloud 2020-01-02 11:19:08,725: DEBUG - + NO_BACKUP_UPGRADE=0 2020-01-02 11:19:08,728: DEBUG - + '[' 0 -eq 0 ']' 2020-01-02 11:19:08,741: DEBUG - + sudo yunohost backup list 2020-01-02 11:19:08,743: DEBUG - + grep -q nextcloud-pre-upgrade1 2020-01-02 11:19:11,861: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud --name nextcloud-pre-upgrade1 --debug 2020-01-02 11:19:13,170: DEBUG - 946 loading actions map namespace 'yunohost' 2020-01-02 11:19:13,373: DEBUG - 1103 extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern'] 2020-01-02 11:19:13,376: DEBUG - 1104 initializing base actions map parser for cli 2020-01-02 11:19:13,378: DEBUG - 1110 registering new callback action 'yunohost.utils.packages.ynh_packages_**********' to ['-v', '--**********'] 2020-01-02 11:19:13,682: DEBUG - 1480 unable to load locale 'en' from '/usr/share/moulinette/locale' 2020-01-02 11:19:13,685: DEBUG - 1482 unable to load locale 'en' from '/usr/lib/moulinette/yunohost/locales' 2020-01-02 11:19:14,190: DEBUG - 1985 loading python module yunohost.backup took 0.485s 2020-01-02 11:19:14,192: DEBUG - 1993 processing action [5457.1]: yunohost.backup.create with args={'description': None, 'apps': ['nextcloud'], 'system': None, 'output_directory': None, 'methods': None, 'no_compress': False, 'name': 'nextcloud-pre-upgrade1'} 2020-01-02 11:19:14,196: DEBUG - 2009 custom hook folder not found for action 'backup' in /etc/yunohost/hooks.d/ 2020-01-02 11:19:14,298: DEBUG - 2033 Collecting files to be backuped for nextcloud… 2020-01-02 11:19:25,550: DEBUG - 13278 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpcIvIiK/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_dxD5uS YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1 YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=cli YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmp2wcaFa/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_Is1OPv" /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup nextcloud 7>&1'… 2020-01-02 11:19:25,556: DEBUG - 13281 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpcIvIiK/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_dxD5uS YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1 YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=cli YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmp2wcaFa/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_Is1OPv" /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup nextcloud 7>&1']' 2020-01-02 11:19:25,659: DEBUG - 13462 + source ../settings/scripts/_common.sh 2020-01-02 11:19:25,661: DEBUG - 13466 ++ pkg_dependencies='php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at' 2020-01-02 11:19:25,664: DEBUG - 13468 + source /usr/share/yunohost/helpers 2020-01-02 11:19:25,671: DEBUG - 13482 +++ run-parts --list /usr/share/yunohost/helpers.d 2020-01-02 11:19:25,774: DEBUG - 13484 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,776: DEBUG - 13490 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-01-02 11:19:25,778: DEBUG - 13492 ++ . /usr/share/yunohost/helpers.d/apt 2020-01-02 11:19:25,781: DEBUG - 13494 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,783: DEBUG - 13495 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-01-02 11:19:25,785: DEBUG - 13497 ++ . /usr/share/yunohost/helpers.d/backup 2020-01-02 11:19:25,787: DEBUG - 13498 +++ CAN_BIND=1 2020-01-02 11:19:25,789: DEBUG - 13500 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,791: DEBUG - 13502 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-01-02 11:19:25,793: DEBUG - 13504 ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-01-02 11:19:25,795: DEBUG - 13506 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,797: DEBUG - 13507 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-01-02 11:19:25,800: DEBUG - 13509 ++ . /usr/share/yunohost/helpers.d/getopts 2020-01-02 11:19:25,802: DEBUG - 13511 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,805: DEBUG - 13512 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-01-02 11:19:25,807: DEBUG - 13514 ++ . /usr/share/yunohost/helpers.d/logging 2020-01-02 11:19:25,809: DEBUG - 13516 +++ increment_progression=0 2020-01-02 11:19:25,811: DEBUG - 13517 +++ previous_weight=0 2020-01-02 11:19:25,813: DEBUG - 13519 +++ max_progression=-1 2020-01-02 11:19:25,815: DEBUG - 13521 +++ progress_scale=20 2020-01-02 11:19:25,817: DEBUG - 13522 +++ progress_string2='####################' 2020-01-02 11:19:25,819: DEBUG - 13524 +++ progress_string1=++++++++++++++++++++ 2020-01-02 11:19:25,821: DEBUG - 13525 +++ progress_string0=.................... 2020-01-02 11:19:25,823: DEBUG - 13527 ++++ date +%s 2020-01-02 11:19:25,826: DEBUG - 13528 +++ base_time=1577960365 2020-01-02 11:19:25,828: DEBUG - 13530 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,830: DEBUG - 13532 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-01-02 11:19:25,832: DEBUG - 13534 ++ . /usr/share/yunohost/helpers.d/logrotate 2020-01-02 11:19:25,834: DEBUG - 13535 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,836: DEBUG - 13537 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-01-02 11:19:25,838: DEBUG - 13538 ++ . /usr/share/yunohost/helpers.d/mysql 2020-01-02 11:19:25,841: DEBUG - 13540 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-01-02 11:19:25,843: DEBUG - 13542 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,845: DEBUG - 13544 ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-01-02 11:19:25,848: DEBUG - 13546 ++ . /usr/share/yunohost/helpers.d/network 2020-01-02 11:19:25,851: DEBUG - 13547 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,859: DEBUG - 13549 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-01-02 11:19:25,866: DEBUG - 13551 ++ . /usr/share/yunohost/helpers.d/nginx 2020-01-02 11:19:25,874: DEBUG - 13552 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,877: DEBUG - 13554 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-01-02 11:19:25,882: DEBUG - 13556 ++ . /usr/share/yunohost/helpers.d/nodejs 2020-01-02 11:19:25,887: DEBUG - 13557 +++ n_install_dir=/opt/node_n 2020-01-02 11:19:25,896: DEBUG - 13559 +++ node_**********_**********=/opt/node_n/n/**********s/node 2020-01-02 11:19:25,899: DEBUG - 13560 +++ export N_PREFIX=/opt/node_n 2020-01-02 11:19:25,902: DEBUG - 13562 +++ N_PREFIX=/opt/node_n 2020-01-02 11:19:25,905: DEBUG - 13564 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,910: DEBUG - 13565 ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-01-02 11:19:25,912: DEBUG - 13567 ++ . /usr/share/yunohost/helpers.d/php 2020-01-02 11:19:25,915: DEBUG - 13669 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,917: DEBUG - 13671 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-01-02 11:19:25,920: DEBUG - 13673 ++ . /usr/share/yunohost/helpers.d/postgresql 2020-01-02 11:19:25,923: DEBUG - 13674 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-01-02 11:19:25,926: DEBUG - 13676 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,928: DEBUG - 13678 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-01-02 11:19:25,931: DEBUG - 13679 ++ . /usr/share/yunohost/helpers.d/setting 2020-01-02 11:19:25,938: DEBUG - 13681 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,941: DEBUG - 13683 ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-01-02 11:19:25,943: DEBUG - 13685 ++ . /usr/share/yunohost/helpers.d/string 2020-01-02 11:19:25,947: DEBUG - 13687 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,950: DEBUG - 13689 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-01-02 11:19:25,952: DEBUG - 13693 ++ . /usr/share/yunohost/helpers.d/systemd 2020-01-02 11:19:25,955: DEBUG - 13695 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,957: DEBUG - 13697 ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-01-02 11:19:25,960: DEBUG - 13699 ++ . /usr/share/yunohost/helpers.d/user 2020-01-02 11:19:25,962: DEBUG - 13701 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:19:25,965: DEBUG - 13702 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-01-02 11:19:25,967: DEBUG - 13704 ++ . /usr/share/yunohost/helpers.d/utils 2020-01-02 11:19:25,970: DEBUG - 13706 + ynh_abort_if_errors 2020-01-02 11:19:25,973: DEBUG - 13707 + set -eu 2020-01-02 11:19:25,975: DEBUG - 13709 + trap ynh_exit_properly EXIT 2020-01-02 11:19:25,978: DEBUG - 13712 + ynh_script_progression '--message=Loading installation settings...' 2020-01-02 11:19:25,981: DEBUG - 13713 + set +x 2020-01-02 11:19:26,084: DEBUG - 13815 + set +x 2020-01-02 11:19:26,187: DEBUG - 13918 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:26,189: DEBUG - 13920 + set +x 2020-01-02 11:19:26,191: DEBUG - 13922 + echo '[++..................] > Loading installation settings...' 2020-01-02 11:19:26,193: DEBUG - 13924 + set -x 2020-01-02 11:19:26,198: DEBUG - 13926 + app=nextcloud 2020-01-02 11:19:26,201: DEBUG - 13928 ++ ynh_app_setting_get --app=nextcloud --key=final_********** 2020-01-02 11:19:26,202: DEBUG - 13931 ++ local legacy_args=ak 2020-01-02 11:19:26,204: DEBUG - 13933 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:26,206: DEBUG - 13936 ++ declare -Ar args_array 2020-01-02 11:19:26,208: DEBUG - 13939 ++ local app 2020-01-02 11:19:26,211: DEBUG - 13941 ++ local key 2020-01-02 11:19:26,213: DEBUG - 13943 ++ ynh_handle_getopts_args --app=nextcloud --key=final_********** 2020-01-02 11:19:26,215: DEBUG - 13947 ++ set +x 2020-01-02 11:19:26,318: DEBUG - 14050 ++ ynh_app_setting get nextcloud final_********** 2020-01-02 11:19:26,321: DEBUG - 14052 [++..................] > Loading installation settings... 2020-01-02 11:19:26,324: DEBUG - 14053 ++ ACTION=get 2020-01-02 11:19:26,327: DEBUG - 14054 ++ APP=nextcloud 2020-01-02 11:19:26,330: DEBUG - 14057 ++ KEY=final_********** 2020-01-02 11:19:26,333: DEBUG - 14060 ++ VALUE= 2020-01-02 11:19:26,336: DEBUG - 14062 ++ python - 2020-01-02 11:19:27,245: DEBUG - 14968 + final_**********=/var/www/nextcloud 2020-01-02 11:19:27,247: DEBUG - 14970 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:27,249: DEBUG - 14972 ++ local legacy_args=ak 2020-01-02 11:19:27,251: DEBUG - 14974 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:27,253: DEBUG - 14976 ++ declare -Ar args_array 2020-01-02 11:19:27,256: DEBUG - 14979 ++ local app 2020-01-02 11:19:27,258: DEBUG - 14981 ++ local key 2020-01-02 11:19:27,260: DEBUG - 14983 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:27,263: DEBUG - 14985 ++ set +x 2020-01-02 11:19:27,265: DEBUG - 14987 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:27,267: DEBUG - 14989 ++ ACTION=get 2020-01-02 11:19:27,269: DEBUG - 14991 ++ APP=nextcloud 2020-01-02 11:19:27,272: DEBUG - 14993 ++ KEY=********** 2020-01-02 11:19:27,274: DEBUG - 14994 ++ VALUE= 2020-01-02 11:19:27,276: DEBUG - 14996 ++ python - 2020-01-02 11:19:28,184: DEBUG - 15902 + **********=didiercl.me 2020-01-02 11:19:28,186: DEBUG - 15904 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:28,189: DEBUG - 15906 ++ local legacy_args=ak 2020-01-02 11:19:28,191: DEBUG - 15907 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:28,193: DEBUG - 15909 ++ declare -Ar args_array 2020-01-02 11:19:28,196: DEBUG - 15911 ++ local app 2020-01-02 11:19:28,198: DEBUG - 15913 ++ local key 2020-01-02 11:19:28,201: DEBUG - 15916 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:28,204: DEBUG - 15917 ++ set +x 2020-01-02 11:19:28,207: DEBUG - 15919 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:28,210: DEBUG - 15921 ++ ACTION=get 2020-01-02 11:19:28,213: DEBUG - 15923 ++ APP=nextcloud 2020-01-02 11:19:28,216: DEBUG - 15924 ++ KEY=********** 2020-01-02 11:19:28,218: DEBUG - 15926 ++ VALUE= 2020-01-02 11:19:28,220: DEBUG - 15928 ++ python - 2020-01-02 11:19:29,026: DEBUG - 16834 + **********=nextcloud 2020-01-02 11:19:29,028: DEBUG - 16837 + ynh_script_progression '--message=Backing up the main app directory...' 2020-01-02 11:19:29,031: DEBUG - 16840 + set +x 2020-01-02 11:19:29,033: DEBUG - 16842 + set +x 2020-01-02 11:19:29,136: DEBUG - 16944 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:29,138: DEBUG - 16947 + set +x 2020-01-02 11:19:29,146: DEBUG - 16949 + echo '[##++................] > Backing up the main app directory...' 2020-01-02 11:19:29,148: DEBUG - 16953 + set -x 2020-01-02 11:19:29,152: DEBUG - 16954 + ynh_backup --src_**********=/var/www/nextcloud 2020-01-02 11:19:29,155: DEBUG - 16956 + local legacy_args=sdbm 2020-01-02 11:19:29,158: DEBUG - 16959 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:29,163: DEBUG - 16960 + declare -Ar args_array 2020-01-02 11:19:29,166: DEBUG - 16962 + local src_********** 2020-01-02 11:19:29,168: DEBUG - 16964 + local dest_********** 2020-01-02 11:19:29,178: DEBUG - 16970 [##++................] > Backing up the main app directory... 2020-01-02 11:19:29,182: DEBUG - 16972 + local is_big 2020-01-02 11:19:29,184: DEBUG - 16973 + local not_mandatory 2020-01-02 11:19:29,187: DEBUG - 16975 + ynh_handle_getopts_args --src_**********=/var/www/nextcloud 2020-01-02 11:19:29,190: DEBUG - 16977 + set +x 2020-01-02 11:19:29,195: DEBUG - 16978 + local dest_**********= 2020-01-02 11:19:29,198: DEBUG - 16987 + local is_big=0 2020-01-02 11:19:29,201: DEBUG - 16989 + local not_mandatory=0 2020-01-02 11:19:29,205: DEBUG - 16991 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:29,208: DEBUG - 16992 + test -n nextcloud 2020-01-02 11:19:29,212: DEBUG - 16994 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:29,214: DEBUG - 16996 ++ local legacy_args=ak 2020-01-02 11:19:29,217: DEBUG - 16998 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:29,220: DEBUG - 17004 ++ declare -Ar args_array 2020-01-02 11:19:29,222: DEBUG - 17006 ++ local app 2020-01-02 11:19:29,224: DEBUG - 17007 ++ local key 2020-01-02 11:19:29,227: DEBUG - 17009 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:29,230: DEBUG - 17011 ++ set +x 2020-01-02 11:19:29,316: DEBUG - 17113 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:29,319: DEBUG - 17130 ++ ACTION=get 2020-01-02 11:19:29,322: DEBUG - 17132 ++ APP=nextcloud 2020-01-02 11:19:29,325: DEBUG - 17133 ++ KEY=********** 2020-01-02 11:19:29,327: DEBUG - 17135 ++ VALUE= 2020-01-02 11:19:29,330: DEBUG - 17136 ++ python - 2020-01-02 11:19:30,237: DEBUG - 18045 + **********= 2020-01-02 11:19:30,240: DEBUG - 18047 + '[' 0 -eq 1 ']' 2020-01-02 11:19:30,243: DEBUG - 18050 + [[ -e /var/www/nextcloud ]] 2020-01-02 11:19:30,248: DEBUG - 18052 ++ real********** /var/www/nextcloud 2020-01-02 11:19:30,256: DEBUG - 18054 + src_**********=/var/www/nextcloud 2020-01-02 11:19:30,261: DEBUG - 18055 + [[ -z '' ]] 2020-01-02 11:19:30,264: DEBUG - 18057 + dest_**********=var/www/nextcloud 2020-01-02 11:19:30,267: DEBUG - 18058 + [[ ! -e var/www/nextcloud ]] 2020-01-02 11:19:30,272: DEBUG - 18060 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:30,275: DEBUG - 18062 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:30,277: DEBUG - 18064 + dest_**********=/apps/nextcloud/backup/var/www/nextcloud 2020-01-02 11:19:30,279: DEBUG - 18066 + dest_**********=apps/nextcloud/backup/var/www/nextcloud 2020-01-02 11:19:30,282: DEBUG - 18068 ++ echo /var/www/nextcloud 2020-01-02 11:19:30,284: DEBUG - 18070 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:30,287: DEBUG - 18072 + local src=/var/www/nextcloud 2020-01-02 11:19:30,291: DEBUG - 18075 ++ echo apps/nextcloud/backup/var/www/nextcloud 2020-01-02 11:19:30,294: DEBUG - 18079 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:30,298: DEBUG - 18081 + local dest=apps/nextcloud/backup/var/www/nextcloud 2020-01-02 11:19:30,301: DEBUG - 18082 + echo '"/var/www/nextcloud","apps/nextcloud/backup/var/www/nextcloud"' 2020-01-02 11:19:30,304: DEBUG - 18084 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www/nextcloud 2020-01-02 11:19:30,307: DEBUG - 18086 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www 2020-01-02 11:19:30,410: DEBUG - 18188 + ynh_script_progression '--message=Backing up nginx web server configuration...' 2020-01-02 11:19:30,413: DEBUG - 18190 + set +x 2020-01-02 11:19:30,416: DEBUG - 18195 + set +x 2020-01-02 11:19:30,419: DEBUG - 18197 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:30,421: DEBUG - 18199 + set +x 2020-01-02 11:19:30,526: DEBUG - 18301 + echo '[####++..............] > Backing up nginx web server configuration...' 2020-01-02 11:19:30,529: DEBUG - 18303 [####++..............] > Backing up nginx web server configuration... 2020-01-02 11:19:30,537: DEBUG - 18304 + set -x 2020-01-02 11:19:30,539: DEBUG - 18306 + ynh_backup --src_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:30,546: DEBUG - 18308 + local legacy_args=sdbm 2020-01-02 11:19:30,549: DEBUG - 18310 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:30,552: DEBUG - 18312 + declare -Ar args_array 2020-01-02 11:19:30,554: DEBUG - 18314 + local src_********** 2020-01-02 11:19:30,557: DEBUG - 18316 + local dest_********** 2020-01-02 11:19:30,560: DEBUG - 18318 + local is_big 2020-01-02 11:19:30,562: DEBUG - 18319 + local not_mandatory 2020-01-02 11:19:30,565: DEBUG - 18321 + ynh_handle_getopts_args --src_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:30,567: DEBUG - 18324 + set +x 2020-01-02 11:19:30,570: DEBUG - 18327 + local dest_**********= 2020-01-02 11:19:30,572: DEBUG - 18329 + local is_big=0 2020-01-02 11:19:30,575: DEBUG - 18332 + local not_mandatory=0 2020-01-02 11:19:30,577: DEBUG - 18334 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:30,580: DEBUG - 18336 + test -n nextcloud 2020-01-02 11:19:30,582: DEBUG - 18338 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:30,585: DEBUG - 18340 ++ local legacy_args=ak 2020-01-02 11:19:30,587: DEBUG - 18342 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:30,589: DEBUG - 18344 ++ declare -Ar args_array 2020-01-02 11:19:30,592: DEBUG - 18345 ++ local app 2020-01-02 11:19:30,595: DEBUG - 18347 ++ local key 2020-01-02 11:19:30,597: DEBUG - 18349 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:30,599: DEBUG - 18350 ++ set +x 2020-01-02 11:19:30,601: DEBUG - 18352 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:30,604: DEBUG - 18354 ++ ACTION=get 2020-01-02 11:19:30,606: DEBUG - 18355 ++ APP=nextcloud 2020-01-02 11:19:30,608: DEBUG - 18357 ++ KEY=********** 2020-01-02 11:19:30,611: DEBUG - 18359 ++ VALUE= 2020-01-02 11:19:30,613: DEBUG - 18361 ++ python - 2020-01-02 11:19:31,522: DEBUG - 19267 + **********= 2020-01-02 11:19:31,525: DEBUG - 19269 + '[' 0 -eq 1 ']' 2020-01-02 11:19:31,527: DEBUG - 19272 + [[ -e /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf ]] 2020-01-02 11:19:31,530: DEBUG - 19275 ++ real********** /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,532: DEBUG - 19281 + src_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,547: DEBUG - 19284 + [[ -z '' ]] 2020-01-02 11:19:31,551: DEBUG - 19288 + dest_**********=etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,554: DEBUG - 19290 + [[ ! -e etc/nginx/conf.d/didiercl.me.d/nextcloud.conf ]] 2020-01-02 11:19:31,556: DEBUG - 19297 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:31,559: DEBUG - 19300 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:31,563: DEBUG - 19303 + dest_**********=/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,567: DEBUG - 19306 + dest_**********=apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,569: DEBUG - 19309 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:31,572: DEBUG - 19312 ++ echo /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,575: DEBUG - 19316 + local src=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,578: DEBUG - 19321 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:31,581: DEBUG - 19328 ++ echo apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,583: DEBUG - 19332 + local dest=apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,586: DEBUG - 19334 + echo '"/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf","apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf"' 2020-01-02 11:19:31,588: DEBUG - 19351 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:19:31,591: DEBUG - 19355 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d 2020-01-02 11:19:31,594: DEBUG - 19358 + ynh_script_progression '--message=Backing up php-fpm configuration...' 2020-01-02 11:19:31,596: DEBUG - 19361 + set +x 2020-01-02 11:19:31,701: DEBUG - 19467 + set +x 2020-01-02 11:19:31,702: DEBUG - 19468 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:31,704: DEBUG - 19470 + set +x 2020-01-02 11:19:31,706: DEBUG - 19471 + echo '[######++............] > Backing up php-fpm configuration...' 2020-01-02 11:19:31,710: DEBUG - 19472 + set -x 2020-01-02 11:19:31,713: DEBUG - 19473 + ynh_backup --src_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:31,715: DEBUG - 19475 + local legacy_args=sdbm 2020-01-02 11:19:31,719: DEBUG - 19478 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:31,725: DEBUG - 19481 + declare -Ar args_array 2020-01-02 11:19:31,728: DEBUG - 19484 + local src_********** 2020-01-02 11:19:31,731: DEBUG - 19486 + local dest_********** 2020-01-02 11:19:31,734: DEBUG - 19490 + local is_big 2020-01-02 11:19:31,737: DEBUG - 19493 + local not_mandatory 2020-01-02 11:19:31,739: DEBUG - 19496 + ynh_handle_getopts_args --src_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:31,742: DEBUG - 19499 + set +x 2020-01-02 11:19:31,845: DEBUG - 19602 + local dest_**********= 2020-01-02 11:19:31,847: DEBUG - 19604 [######++............] > Backing up php-fpm configuration... 2020-01-02 11:19:31,850: DEBUG - 19606 + local is_big=0 2020-01-02 11:19:31,852: DEBUG - 19607 + local not_mandatory=0 2020-01-02 11:19:31,854: DEBUG - 19609 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:31,857: DEBUG - 19614 + test -n nextcloud 2020-01-02 11:19:31,859: DEBUG - 19617 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:31,862: DEBUG - 19620 ++ local legacy_args=ak 2020-01-02 11:19:31,864: DEBUG - 19623 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:31,866: DEBUG - 19626 ++ declare -Ar args_array 2020-01-02 11:19:31,869: DEBUG - 19628 ++ local app 2020-01-02 11:19:31,872: DEBUG - 19630 ++ local key 2020-01-02 11:19:31,875: DEBUG - 19632 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:31,877: DEBUG - 19635 ++ set +x 2020-01-02 11:19:31,881: DEBUG - 19638 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:31,884: DEBUG - 19640 ++ ACTION=get 2020-01-02 11:19:31,886: DEBUG - 19643 ++ APP=nextcloud 2020-01-02 11:19:31,888: DEBUG - 19645 ++ KEY=********** 2020-01-02 11:19:31,890: DEBUG - 19648 ++ VALUE= 2020-01-02 11:19:31,892: DEBUG - 19650 ++ python - 2020-01-02 11:19:32,800: DEBUG - 20557 + **********= 2020-01-02 11:19:32,802: DEBUG - 20558 + '[' 0 -eq 1 ']' 2020-01-02 11:19:32,804: DEBUG - 20559 + [[ -e /etc/php/7.0/fpm/pool.d/nextcloud.conf ]] 2020-01-02 11:19:32,807: DEBUG - 20561 ++ real********** /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,810: DEBUG - 20562 + src_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,813: DEBUG - 20563 + [[ -z '' ]] 2020-01-02 11:19:32,815: DEBUG - 20564 + dest_**********=etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,818: DEBUG - 20568 + [[ ! -e etc/php/7.0/fpm/pool.d/nextcloud.conf ]] 2020-01-02 11:19:32,821: DEBUG - 20571 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:32,823: DEBUG - 20573 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:32,827: DEBUG - 20576 + dest_**********=/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,831: DEBUG - 20578 + dest_**********=apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,834: DEBUG - 20581 ++ echo /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,837: DEBUG - 20584 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:32,840: DEBUG - 20586 + local src=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,842: DEBUG - 20590 ++ echo apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,845: DEBUG - 20593 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:32,848: DEBUG - 20595 + local dest=apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,850: DEBUG - 20598 + echo '"/etc/php/7.0/fpm/pool.d/nextcloud.conf","apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf"' 2020-01-02 11:19:32,853: DEBUG - 20601 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:19:32,855: DEBUG - 20604 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d 2020-01-02 11:19:32,859: DEBUG - 20607 + ynh_script_progression '--message=Backing up the MySQL database...' --weight=2 2020-01-02 11:19:32,862: DEBUG - 20610 + set +x 2020-01-02 11:19:32,965: DEBUG - 20713 + set +x 2020-01-02 11:19:32,967: DEBUG - 20716 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:32,969: DEBUG - 20718 + set +x 2020-01-02 11:19:32,971: DEBUG - 20721 + echo '[########++++........] > Backing up the MySQL database...' 2020-01-02 11:19:32,973: DEBUG - 20724 + set -x 2020-01-02 11:19:32,975: DEBUG - 20727 + ynh_mysql_dump_db --database=nextcloud 2020-01-02 11:19:32,978: DEBUG - 20729 + local legacy_args=d 2020-01-02 11:19:32,981: DEBUG - 20731 + args_array=([d]=database=) 2020-01-02 11:19:32,983: DEBUG - 20734 + declare -Ar args_array 2020-01-02 11:19:32,986: DEBUG - 20736 + local database 2020-01-02 11:19:32,988: DEBUG - 20738 + ynh_handle_getopts_args --database=nextcloud 2020-01-02 11:19:32,990: DEBUG - 20741 + set +x 2020-01-02 11:19:32,993: DEBUG - 20743 ++ sudo cat /etc/yunohost/mysql 2020-01-02 11:19:33,296: DEBUG - 21048 + mysqldump -u root -p********** --single-transaction --skip-dump-date nextcloud 2020-01-02 11:19:33,298: DEBUG - 21049 [########++++........] > Backing up the MySQL database... 2020-01-02 11:19:35,410: DEBUG - 23160 + ynh_script_progression '--message=Backing up logrotate configuration...' 2020-01-02 11:19:35,412: DEBUG - 23162 + set +x 2020-01-02 11:19:35,414: DEBUG - 23165 + set +x 2020-01-02 11:19:35,416: DEBUG - 23168 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:35,422: DEBUG - 23171 + set +x 2020-01-02 11:19:35,528: DEBUG - 23274 + echo '[############++......] > Backing up logrotate configuration...' 2020-01-02 11:19:35,530: DEBUG - 23276 [############++......] > Backing up logrotate configuration... 2020-01-02 11:19:35,533: DEBUG - 23277 + set -x 2020-01-02 11:19:35,535: DEBUG - 23278 + ynh_backup /etc/logrotate.d/nextcloud 2020-01-02 11:19:35,538: DEBUG - 23279 + local legacy_args=sdbm 2020-01-02 11:19:35,549: DEBUG - 23283 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:35,553: DEBUG - 23286 + declare -Ar args_array 2020-01-02 11:19:35,556: DEBUG - 23291 + local src_********** 2020-01-02 11:19:35,558: DEBUG - 23293 + local dest_********** 2020-01-02 11:19:35,568: DEBUG - 23296 + local is_big 2020-01-02 11:19:35,571: DEBUG - 23298 + local not_mandatory 2020-01-02 11:19:35,573: DEBUG - 23301 + ynh_handle_getopts_args /etc/logrotate.d/nextcloud 2020-01-02 11:19:35,576: DEBUG - 23303 + set +x 2020-01-02 11:19:35,578: DEBUG - 23306 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:35,580: DEBUG - 23308 + set +x 2020-01-02 11:19:35,583: DEBUG - 23313 + local dest_**********= 2020-01-02 11:19:35,585: DEBUG - 23316 + local is_big=0 2020-01-02 11:19:35,587: DEBUG - 23319 + local not_mandatory=0 2020-01-02 11:19:35,589: DEBUG - 23321 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:35,592: DEBUG - 23323 + test -n nextcloud 2020-01-02 11:19:35,594: DEBUG - 23327 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:35,597: DEBUG - 23329 ++ local legacy_args=ak 2020-01-02 11:19:35,599: DEBUG - 23332 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:35,602: DEBUG - 23335 ++ declare -Ar args_array 2020-01-02 11:19:35,604: DEBUG - 23338 ++ local app 2020-01-02 11:19:35,607: DEBUG - 23340 ++ local key 2020-01-02 11:19:35,610: DEBUG - 23342 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:35,612: DEBUG - 23357 ++ set +x 2020-01-02 11:19:35,614: DEBUG - 23360 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:35,617: DEBUG - 23362 ++ ACTION=get 2020-01-02 11:19:35,619: DEBUG - 23366 ++ APP=nextcloud 2020-01-02 11:19:35,622: DEBUG - 23376 ++ KEY=********** 2020-01-02 11:19:35,624: DEBUG - 23378 ++ VALUE= 2020-01-02 11:19:35,627: DEBUG - 23380 ++ python - 2020-01-02 11:19:36,535: DEBUG - 24287 + **********= 2020-01-02 11:19:36,538: DEBUG - 24289 + '[' 0 -eq 1 ']' 2020-01-02 11:19:36,540: DEBUG - 24292 + [[ -e /etc/logrotate.d/nextcloud ]] 2020-01-02 11:19:36,545: DEBUG - 24295 ++ real********** /etc/logrotate.d/nextcloud 2020-01-02 11:19:36,548: DEBUG - 24298 + src_**********=/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,561: DEBUG - 24301 + [[ -z '' ]] 2020-01-02 11:19:36,563: DEBUG - 24303 + dest_**********=etc/logrotate.d/nextcloud 2020-01-02 11:19:36,576: DEBUG - 24306 + [[ ! -e etc/logrotate.d/nextcloud ]] 2020-01-02 11:19:36,579: DEBUG - 24308 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:36,585: DEBUG - 24311 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:36,588: DEBUG - 24313 + dest_**********=/apps/nextcloud/backup/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,598: DEBUG - 24316 + dest_**********=apps/nextcloud/backup/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,604: DEBUG - 24319 ++ echo /etc/logrotate.d/nextcloud 2020-01-02 11:19:36,612: DEBUG - 24322 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:36,623: DEBUG - 24324 + local src=/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,628: DEBUG - 24327 ++ echo apps/nextcloud/backup/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,636: DEBUG - 24330 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:36,639: DEBUG - 24333 + local dest=apps/nextcloud/backup/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,647: DEBUG - 24336 + echo '"/etc/logrotate.d/nextcloud","apps/nextcloud/backup/etc/logrotate.d/nextcloud"' 2020-01-02 11:19:36,656: DEBUG - 24339 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d/nextcloud 2020-01-02 11:19:36,663: DEBUG - 24342 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d 2020-01-02 11:19:36,669: DEBUG - 24345 + ynh_script_progression '--message=Backing up fail2ban configuration...' 2020-01-02 11:19:36,671: DEBUG - 24348 + set +x 2020-01-02 11:19:36,674: DEBUG - 24357 + set +x 2020-01-02 11:19:36,688: DEBUG - 24367 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:36,690: DEBUG - 24373 + set +x 2020-01-02 11:19:36,701: DEBUG - 24382 + echo '[##############++....] > Backing up fail2ban configuration...' 2020-01-02 11:19:36,704: DEBUG - 24385 + set -x 2020-01-02 11:19:36,710: DEBUG - 24388 + ynh_backup --src_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:36,712: DEBUG - 24390 + local legacy_args=sdbm 2020-01-02 11:19:36,722: DEBUG - 24396 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:36,726: DEBUG - 24406 + declare -Ar args_array 2020-01-02 11:19:36,729: DEBUG - 24409 + local src_********** 2020-01-02 11:19:36,732: DEBUG - 24412 + local dest_********** 2020-01-02 11:19:36,734: DEBUG - 24417 + local is_big 2020-01-02 11:19:36,737: DEBUG - 24421 + local not_mandatory 2020-01-02 11:19:36,739: DEBUG - 24426 + ynh_handle_getopts_args --src_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:36,741: DEBUG - 24434 [##############++....] > Backing up fail2ban configuration... 2020-01-02 11:19:36,743: DEBUG - 24440 + set +x 2020-01-02 11:19:36,746: DEBUG - 24446 + local dest_**********= 2020-01-02 11:19:36,748: DEBUG - 24449 + local is_big=0 2020-01-02 11:19:36,750: DEBUG - 24456 + local not_mandatory=0 2020-01-02 11:19:36,753: DEBUG - 24459 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:36,755: DEBUG - 24467 + test -n nextcloud 2020-01-02 11:19:36,757: DEBUG - 24469 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:36,760: DEBUG - 24475 ++ local legacy_args=ak 2020-01-02 11:19:36,763: DEBUG - 24481 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:36,766: DEBUG - 24491 ++ declare -Ar args_array 2020-01-02 11:19:36,768: DEBUG - 24494 ++ local app 2020-01-02 11:19:36,771: DEBUG - 24497 ++ local key 2020-01-02 11:19:36,774: DEBUG - 24499 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:36,776: DEBUG - 24511 ++ set +x 2020-01-02 11:19:36,778: DEBUG - 24513 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:36,781: DEBUG - 24516 ++ ACTION=get 2020-01-02 11:19:36,783: DEBUG - 24522 ++ APP=nextcloud 2020-01-02 11:19:36,785: DEBUG - 24532 ++ KEY=********** 2020-01-02 11:19:36,788: DEBUG - 24534 ++ VALUE= 2020-01-02 11:19:36,790: DEBUG - 24537 ++ python - 2020-01-02 11:19:37,698: DEBUG - 25446 + **********= 2020-01-02 11:19:37,701: DEBUG - 25449 + '[' 0 -eq 1 ']' 2020-01-02 11:19:37,703: DEBUG - 25452 + [[ -e /etc/fail2ban/jail.d/nextcloud.conf ]] 2020-01-02 11:19:37,712: DEBUG - 25454 ++ real********** /etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,715: DEBUG - 25457 + src_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,724: DEBUG - 25460 + [[ -z '' ]] 2020-01-02 11:19:37,731: DEBUG - 25462 + dest_**********=etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,733: DEBUG - 25465 + [[ ! -e etc/fail2ban/jail.d/nextcloud.conf ]] 2020-01-02 11:19:37,743: DEBUG - 25467 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:37,745: DEBUG - 25470 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:37,748: DEBUG - 25473 + dest_**********=/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,760: DEBUG - 25476 + dest_**********=apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,762: DEBUG - 25478 ++ echo /etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,776: DEBUG - 25481 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:37,778: DEBUG - 25484 + local src=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,781: DEBUG - 25486 ++ echo apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,784: DEBUG - 25489 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:37,796: DEBUG - 25492 + local dest=apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,798: DEBUG - 25494 + echo '"/etc/fail2ban/jail.d/nextcloud.conf","apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf"' 2020-01-02 11:19:37,810: DEBUG - 25497 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:19:37,818: DEBUG - 25501 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/jail.d 2020-01-02 11:19:37,820: DEBUG - 25503 + ynh_backup --src_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:37,823: DEBUG - 25507 + local legacy_args=sdbm 2020-01-02 11:19:37,834: DEBUG - 25512 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:37,837: DEBUG - 25525 + declare -Ar args_array 2020-01-02 11:19:37,839: DEBUG - 25533 + local src_********** 2020-01-02 11:19:37,841: DEBUG - 25536 + local dest_********** 2020-01-02 11:19:37,843: DEBUG - 25542 + local is_big 2020-01-02 11:19:37,846: DEBUG - 25544 + local not_mandatory 2020-01-02 11:19:37,848: DEBUG - 25552 + ynh_handle_getopts_args --src_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:37,851: DEBUG - 25555 + set +x 2020-01-02 11:19:37,853: DEBUG - 25566 + local dest_**********= 2020-01-02 11:19:37,855: DEBUG - 25569 + local is_big=0 2020-01-02 11:19:37,857: DEBUG - 25571 + local not_mandatory=0 2020-01-02 11:19:37,860: DEBUG - 25580 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:37,862: DEBUG - 25584 + test -n nextcloud 2020-01-02 11:19:37,865: DEBUG - 25587 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:37,867: DEBUG - 25589 ++ local legacy_args=ak 2020-01-02 11:19:37,869: DEBUG - 25601 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:37,872: DEBUG - 25603 ++ declare -Ar args_array 2020-01-02 11:19:37,874: DEBUG - 25606 ++ local app 2020-01-02 11:19:37,877: DEBUG - 25608 ++ local key 2020-01-02 11:19:37,879: DEBUG - 25617 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:37,881: DEBUG - 25619 ++ set +x 2020-01-02 11:19:37,883: DEBUG - 25621 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:37,886: DEBUG - 25627 ++ ACTION=get 2020-01-02 11:19:37,888: DEBUG - 25633 ++ APP=nextcloud 2020-01-02 11:19:37,890: DEBUG - 25642 ++ KEY=********** 2020-01-02 11:19:37,892: DEBUG - 25644 ++ VALUE= 2020-01-02 11:19:37,894: DEBUG - 25647 ++ python - 2020-01-02 11:19:38,702: DEBUG - 26453 + **********= 2020-01-02 11:19:38,705: DEBUG - 26456 + '[' 0 -eq 1 ']' 2020-01-02 11:19:38,707: DEBUG - 26461 + [[ -e /etc/fail2ban/filter.d/nextcloud.conf ]] 2020-01-02 11:19:38,710: DEBUG - 26464 ++ real********** /etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,712: DEBUG - 26467 + src_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,726: DEBUG - 26469 + [[ -z '' ]] 2020-01-02 11:19:38,729: DEBUG - 26474 + dest_**********=etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,731: DEBUG - 26479 + [[ ! -e etc/fail2ban/filter.d/nextcloud.conf ]] 2020-01-02 11:19:38,748: DEBUG - 26483 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:38,753: DEBUG - 26487 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:38,756: DEBUG - 26489 + dest_**********=/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,759: DEBUG - 26493 + dest_**********=apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,772: DEBUG - 26498 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:38,785: DEBUG - 26501 ++ echo /etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,787: DEBUG - 26503 + local src=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,790: DEBUG - 26507 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:38,793: DEBUG - 26511 ++ echo apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,806: DEBUG - 26513 + local dest=apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,808: DEBUG - 26516 + echo '"/etc/fail2ban/filter.d/nextcloud.conf","apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf"' 2020-01-02 11:19:38,821: DEBUG - 26534 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:19:38,824: DEBUG - 26537 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/filter.d 2020-01-02 11:19:38,832: DEBUG - 26549 + ynh_backup --src_**********=/etc/cron.d/nextcloud 2020-01-02 11:19:38,839: DEBUG - 26552 + local legacy_args=sdbm 2020-01-02 11:19:38,846: DEBUG - 26554 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:38,849: DEBUG - 26557 + declare -Ar args_array 2020-01-02 11:19:38,852: DEBUG - 26561 + local src_********** 2020-01-02 11:19:38,855: DEBUG - 26566 + local dest_********** 2020-01-02 11:19:38,857: DEBUG - 26576 + local is_big 2020-01-02 11:19:38,860: DEBUG - 26579 + local not_mandatory 2020-01-02 11:19:38,862: DEBUG - 26581 + ynh_handle_getopts_args --src_**********=/etc/cron.d/nextcloud 2020-01-02 11:19:38,866: DEBUG - 26586 + set +x 2020-01-02 11:19:38,868: DEBUG - 26594 + local dest_**********= 2020-01-02 11:19:38,871: DEBUG - 26600 + local is_big=0 2020-01-02 11:19:38,873: DEBUG - 26612 + local not_mandatory=0 2020-01-02 11:19:38,876: DEBUG - 26615 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:38,878: DEBUG - 26617 + test -n nextcloud 2020-01-02 11:19:38,882: DEBUG - 26626 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:38,885: DEBUG - 26628 ++ local legacy_args=ak 2020-01-02 11:19:38,887: DEBUG - 26631 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:38,890: DEBUG - 26635 ++ declare -Ar args_array 2020-01-02 11:19:38,892: DEBUG - 26641 ++ local app 2020-01-02 11:19:38,895: DEBUG - 26644 ++ local key 2020-01-02 11:19:38,897: DEBUG - 26650 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:38,900: DEBUG - 26657 ++ set +x 2020-01-02 11:19:39,003: DEBUG - 26760 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:39,005: DEBUG - 26762 ++ ACTION=get 2020-01-02 11:19:39,007: DEBUG - 26764 ++ APP=nextcloud 2020-01-02 11:19:39,008: DEBUG - 26766 ++ KEY=********** 2020-01-02 11:19:39,010: DEBUG - 26768 ++ VALUE= 2020-01-02 11:19:39,012: DEBUG - 26771 ++ python - 2020-01-02 11:19:39,818: DEBUG - 27577 + **********= 2020-01-02 11:19:39,820: DEBUG - 27588 + '[' 0 -eq 1 ']' 2020-01-02 11:19:39,823: DEBUG - 27591 + [[ -e /etc/cron.d/nextcloud ]] 2020-01-02 11:19:39,825: DEBUG - 27592 ++ real********** /etc/cron.d/nextcloud 2020-01-02 11:19:39,828: DEBUG - 27593 + src_**********=/etc/cron.d/nextcloud 2020-01-02 11:19:39,831: DEBUG - 27595 + [[ -z '' ]] 2020-01-02 11:19:39,835: DEBUG - 27596 + dest_**********=etc/cron.d/nextcloud 2020-01-02 11:19:39,837: DEBUG - 27598 + [[ ! -e etc/cron.d/nextcloud ]] 2020-01-02 11:19:39,840: DEBUG - 27599 + local rel_dir=/apps/nextcloud/backup 2020-01-02 11:19:39,843: DEBUG - 27601 + rel_dir=/apps/nextcloud/backup/ 2020-01-02 11:19:39,846: DEBUG - 27603 + dest_**********=/apps/nextcloud/backup/etc/cron.d/nextcloud 2020-01-02 11:19:39,849: DEBUG - 27605 + dest_**********=apps/nextcloud/backup/etc/cron.d/nextcloud 2020-01-02 11:19:39,852: DEBUG - 27607 ++ echo /etc/cron.d/nextcloud 2020-01-02 11:19:39,854: DEBUG - 27609 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:39,857: DEBUG - 27611 + local src=/etc/cron.d/nextcloud 2020-01-02 11:19:39,860: DEBUG - 27613 ++ echo apps/nextcloud/backup/etc/cron.d/nextcloud 2020-01-02 11:19:39,863: DEBUG - 27614 ++ sed -r 's/"/\"\"/g' 2020-01-02 11:19:39,865: DEBUG - 27617 + local dest=apps/nextcloud/backup/etc/cron.d/nextcloud 2020-01-02 11:19:39,868: DEBUG - 27618 + echo '"/etc/cron.d/nextcloud","apps/nextcloud/backup/etc/cron.d/nextcloud"' 2020-01-02 11:19:39,871: DEBUG - 27620 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/cron.d/nextcloud 2020-01-02 11:19:39,873: DEBUG - 27622 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/cron.d 2020-01-02 11:19:39,977: DEBUG - 27724 + ynh_script_progression '--message=Backing up data directory...' 2020-01-02 11:19:39,979: DEBUG - 27726 + set +x 2020-01-02 11:19:39,982: DEBUG - 27728 + set +x 2020-01-02 11:19:39,985: DEBUG - 27730 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:39,988: DEBUG - 27733 + set +x 2020-01-02 11:19:40,094: DEBUG - 27835 + echo '[################++..] > Backing up data directory...' 2020-01-02 11:19:40,097: DEBUG - 27837 [################++..] > Backing up data directory... 2020-01-02 11:19:40,099: DEBUG - 27839 + set -x 2020-01-02 11:19:40,101: DEBUG - 27842 + ynh_backup --src_**********=/home/yunohost.app/nextcloud/data --is_big 2020-01-02 11:19:40,104: DEBUG - 27844 + local legacy_args=sdbm 2020-01-02 11:19:40,106: DEBUG - 27846 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory) 2020-01-02 11:19:40,109: DEBUG - 27848 + declare -Ar args_array 2020-01-02 11:19:40,111: DEBUG - 27850 + local src_********** 2020-01-02 11:19:40,113: DEBUG - 27852 + local dest_********** 2020-01-02 11:19:40,116: DEBUG - 27853 + local is_big 2020-01-02 11:19:40,118: DEBUG - 27855 + local not_mandatory 2020-01-02 11:19:40,121: DEBUG - 27859 + ynh_handle_getopts_args --src_**********=/home/yunohost.app/nextcloud/data --is_big 2020-01-02 11:19:40,123: DEBUG - 27861 + set +x 2020-01-02 11:19:40,125: DEBUG - 27863 + local dest_**********= 2020-01-02 11:19:40,127: DEBUG - 27865 + local is_big=1 2020-01-02 11:19:40,130: DEBUG - 27867 + local not_mandatory=0 2020-01-02 11:19:40,132: DEBUG - 27869 + BACKUP_CORE_ONLY=1 2020-01-02 11:19:40,134: DEBUG - 27871 + test -n nextcloud 2020-01-02 11:19:40,136: DEBUG - 27873 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:19:40,138: DEBUG - 27875 ++ local legacy_args=ak 2020-01-02 11:19:40,141: DEBUG - 27882 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:19:40,144: DEBUG - 27884 ++ declare -Ar args_array 2020-01-02 11:19:40,148: DEBUG - 27886 ++ local app 2020-01-02 11:19:40,151: DEBUG - 27888 ++ local key 2020-01-02 11:19:40,153: DEBUG - 27889 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:19:40,156: DEBUG - 27891 ++ set +x 2020-01-02 11:19:40,158: DEBUG - 27894 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:19:40,161: DEBUG - 27895 ++ ACTION=get 2020-01-02 11:19:40,163: DEBUG - 27898 ++ APP=nextcloud 2020-01-02 11:19:40,165: DEBUG - 27899 ++ KEY=********** 2020-01-02 11:19:40,168: DEBUG - 27901 ++ VALUE= 2020-01-02 11:19:40,170: DEBUG - 27903 ++ python - 2020-01-02 11:19:41,080: DEBUG - 28809 + **********= 2020-01-02 11:19:41,083: WARNING - 28811 [93m[1m[WARN][0m /home/yunohost.app/nextcloud/data will not be saved, because 'BACKUP_CORE_ONLY' is set. 2020-01-02 11:19:41,090: DEBUG - 28814 + '[' 1 -eq 1 ']' 2020-01-02 11:19:41,092: DEBUG - 28817 + '[' 0 -eq 1 ']' 2020-01-02 11:19:41,094: DEBUG - 28818 + '[' 1 -eq 1 ']' 2020-01-02 11:19:41,096: DEBUG - 28820 + '[' 1 -eq 1 ']' 2020-01-02 11:19:41,097: DEBUG - 28822 + ynh_print_warn '--message=/home/yunohost.app/nextcloud/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-01-02 11:19:41,099: DEBUG - 28824 + local legacy_args=m 2020-01-02 11:19:41,101: DEBUG - 28825 + args_array=([m]=message=) 2020-01-02 11:19:41,103: DEBUG - 28827 + declare -Ar args_array 2020-01-02 11:19:41,104: DEBUG - 28829 + local message 2020-01-02 11:19:41,106: DEBUG - 28831 + ynh_handle_getopts_args '--message=/home/yunohost.app/nextcloud/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-01-02 11:19:41,108: DEBUG - 28833 + set +x 2020-01-02 11:19:41,110: DEBUG - 28835 + ynh_print_log '\e[93m\e[1m[WARN]\e[0m /home/yunohost.app/nextcloud/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-01-02 11:19:41,112: DEBUG - 28837 + echo -e '\e[93m\e[1m[WARN]\e[0m /home/yunohost.app/nextcloud/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.' 2020-01-02 11:19:41,114: DEBUG - 28839 + return 0 2020-01-02 11:19:41,116: DEBUG - 28840 + ynh_script_progression '--message=Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).' --last 2020-01-02 11:19:41,118: DEBUG - 28842 + set +x 2020-01-02 11:19:41,220: DEBUG - 28945 + set +x 2020-01-02 11:19:41,222: DEBUG - 28947 + echo '! Helper used in legacy mode !' 2020-01-02 11:19:41,224: DEBUG - 28948 + set +x 2020-01-02 11:19:41,226: DEBUG - 28949 + echo '[####################] > Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).' 2020-01-02 11:19:41,228: DEBUG - 28952 + set -x 2020-01-02 11:19:41,233: DEBUG - 28954 + ynh_exit_properly 2020-01-02 11:19:41,235: DEBUG - 28955 + local exit_code=0 2020-01-02 11:19:41,238: DEBUG - 28957 + '[' 0 -eq 0 ']' 2020-01-02 11:19:41,241: DEBUG - 28958 + exit 0 2020-01-02 11:19:46,165: DEBUG - 33977 Now creating a backup archive from the files collected… 2020-01-02 11:19:46,267: DEBUG - 33980 Creating the backup tar archive… 2020-01-02 11:26:24,280: DEBUG - 432075 Backup tar archive created 2020-01-02 11:26:24,293: DEBUG - 432096 Backup created 2020-01-02 11:26:24,295: DEBUG - 432098 action [5457.1] executed in 430.102s 2020-01-02 11:26:24,397: DEBUG - name: nextcloud-pre-upgrade1 2020-01-02 11:26:24,400: DEBUG - results: 2020-01-02 11:26:24,402: DEBUG - apps: 2020-01-02 11:26:24,405: DEBUG - nextcloud: Success 2020-01-02 11:26:24,407: DEBUG - system: 2020-01-02 11:26:24,410: DEBUG - size: 291831250 2020-01-02 11:26:25,017: DEBUG - + '[' 0 -eq 0 ']' 2020-01-02 11:26:25,019: DEBUG - + sudo yunohost backup list 2020-01-02 11:26:25,022: DEBUG - + grep -q nextcloud-pre-upgrade2 2020-01-02 11:26:30,549: DEBUG - + sudo yunohost backup delete nextcloud-pre-upgrade2 2020-01-02 11:26:33,265: DEBUG - + ynh_app_setting_delete nextcloud ********** 2020-01-02 11:26:33,267: DEBUG - + local legacy_args=ak 2020-01-02 11:26:33,270: DEBUG - + args_array=([a]=app= [k]=key=) 2020-01-02 11:26:33,272: DEBUG - + declare -Ar args_array 2020-01-02 11:26:33,275: DEBUG - + local app 2020-01-02 11:26:33,277: DEBUG - + local key 2020-01-02 11:26:33,280: DEBUG - + ynh_handle_getopts_args nextcloud ********** 2020-01-02 11:26:33,282: DEBUG - + set +x 2020-01-02 11:26:33,285: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:26:33,287: DEBUG - + set +x 2020-01-02 11:26:33,291: DEBUG - + ynh_app_setting delete nextcloud ********** 2020-01-02 11:26:33,293: DEBUG - + ACTION=delete 2020-01-02 11:26:33,295: DEBUG - + APP=nextcloud 2020-01-02 11:26:33,297: DEBUG - + KEY=********** 2020-01-02 11:26:33,300: DEBUG - + VALUE= 2020-01-02 11:26:33,302: DEBUG - + python - 2020-01-02 11:26:34,209: DEBUG - + ynh_abort_if_errors 2020-01-02 11:26:34,212: DEBUG - + set -eu 2020-01-02 11:26:34,216: DEBUG - + trap ynh_exit_properly EXIT 2020-01-02 11:26:34,219: DEBUG - + ynh_handle_app_migration owncloud owncloud_migration 2020-01-02 11:26:34,226: DEBUG - + old_app=nextcloud 2020-01-02 11:26:34,228: DEBUG - + local old_app_id=nextcloud 2020-01-02 11:26:34,231: DEBUG - + local old_app_number=1 2020-01-02 11:26:34,237: DEBUG - + local migration_id=owncloud 2020-01-02 11:26:34,240: DEBUG - + local migration_list=owncloud_migration 2020-01-02 11:26:34,242: DEBUG - ++ grep '"id":' ../manifest.json 2020-01-02 11:26:34,248: DEBUG - ++ cut '-d"' -f4 2020-01-02 11:26:34,251: DEBUG - + local new_app_id=nextcloud 2020-01-02 11:26:34,256: DEBUG - + '[' 1 -eq 1 ']' 2020-01-02 11:26:34,259: DEBUG - + local new_app=nextcloud 2020-01-02 11:26:34,262: DEBUG - + migration_process=0 2020-01-02 11:26:34,269: DEBUG - + '[' nextcloud == nextcloud ']' 2020-01-02 11:26:34,272: DEBUG - + echo 0 2020-01-02 11:26:34,275: DEBUG - 0 2020-01-02 11:26:34,281: DEBUG - + return 0 2020-01-02 11:26:34,284: DEBUG - + '[' 0 -eq 1 ']' 2020-01-02 11:26:34,287: DEBUG - ++ ynh_normalize_url_********** --**********_url=/nextcloud 2020-01-02 11:26:34,293: DEBUG - ++ local legacy_args=p 2020-01-02 11:26:34,296: DEBUG - ++ args_array=([p]=**********_url=) 2020-01-02 11:26:34,298: DEBUG - ++ declare -Ar args_array 2020-01-02 11:26:34,300: DEBUG - ++ local **********_url 2020-01-02 11:26:34,302: DEBUG - ++ ynh_handle_getopts_args --**********_url=/nextcloud 2020-01-02 11:26:34,305: DEBUG - ++ set +x 2020-01-02 11:26:34,307: DEBUG - ++ test -n /nextcloud 2020-01-02 11:26:34,309: DEBUG - ++ '[' / '!=' / ']' 2020-01-02 11:26:34,314: DEBUG - ++ '[' d == / ']' 2020-01-02 11:26:34,317: DEBUG - ++ echo /nextcloud 2020-01-02 11:26:34,319: DEBUG - + **********_url=/nextcloud 2020-01-02 11:26:34,327: DEBUG - + ynh_script_progression '--message=Upgrading nginx web server configuration...' --weight=2 2020-01-02 11:26:34,330: DEBUG - + set +x 2020-01-02 11:26:34,336: DEBUG - + set +x 2020-01-02 11:26:34,338: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:26:34,341: DEBUG - + set +x 2020-01-02 11:26:34,445: DEBUG - + echo '[########+...........] > Upgrading nginx web server configuration...' 2020-01-02 11:26:34,448: INFO - [########+...........] > Upgrading nginx web server configuration... 2020-01-02 11:26:34,471: DEBUG - + set -x 2020-01-02 11:26:34,473: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:34,476: DEBUG - + local legacy_args=f 2020-01-02 11:26:34,478: DEBUG - + args_array=([f]=file=) 2020-01-02 11:26:34,480: DEBUG - + declare -Ar args_array 2020-01-02 11:26:34,483: DEBUG - + local file 2020-01-02 11:26:34,485: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:34,487: DEBUG - + set +x 2020-01-02 11:26:34,490: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_didiercl.me.d_nextcloud.conf 2020-01-02 11:26:34,492: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:26:34,494: DEBUG - ++ local legacy_args=ak 2020-01-02 11:26:34,497: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:26:34,499: DEBUG - ++ declare -Ar args_array 2020-01-02 11:26:34,501: DEBUG - ++ local app 2020-01-02 11:26:34,503: DEBUG - ++ local key 2020-01-02 11:26:34,506: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:26:34,508: DEBUG - ++ set +x 2020-01-02 11:26:34,511: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:26:34,513: DEBUG - ++ ACTION=get 2020-01-02 11:26:34,515: DEBUG - ++ APP=nextcloud 2020-01-02 11:26:34,518: DEBUG - ++ KEY=********** 2020-01-02 11:26:34,520: DEBUG - ++ VALUE= 2020-01-02 11:26:34,522: DEBUG - ++ python - 2020-01-02 11:26:35,329: DEBUG - + local checksum_value=aab8a78869af5a461f29f22d8f8a2a1c 2020-01-02 11:26:35,331: DEBUG - + backup_file_checksum= 2020-01-02 11:26:35,333: DEBUG - + '[' -n aab8a78869af5a461f29f22d8f8a2a1c ']' 2020-01-02 11:26:35,336: DEBUG - + echo 'aab8a78869af5a461f29f22d8f8a2a1c /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf' 2020-01-02 11:26:35,338: DEBUG - + sudo md5sum -c --status 2020-01-02 11:26:35,542: DEBUG - + ynh_remove_nginx_config 2020-01-02 11:26:35,544: DEBUG - + ynh_secure_remove --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:35,546: DEBUG - + local legacy_args=f 2020-01-02 11:26:35,548: DEBUG - + args_array=([f]=file=) 2020-01-02 11:26:35,550: DEBUG - + declare -Ar args_array 2020-01-02 11:26:35,552: DEBUG - + local file 2020-01-02 11:26:35,555: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:35,557: DEBUG - + set +x 2020-01-02 11:26:35,559: DEBUG - + local 'forbidden_**********= /var/www /home/yunohost.app' 2020-01-02 11:26:35,562: DEBUG - + '[' 1 -ge 2 ']' 2020-01-02 11:26:35,564: DEBUG - + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/didiercl\.me\.d/nextcloud\.conf ]] 2020-01-02 11:26:35,566: DEBUG - + [[ /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf =~ ^/[[:alnum:]]+$ ]] 2020-01-02 11:26:35,568: DEBUG - + [[ f = \/ ]] 2020-01-02 11:26:35,570: DEBUG - + '[' -e /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf ']' 2020-01-02 11:26:35,572: DEBUG - + sudo rm -R /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:35,675: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2020-01-02 11:26:35,678: DEBUG - + local legacy_args=nalpte 2020-01-02 11:26:35,680: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-01-02 11:26:35,682: DEBUG - + declare -Ar args_array 2020-01-02 11:26:35,690: DEBUG - + local service_name 2020-01-02 11:26:35,692: DEBUG - + local action 2020-01-02 11:26:35,694: DEBUG - + local line_match 2020-01-02 11:26:35,697: DEBUG - + local length 2020-01-02 11:26:35,699: DEBUG - + local log_********** 2020-01-02 11:26:35,705: DEBUG - + local timeout 2020-01-02 11:26:35,708: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload 2020-01-02 11:26:35,711: DEBUG - + set +x 2020-01-02 11:26:35,814: DEBUG - + local service_name=nginx 2020-01-02 11:26:35,816: DEBUG - + local action=reload 2020-01-02 11:26:35,818: DEBUG - + local log_**********=/var/log/nginx/nginx.log 2020-01-02 11:26:35,820: DEBUG - + local length=20 2020-01-02 11:26:35,822: DEBUG - + local timeout=300 2020-01-02 11:26:35,824: DEBUG - + [[ -n '' ]] 2020-01-02 11:26:35,826: DEBUG - + '[' reload == reload ']' 2020-01-02 11:26:35,829: DEBUG - + action=reload-or-restart 2020-01-02 11:26:35,831: DEBUG - + systemctl reload-or-restart nginx 2020-01-02 11:26:37,039: DEBUG - + [[ -n '' ]] 2020-01-02 11:26:37,043: DEBUG - + ynh_app_setting_delete --app=nextcloud --key=********** 2020-01-02 11:26:37,046: DEBUG - + local legacy_args=ak 2020-01-02 11:26:37,048: DEBUG - + args_array=([a]=app= [k]=key=) 2020-01-02 11:26:37,056: DEBUG - + declare -Ar args_array 2020-01-02 11:26:37,059: DEBUG - + local app 2020-01-02 11:26:37,065: DEBUG - + local key 2020-01-02 11:26:37,073: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:26:37,078: DEBUG - + set +x 2020-01-02 11:26:37,088: DEBUG - + ynh_app_setting delete nextcloud ********** 2020-01-02 11:26:37,094: DEBUG - + ACTION=delete 2020-01-02 11:26:37,099: DEBUG - + APP=nextcloud 2020-01-02 11:26:37,104: DEBUG - + KEY=********** 2020-01-02 11:26:37,111: DEBUG - + VALUE= 2020-01-02 11:26:37,117: DEBUG - + python - 2020-01-02 11:26:38,026: DEBUG - + is_url_handled --url=https://didiercl.me/.well-known/caldav 2020-01-02 11:26:38,029: DEBUG - + args_array=([u]=url=) 2020-01-02 11:26:38,032: DEBUG - + declare -Ar args_array 2020-01-02 11:26:38,034: DEBUG - + local url 2020-01-02 11:26:38,037: DEBUG - + ynh_handle_getopts_args --url=https://didiercl.me/.well-known/caldav 2020-01-02 11:26:38,039: DEBUG - + set +x 2020-01-02 11:26:38,143: DEBUG - ++ curl --insecure --silent --output /dev/null --write-out '%{http_code};%{redirect_url}' https://didiercl.me/.well-known/caldav 2020-01-02 11:26:38,749: DEBUG - + local 'curl_output=301;https://didiercl.me/baikal/cal.php' 2020-01-02 11:26:38,753: WARNING - [93m[1m[WARN][0m Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book. 2020-01-02 11:26:38,760: DEBUG - + local http_code=301 2020-01-02 11:26:38,762: DEBUG - + local redirection=https://didiercl.me/baikal/cal.php 2020-01-02 11:26:38,765: DEBUG - + '[' 301 = 404 ']' 2020-01-02 11:26:38,768: DEBUG - + [[ https://didiercl.me/baikal/cal.php =~ /yunohost/********** ]] 2020-01-02 11:26:38,771: DEBUG - + [[ https://didiercl.me/baikal/cal.php =~ /yunohost/sso ]] 2020-01-02 11:26:38,773: DEBUG - + ynh_print_warn '--message=Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:26:38,777: DEBUG - + local legacy_args=m 2020-01-02 11:26:38,783: DEBUG - + args_array=([m]=message=) 2020-01-02 11:26:38,787: DEBUG - + declare -Ar args_array 2020-01-02 11:26:38,790: DEBUG - + local message 2020-01-02 11:26:38,793: DEBUG - + ynh_handle_getopts_args '--message=Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:26:38,795: DEBUG - + set +x 2020-01-02 11:26:38,798: DEBUG - + ynh_print_log '\e[93m\e[1m[WARN]\e[0m Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:26:38,801: DEBUG - + echo -e '\e[93m\e[1m[WARN]\e[0m Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:26:38,803: DEBUG - + sed --in-place --regexp-extended '/^location = \/\.well\-known\/(caldav|carddav) \{/,/\}/d' ../conf/nginx.conf 2020-01-02 11:26:38,806: DEBUG - + ynh_add_nginx_config 2020-01-02 11:26:38,809: DEBUG - + finalnginxconf=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:38,812: DEBUG - + local others_var= 2020-01-02 11:26:38,814: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:38,817: DEBUG - + local legacy_args=f 2020-01-02 11:26:38,821: DEBUG - + args_array=([f]=file=) 2020-01-02 11:26:38,823: DEBUG - + declare -Ar args_array 2020-01-02 11:26:38,826: DEBUG - + local file 2020-01-02 11:26:38,829: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:38,834: DEBUG - + set +x 2020-01-02 11:26:38,837: DEBUG - + local checksum_setting_name=********** 2020-01-02 11:26:38,840: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:26:38,843: DEBUG - ++ local legacy_args=ak 2020-01-02 11:26:38,846: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:26:38,848: DEBUG - ++ declare -Ar args_array 2020-01-02 11:26:38,853: DEBUG - ++ local app 2020-01-02 11:26:38,856: DEBUG - ++ local key 2020-01-02 11:26:38,858: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:26:38,861: DEBUG - ++ set +x 2020-01-02 11:26:38,864: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:26:38,866: DEBUG - ++ ACTION=get 2020-01-02 11:26:38,868: DEBUG - ++ APP=nextcloud 2020-01-02 11:26:38,871: DEBUG - ++ KEY=********** 2020-01-02 11:26:38,874: DEBUG - ++ VALUE= 2020-01-02 11:26:38,876: DEBUG - ++ python - 2020-01-02 11:26:39,683: DEBUG - + local checksum_value= 2020-01-02 11:26:39,686: DEBUG - + backup_file_checksum= 2020-01-02 11:26:39,688: DEBUG - + '[' -n '' ']' 2020-01-02 11:26:39,693: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:39,897: DEBUG - + test -n /nextcloud 2020-01-02 11:26:39,903: DEBUG - + local **********_url_slash_less=/nextcloud 2020-01-02 11:26:39,908: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/nextcloud/ --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:39,910: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:39,913: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:39,915: DEBUG - + declare -Ar args_array 2020-01-02 11:26:39,918: DEBUG - + local match_string 2020-01-02 11:26:39,920: DEBUG - + local replace_string 2020-01-02 11:26:39,923: DEBUG - + local target_file 2020-01-02 11:26:39,925: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/nextcloud/ --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:39,927: DEBUG - + set +x 2020-01-02 11:26:39,930: DEBUG - + local delimit=@ 2020-01-02 11:26:39,932: DEBUG - + match_string=__PATH__/ 2020-01-02 11:26:39,934: DEBUG - + replace_string=/nextcloud/ 2020-01-02 11:26:39,937: DEBUG - + sudo sed --in-place s@__PATH__/@/nextcloud/@g /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,140: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/nextcloud --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,143: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:40,145: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:40,148: DEBUG - + declare -Ar args_array 2020-01-02 11:26:40,152: DEBUG - + local match_string 2020-01-02 11:26:40,154: DEBUG - + local replace_string 2020-01-02 11:26:40,157: DEBUG - + local target_file 2020-01-02 11:26:40,160: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/nextcloud --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,163: DEBUG - + set +x 2020-01-02 11:26:40,166: DEBUG - + local delimit=@ 2020-01-02 11:26:40,168: DEBUG - + match_string=__PATH__ 2020-01-02 11:26:40,170: DEBUG - + replace_string=/nextcloud 2020-01-02 11:26:40,173: DEBUG - + sudo sed --in-place s@__PATH__@/nextcloud@g /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,376: DEBUG - + test -n didiercl.me 2020-01-02 11:26:40,378: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=didiercl.me --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,379: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:40,381: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:40,383: DEBUG - + declare -Ar args_array 2020-01-02 11:26:40,384: DEBUG - + local match_string 2020-01-02 11:26:40,387: DEBUG - + local replace_string 2020-01-02 11:26:40,390: DEBUG - + local target_file 2020-01-02 11:26:40,392: DEBUG - + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=didiercl.me --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,395: DEBUG - + set +x 2020-01-02 11:26:40,498: DEBUG - + local delimit=@ 2020-01-02 11:26:40,500: DEBUG - + match_string=__DOMAIN__ 2020-01-02 11:26:40,506: DEBUG - + replace_string=didiercl.me 2020-01-02 11:26:40,520: DEBUG - + sudo sed --in-place s@__DOMAIN__@didiercl.me@g /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,626: DEBUG - + test -n '' 2020-01-02 11:26:40,628: DEBUG - + test -n nextcloud 2020-01-02 11:26:40,630: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=nextcloud --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,632: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:40,635: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:40,638: DEBUG - + declare -Ar args_array 2020-01-02 11:26:40,641: DEBUG - + local match_string 2020-01-02 11:26:40,643: DEBUG - + local replace_string 2020-01-02 11:26:40,646: DEBUG - + local target_file 2020-01-02 11:26:40,649: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=nextcloud --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,652: DEBUG - + set +x 2020-01-02 11:26:40,755: DEBUG - + local delimit=@ 2020-01-02 11:26:40,757: DEBUG - + match_string=__NAME__ 2020-01-02 11:26:40,758: DEBUG - + replace_string=nextcloud 2020-01-02 11:26:40,761: DEBUG - + sudo sed --in-place s@__NAME__@nextcloud@g /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,878: DEBUG - + test -n /var/www/nextcloud 2020-01-02 11:26:40,881: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/nextcloud --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,886: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:40,889: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:40,894: DEBUG - + declare -Ar args_array 2020-01-02 11:26:40,897: DEBUG - + local match_string 2020-01-02 11:26:40,900: DEBUG - + local replace_string 2020-01-02 11:26:40,903: DEBUG - + local target_file 2020-01-02 11:26:40,906: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/nextcloud --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:40,908: DEBUG - + set +x 2020-01-02 11:26:40,911: DEBUG - + local delimit=@ 2020-01-02 11:26:40,913: DEBUG - + match_string=__FINALPATH__ 2020-01-02 11:26:40,916: DEBUG - + replace_string=/var/www/nextcloud 2020-01-02 11:26:40,918: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,125: DEBUG - + '[' /nextcloud '!=' / ']' 2020-01-02 11:26:41,127: DEBUG - + ynh_replace_string '--match_string=^#sub_**********_only' --replace_string= --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,129: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:41,131: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:41,133: DEBUG - + declare -Ar args_array 2020-01-02 11:26:41,135: DEBUG - + local match_string 2020-01-02 11:26:41,138: DEBUG - + local replace_string 2020-01-02 11:26:41,140: DEBUG - + local target_file 2020-01-02 11:26:41,143: DEBUG - + ynh_handle_getopts_args '--match_string=^#sub_**********_only' --replace_string= --target_file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,146: DEBUG - + set +x 2020-01-02 11:26:41,249: DEBUG - + local delimit=@ 2020-01-02 11:26:41,251: DEBUG - + match_string='^#sub_**********_only' 2020-01-02 11:26:41,255: DEBUG - + replace_string= 2020-01-02 11:26:41,258: DEBUG - + sudo sed --in-place 's@^#sub_**********_only@@g' /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,362: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,364: DEBUG - + local legacy_args=f 2020-01-02 11:26:41,366: DEBUG - + args_array=([f]=file=) 2020-01-02 11:26:41,372: DEBUG - + declare -Ar args_array 2020-01-02 11:26:41,375: DEBUG - + local file 2020-01-02 11:26:41,378: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,381: DEBUG - + set +x 2020-01-02 11:26:41,385: DEBUG - + local checksum_setting_name=********** 2020-01-02 11:26:41,387: DEBUG - ++ cut '-d ' -f1 2020-01-02 11:26:41,390: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:26:41,593: DEBUG - + ynh_app_setting_set --app=nextcloud --key=********** --value=aab8a78869af5a461f29f22d8f8a2a1c 2020-01-02 11:26:41,596: DEBUG - + local legacy_args=akv 2020-01-02 11:26:41,598: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:26:41,599: DEBUG - + declare -Ar args_array 2020-01-02 11:26:41,606: DEBUG - + local app 2020-01-02 11:26:41,609: DEBUG - + local key 2020-01-02 11:26:41,615: DEBUG - + local value 2020-01-02 11:26:41,618: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=********** --value=aab8a78869af5a461f29f22d8f8a2a1c 2020-01-02 11:26:41,621: DEBUG - + set +x 2020-01-02 11:26:41,724: DEBUG - + ynh_app_setting set nextcloud ********** aab8a78869af5a461f29f22d8f8a2a1c 2020-01-02 11:26:41,726: DEBUG - + ACTION=set 2020-01-02 11:26:41,728: DEBUG - + APP=nextcloud 2020-01-02 11:26:41,732: DEBUG - + KEY=********** 2020-01-02 11:26:41,735: DEBUG - + VALUE=aab8a78869af5a461f29f22d8f8a2a1c 2020-01-02 11:26:41,737: DEBUG - + python - 2020-01-02 11:26:42,544: DEBUG - + '[' -n '' ']' 2020-01-02 11:26:42,546: DEBUG - + unset backup_file_checksum 2020-01-02 11:26:42,549: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2020-01-02 11:26:42,552: DEBUG - + local legacy_args=nalpte 2020-01-02 11:26:42,554: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-01-02 11:26:42,557: DEBUG - + declare -Ar args_array 2020-01-02 11:26:42,560: DEBUG - + local service_name 2020-01-02 11:26:42,562: DEBUG - + local action 2020-01-02 11:26:42,565: DEBUG - + local line_match 2020-01-02 11:26:42,567: DEBUG - + local length 2020-01-02 11:26:42,570: DEBUG - + local log_********** 2020-01-02 11:26:42,573: DEBUG - + local timeout 2020-01-02 11:26:42,578: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload 2020-01-02 11:26:42,581: DEBUG - + set +x 2020-01-02 11:26:42,684: DEBUG - + local service_name=nginx 2020-01-02 11:26:42,686: DEBUG - + local action=reload 2020-01-02 11:26:42,688: DEBUG - + local log_**********=/var/log/nginx/nginx.log 2020-01-02 11:26:42,691: DEBUG - + local length=20 2020-01-02 11:26:42,693: DEBUG - + local timeout=300 2020-01-02 11:26:42,696: DEBUG - + [[ -n '' ]] 2020-01-02 11:26:42,698: DEBUG - + '[' reload == reload ']' 2020-01-02 11:26:42,700: DEBUG - + action=reload-or-restart 2020-01-02 11:26:42,702: DEBUG - + systemctl reload-or-restart nginx 2020-01-02 11:26:43,512: DEBUG - + [[ -n '' ]] 2020-01-02 11:26:43,515: DEBUG - + ynh_script_progression '--message=Making sure dedicated system user exists...' 2020-01-02 11:26:43,518: DEBUG - + set +x 2020-01-02 11:26:43,528: DEBUG - + set +x 2020-01-02 11:26:43,633: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:26:43,636: INFO - [#########...........] > Making sure dedicated system user exists... 2020-01-02 11:26:43,647: DEBUG - + set +x 2020-01-02 11:26:43,649: DEBUG - + echo '[#########...........] > Making sure dedicated system user exists...' 2020-01-02 11:26:43,652: DEBUG - + set -x 2020-01-02 11:26:43,654: DEBUG - + ynh_system_user_create --username=nextcloud 2020-01-02 11:26:43,661: DEBUG - + local legacy_args=uhs 2020-01-02 11:26:43,664: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell) 2020-01-02 11:26:43,666: DEBUG - + declare -Ar args_array 2020-01-02 11:26:43,671: DEBUG - + local username 2020-01-02 11:26:43,672: DEBUG - + local home_dir 2020-01-02 11:26:43,675: DEBUG - + local use_shell 2020-01-02 11:26:43,678: DEBUG - + ynh_handle_getopts_args --username=nextcloud 2020-01-02 11:26:43,682: DEBUG - + set +x 2020-01-02 11:26:43,686: DEBUG - + use_shell=0 2020-01-02 11:26:43,689: DEBUG - + home_dir= 2020-01-02 11:26:43,691: DEBUG - + ynh_system_user_exists nextcloud 2020-01-02 11:26:43,693: DEBUG - + local legacy_args=u 2020-01-02 11:26:43,697: DEBUG - + args_array=([u]=username=) 2020-01-02 11:26:43,699: DEBUG - + declare -Ar args_array 2020-01-02 11:26:43,702: DEBUG - + local username 2020-01-02 11:26:43,704: DEBUG - + ynh_handle_getopts_args nextcloud 2020-01-02 11:26:43,706: DEBUG - + set +x 2020-01-02 11:26:43,708: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:26:43,710: DEBUG - + set +x 2020-01-02 11:26:43,712: DEBUG - + getent passwd nextcloud 2020-01-02 11:26:43,815: DEBUG - + ynh_script_progression '--message=Upgrading php-fpm configuration...' --weight=2 2020-01-02 11:26:43,817: DEBUG - + set +x 2020-01-02 11:26:43,820: DEBUG - + set +x 2020-01-02 11:26:43,922: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:26:43,925: INFO - [#########+..........] > Upgrading php-fpm configuration... 2020-01-02 11:26:43,931: DEBUG - + set +x 2020-01-02 11:26:43,937: DEBUG - + echo '[#########+..........] > Upgrading php-fpm configuration...' 2020-01-02 11:26:43,941: DEBUG - + set -x 2020-01-02 11:26:43,947: DEBUG - + ynh_add_fpm_config 2020-01-02 11:26:43,952: DEBUG - + local legacy_args=v 2020-01-02 11:26:43,955: DEBUG - + args_array=([v]=php**********=) 2020-01-02 11:26:43,959: DEBUG - + declare -Ar args_array 2020-01-02 11:26:43,965: DEBUG - + local php********** 2020-01-02 11:26:43,980: DEBUG - + ynh_handle_getopts_args 2020-01-02 11:26:43,982: DEBUG - + set +x 2020-01-02 11:26:43,984: DEBUG - + php**********=7.0 2020-01-02 11:26:43,987: DEBUG - + local fpm_config_dir=/etc/php/7.0/fpm 2020-01-02 11:26:43,992: DEBUG - + local fpm_service=php7.0-fpm 2020-01-02 11:26:43,996: DEBUG - ++ ynh_get_debian_release 2020-01-02 11:26:44,005: DEBUG - +++ lsb_release --codename --short 2020-01-02 11:26:44,917: DEBUG - ++ echo stretch 2020-01-02 11:26:44,919: DEBUG - + '[' stretch == jessie ']' 2020-01-02 11:26:44,921: DEBUG - + ynh_app_setting_set --app=nextcloud --key=fpm_config_dir --value=/etc/php/7.0/fpm 2020-01-02 11:26:44,922: DEBUG - + local legacy_args=akv 2020-01-02 11:26:44,925: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:26:44,928: DEBUG - + declare -Ar args_array 2020-01-02 11:26:44,930: DEBUG - + local app 2020-01-02 11:26:44,933: DEBUG - + local key 2020-01-02 11:26:44,935: DEBUG - + local value 2020-01-02 11:26:44,938: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=fpm_config_dir --value=/etc/php/7.0/fpm 2020-01-02 11:26:44,941: DEBUG - + set +x 2020-01-02 11:26:45,044: DEBUG - + ynh_app_setting set nextcloud fpm_config_dir /etc/php/7.0/fpm 2020-01-02 11:26:45,046: DEBUG - + ACTION=set 2020-01-02 11:26:45,048: DEBUG - + APP=nextcloud 2020-01-02 11:26:45,051: DEBUG - + KEY=fpm_config_dir 2020-01-02 11:26:45,053: DEBUG - + VALUE=/etc/php/7.0/fpm 2020-01-02 11:26:45,055: DEBUG - + python - 2020-01-02 11:26:45,861: DEBUG - + ynh_app_setting_set --app=nextcloud --key=fpm_service --value=php7.0-fpm 2020-01-02 11:26:45,864: DEBUG - + local legacy_args=akv 2020-01-02 11:26:45,867: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:26:45,870: DEBUG - + declare -Ar args_array 2020-01-02 11:26:45,873: DEBUG - + local app 2020-01-02 11:26:45,875: DEBUG - + local key 2020-01-02 11:26:45,878: DEBUG - + local value 2020-01-02 11:26:45,881: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=fpm_service --value=php7.0-fpm 2020-01-02 11:26:45,883: DEBUG - + set +x 2020-01-02 11:26:45,986: DEBUG - + ynh_app_setting set nextcloud fpm_service php7.0-fpm 2020-01-02 11:26:45,989: DEBUG - + ACTION=set 2020-01-02 11:26:45,992: DEBUG - + APP=nextcloud 2020-01-02 11:26:45,994: DEBUG - + KEY=fpm_service 2020-01-02 11:26:45,996: DEBUG - + VALUE=php7.0-fpm 2020-01-02 11:26:45,999: DEBUG - + python - 2020-01-02 11:26:46,806: DEBUG - + finalphpconf=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:46,808: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:46,814: DEBUG - + local legacy_args=f 2020-01-02 11:26:46,817: DEBUG - + args_array=([f]=file=) 2020-01-02 11:26:46,820: DEBUG - + declare -Ar args_array 2020-01-02 11:26:46,822: DEBUG - + local file 2020-01-02 11:26:46,825: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:46,827: DEBUG - + set +x 2020-01-02 11:26:46,830: DEBUG - + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf 2020-01-02 11:26:46,833: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:26:46,836: DEBUG - ++ local legacy_args=ak 2020-01-02 11:26:46,838: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:26:46,841: DEBUG - ++ declare -Ar args_array 2020-01-02 11:26:46,843: DEBUG - ++ local app 2020-01-02 11:26:46,846: DEBUG - ++ local key 2020-01-02 11:26:46,848: DEBUG - ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:26:46,851: DEBUG - ++ set +x 2020-01-02 11:26:46,954: DEBUG - ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:26:46,956: DEBUG - ++ ACTION=get 2020-01-02 11:26:46,959: DEBUG - ++ APP=nextcloud 2020-01-02 11:26:46,961: DEBUG - ++ KEY=********** 2020-01-02 11:26:46,964: DEBUG - ++ VALUE= 2020-01-02 11:26:46,966: DEBUG - ++ python - 2020-01-02 11:26:47,773: DEBUG - + local checksum_value=12e3533dec72420b311bd6dbd5474edf 2020-01-02 11:26:47,776: DEBUG - + backup_file_checksum= 2020-01-02 11:26:47,780: DEBUG - + '[' -n 12e3533dec72420b311bd6dbd5474edf ']' 2020-01-02 11:26:47,783: DEBUG - + echo '12e3533dec72420b311bd6dbd5474edf /etc/php/7.0/fpm/pool.d/nextcloud.conf' 2020-01-02 11:26:47,786: DEBUG - + sudo md5sum -c --status 2020-01-02 11:26:47,888: DEBUG - + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,096: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=nextcloud --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,099: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:48,101: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:48,104: DEBUG - + declare -Ar args_array 2020-01-02 11:26:48,112: DEBUG - + local match_string 2020-01-02 11:26:48,114: DEBUG - + local replace_string 2020-01-02 11:26:48,117: DEBUG - + local target_file 2020-01-02 11:26:48,122: DEBUG - + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=nextcloud --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,125: DEBUG - + set +x 2020-01-02 11:26:48,227: DEBUG - + local delimit=@ 2020-01-02 11:26:48,230: DEBUG - + match_string=__NAMETOCHANGE__ 2020-01-02 11:26:48,232: DEBUG - + replace_string=nextcloud 2020-01-02 11:26:48,234: DEBUG - + sudo sed --in-place s@__NAMETOCHANGE__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,444: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/nextcloud --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,446: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:48,448: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:48,450: DEBUG - + declare -Ar args_array 2020-01-02 11:26:48,452: DEBUG - + local match_string 2020-01-02 11:26:48,454: DEBUG - + local replace_string 2020-01-02 11:26:48,455: DEBUG - + local target_file 2020-01-02 11:26:48,457: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/nextcloud --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,458: DEBUG - + set +x 2020-01-02 11:26:48,462: DEBUG - + local delimit=@ 2020-01-02 11:26:48,465: DEBUG - + match_string=__FINALPATH__ 2020-01-02 11:26:48,467: DEBUG - + replace_string=/var/www/nextcloud 2020-01-02 11:26:48,470: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,674: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=nextcloud --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,677: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:48,679: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:48,683: DEBUG - + declare -Ar args_array 2020-01-02 11:26:48,687: DEBUG - + local match_string 2020-01-02 11:26:48,689: DEBUG - + local replace_string 2020-01-02 11:26:48,692: DEBUG - + local target_file 2020-01-02 11:26:48,696: DEBUG - + ynh_handle_getopts_args --match_string=__USER__ --replace_string=nextcloud --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,699: DEBUG - + set +x 2020-01-02 11:26:48,803: DEBUG - + local delimit=@ 2020-01-02 11:26:48,807: DEBUG - + match_string=__USER__ 2020-01-02 11:26:48,824: DEBUG - + replace_string=nextcloud 2020-01-02 11:26:48,826: DEBUG - + sudo sed --in-place s@__USER__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,929: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,932: DEBUG - + local legacy_args=mrf 2020-01-02 11:26:48,935: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-02 11:26:48,939: DEBUG - + declare -Ar args_array 2020-01-02 11:26:48,942: DEBUG - + local match_string 2020-01-02 11:26:48,944: DEBUG - + local replace_string 2020-01-02 11:26:48,947: DEBUG - + local target_file 2020-01-02 11:26:48,950: DEBUG - + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:48,953: DEBUG - + set +x 2020-01-02 11:26:49,056: DEBUG - + local delimit=@ 2020-01-02 11:26:49,058: DEBUG - + match_string=__PHPVERSION__ 2020-01-02 11:26:49,061: DEBUG - + replace_string=7.0 2020-01-02 11:26:49,063: DEBUG - + sudo sed --in-place s@__PHPVERSION__@7.0@g /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:49,166: DEBUG - + sudo chown root: /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:49,370: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:49,373: DEBUG - + local legacy_args=f 2020-01-02 11:26:49,375: DEBUG - + args_array=([f]=file=) 2020-01-02 11:26:49,377: DEBUG - + declare -Ar args_array 2020-01-02 11:26:49,380: DEBUG - + local file 2020-01-02 11:26:49,382: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:49,385: DEBUG - + set +x 2020-01-02 11:26:49,387: DEBUG - + local checksum_setting_name=********** 2020-01-02 11:26:49,389: DEBUG - ++ cut '-d ' -f1 2020-01-02 11:26:49,392: DEBUG - ++ sudo md5sum /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:26:49,596: DEBUG - + ynh_app_setting_set --app=nextcloud --key=********** --value=12e3533dec72420b311bd6dbd5474edf 2020-01-02 11:26:49,599: DEBUG - + local legacy_args=akv 2020-01-02 11:26:49,601: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:26:49,603: DEBUG - + declare -Ar args_array 2020-01-02 11:26:49,606: DEBUG - + local app 2020-01-02 11:26:49,609: DEBUG - + local key 2020-01-02 11:26:49,612: DEBUG - + local value 2020-01-02 11:26:49,614: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=********** --value=12e3533dec72420b311bd6dbd5474edf 2020-01-02 11:26:49,617: DEBUG - + set +x 2020-01-02 11:26:49,620: DEBUG - + ynh_app_setting set nextcloud ********** 12e3533dec72420b311bd6dbd5474edf 2020-01-02 11:26:49,622: DEBUG - + ACTION=set 2020-01-02 11:26:49,624: DEBUG - + APP=nextcloud 2020-01-02 11:26:49,627: DEBUG - + KEY=********** 2020-01-02 11:26:49,629: DEBUG - + VALUE=12e3533dec72420b311bd6dbd5474edf 2020-01-02 11:26:49,631: DEBUG - + python - 2020-01-02 11:26:50,539: DEBUG - + '[' -n '' ']' 2020-01-02 11:26:50,542: DEBUG - + unset backup_file_checksum 2020-01-02 11:26:50,545: DEBUG - + '[' -e ../conf/php-fpm.ini ']' 2020-01-02 11:26:50,548: DEBUG - + ynh_systemd_action --service_name=php7.0-fpm --action=reload 2020-01-02 11:26:50,550: DEBUG - + local legacy_args=nalpte 2020-01-02 11:26:50,553: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-01-02 11:26:50,556: DEBUG - + declare -Ar args_array 2020-01-02 11:26:50,559: DEBUG - + local service_name 2020-01-02 11:26:50,561: DEBUG - + local action 2020-01-02 11:26:50,565: DEBUG - + local line_match 2020-01-02 11:26:50,567: DEBUG - + local length 2020-01-02 11:26:50,570: DEBUG - + local log_********** 2020-01-02 11:26:50,573: DEBUG - + local timeout 2020-01-02 11:26:50,575: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload 2020-01-02 11:26:50,578: DEBUG - + set +x 2020-01-02 11:26:50,721: DEBUG - + local service_name=php7.0-fpm 2020-01-02 11:26:50,723: DEBUG - + local action=reload 2020-01-02 11:26:50,746: DEBUG - + local log_**********=/var/log/php7.0-fpm/php7.0-fpm.log 2020-01-02 11:26:50,828: DEBUG - + local length=20 2020-01-02 11:26:50,859: DEBUG - + local timeout=300 2020-01-02 11:26:50,911: DEBUG - + [[ -n '' ]] 2020-01-02 11:26:50,913: DEBUG - + '[' reload == reload ']' 2020-01-02 11:26:50,916: DEBUG - + action=reload-or-restart 2020-01-02 11:26:50,918: DEBUG - + systemctl reload-or-restart php7.0-fpm 2020-01-02 11:26:50,921: DEBUG - + [[ -n '' ]] 2020-01-02 11:26:50,924: DEBUG - + '[' -f /etc/php/7.0/fpm/conf.d/20-nextcloud.ini ']' 2020-01-02 11:26:50,927: DEBUG - + ynh_script_progression '--message=Upgrading dependencies...' --weight=7 2020-01-02 11:26:50,930: DEBUG - + set +x 2020-01-02 11:26:51,033: DEBUG - + set +x 2020-01-02 11:26:51,136: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:26:51,138: INFO - [##########++........] > Upgrading dependencies... 2020-01-02 11:26:51,144: DEBUG - + set +x 2020-01-02 11:26:51,147: DEBUG - + echo '[##########++........] > Upgrading dependencies...' 2020-01-02 11:26:51,149: DEBUG - + set -x 2020-01-02 11:26:51,153: DEBUG - + ynh_install_app_dependencies php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at 2020-01-02 11:26:51,155: DEBUG - + local 'dependencies=php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at' 2020-01-02 11:26:51,157: DEBUG - + local 'dependencies=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:26:51,159: DEBUG - + local 'dependencies=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:26:51,161: DEBUG - + local manifest_**********=../manifest.json 2020-01-02 11:26:51,163: DEBUG - + '[' '!' -e ../manifest.json ']' 2020-01-02 11:26:51,166: DEBUG - ++ cut -d '"' -f 4 2020-01-02 11:26:51,172: DEBUG - ++ grep '\"**********\": ' ../manifest.json 2020-01-02 11:26:51,175: DEBUG - + local **********=********** 2020-01-02 11:26:51,177: DEBUG - + '[' 12 -eq 0 ']' 2020-01-02 11:26:51,179: DEBUG - + local dep_app=nextcloud 2020-01-02 11:26:51,181: DEBUG - + echo php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at 2020-01-02 11:26:51,183: DEBUG - + grep -q php 2020-01-02 11:26:51,185: DEBUG - + dpkg --list 2020-01-02 11:26:51,186: DEBUG - + grep php7.0 2020-01-02 11:26:51,188: DEBUG - + grep -q -v 7.0.33-0+deb9 2020-01-02 11:26:51,493: DEBUG - + grep -nrq sury /etc/apt/sources.list /etc/apt/sources.list.d 2020-01-02 11:26:51,596: DEBUG - + cat 2020-01-02 11:26:51,605: DEBUG - + ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control 2020-01-02 11:26:51,609: DEBUG - + local controlfile=/tmp/nextcloud-ynh-deps.control 2020-01-02 11:26:51,622: DEBUG - ++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control 2020-01-02 11:26:51,624: DEBUG - ++ cut '-d ' -f 2 2020-01-02 11:26:51,629: DEBUG - + local pkgname=nextcloud-ynh-deps 2020-01-02 11:26:51,631: DEBUG - ++ cut '-d ' -f 2 2020-01-02 11:26:51,632: DEBUG - ++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control 2020-01-02 11:26:51,650: DEBUG - + local pkg**********=********** 2020-01-02 11:26:51,652: DEBUG - + [[ -z nextcloud-ynh-deps ]] 2020-01-02 11:26:51,654: DEBUG - + [[ -z ********** ]] 2020-01-02 11:26:51,657: DEBUG - + ynh_package_update 2020-01-02 11:26:51,667: DEBUG - + ynh_apt update 2020-01-02 11:26:51,669: DEBUG - + ynh_wait_dpkg_free 2020-01-02 11:26:51,672: DEBUG - + local try 2020-01-02 11:26:51,682: DEBUG - ++ seq 1 17 2020-01-02 11:26:51,684: DEBUG - + for try in `seq 1 17` 2020-01-02 11:26:51,687: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:26:52,695: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:26:52,697: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:26:52,800: DEBUG - + read dpkg_file 2020-01-02 11:26:52,802: DEBUG - + echo '' 2020-01-02 11:26:52,804: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:26:52,805: DEBUG - + read dpkg_file 2020-01-02 11:26:52,807: DEBUG - + return 0 2020-01-02 11:26:52,817: DEBUG - + DEBIAN_FRONTEND=noninteractive 2020-01-02 11:26:52,819: DEBUG - + apt-get -y update 2020-01-02 11:26:53,827: DEBUG - Hit:1 http://security.debian.org stretch/updates InRelease 2020-01-02 11:26:53,829: DEBUG - Hit:2 http://forge.yunohost.org/debian stretch InRelease 2020-01-02 11:26:54,033: DEBUG - Ign:3 http://ftp.fr.debian.org/debian stretch InRelease 2020-01-02 11:26:54,137: DEBUG - Hit:4 http://ftp.fr.debian.org/debian stretch Release 2020-01-02 11:26:55,855: DEBUG - Hit:5 https://packages.sury.org/php stretch InRelease 2020-01-02 11:26:56,561: DEBUG - Hit:6 https://packages.grafana.com/oss/deb stable InRelease 2020-01-02 11:27:20,370: DEBUG - Reading package lists... 2020-01-02 11:27:20,589: DEBUG - ++ mktemp -d 2020-01-02 11:27:20,592: DEBUG - + local TMPDIR=/tmp/tmp.Ro3stczdRI 2020-01-02 11:27:20,594: DEBUG - + echo 10 2020-01-02 11:27:20,697: DEBUG - + ynh_wait_dpkg_free 2020-01-02 11:27:20,699: DEBUG - + local try 2020-01-02 11:27:20,701: DEBUG - ++ seq 1 17 2020-01-02 11:27:20,704: DEBUG - + for try in `seq 1 17` 2020-01-02 11:27:20,706: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:27:22,215: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:27:22,217: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:27:22,219: DEBUG - + read dpkg_file 2020-01-02 11:27:22,221: DEBUG - + echo '' 2020-01-02 11:27:22,223: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:27:22,225: DEBUG - + read dpkg_file 2020-01-02 11:27:22,226: DEBUG - + return 0 2020-01-02 11:27:22,228: DEBUG - + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.Ro3stczdRI/control 2020-01-02 11:27:22,230: DEBUG - + cd /tmp/tmp.Ro3stczdRI 2020-01-02 11:27:22,232: DEBUG - + equivs-build ./control 2020-01-02 11:27:29,969: DEBUG - + dpkg --force-depends -i ./nextcloud-ynh-deps_**********_all.deb 2020-01-02 11:27:32,483: DEBUG - (Reading database ... 89512 files and directories currently installed.) 2020-01-02 11:27:32,587: DEBUG - Preparing to unpack .../nextcloud-ynh-deps_**********_all.deb ... 2020-01-02 11:27:33,440: DEBUG - Unpacking nextcloud-ynh-deps (**********) over (**********) ... 2020-01-02 11:27:34,748: DEBUG - Setting up nextcloud-ynh-deps (**********) ... 2020-01-02 11:27:35,955: DEBUG - + ynh_package_install -f 2020-01-02 11:27:35,957: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-01-02 11:27:35,958: DEBUG - + ynh_wait_dpkg_free 2020-01-02 11:27:35,962: DEBUG - + local try 2020-01-02 11:27:35,965: DEBUG - ++ seq 1 17 2020-01-02 11:27:35,967: DEBUG - + for try in `seq 1 17` 2020-01-02 11:27:35,970: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:27:37,278: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:27:37,281: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:27:37,284: DEBUG - + read dpkg_file 2020-01-02 11:27:37,287: DEBUG - + echo '' 2020-01-02 11:27:37,289: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:27:37,292: DEBUG - + read dpkg_file 2020-01-02 11:27:37,295: DEBUG - + return 0 2020-01-02 11:27:37,297: DEBUG - + DEBIAN_FRONTEND=noninteractive 2020-01-02 11:27:37,300: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-01-02 11:27:46,040: DEBUG - Reading package lists... 2020-01-02 11:27:47,650: DEBUG - Building dependency tree... 2020-01-02 11:27:47,785: DEBUG - Reading state information... 2020-01-02 11:27:52,408: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2020-01-02 11:27:52,410: DEBUG - + [[ -n /tmp/tmp.Ro3stczdRI ]] 2020-01-02 11:27:52,412: DEBUG - + rm -rf /tmp/tmp.Ro3stczdRI 2020-01-02 11:28:03,865: DEBUG - + ynh_package_is_installed nextcloud-ynh-deps 2020-01-02 11:28:04,137: DEBUG - + local legacy_args=p 2020-01-02 11:28:04,141: DEBUG - + args_array=([p]=package=) 2020-01-02 11:28:04,144: DEBUG - + declare -Ar args_array 2020-01-02 11:28:04,146: DEBUG - + local package 2020-01-02 11:28:04,148: DEBUG - + ynh_handle_getopts_args nextcloud-ynh-deps 2020-01-02 11:28:04,150: DEBUG - + set +x 2020-01-02 11:28:04,152: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:28:04,154: DEBUG - + set +x 2020-01-02 11:28:04,159: DEBUG - + ynh_wait_dpkg_free 2020-01-02 11:28:04,162: DEBUG - + local try 2020-01-02 11:28:04,164: DEBUG - ++ seq 1 17 2020-01-02 11:28:04,167: DEBUG - + for try in `seq 1 17` 2020-01-02 11:28:04,169: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:28:05,678: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:28:05,781: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:28:05,784: DEBUG - + read dpkg_file 2020-01-02 11:28:05,787: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:28:05,789: DEBUG - + echo '' 2020-01-02 11:28:05,793: DEBUG - + read dpkg_file 2020-01-02 11:28:05,796: DEBUG - + return 0 2020-01-02 11:28:05,797: DEBUG - + dpkg-query -W -f '${Status}' nextcloud-ynh-deps 2020-01-02 11:28:05,799: DEBUG - + grep -c 'ok installed' 2020-01-02 11:28:06,104: DEBUG - + rm /tmp/nextcloud-ynh-deps.control 2020-01-02 11:28:06,107: DEBUG - + ynh_app_setting_set --app=nextcloud --key=apt_dependencies '--value=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:28:06,109: DEBUG - + local legacy_args=akv 2020-01-02 11:28:06,112: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:28:06,119: DEBUG - + declare -Ar args_array 2020-01-02 11:28:06,122: DEBUG - + local app 2020-01-02 11:28:06,124: DEBUG - + local key 2020-01-02 11:28:06,132: DEBUG - + local value 2020-01-02 11:28:06,134: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=apt_dependencies '--value=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:28:06,147: DEBUG - + set +x 2020-01-02 11:28:06,249: DEBUG - + ynh_app_setting set nextcloud apt_dependencies 'php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:28:06,251: DEBUG - + ACTION=set 2020-01-02 11:28:06,253: DEBUG - + APP=nextcloud 2020-01-02 11:28:06,255: DEBUG - + KEY=apt_dependencies 2020-01-02 11:28:06,256: DEBUG - + VALUE='php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:28:06,258: DEBUG - + python - 2020-01-02 11:28:07,774: DEBUG - + datadir=/home/yunohost.app/nextcloud/data 2020-01-02 11:28:07,877: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']' 2020-01-02 11:28:07,880: DEBUG - + ynh_script_progression '--message=Upgrading nextcloud...' --weight=3 2020-01-02 11:28:07,882: DEBUG - + set +x 2020-01-02 11:28:07,985: DEBUG - + set +x 2020-01-02 11:28:07,987: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-02 11:28:07,992: INFO - [############........] > Upgrading nextcloud... 2020-01-02 11:28:08,011: DEBUG - + set +x 2020-01-02 11:28:08,027: DEBUG - + echo '[############........] > Upgrading nextcloud...' 2020-01-02 11:28:08,033: DEBUG - + set -x 2020-01-02 11:28:08,051: DEBUG - + source upgrade.d/upgrade.last.sh 2020-01-02 11:28:08,064: DEBUG - ++ next_**********=15.0.13 2020-01-02 11:28:08,066: DEBUG - ++ nextcloud_source_sha256=ede96f2af9a69a067710a57984e23aac0d8cf491ff91c128920af2482ad87425 2020-01-02 11:28:08,069: DEBUG - + last_**********=15.0.13 2020-01-02 11:28:08,087: DEBUG - + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data 2020-01-02 11:28:14,217: DEBUG - + exec_occ -V 2020-01-02 11:28:14,219: DEBUG - + cd /var/www/nextcloud 2020-01-02 11:28:14,224: DEBUG - + exec_as nextcloud php occ --no-interaction --no-ansi -V 2020-01-02 11:28:14,226: DEBUG - + local USER=nextcloud 2020-01-02 11:28:14,228: DEBUG - + shift 1 2020-01-02 11:28:14,230: DEBUG - ++ whoami 2020-01-02 11:28:14,333: DEBUG - + [[ nextcloud = root ]] 2020-01-02 11:28:14,336: DEBUG - + sudo -u nextcloud php occ --no-interaction --no-ansi -V 2020-01-02 11:28:14,841: DEBUG - This ********** of Nextcloud is not compatible with > PHP 7.3.<br/>You are currently running 7.4.1.+ ynh_exit_properly 2020-01-02 11:28:14,843: DEBUG - + local exit_code=255 2020-01-02 11:28:14,845: DEBUG - + '[' 255 -eq 0 ']' 2020-01-02 11:28:14,846: DEBUG - + trap '' EXIT 2020-01-02 11:28:14,848: DEBUG - + set +eu 2020-01-02 11:28:14,850: DEBUG - + sleep 0.5 2020-01-02 11:28:15,354: DEBUG - + ynh_print_err '--message=!!\n nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-01-02 11:28:15,356: WARNING - [91m[1m[ERR][0m !! 2020-01-02 11:28:15,362: DEBUG - + local legacy_args=m 2020-01-02 11:28:15,364: WARNING - nextcloud's script has encountered an error. Its execution was cancelled. 2020-01-02 11:28:15,373: DEBUG - + args_array=([m]=message=) 2020-01-02 11:28:15,376: WARNING - !! 2020-01-02 11:28:15,384: DEBUG - + declare -Ar args_array 2020-01-02 11:28:15,387: DEBUG - + local message 2020-01-02 11:28:15,389: DEBUG - + ynh_handle_getopts_args '--message=!!\n nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-01-02 11:28:15,393: DEBUG - + set +x 2020-01-02 11:28:15,396: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-01-02 11:28:15,399: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!' 2020-01-02 11:28:15,402: DEBUG - + '[' api == cli ']' 2020-01-02 11:28:15,405: DEBUG - + type -t ynh_clean_setup 2020-01-02 11:28:15,407: DEBUG - + ynh_clean_setup 2020-01-02 11:28:15,413: WARNING - [91m[1m[ERR][0m Upgrade failed. 2020-01-02 11:28:15,419: DEBUG - + ynh_exec_warn_less ynh_secure_remove --file=/tmp/owncloud_post_migration.sh 2020-01-02 11:28:15,424: DEBUG - + eval ynh_secure_remove --file=/tmp/owncloud_post_migration.sh 2020-01-02 11:28:15,428: DEBUG - ++ ynh_secure_remove --file=/tmp/owncloud_post_migration.sh 2020-01-02 11:28:15,431: DEBUG - ++ local legacy_args=f 2020-01-02 11:28:15,434: DEBUG - ++ args_array=([f]=file=) 2020-01-02 11:28:15,436: INFO - /tmp/owncloud_post_migration.sh wasn't deleted because it doesn't exist. 2020-01-02 11:28:15,442: DEBUG - ++ declare -Ar args_array 2020-01-02 11:28:15,445: DEBUG - ++ local file 2020-01-02 11:28:15,448: DEBUG - ++ ynh_handle_getopts_args --file=/tmp/owncloud_post_migration.sh 2020-01-02 11:28:15,450: DEBUG - ++ set +x 2020-01-02 11:28:15,452: DEBUG - ++ local 'forbidden_**********= /var/www /home/yunohost.app' 2020-01-02 11:28:15,455: DEBUG - ++ '[' 1 -ge 2 ']' 2020-01-02 11:28:15,457: DEBUG - ++ [[ /var/www /home/yunohost.app =~ /tmp/owncloud_post_migration\.sh ]] 2020-01-02 11:28:15,459: DEBUG - ++ [[ /tmp/owncloud_post_migration.sh =~ ^/[[:alnum:]]+$ ]] 2020-01-02 11:28:15,462: DEBUG - ++ [[ h = \/ ]] 2020-01-02 11:28:15,464: DEBUG - ++ '[' -e /tmp/owncloud_post_migration.sh ']' 2020-01-02 11:28:15,466: DEBUG - ++ ynh_print_info '--message=/tmp/owncloud_post_migration.sh wasn'\''t deleted because it doesn'\''t exist.' 2020-01-02 11:28:15,468: DEBUG - ++ local legacy_args=m 2020-01-02 11:28:15,471: DEBUG - ++ args_array=([m]=message=) 2020-01-02 11:28:15,473: DEBUG - ++ declare -Ar args_array 2020-01-02 11:28:15,476: DEBUG - ++ local message 2020-01-02 11:28:15,478: DEBUG - ++ ynh_handle_getopts_args '--message=/tmp/owncloud_post_migration.sh wasn'\''t deleted because it doesn'\''t exist.' 2020-01-02 11:28:15,481: DEBUG - ++ set +x 2020-01-02 11:28:15,483: DEBUG - ++ echo '/tmp/owncloud_post_migration.sh wasn'\''t deleted because it doesn'\''t exist.' 2020-01-02 11:28:15,485: DEBUG - + ynh_restore_upgradebackup 2020-01-02 11:28:15,488: DEBUG - + ynh_print_err '--message=Upgrade failed.' 2020-01-02 11:28:15,490: DEBUG - + local legacy_args=m 2020-01-02 11:28:15,493: DEBUG - + args_array=([m]=message=) 2020-01-02 11:28:15,496: DEBUG - + declare -Ar args_array 2020-01-02 11:28:15,499: DEBUG - + local message 2020-01-02 11:28:15,501: DEBUG - + ynh_handle_getopts_args '--message=Upgrade failed.' 2020-01-02 11:28:15,504: DEBUG - + set +x 2020-01-02 11:28:15,506: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m Upgrade failed.' 2020-01-02 11:28:15,508: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m Upgrade failed.' 2020-01-02 11:28:15,511: DEBUG - + local app_bck=nextcloud 2020-01-02 11:28:15,513: DEBUG - + NO_BACKUP_UPGRADE=0 2020-01-02 11:28:15,516: DEBUG - + '[' 0 -eq 0 ']' 2020-01-02 11:28:15,518: DEBUG - + sudo yunohost backup list 2020-01-02 11:28:15,523: DEBUG - + grep -q nextcloud-pre-upgrade1 2020-01-02 11:28:18,142: DEBUG - + sudo yunohost app remove nextcloud 2020-01-02 11:28:20,356: DEBUG - Removing application nextcloud… 2020-01-02 11:28:55,906: DEBUG - [....................] > Loading installation settings... 2020-01-02 11:28:58,726: DEBUG - [++++++++++..........] > Removing dependencies... 2020-01-02 11:30:47,434: DEBUG - [##########++........] > Removing the MySQL database... 2020-01-02 11:31:11,956: DEBUG - [############+.......] > Removing app main directory... 2020-01-02 11:31:29,940: DEBUG - [#############+......] > Removing nginx web server configuration... 2020-01-02 11:31:31,449: DEBUG - [##############+.....] > Removing php-fpm configuration... 2020-01-02 11:31:34,531: DEBUG - /etc/php/7.0/fpm/conf.d/20-nextcloud.ini wasn't deleted because it doesn't exist. 2020-01-02 11:31:34,837: DEBUG - [###############.....] > Removing logrotate configuration... 2020-01-02 11:31:35,041: DEBUG - [###############++++.] > Removing fail2ban configuration... 2020-01-02 11:32:12,912: DEBUG - [###################.] > Removing the dedicated system user... 2020-01-02 11:32:16,137: DEBUG - [####################] > Removal of nextcloud completed 2020-01-02 11:32:16,139: DEBUG - nextcloud has been removed 2020-01-02 11:32:29,006: DEBUG - The SSOwat configuration has been generated 2020-01-02 11:32:29,310: DEBUG - + sudo yunohost backup restore nextcloud-pre-upgrade1 --apps nextcloud --force --debug 2020-01-02 11:32:30,922: DEBUG - 1106 loading actions map namespace 'yunohost' 2020-01-02 11:32:31,024: DEBUG - 1276 extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern'] 2020-01-02 11:32:31,026: DEBUG - 1278 initializing base actions map parser for cli 2020-01-02 11:32:31,029: DEBUG - 1283 registering new callback action 'yunohost.utils.packages.ynh_packages_**********' to ['-v', '--**********'] 2020-01-02 11:32:31,434: DEBUG - 1666 unable to load locale 'en' from '/usr/share/moulinette/locale' 2020-01-02 11:32:31,437: DEBUG - 1668 unable to load locale 'en' from '/usr/lib/moulinette/yunohost/locales' 2020-01-02 11:32:32,143: DEBUG - 2369 loading python module yunohost.backup took 0.686s 2020-01-02 11:32:32,146: DEBUG - 2371 processing action [9296.1]: yunohost.backup.restore with args={'force': True, 'apps': ['nextcloud'], 'name': 'nextcloud-pre-upgrade1', 'system': None} 2020-01-02 11:32:32,148: DEBUG - 2382 custom hook folder not found for action 'restore' in /etc/yunohost/hooks.d/ 2020-01-02 11:32:32,150: DEBUG - 2387 Preparing archive for restoration… 2020-01-02 11:32:32,152: DEBUG - 2398 Extracting needed files from the archive… 2020-01-02 11:37:46,887: DEBUG - 317077 restoring from backup 'nextcloud-pre-upgrade1' created on 2020-01-02 10:19:14 2020-01-02 11:37:46,904: DEBUG - 317157 Restoring application nextcloud… 2020-01-02 11:38:13,231: DEBUG - 343421 Running restore script of app 'nextcloud'… 2020-01-02 11:38:31,521: DEBUG - 361662 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpKuLXTv/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1 YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=cli YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmpkKIxP3/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoreOmaGJ7/restore" /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup nextcloud 7>&1'… 2020-01-02 11:38:31,699: DEBUG - 361855 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpKuLXTv/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1 YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=cli YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmpkKIxP3/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoreOmaGJ7/restore" /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup nextcloud 7>&1']' 2020-01-02 11:38:32,003: DEBUG - 362240 + source ../settings/scripts/_common.sh 2020-01-02 11:38:32,006: DEBUG - 362248 ++ pkg_dependencies='php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at' 2020-01-02 11:38:32,008: DEBUG - 362251 + source /usr/share/yunohost/helpers 2020-01-02 11:38:32,009: DEBUG - 362253 +++ run-parts --list /usr/share/yunohost/helpers.d 2020-01-02 11:38:32,116: DEBUG - 362357 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,119: DEBUG - 362360 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-01-02 11:38:32,123: DEBUG - 362362 ++ . /usr/share/yunohost/helpers.d/apt 2020-01-02 11:38:32,126: DEBUG - 362365 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,129: DEBUG - 362367 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-01-02 11:38:32,131: DEBUG - 362369 ++ . /usr/share/yunohost/helpers.d/backup 2020-01-02 11:38:32,133: DEBUG - 362372 +++ CAN_BIND=1 2020-01-02 11:38:32,136: DEBUG - 362381 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,138: DEBUG - 362385 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-01-02 11:38:32,140: DEBUG - 362388 ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-01-02 11:38:32,143: DEBUG - 362404 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,146: DEBUG - 362413 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-01-02 11:38:32,148: DEBUG - 362416 ++ . /usr/share/yunohost/helpers.d/getopts 2020-01-02 11:38:32,150: DEBUG - 362431 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,253: DEBUG - 362438 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-01-02 11:38:32,255: DEBUG - 362441 ++ . /usr/share/yunohost/helpers.d/logging 2020-01-02 11:38:32,257: DEBUG - 362444 +++ increment_progression=0 2020-01-02 11:38:32,259: DEBUG - 362446 +++ previous_weight=0 2020-01-02 11:38:32,261: DEBUG - 362449 +++ max_progression=-1 2020-01-02 11:38:32,263: DEBUG - 362458 +++ progress_scale=20 2020-01-02 11:38:32,280: DEBUG - 362460 +++ progress_string2='####################' 2020-01-02 11:38:32,282: DEBUG - 362464 +++ progress_string1=++++++++++++++++++++ 2020-01-02 11:38:32,284: DEBUG - 362468 +++ progress_string0=.................... 2020-01-02 11:38:32,286: DEBUG - 362471 ++++ date +%s 2020-01-02 11:38:32,288: DEBUG - 362474 +++ base_time=1577961512 2020-01-02 11:38:32,292: DEBUG - 362476 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,302: DEBUG - 362479 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-01-02 11:38:32,304: DEBUG - 362482 ++ . /usr/share/yunohost/helpers.d/logrotate 2020-01-02 11:38:32,316: DEBUG - 362486 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,319: DEBUG - 362489 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-01-02 11:38:32,321: DEBUG - 362492 ++ . /usr/share/yunohost/helpers.d/mysql 2020-01-02 11:38:32,324: DEBUG - 362495 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-01-02 11:38:32,328: DEBUG - 362498 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,331: DEBUG - 362501 ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-01-02 11:38:32,334: DEBUG - 362504 ++ . /usr/share/yunohost/helpers.d/network 2020-01-02 11:38:32,336: DEBUG - 362506 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,338: DEBUG - 362510 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-01-02 11:38:32,340: DEBUG - 362513 ++ . /usr/share/yunohost/helpers.d/nginx 2020-01-02 11:38:32,350: DEBUG - 362516 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,353: DEBUG - 362519 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-01-02 11:38:32,355: DEBUG - 362522 ++ . /usr/share/yunohost/helpers.d/nodejs 2020-01-02 11:38:32,358: DEBUG - 362525 +++ n_install_dir=/opt/node_n 2020-01-02 11:38:32,361: DEBUG - 362527 +++ node_**********_**********=/opt/node_n/n/**********s/node 2020-01-02 11:38:32,364: DEBUG - 362530 +++ export N_PREFIX=/opt/node_n 2020-01-02 11:38:32,375: DEBUG - 362534 +++ N_PREFIX=/opt/node_n 2020-01-02 11:38:32,380: DEBUG - 362536 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,382: DEBUG - 362539 ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-01-02 11:38:32,385: DEBUG - 362542 ++ . /usr/share/yunohost/helpers.d/php 2020-01-02 11:38:32,387: DEBUG - 362545 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,396: DEBUG - 362547 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-01-02 11:38:32,399: DEBUG - 362550 ++ . /usr/share/yunohost/helpers.d/postgresql 2020-01-02 11:38:32,401: DEBUG - 362553 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-01-02 11:38:32,405: DEBUG - 362558 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,408: DEBUG - 362560 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-01-02 11:38:32,411: DEBUG - 362564 ++ . /usr/share/yunohost/helpers.d/setting 2020-01-02 11:38:32,413: DEBUG - 362566 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,417: DEBUG - 362569 ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-01-02 11:38:32,419: DEBUG - 362572 ++ . /usr/share/yunohost/helpers.d/string 2020-01-02 11:38:32,422: DEBUG - 362575 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,424: DEBUG - 362578 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-01-02 11:38:32,427: DEBUG - 362581 ++ . /usr/share/yunohost/helpers.d/systemd 2020-01-02 11:38:32,430: DEBUG - 362584 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,432: DEBUG - 362587 ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-01-02 11:38:32,434: DEBUG - 362590 ++ . /usr/share/yunohost/helpers.d/user 2020-01-02 11:38:32,436: DEBUG - 362593 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-02 11:38:32,440: DEBUG - 362595 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-01-02 11:38:32,442: DEBUG - 362598 ++ . /usr/share/yunohost/helpers.d/utils 2020-01-02 11:38:32,444: DEBUG - 362702 + ynh_abort_if_errors 2020-01-02 11:38:32,446: DEBUG - 362705 + set -eu 2020-01-02 11:38:32,455: DEBUG - 362709 + trap ynh_exit_properly EXIT 2020-01-02 11:38:32,458: DEBUG - 362715 + ynh_script_progression '--message=Loading settings...' 2020-01-02 11:38:32,463: DEBUG - 362717 + set +x 2020-01-02 11:38:32,466: DEBUG - 362725 + set +x 2020-01-02 11:38:32,675: DEBUG - 362929 + echo '! Helper used in legacy mode !' 2020-01-02 11:38:32,677: DEBUG - 362931 [....................] > Loading settings... 2020-01-02 11:38:32,679: DEBUG - 362934 + set +x 2020-01-02 11:38:32,681: DEBUG - 362937 + echo '[....................] > Loading settings...' 2020-01-02 11:38:32,683: DEBUG - 362941 + set -x 2020-01-02 11:38:32,685: DEBUG - 362944 + app=nextcloud 2020-01-02 11:38:32,687: DEBUG - 362947 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:38:32,695: DEBUG - 362951 ++ local legacy_args=ak 2020-01-02 11:38:32,698: DEBUG - 362954 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:38:32,701: DEBUG - 362957 ++ declare -Ar args_array 2020-01-02 11:38:32,703: DEBUG - 362960 ++ local app 2020-01-02 11:38:32,706: DEBUG - 362963 ++ local key 2020-01-02 11:38:32,709: DEBUG - 362965 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:38:32,717: DEBUG - 362969 ++ set +x 2020-01-02 11:38:32,820: DEBUG - 363072 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:38:32,822: DEBUG - 363074 ++ ACTION=get 2020-01-02 11:38:32,823: DEBUG - 363077 ++ APP=nextcloud 2020-01-02 11:38:32,825: DEBUG - 363080 ++ KEY=********** 2020-01-02 11:38:32,830: DEBUG - 363083 ++ VALUE= 2020-01-02 11:38:32,832: DEBUG - 363086 ++ python - 2020-01-02 11:38:34,040: DEBUG - 364295 + **********=didiercl.me 2020-01-02 11:38:34,043: DEBUG - 364297 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:38:34,046: DEBUG - 364299 ++ local legacy_args=ak 2020-01-02 11:38:34,048: DEBUG - 364302 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:38:34,051: DEBUG - 364305 ++ declare -Ar args_array 2020-01-02 11:38:34,053: DEBUG - 364307 ++ local app 2020-01-02 11:38:34,066: DEBUG - 364309 ++ local key 2020-01-02 11:38:34,068: DEBUG - 364312 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:38:34,070: DEBUG - 364314 ++ set +x 2020-01-02 11:38:34,072: DEBUG - 364318 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:38:34,075: DEBUG - 364320 ++ ACTION=get 2020-01-02 11:38:34,079: DEBUG - 364338 ++ APP=nextcloud 2020-01-02 11:38:34,081: DEBUG - 364340 ++ KEY=********** 2020-01-02 11:38:34,083: DEBUG - 364344 ++ VALUE= 2020-01-02 11:38:34,086: DEBUG - 364346 ++ python - 2020-01-02 11:38:34,993: DEBUG - 365253 + **********_url=/nextcloud 2020-01-02 11:38:34,995: DEBUG - 365256 ++ ynh_app_setting_get --app=nextcloud --key=final_********** 2020-01-02 11:38:34,997: DEBUG - 365258 ++ local legacy_args=ak 2020-01-02 11:38:35,010: DEBUG - 365261 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:38:35,012: DEBUG - 365263 ++ declare -Ar args_array 2020-01-02 11:38:35,015: DEBUG - 365266 ++ local app 2020-01-02 11:38:35,017: DEBUG - 365268 ++ local key 2020-01-02 11:38:35,025: DEBUG - 365271 ++ ynh_handle_getopts_args --app=nextcloud --key=final_********** 2020-01-02 11:38:35,027: DEBUG - 365273 ++ set +x 2020-01-02 11:38:35,029: DEBUG - 365283 ++ ynh_app_setting get nextcloud final_********** 2020-01-02 11:38:35,035: DEBUG - 365286 ++ ACTION=get 2020-01-02 11:38:35,038: DEBUG - 365288 ++ APP=nextcloud 2020-01-02 11:38:35,040: DEBUG - 365290 ++ KEY=final_********** 2020-01-02 11:38:35,042: DEBUG - 365303 ++ VALUE= 2020-01-02 11:38:35,045: DEBUG - 365305 ++ python - 2020-01-02 11:38:35,852: DEBUG - 366112 + final_**********=/var/www/nextcloud 2020-01-02 11:38:35,855: DEBUG - 366115 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:38:35,857: DEBUG - 366119 ++ local legacy_args=ak 2020-01-02 11:38:35,863: DEBUG - 366121 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:38:35,866: DEBUG - 366125 ++ declare -Ar args_array 2020-01-02 11:38:35,868: DEBUG - 366127 ++ local app 2020-01-02 11:38:35,871: DEBUG - 366130 ++ local key 2020-01-02 11:38:35,874: DEBUG - 366132 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:38:35,876: DEBUG - 366143 ++ set +x 2020-01-02 11:38:35,979: DEBUG - 366247 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:38:35,982: DEBUG - 366249 ++ ACTION=get 2020-01-02 11:38:35,984: DEBUG - 366251 ++ APP=nextcloud 2020-01-02 11:38:35,988: DEBUG - 366254 ++ KEY=********** 2020-01-02 11:38:35,992: DEBUG - 366256 ++ VALUE= 2020-01-02 11:38:35,996: DEBUG - 366259 ++ python - 2020-01-02 11:38:36,804: DEBUG - 367065 + **********=nextcloud 2020-01-02 11:38:37,059: DEBUG - 367244 + ynh_script_progression '--message=Validating restoration parameters...' --weight=4 2020-01-02 11:38:37,062: DEBUG - 367246 + set +x 2020-01-02 11:38:37,063: DEBUG - 367249 + set +x 2020-01-02 11:38:37,065: DEBUG - 367252 + echo '! Helper used in legacy mode !' 2020-01-02 11:38:37,067: DEBUG - 367254 + set +x 2020-01-02 11:38:37,069: DEBUG - 367257 + echo '[+...................] > Validating restoration parameters...' 2020-01-02 11:38:37,071: DEBUG - 367260 + set -x 2020-01-02 11:38:37,072: DEBUG - 367262 + ynh_web**********_available --**********=didiercl.me --**********_url=/nextcloud 2020-01-02 11:38:37,074: DEBUG - 367265 + local legacy_args=dp 2020-01-02 11:38:37,076: DEBUG - 367267 + args_array=([d]=**********= [p]=**********_url=) 2020-01-02 11:38:37,077: DEBUG - 367270 + declare -Ar args_array 2020-01-02 11:38:37,079: DEBUG - 367273 + local ********** 2020-01-02 11:38:37,080: DEBUG - 367276 + local **********_url 2020-01-02 11:38:37,082: DEBUG - 367278 + ynh_handle_getopts_args --**********=didiercl.me --**********_url=/nextcloud 2020-01-02 11:38:37,083: DEBUG - 367281 + set +x 2020-01-02 11:38:37,186: DEBUG - 367385 + sudo yunohost ********** url-available didiercl.me /nextcloud 2020-01-02 11:38:37,188: DEBUG - 367387 [+...................] > Validating restoration parameters... 2020-01-02 11:38:41,916: DEBUG - 372110 False 2020-01-02 11:38:42,019: DEBUG - 372279 + test '!' -d /var/www/nextcloud 2020-01-02 11:38:42,022: DEBUG - 372282 + ynh_restore_file --origin_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,024: DEBUG - 372285 + local legacy_args=odm 2020-01-02 11:38:42,026: DEBUG - 372287 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:38:42,029: DEBUG - 372289 + declare -Ar args_array 2020-01-02 11:38:42,032: DEBUG - 372291 + local origin_********** 2020-01-02 11:38:42,034: DEBUG - 372294 + local archive_********** 2020-01-02 11:38:42,037: DEBUG - 372296 + local dest_********** 2020-01-02 11:38:42,039: DEBUG - 372299 + local not_mandatory 2020-01-02 11:38:42,042: DEBUG - 372302 + ynh_handle_getopts_args --origin_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,043: DEBUG - 372318 + set +x 2020-01-02 11:38:42,046: DEBUG - 372323 + local origin_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,049: DEBUG - 372326 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,152: DEBUG - 372333 + local dest_**********=/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,154: DEBUG - 372336 + local not_mandatory=0 2020-01-02 11:38:42,157: DEBUG - 372339 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf ']' 2020-01-02 11:38:42,160: DEBUG - 372343 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf ']' 2020-01-02 11:38:42,163: DEBUG - 372346 + [[ -e /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf ]] 2020-01-02 11:38:42,165: DEBUG - 372348 ++ dirname /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,168: DEBUG - 372351 + mkdir -p /etc/nginx/conf.d/didiercl.me.d 2020-01-02 11:38:42,171: DEBUG - 372353 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:38:42,274: DEBUG - 372457 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/nginx/conf.d/didiercl.me.d/nextcloud.conf /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:42,276: DEBUG - 372459 + is_url_handled --url=https://didiercl.me/.well-known/caldav 2020-01-02 11:38:42,278: DEBUG - 372461 + args_array=([u]=url=) 2020-01-02 11:38:42,280: DEBUG - 372465 + declare -Ar args_array 2020-01-02 11:38:42,282: DEBUG - 372470 + local url 2020-01-02 11:38:42,285: DEBUG - 372472 + ynh_handle_getopts_args --url=https://didiercl.me/.well-known/caldav 2020-01-02 11:38:42,287: DEBUG - 372476 + set +x 2020-01-02 11:38:42,290: DEBUG - 372479 ++ curl --insecure --silent --output /dev/null --write-out '%{http_code};%{redirect_url}' https://didiercl.me/.well-known/caldav 2020-01-02 11:38:42,995: DEBUG - 373185 + local 'curl_output=301;https://didiercl.me/baikal/cal.php' 2020-01-02 11:38:42,997: WARNING - 373188 [93m[1m[WARN][0m Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book. 2020-01-02 11:38:43,017: DEBUG - 373190 + local http_code=301 2020-01-02 11:38:43,020: DEBUG - 373192 + local redirection=https://didiercl.me/baikal/cal.php 2020-01-02 11:38:43,023: DEBUG - 373195 + '[' 301 = 404 ']' 2020-01-02 11:38:43,025: DEBUG - 373197 + [[ https://didiercl.me/baikal/cal.php =~ /yunohost/********** ]] 2020-01-02 11:38:43,028: DEBUG - 373200 + [[ https://didiercl.me/baikal/cal.php =~ /yunohost/sso ]] 2020-01-02 11:38:43,033: DEBUG - 373207 + ynh_print_warn '--message=Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:38:43,036: DEBUG - 373211 + local legacy_args=m 2020-01-02 11:38:43,038: DEBUG - 373216 + args_array=([m]=message=) 2020-01-02 11:38:43,041: DEBUG - 373225 + declare -Ar args_array 2020-01-02 11:38:43,043: DEBUG - 373230 + local message 2020-01-02 11:38:43,050: DEBUG - 373236 + ynh_handle_getopts_args '--message=Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:38:43,053: DEBUG - 373242 + set +x 2020-01-02 11:38:43,056: DEBUG - 373245 + ynh_print_log '\e[93m\e[1m[WARN]\e[0m Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:38:43,059: DEBUG - 373249 + echo -e '\e[93m\e[1m[WARN]\e[0m Another app already uses the ********** didiercl.me to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.' 2020-01-02 11:38:43,062: DEBUG - 373253 + sed --in-place --regexp-extended '/^location = \/\.well\-known\/(caldav|carddav) \{/,/\}/d' /etc/nginx/conf.d/didiercl.me.d/nextcloud.conf 2020-01-02 11:38:43,065: DEBUG - 373257 + ynh_script_progression '--message=Restoring the app main directory...' 2020-01-02 11:38:43,067: DEBUG - 373260 + set +x 2020-01-02 11:38:43,069: DEBUG - 373264 + set +x 2020-01-02 11:38:43,172: DEBUG - 373367 + echo '! Helper used in legacy mode !' 2020-01-02 11:38:43,175: DEBUG - 373370 + set +x 2020-01-02 11:38:43,178: DEBUG - 373373 + echo '[#...................] > Restoring the app main directory...' 2020-01-02 11:38:43,184: DEBUG - 373377 + set -x 2020-01-02 11:38:43,193: DEBUG - 373381 + ynh_restore_file --origin_**********=/var/www/nextcloud 2020-01-02 11:38:43,196: DEBUG - 373384 + local legacy_args=odm 2020-01-02 11:38:43,198: DEBUG - 373389 [#...................] > Restoring the app main directory... 2020-01-02 11:38:43,201: DEBUG - 373392 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:38:43,203: DEBUG - 373395 + declare -Ar args_array 2020-01-02 11:38:43,207: DEBUG - 373398 + local origin_********** 2020-01-02 11:38:43,209: DEBUG - 373401 + local archive_********** 2020-01-02 11:38:43,212: DEBUG - 373405 + local dest_********** 2020-01-02 11:38:43,214: DEBUG - 373409 + local not_mandatory 2020-01-02 11:38:43,217: DEBUG - 373412 + ynh_handle_getopts_args --origin_**********=/var/www/nextcloud 2020-01-02 11:38:43,220: DEBUG - 373415 + set +x 2020-01-02 11:38:43,223: DEBUG - 373418 + local origin_**********=/var/www/nextcloud 2020-01-02 11:38:43,225: DEBUG - 373421 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www/nextcloud 2020-01-02 11:38:43,228: DEBUG - 373426 + local dest_**********=/var/www/nextcloud 2020-01-02 11:38:43,231: DEBUG - 373429 + local not_mandatory=0 2020-01-02 11:38:43,233: DEBUG - 373432 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www/nextcloud ']' 2020-01-02 11:38:43,236: DEBUG - 373439 + [[ -e /var/www/nextcloud ]] 2020-01-02 11:38:43,238: DEBUG - 373443 ++ dirname /var/www/nextcloud 2020-01-02 11:38:43,241: DEBUG - 373446 + mkdir -p /var/www 2020-01-02 11:38:43,244: DEBUG - 373450 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:38:43,246: DEBUG - 373453 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www/nextcloud /var/www/nextcloud 2020-01-02 11:38:43,249: DEBUG - 373464 + ynh_script_progression '--message=Restoring the MySQL database...' --weight=9 2020-01-02 11:38:43,251: DEBUG - 373470 + set +x 2020-01-02 11:38:43,355: DEBUG - 373577 + set +x 2020-01-02 11:38:43,358: DEBUG - 373581 + echo '! Helper used in legacy mode !' 2020-01-02 11:38:43,361: DEBUG - 373590 + set +x 2020-01-02 11:38:43,363: DEBUG - 373594 + echo '[#++.................] > Restoring the MySQL database...' 2020-01-02 11:38:43,366: DEBUG - 373597 + set -x 2020-01-02 11:38:43,379: DEBUG - 373605 ++ ynh_app_setting_get --app=nextcloud --key=********** 2020-01-02 11:38:43,382: DEBUG - 373609 ++ local legacy_args=ak 2020-01-02 11:38:43,384: DEBUG - 373612 ++ args_array=([a]=app= [k]=key=) 2020-01-02 11:38:43,397: DEBUG - 373615 ++ declare -Ar args_array 2020-01-02 11:38:43,399: DEBUG - 373620 ++ local app 2020-01-02 11:38:43,401: DEBUG - 373623 ++ local key 2020-01-02 11:38:43,403: DEBUG - 373627 ++ ynh_handle_getopts_args --app=nextcloud --key=********** 2020-01-02 11:38:43,406: DEBUG - 373631 ++ set +x 2020-01-02 11:38:43,409: DEBUG - 373634 ++ ynh_app_setting get nextcloud ********** 2020-01-02 11:38:43,411: DEBUG - 373637 ++ ACTION=get 2020-01-02 11:38:43,413: DEBUG - 373654 [#++.................] > Restoring the MySQL database... 2020-01-02 11:38:43,416: DEBUG - 373660 ++ APP=nextcloud 2020-01-02 11:38:43,418: DEBUG - 373670 ++ KEY=********** 2020-01-02 11:38:43,421: DEBUG - 373672 ++ VALUE= 2020-01-02 11:38:43,423: DEBUG - 373675 ++ python - 2020-01-02 11:38:44,230: DEBUG - 374484 + db_pwd=********** 2020-01-02 11:38:44,233: DEBUG - 374486 + ynh_mysql_setup_db --db_user=nextcloud --**********=nextcloud --db_pwd=********** 2020-01-02 11:38:44,236: DEBUG - 374489 + local legacy_args=unp 2020-01-02 11:38:44,238: DEBUG - 374492 + args_array=([u]=db_user= [n]=**********= [p]=db_pwd=) 2020-01-02 11:38:44,241: DEBUG - 374497 + declare -Ar args_array 2020-01-02 11:38:44,243: DEBUG - 374500 + local db_user 2020-01-02 11:38:44,254: DEBUG - 374505 + local ********** 2020-01-02 11:38:44,256: DEBUG - 374510 + db_pwd= 2020-01-02 11:38:44,259: DEBUG - 374529 + ynh_handle_getopts_args --db_user=nextcloud --**********=nextcloud --db_pwd=********** 2020-01-02 11:38:44,262: DEBUG - 374532 + set +x 2020-01-02 11:38:44,365: DEBUG - 374636 ++ ynh_string_random 2020-01-02 11:38:44,367: DEBUG - 374639 ++ local legacy_args=l 2020-01-02 11:38:44,370: DEBUG - 374641 ++ args_array=([l]=length=) 2020-01-02 11:38:44,372: DEBUG - 374645 ++ declare -Ar args_array 2020-01-02 11:38:44,475: DEBUG - 374658 ++ local length 2020-01-02 11:38:44,477: DEBUG - 374661 ++ ynh_handle_getopts_args 2020-01-02 11:38:44,480: DEBUG - 374664 ++ set +x 2020-01-02 11:38:44,482: DEBUG - 374667 ++ length=24 2020-01-02 11:38:44,492: DEBUG - 374670 ++ dd if=/dev/urandom bs=1 count=1000 2020-01-02 11:38:44,497: DEBUG - 374673 ++ tr -c -d A-Za-z0-9 2020-01-02 11:38:44,499: DEBUG - 374677 ++ sed -n 's/\(.\{24\}\).*/\1/p' 2020-01-02 11:38:44,502: DEBUG - 374680 + local new_db_pwd=********** 2020-01-02 11:38:44,504: DEBUG - 374683 + db_pwd=********** 2020-01-02 11:38:44,509: DEBUG - 374686 + ynh_mysql_create_db nextcloud nextcloud ********** 2020-01-02 11:38:44,512: DEBUG - 374689 + local db=nextcloud 2020-01-02 11:38:44,515: DEBUG - 374691 + local 'sql=CREATE DATABASE nextcloud;' 2020-01-02 11:38:44,517: DEBUG - 374694 + [[ 3 -gt 1 ]] 2020-01-02 11:38:44,523: DEBUG - 374698 + sql+=' GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\''' 2020-01-02 11:38:44,526: DEBUG - 374701 + [[ -n ********** ]] 2020-01-02 11:38:44,528: DEBUG - 374703 + sql+=' IDENTIFIED BY '\''**********'\''' 2020-01-02 11:38:44,531: DEBUG - 374706 + sql+=' WITH GRANT OPTION;' 2020-01-02 11:38:44,533: DEBUG - 374709 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2020-01-02 11:38:44,535: DEBUG - 374713 + local legacy_args=sd 2020-01-02 11:38:44,538: DEBUG - 374716 + args_array=([s]=sql= [d]=database=) 2020-01-02 11:38:44,541: DEBUG - 374725 + declare -Ar args_array 2020-01-02 11:38:44,543: DEBUG - 374731 + local sql 2020-01-02 11:38:44,550: DEBUG - 374734 + local database 2020-01-02 11:38:44,553: DEBUG - 374737 + ynh_handle_getopts_args '--sql=CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2020-01-02 11:38:44,556: DEBUG - 374741 + set +x 2020-01-02 11:38:44,558: DEBUG - 374771 + database= 2020-01-02 11:38:44,565: DEBUG - 374778 ++ sudo cat /etc/yunohost/mysql 2020-01-02 11:38:44,668: DEBUG - 374890 + ynh_mysql_connect_as --user=root --password=********** --database= 2020-01-02 11:38:44,670: DEBUG - 374893 + local legacy_args=upd 2020-01-02 11:38:44,672: DEBUG - 374896 + args_array=([u]=user= [p]=password= [d]=database=) 2020-01-02 11:38:44,673: DEBUG - 374900 + declare -Ar args_array 2020-01-02 11:38:44,676: DEBUG - 374904 + local user 2020-01-02 11:38:44,678: DEBUG - 374907 + local password 2020-01-02 11:38:44,681: DEBUG - 374911 + local database 2020-01-02 11:38:44,683: DEBUG - 374914 + ynh_handle_getopts_args --user=root --password=********** --database= 2020-01-02 11:38:44,686: DEBUG - 374918 + set +x 2020-01-02 11:38:44,689: DEBUG - 374922 + database= 2020-01-02 11:38:44,691: DEBUG - 374925 + mysql -u root --password=********** -B '' 2020-01-02 11:38:45,095: DEBUG - 375329 + ynh_app_setting_set --app=nextcloud --key=********** --value=********** 2020-01-02 11:38:45,098: DEBUG - 375334 + local legacy_args=akv 2020-01-02 11:38:45,101: DEBUG - 375338 + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:38:45,103: DEBUG - 375341 + declare -Ar args_array 2020-01-02 11:38:45,105: DEBUG - 375345 + local app 2020-01-02 11:38:45,108: DEBUG - 375347 + local key 2020-01-02 11:38:45,115: DEBUG - 375351 + local value 2020-01-02 11:38:45,117: DEBUG - 375354 + ynh_handle_getopts_args --app=nextcloud --key=********** --value=********** 2020-01-02 11:38:45,120: DEBUG - 375357 + set +x 2020-01-02 11:38:45,122: DEBUG - 375364 + ynh_app_setting set nextcloud ********** ********** 2020-01-02 11:38:45,125: DEBUG - 375367 + ACTION=set 2020-01-02 11:38:45,127: DEBUG - 375370 + APP=nextcloud 2020-01-02 11:38:45,129: DEBUG - 375373 + KEY=********** 2020-01-02 11:38:45,132: DEBUG - 375376 + VALUE=********** 2020-01-02 11:38:45,134: DEBUG - 375395 + python - 2020-01-02 11:38:46,041: DEBUG - 376303 + ynh_mysql_connect_as --user=nextcloud --password=********** --database=nextcloud 2020-01-02 11:38:46,043: DEBUG - 376305 + local legacy_args=upd 2020-01-02 11:38:46,045: DEBUG - 376308 + args_array=([u]=user= [p]=password= [d]=database=) 2020-01-02 11:38:46,051: DEBUG - 376312 + declare -Ar args_array 2020-01-02 11:38:46,053: DEBUG - 376315 + local user 2020-01-02 11:38:46,056: DEBUG - 376318 + local password 2020-01-02 11:38:46,060: DEBUG - 376321 + local database 2020-01-02 11:38:46,063: DEBUG - 376332 + ynh_handle_getopts_args --user=nextcloud --password=********** --database=nextcloud 2020-01-02 11:38:46,066: DEBUG - 376338 + set +x 2020-01-02 11:38:46,069: DEBUG - 376342 + database=nextcloud 2020-01-02 11:38:46,071: DEBUG - 376345 + mysql -u nextcloud --password=********** -B nextcloud 2020-01-02 11:40:39,044: DEBUG - 489301 + ynh_script_progression '--message=Recreating the dedicated system user...' --weight=3 2020-01-02 11:40:39,260: DEBUG - 489450 + set +x 2020-01-02 11:40:39,262: DEBUG - 489540 + set +x 2020-01-02 11:40:39,467: DEBUG - 489744 + echo '! Helper used in legacy mode !' 2020-01-02 11:40:39,486: DEBUG - 489766 + set +x 2020-01-02 11:40:39,588: DEBUG - 489772 + echo '[###.................] > Recreating the dedicated system user...' 2020-01-02 11:40:39,591: DEBUG - 489775 + set -x 2020-01-02 11:40:39,592: DEBUG - 489780 + ynh_system_user_create --username=nextcloud 2020-01-02 11:40:39,594: DEBUG - 489782 + local legacy_args=uhs 2020-01-02 11:40:39,596: DEBUG - 489785 + args_array=([u]=username= [h]=home_dir= [s]=use_shell) 2020-01-02 11:40:39,598: DEBUG - 489788 + declare -Ar args_array 2020-01-02 11:40:39,600: DEBUG - 489791 + local username 2020-01-02 11:40:39,602: DEBUG - 489793 + local home_dir 2020-01-02 11:40:39,603: DEBUG - 489798 + local use_shell 2020-01-02 11:40:39,605: DEBUG - 489800 + ynh_handle_getopts_args --username=nextcloud 2020-01-02 11:40:39,607: DEBUG - 489805 + set +x 2020-01-02 11:40:39,608: DEBUG - 489808 + use_shell=0 2020-01-02 11:40:39,610: DEBUG - 489811 [###.................] > Recreating the dedicated system user... 2020-01-02 11:40:39,612: DEBUG - 489814 + home_dir= 2020-01-02 11:40:39,613: DEBUG - 489817 + ynh_system_user_exists nextcloud 2020-01-02 11:40:39,615: DEBUG - 489820 + local legacy_args=u 2020-01-02 11:40:39,616: DEBUG - 489823 + args_array=([u]=username=) 2020-01-02 11:40:39,618: DEBUG - 489827 + declare -Ar args_array 2020-01-02 11:40:39,620: DEBUG - 489830 + local username 2020-01-02 11:40:39,623: DEBUG - 489834 + ynh_handle_getopts_args nextcloud 2020-01-02 11:40:39,625: DEBUG - 489837 + set +x 2020-01-02 11:40:39,626: DEBUG - 489839 + echo '! Helper used in legacy mode !' 2020-01-02 11:40:39,628: DEBUG - 489841 + set +x 2020-01-02 11:40:39,630: DEBUG - 489842 + getent passwd nextcloud 2020-01-02 11:40:39,833: DEBUG - 490046 + '[' -n '' ']' 2020-01-02 11:40:39,835: DEBUG - 490107 + local **********_dir=--no-create-home 2020-01-02 11:40:39,837: DEBUG - 490110 + '[' 0 -eq 1 ']' 2020-01-02 11:40:39,838: DEBUG - 490112 + local 'shell=--shell /usr/sbin/nologin' 2020-01-02 11:40:39,841: DEBUG - 490116 + useradd --no-create-home --system --user-group nextcloud --shell /usr/sbin/nologin 2020-01-02 11:40:52,705: DEBUG - 502979 + ynh_restore_file --origin_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,707: DEBUG - 502982 + local legacy_args=odm 2020-01-02 11:40:52,715: DEBUG - 502985 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:40:52,717: DEBUG - 502992 + declare -Ar args_array 2020-01-02 11:40:52,720: DEBUG - 502996 + local origin_********** 2020-01-02 11:40:52,722: DEBUG - 503000 + local archive_********** 2020-01-02 11:40:52,724: DEBUG - 503006 + local dest_********** 2020-01-02 11:40:52,731: DEBUG - 503008 + local not_mandatory 2020-01-02 11:40:52,733: DEBUG - 503011 + ynh_handle_getopts_args --origin_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,735: DEBUG - 503014 + set +x 2020-01-02 11:40:52,737: DEBUG - 503017 + local origin_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,739: DEBUG - 503020 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,745: DEBUG - 503023 + local dest_**********=/etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,747: DEBUG - 503026 + local not_mandatory=0 2020-01-02 11:40:52,753: DEBUG - 503029 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf ']' 2020-01-02 11:40:52,755: DEBUG - 503032 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf ']' 2020-01-02 11:40:52,757: DEBUG - 503036 + [[ -e /etc/php/7.0/fpm/pool.d/nextcloud.conf ]] 2020-01-02 11:40:52,760: DEBUG - 503039 ++ dirname /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,863: DEBUG - 503045 + mkdir -p /etc/php/7.0/fpm/pool.d 2020-01-02 11:40:52,866: DEBUG - 503048 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:40:52,868: DEBUG - 503051 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf /etc/php/7.0/fpm/pool.d/nextcloud.conf 2020-01-02 11:40:52,873: DEBUG - 503055 + ynh_script_progression '--message=Reinstalling dependencies...' --weight=60 2020-01-02 11:40:52,876: DEBUG - 503059 + set +x 2020-01-02 11:40:52,979: DEBUG - 503162 + set +x 2020-01-02 11:40:52,981: DEBUG - 503165 + echo '! Helper used in legacy mode !' 2020-01-02 11:40:52,984: DEBUG - 503168 + set +x 2020-01-02 11:40:52,986: DEBUG - 503171 + echo '[###+++++++++++++....] > Reinstalling dependencies...' 2020-01-02 11:40:52,988: DEBUG - 503177 + set -x 2020-01-02 11:40:52,990: DEBUG - 503185 + ynh_install_app_dependencies php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at 2020-01-02 11:40:52,992: DEBUG - 503189 + local 'dependencies=php-gd php-json php-intl php-mcrypt php-curl php-apcu php-redis php-ldap php-imagick php-zip php-mbstring php-xml imagemagick acl tar smbclient at' 2020-01-02 11:40:52,994: DEBUG - 503194 + local 'dependencies=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:40:52,998: DEBUG - 503205 [###+++++++++++++....] > Reinstalling dependencies... 2020-01-02 11:40:53,003: DEBUG - 503208 + local 'dependencies=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:40:53,005: DEBUG - 503210 + local manifest_**********=../manifest.json 2020-01-02 11:40:53,007: DEBUG - 503212 + '[' '!' -e ../manifest.json ']' 2020-01-02 11:40:53,010: DEBUG - 503215 + manifest_**********=../settings/manifest.json 2020-01-02 11:40:53,012: DEBUG - 503218 ++ cut -d '"' -f 4 2020-01-02 11:40:53,014: DEBUG - 503221 ++ grep '\"**********\": ' ../settings/manifest.json 2020-01-02 11:40:53,016: DEBUG - 503223 + local **********=********** 2020-01-02 11:40:53,018: DEBUG - 503226 + '[' 12 -eq 0 ']' 2020-01-02 11:40:53,021: DEBUG - 503228 + local dep_app=nextcloud 2020-01-02 11:40:53,022: DEBUG - 503230 + grep -q php 2020-01-02 11:40:53,024: DEBUG - 503232 + echo php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at 2020-01-02 11:40:53,027: DEBUG - 503235 + grep -q -v 7.0.33-0+deb9 2020-01-02 11:40:53,029: DEBUG - 503237 + dpkg --list 2020-01-02 11:40:53,031: DEBUG - 503239 + grep php7.0 2020-01-02 11:40:53,335: DEBUG - 503543 + grep -nrq sury /etc/apt/sources.list /etc/apt/sources.list.d 2020-01-02 11:40:53,338: DEBUG - 503546 + cat 2020-01-02 11:40:53,341: DEBUG - 503549 + ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control 2020-01-02 11:40:53,343: DEBUG - 503551 + local controlfile=/tmp/nextcloud-ynh-deps.control 2020-01-02 11:40:53,346: DEBUG - 503554 ++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control 2020-01-02 11:40:53,348: DEBUG - 503559 ++ cut '-d ' -f 2 2020-01-02 11:40:53,350: DEBUG - 503562 + local pkgname=nextcloud-ynh-deps 2020-01-02 11:40:53,453: DEBUG - 503665 ++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control 2020-01-02 11:40:53,455: DEBUG - 503668 ++ cut '-d ' -f 2 2020-01-02 11:40:53,467: DEBUG - 503670 + local pkg**********=********** 2020-01-02 11:40:53,477: DEBUG - 503672 + [[ -z nextcloud-ynh-deps ]] 2020-01-02 11:40:53,485: DEBUG - 503675 + [[ -z ********** ]] 2020-01-02 11:40:53,493: DEBUG - 503677 + ynh_package_update 2020-01-02 11:40:53,496: DEBUG - 503679 + ynh_apt update 2020-01-02 11:40:53,498: DEBUG - 503682 + ynh_wait_dpkg_free 2020-01-02 11:40:53,500: DEBUG - 503684 + local try 2020-01-02 11:40:53,503: DEBUG - 503686 ++ seq 1 17 2020-01-02 11:40:53,508: DEBUG - 503689 + for try in `seq 1 17` 2020-01-02 11:40:53,513: DEBUG - 503691 + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:40:54,722: DEBUG - 505000 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:40:54,725: DEBUG - 505002 ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:40:54,828: DEBUG - 505012 + read dpkg_file 2020-01-02 11:40:54,830: DEBUG - 505015 + echo '' 2020-01-02 11:40:54,832: DEBUG - 505020 + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:40:54,935: DEBUG - 505124 + read dpkg_file 2020-01-02 11:40:54,937: DEBUG - 505126 + return 0 2020-01-02 11:40:54,940: DEBUG - 505128 + DEBIAN_FRONTEND=noninteractive 2020-01-02 11:40:54,942: DEBUG - 505131 + apt-get -y update 2020-01-02 11:40:56,050: DEBUG - 506239 Hit:1 http://security.debian.org stretch/updates InRelease 2020-01-02 11:40:56,052: DEBUG - 506242 Ign:2 http://ftp.fr.debian.org/debian stretch InRelease 2020-01-02 11:40:56,055: DEBUG - 506244 Hit:3 http://forge.yunohost.org/debian stretch InRelease 2020-01-02 11:40:56,158: DEBUG - 506347 Hit:4 http://ftp.fr.debian.org/debian stretch Release 2020-01-02 11:40:57,569: DEBUG - 507763 Hit:5 https://packages.sury.org/php stretch InRelease 2020-01-02 11:40:58,286: DEBUG - 508468 Hit:6 https://packages.grafana.com/oss/deb stable InRelease 2020-01-02 11:41:18,188: DEBUG - 528369 Reading package lists... 2020-01-02 11:41:18,728: DEBUG - 528910 ++ mktemp -d 2020-01-02 11:41:18,931: DEBUG - 529113 + local TMPDIR=/tmp/tmp.AJqiS7ytv2 2020-01-02 11:41:18,933: DEBUG - 529115 + echo 10 2020-01-02 11:41:19,135: DEBUG - 529318 + ynh_wait_dpkg_free 2020-01-02 11:41:19,137: DEBUG - 529321 + local try 2020-01-02 11:41:19,139: DEBUG - 529324 ++ seq 1 17 2020-01-02 11:41:19,141: DEBUG - 529330 + for try in `seq 1 17` 2020-01-02 11:41:19,144: DEBUG - 529332 + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:41:20,554: DEBUG - 530741 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:41:20,556: DEBUG - 530743 ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:41:20,659: DEBUG - 530845 + read dpkg_file 2020-01-02 11:41:20,661: DEBUG - 530848 + echo '' 2020-01-02 11:41:20,664: DEBUG - 530850 + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:41:20,667: DEBUG - 530852 + read dpkg_file 2020-01-02 11:41:20,669: DEBUG - 530854 + return 0 2020-01-02 11:41:20,671: DEBUG - 530856 + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.AJqiS7ytv2/control 2020-01-02 11:41:20,673: DEBUG - 530858 + cd /tmp/tmp.AJqiS7ytv2 2020-01-02 11:41:20,676: DEBUG - 530860 + equivs-build ./control 2020-01-02 11:41:28,611: DEBUG - 538794 + dpkg --force-depends -i ./nextcloud-ynh-deps_**********_all.deb 2020-01-02 11:41:29,216: DEBUG - 539399 Selecting previously unselected package nextcloud-ynh-deps. 2020-01-02 11:41:31,326: DEBUG - 541509 (Reading database ... 88959 files and directories currently installed.) 2020-01-02 11:41:31,328: DEBUG - 541589 Preparing to unpack .../nextcloud-ynh-deps_**********_all.deb ... 2020-01-02 11:41:31,532: DEBUG - 541793 Unpacking nextcloud-ynh-deps (**********) ... 2020-01-02 11:41:32,537: DEBUG - 542799 dpkg: nextcloud-ynh-deps: dependency problems, but configuring anyway as you requested: 2020-01-02 11:41:32,540: DEBUG - 542801 nextcloud-ynh-deps depends on smbclient; however: 2020-01-02 11:41:32,541: DEBUG - 542804 Package smbclient is not installed. 2020-01-02 11:41:32,543: DEBUG - 542806 nextcloud-ynh-deps depends on at; however: 2020-01-02 11:41:32,545: DEBUG - 542808 Package at is not installed. 2020-01-02 11:41:32,547: DEBUG - 542810 2020-01-02 11:41:32,548: DEBUG - 542813 Setting up nextcloud-ynh-deps (**********) ... 2020-01-02 11:41:33,856: DEBUG - 544120 + ynh_package_install -f 2020-01-02 11:41:33,858: DEBUG - 544123 + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-01-02 11:41:33,860: DEBUG - 544125 + ynh_wait_dpkg_free 2020-01-02 11:41:33,862: DEBUG - 544127 + local try 2020-01-02 11:41:33,864: DEBUG - 544130 ++ seq 1 17 2020-01-02 11:41:33,867: DEBUG - 544132 + for try in `seq 1 17` 2020-01-02 11:41:33,869: DEBUG - 544134 + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:41:35,177: DEBUG - 545443 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:41:35,179: DEBUG - 545445 ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:41:35,181: DEBUG - 545448 + read dpkg_file 2020-01-02 11:41:35,183: DEBUG - 545450 + echo '' 2020-01-02 11:41:35,186: DEBUG - 545453 + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:41:35,188: DEBUG - 545456 + read dpkg_file 2020-01-02 11:41:35,192: DEBUG - 545458 + return 0 2020-01-02 11:41:35,194: DEBUG - 545460 + DEBIAN_FRONTEND=noninteractive 2020-01-02 11:41:35,198: DEBUG - 545463 + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-01-02 11:41:39,118: DEBUG - 549383 Reading package lists... 2020-01-02 11:41:40,928: DEBUG - 551190 Building dependency tree... 2020-01-02 11:41:41,031: DEBUG - 551293 Reading state information... 2020-01-02 11:41:42,339: DEBUG - 552603 Correcting dependencies... Done 2020-01-02 11:41:43,849: DEBUG - 554113 The following additional packages will be installed: 2020-01-02 11:41:43,997: DEBUG - 554182 at libarchive13 libldb1 libsmbclient libtalloc2 libtdb1 libtevent0 2020-01-02 11:41:44,000: DEBUG - 554185 libwbclient0 python-ldb python-samba python-talloc python-tdb samba-common 2020-01-02 11:41:44,002: DEBUG - 554187 samba-common-bin samba-libs smbclient 2020-01-02 11:41:44,004: DEBUG - 554189 Suggested packages: 2020-01-02 11:41:44,006: DEBUG - 554192 lrzip python-gpgme heimdal-clients cifs-utils 2020-01-02 11:41:44,309: DEBUG - 554495 The following NEW packages will be installed: 2020-01-02 11:41:44,311: DEBUG - 554498 at libarchive13 libldb1 libsmbclient libtalloc2 libtdb1 libtevent0 2020-01-02 11:41:44,314: DEBUG - 554502 libwbclient0 python-ldb python-samba python-talloc python-tdb samba-common 2020-01-02 11:41:44,316: DEBUG - 554505 samba-common-bin samba-libs smbclient 2020-01-02 11:41:48,740: DEBUG - 558928 Preconfiguring packages ... 2020-01-02 11:41:50,248: DEBUG - 560437 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded. 2020-01-02 11:41:50,251: DEBUG - 560439 Need to get 0 B/7621 kB of archives. 2020-01-02 11:41:50,253: DEBUG - 560442 After this operation, 26.9 MB of additional disk space will be used. 2020-01-02 11:41:51,160: DEBUG - 561349 Selecting previously unselected package libtalloc2:armhf. 2020-01-02 11:41:52,568: DEBUG - 562764 (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 ... 88963 files and directories currently installed.) 2020-01-02 11:41:52,596: DEBUG - 562867 Preparing to unpack .../00-libtalloc2_2.1.8-1_armhf.deb ... 2020-01-02 11:41:53,000: DEBUG - 563281 Unpacking libtalloc2:armhf (2.1.8-1) ... 2020-01-02 11:41:54,909: DEBUG - 565092 Selecting previously unselected package libtevent0:armhf. 2020-01-02 11:41:54,911: DEBUG - 565094 Preparing to unpack .../01-libtevent0_0.9.31-1_armhf.deb ... 2020-01-02 11:41:55,114: DEBUG - 565297 Unpacking libtevent0:armhf (0.9.31-1) ... 2020-01-02 11:41:57,031: DEBUG - 567308 Selecting previously unselected package libtdb1:armhf. 2020-01-02 11:41:57,033: DEBUG - 567310 Preparing to unpack .../02-libtdb1_1.3.11-2_armhf.deb ... 2020-01-02 11:41:57,337: DEBUG - 567614 Unpacking libtdb1:armhf (1.3.11-2) ... 2020-01-02 11:41:59,246: DEBUG - 569524 Selecting previously unselected package libldb1:armhf. 2020-01-02 11:41:59,348: DEBUG - 569627 Preparing to unpack .../03-libldb1_2%3a1.1.27-1+deb9u1_armhf.deb ... 2020-01-02 11:41:59,660: DEBUG - 569843 Unpacking libldb1:armhf (2:1.1.27-1+deb9u1) ... 2020-01-02 11:42:01,871: DEBUG - 572054 Selecting previously unselected package libwbclient0:armhf. 2020-01-02 11:42:01,900: DEBUG - 572158 Preparing to unpack .../04-libwbclient0_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb ... 2020-01-02 11:42:02,106: DEBUG - 572383 Unpacking libwbclient0:armhf (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:04,117: DEBUG - 574393 Selecting previously unselected package python-talloc. 2020-01-02 11:42:04,180: DEBUG - 574396 Preparing to unpack .../05-python-talloc_2.1.8-1_armhf.deb ... 2020-01-02 11:42:04,383: DEBUG - 574663 Unpacking python-talloc (2.1.8-1) ... 2020-01-02 11:42:06,495: DEBUG - 576774 Selecting previously unselected package samba-libs:armhf. 2020-01-02 11:42:06,498: DEBUG - 576776 Preparing to unpack .../06-samba-libs_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb ... 2020-01-02 11:42:06,865: DEBUG - 577083 Unpacking samba-libs:armhf (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:18,319: DEBUG - 588531 Selecting previously unselected package libsmbclient:armhf. 2020-01-02 11:42:18,398: DEBUG - 588634 Preparing to unpack .../07-libsmbclient_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb ... 2020-01-02 11:42:18,603: DEBUG - 588882 Unpacking libsmbclient:armhf (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:25,739: DEBUG - 596016 Selecting previously unselected package samba-common. 2020-01-02 11:42:25,918: DEBUG - 596136 Preparing to unpack .../08-samba-common_2%3a4.5.16+dfsg-1+deb9u2_all.deb ... 2020-01-02 11:42:26,817: DEBUG - 597046 Unpacking samba-common (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:29,129: DEBUG - 599363 Selecting previously unselected package libarchive13:armhf. 2020-01-02 11:42:29,155: DEBUG - 599365 Preparing to unpack .../09-libarchive13_3.2.2-2+deb9u2_armhf.deb ... 2020-01-02 11:42:29,459: DEBUG - 599668 Unpacking libarchive13:armhf (3.2.2-2+deb9u2) ... 2020-01-02 11:42:30,968: DEBUG - 601176 Selecting previously unselected package smbclient. 2020-01-02 11:42:31,008: DEBUG - 601280 Preparing to unpack .../10-smbclient_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb ... 2020-01-02 11:42:31,211: DEBUG - 601491 Unpacking smbclient (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:34,024: DEBUG - 604305 Selecting previously unselected package at. 2020-01-02 11:42:34,127: DEBUG - 604408 Preparing to unpack .../11-at_3.1.20-3_armhf.deb ... 2020-01-02 11:42:34,359: DEBUG - 604542 Unpacking at (3.1.20-3) ... 2020-01-02 11:42:36,926: DEBUG - 607154 Selecting previously unselected package python-ldb. 2020-01-02 11:42:37,003: DEBUG - 607257 Preparing to unpack .../12-python-ldb_2%3a1.1.27-1+deb9u1_armhf.deb ... 2020-01-02 11:42:37,106: DEBUG - 607387 Unpacking python-ldb (2:1.1.27-1+deb9u1) ... 2020-01-02 11:42:38,915: DEBUG - 609196 Selecting previously unselected package python-tdb. 2020-01-02 11:42:39,018: DEBUG - 609199 Preparing to unpack .../13-python-tdb_1.3.11-2_armhf.deb ... 2020-01-02 11:42:39,121: DEBUG - 609402 Unpacking python-tdb (1.3.11-2) ... 2020-01-02 11:42:40,729: DEBUG - 611011 Selecting previously unselected package python-samba. 2020-01-02 11:42:40,832: DEBUG - 611114 Preparing to unpack .../14-python-samba_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb ... 2020-01-02 11:42:41,215: DEBUG - 611398 Unpacking python-samba (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:44,730: DEBUG - 614913 Selecting previously unselected package samba-common-bin. 2020-01-02 11:42:44,733: DEBUG - 614916 Preparing to unpack .../15-samba-common-bin_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb ... 2020-01-02 11:42:44,935: DEBUG - 615119 Unpacking samba-common-bin (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:47,549: DEBUG - 617732 Setting up libtdb1:armhf (1.3.11-2) ... 2020-01-02 11:42:48,154: DEBUG - 618337 Setting up libwbclient0:armhf (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:48,959: DEBUG - 619142 Setting up python-tdb (1.3.11-2) ... 2020-01-02 11:42:50,468: DEBUG - 620651 Setting up libarchive13:armhf (3.2.2-2+deb9u2) ... 2020-01-02 11:42:51,193: DEBUG - 621457 Setting up samba-common (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:42:53,841: DEBUG - 624072 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 2020-01-02 11:42:54,446: DEBUG - 624678 2020-01-02 11:42:54,449: DEBUG - 624681 Creating config file /etc/samba/smb.conf with new ********** 2020-01-02 11:42:54,954: DEBUG - 625186 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 2020-01-02 11:43:01,684: DEBUG - 631914 Setting up at (3.1.20-3) ... 2020-01-02 11:43:06,711: DEBUG - 636945 Created symlink /etc/systemd/system/multi-user.target.wants/atd.service → /lib/systemd/system/atd.service. 2020-01-02 11:43:11,750: DEBUG - 641997 Processing triggers for libc-bin (2.24-11+deb9u4) ... 2020-01-02 11:43:12,357: DEBUG - 642602 Processing triggers for systemd (232-25+deb9u12) ... 2020-01-02 11:43:13,379: DEBUG - 643612 Processing triggers for man-db (2.7.6.1-2) ... 2020-01-02 11:43:15,695: DEBUG - 645927 Setting up libtalloc2:armhf (2.1.8-1) ... 2020-01-02 11:43:15,797: DEBUG - 646030 Setting up python-talloc (2.1.8-1) ... 2020-01-02 11:43:15,901: DEBUG - 646133 Setting up libtevent0:armhf (0.9.31-1) ... 2020-01-02 11:43:16,104: DEBUG - 646337 Setting up libldb1:armhf (2:1.1.27-1+deb9u1) ... 2020-01-02 11:43:16,989: DEBUG - 647244 Setting up python-ldb (2:1.1.27-1+deb9u1) ... 2020-01-02 11:43:17,995: DEBUG - 648250 Setting up samba-libs:armhf (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:43:18,098: DEBUG - 648353 Setting up python-samba (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:43:21,624: DEBUG - 651873 Setting up libsmbclient:armhf (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:43:21,726: DEBUG - 651976 Setting up smbclient (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:43:21,729: DEBUG - 651979 Setting up samba-common-bin (2:4.5.16+dfsg-1+deb9u2) ... 2020-01-02 11:43:21,933: DEBUG - 652182 Processing triggers for libc-bin (2.24-11+deb9u4) ... 2020-01-02 11:43:33,184: DEBUG - 663429 + [[ -n /tmp/tmp.AJqiS7ytv2 ]] 2020-01-02 11:43:33,191: DEBUG - 663436 + rm -rf /tmp/tmp.AJqiS7ytv2 2020-01-02 11:43:33,193: DEBUG - 663439 + ynh_package_is_installed nextcloud-ynh-deps 2020-01-02 11:43:33,197: DEBUG - 663444 + local legacy_args=p 2020-01-02 11:43:33,203: DEBUG - 663449 + args_array=([p]=package=) 2020-01-02 11:43:33,207: DEBUG - 663452 + declare -Ar args_array 2020-01-02 11:43:33,209: DEBUG - 663455 + local package 2020-01-02 11:43:33,212: DEBUG - 663458 + ynh_handle_getopts_args nextcloud-ynh-deps 2020-01-02 11:43:33,214: DEBUG - 663461 + set +x 2020-01-02 11:43:33,216: DEBUG - 663464 + echo '! Helper used in legacy mode !' 2020-01-02 11:43:33,222: DEBUG - 663472 + set +x 2020-01-02 11:43:33,224: DEBUG - 663475 + ynh_wait_dpkg_free 2020-01-02 11:43:33,226: DEBUG - 663478 + local try 2020-01-02 11:43:33,231: DEBUG - 663480 ++ seq 1 17 2020-01-02 11:43:33,235: DEBUG - 663483 + for try in `seq 1 17` 2020-01-02 11:43:33,238: DEBUG - 663486 + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:43:35,150: DEBUG - 665398 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:43:35,153: DEBUG - 665400 ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:43:35,456: DEBUG - 665703 + read dpkg_file 2020-01-02 11:43:35,459: DEBUG - 665706 + echo '' 2020-01-02 11:43:35,461: DEBUG - 665709 + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:43:35,563: DEBUG - 665812 + read dpkg_file 2020-01-02 11:43:35,565: DEBUG - 665815 + return 0 2020-01-02 11:43:35,567: DEBUG - 665819 + dpkg-query -W -f '${Status}' nextcloud-ynh-deps 2020-01-02 11:43:35,569: DEBUG - 665821 + grep -c 'ok installed' 2020-01-02 11:43:35,772: DEBUG - 666024 + rm /tmp/nextcloud-ynh-deps.control 2020-01-02 11:43:35,776: DEBUG - 666027 + ynh_app_setting_set --app=nextcloud --key=apt_dependencies '--value=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:43:35,778: DEBUG - 666029 + local legacy_args=akv 2020-01-02 11:43:35,781: DEBUG - 666037 + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-02 11:43:35,788: DEBUG - 666039 + declare -Ar args_array 2020-01-02 11:43:35,791: DEBUG - 666042 + local app 2020-01-02 11:43:35,794: DEBUG - 666048 + local key 2020-01-02 11:43:35,797: DEBUG - 666052 + local value 2020-01-02 11:43:35,800: DEBUG - 666056 + ynh_handle_getopts_args --app=nextcloud --key=apt_dependencies '--value=php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:43:35,803: DEBUG - 666061 + set +x 2020-01-02 11:43:35,906: DEBUG - 666164 + ynh_app_setting set nextcloud apt_dependencies 'php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:43:35,908: DEBUG - 666166 + ACTION=set 2020-01-02 11:43:35,910: DEBUG - 666169 + APP=nextcloud 2020-01-02 11:43:35,913: DEBUG - 666171 + KEY=apt_dependencies 2020-01-02 11:43:35,915: DEBUG - 666174 + VALUE='php-gd, php-json, php-intl, php-mcrypt, php-curl, php-apcu, php-redis, php-ldap, php-imagick, php-zip, php-mbstring, php-xml, imagemagick, acl, tar, smbclient, at' 2020-01-02 11:43:35,918: DEBUG - 666178 + python - 2020-01-02 11:43:36,926: DEBUG - 667185 + ynh_restore_file --origin_**********=/etc/cron.d/nextcloud 2020-01-02 11:43:36,928: DEBUG - 667188 + local legacy_args=odm 2020-01-02 11:43:36,930: DEBUG - 667191 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:43:36,932: DEBUG - 667193 + declare -Ar args_array 2020-01-02 11:43:36,934: DEBUG - 667197 + local origin_********** 2020-01-02 11:43:36,943: DEBUG - 667199 + local archive_********** 2020-01-02 11:43:36,953: DEBUG - 667202 + local dest_********** 2020-01-02 11:43:36,956: DEBUG - 667204 + local not_mandatory 2020-01-02 11:43:36,958: DEBUG - 667206 + ynh_handle_getopts_args --origin_**********=/etc/cron.d/nextcloud 2020-01-02 11:43:36,964: DEBUG - 667208 + set +x 2020-01-02 11:43:36,966: DEBUG - 667211 + local origin_**********=/etc/cron.d/nextcloud 2020-01-02 11:43:36,968: DEBUG - 667213 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/cron.d/nextcloud 2020-01-02 11:43:36,971: DEBUG - 667215 + local dest_**********=/etc/cron.d/nextcloud 2020-01-02 11:43:36,973: DEBUG - 667217 + local not_mandatory=0 2020-01-02 11:43:36,975: DEBUG - 667220 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/cron.d/nextcloud ']' 2020-01-02 11:43:36,977: DEBUG - 667222 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/cron.d/nextcloud ']' 2020-01-02 11:43:36,980: DEBUG - 667225 + [[ -e /etc/cron.d/nextcloud ]] 2020-01-02 11:43:36,982: DEBUG - 667227 ++ dirname /etc/cron.d/nextcloud 2020-01-02 11:43:36,986: DEBUG - 667230 + mkdir -p /etc/cron.d 2020-01-02 11:43:36,987: DEBUG - 667232 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:43:37,090: DEBUG - 667335 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/cron.d/nextcloud /etc/cron.d/nextcloud 2020-01-02 11:43:37,093: DEBUG - 667338 + ynh_restore_file --origin_**********=/etc/logrotate.d/nextcloud 2020-01-02 11:43:37,095: DEBUG - 667340 + local legacy_args=odm 2020-01-02 11:43:37,098: DEBUG - 667342 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:43:37,107: DEBUG - 667345 + declare -Ar args_array 2020-01-02 11:43:37,110: DEBUG - 667349 + local origin_********** 2020-01-02 11:43:37,112: DEBUG - 667353 + local archive_********** 2020-01-02 11:43:37,125: DEBUG - 667355 + local dest_********** 2020-01-02 11:43:37,127: DEBUG - 667358 + local not_mandatory 2020-01-02 11:43:37,130: DEBUG - 667360 + ynh_handle_getopts_args --origin_**********=/etc/logrotate.d/nextcloud 2020-01-02 11:43:37,133: DEBUG - 667363 + set +x 2020-01-02 11:43:37,142: DEBUG - 667366 + local origin_**********=/etc/logrotate.d/nextcloud 2020-01-02 11:43:37,146: DEBUG - 667370 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d/nextcloud 2020-01-02 11:43:37,149: DEBUG - 667372 + local dest_**********=/etc/logrotate.d/nextcloud 2020-01-02 11:43:37,157: DEBUG - 667385 + local not_mandatory=0 2020-01-02 11:43:37,161: DEBUG - 667388 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d/nextcloud ']' 2020-01-02 11:43:37,164: DEBUG - 667399 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d/nextcloud ']' 2020-01-02 11:43:37,166: DEBUG - 667401 + [[ -e /etc/logrotate.d/nextcloud ]] 2020-01-02 11:43:37,169: DEBUG - 667404 ++ dirname /etc/logrotate.d/nextcloud 2020-01-02 11:43:37,173: DEBUG - 667406 + mkdir -p /etc/logrotate.d 2020-01-02 11:43:37,176: DEBUG - 667418 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:43:37,178: DEBUG - 667421 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d/nextcloud /etc/logrotate.d/nextcloud 2020-01-02 11:43:37,181: DEBUG - 667427 + ynh_script_progression '--message=Restoring data directory...' --weight=2 2020-01-02 11:43:37,184: DEBUG - 667436 + set +x 2020-01-02 11:43:37,287: DEBUG - 667539 + set +x 2020-01-02 11:43:37,290: DEBUG - 667542 + echo '! Helper used in legacy mode !' 2020-01-02 11:43:37,293: DEBUG - 667544 + set +x 2020-01-02 11:43:37,296: DEBUG - 667548 + echo '[################+...] > Restoring data directory...' 2020-01-02 11:43:37,298: DEBUG - 667550 + set -x 2020-01-02 11:43:37,311: DEBUG - 667553 + datadir=/home/yunohost.app/nextcloud/data 2020-01-02 11:43:37,313: DEBUG - 667556 + ynh_restore_file --origin_**********=/home/yunohost.app/nextcloud/data --not_mandatory 2020-01-02 11:43:37,321: DEBUG - 667559 + local legacy_args=odm 2020-01-02 11:43:37,323: DEBUG - 667562 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:43:37,325: DEBUG - 667565 + declare -Ar args_array 2020-01-02 11:43:37,327: DEBUG - 667569 + local origin_********** 2020-01-02 11:43:37,330: DEBUG - 667584 + local archive_********** 2020-01-02 11:43:37,333: DEBUG - 667586 + local dest_********** 2020-01-02 11:43:37,337: DEBUG - 667589 + local not_mandatory 2020-01-02 11:43:37,339: DEBUG - 667592 + ynh_handle_getopts_args --origin_**********=/home/yunohost.app/nextcloud/data --not_mandatory 2020-01-02 11:43:37,341: DEBUG - 667600 + set +x 2020-01-02 11:43:37,443: DEBUG - 667702 + local origin_**********=/home/yunohost.app/nextcloud/data 2020-01-02 11:43:37,446: DEBUG - 667705 [################+...] > Restoring data directory... 2020-01-02 11:43:37,447: DEBUG - 667708 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/home/yunohost.app/nextcloud/data 2020-01-02 11:43:37,449: DEBUG - 667711 + local dest_**********=/home/yunohost.app/nextcloud/data 2020-01-02 11:43:37,451: DEBUG - 667713 + local not_mandatory=1 2020-01-02 11:43:37,453: DEBUG - 667715 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/home/yunohost.app/nextcloud/data ']' 2020-01-02 11:43:37,456: DEBUG - 667718 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/home/yunohost.app/nextcloud/data ']' 2020-01-02 11:43:37,459: DEBUG - 667721 + '[' '!' -L /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/home/yunohost.app/nextcloud/data ']' 2020-01-02 11:43:37,462: DEBUG - 667725 + '[' 1 == 0 ']' 2020-01-02 11:43:37,465: DEBUG - 667734 + return 0 2020-01-02 11:43:37,468: DEBUG - 667739 + mkdir -p /home/yunohost.app/nextcloud/data 2020-01-02 11:43:37,472: DEBUG - 667745 + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data 2020-01-02 11:43:42,896: DEBUG - 673174 + chmod 640 /var/www/nextcloud/config/config.php 2020-01-02 11:43:43,605: DEBUG - 673787 + chmod 755 /home/yunohost.app 2020-01-02 11:43:43,607: DEBUG - 673790 ++ ynh_user_list 2020-01-02 11:43:43,608: DEBUG - 673793 ++ sudo yunohost user list --output-as plain --quiet 2020-01-02 11:43:43,610: DEBUG - 673796 ++ awk '/^##username$/{getline; print}' 2020-01-02 11:43:52,353: DEBUG - 682532 + for u in $(ynh_user_list) 2020-01-02 11:43:52,356: DEBUG - 682537 + mkdir -p /home/yunohost.app/nextcloud/data/didier2 2020-01-02 11:43:52,368: DEBUG - 682641 + setfacl --modify g:nextcloud:rwx /home/didier2 2020-01-02 11:43:52,371: DEBUG - 682643 + for u in $(ynh_user_list) 2020-01-02 11:43:52,379: DEBUG - 682646 + mkdir -p /home/yunohost.app/nextcloud/data/didier 2020-01-02 11:43:52,383: DEBUG - 682659 + setfacl --modify g:nextcloud:rwx /home/didier 2020-01-02 11:43:52,386: DEBUG - 682661 + for u in $(ynh_user_list) 2020-01-02 11:43:52,388: DEBUG - 682664 + mkdir -p /home/yunohost.app/nextcloud/data/dclaus 2020-01-02 11:43:52,394: DEBUG - 682669 + setfacl --modify g:nextcloud:rwx /home/dclaus 2020-01-02 11:43:52,397: DEBUG - 682671 + for u in $(ynh_user_list) 2020-01-02 11:43:52,400: DEBUG - 682674 + mkdir -p /home/yunohost.app/nextcloud/data/dclaus2 2020-01-02 11:43:52,402: DEBUG - 682676 + setfacl --modify g:nextcloud:rwx /home/dclaus2 2020-01-02 11:43:52,405: DEBUG - 682679 + ynh_script_progression '--message=Adding multimedia directories...' --weight=4 2020-01-02 11:43:52,408: DEBUG - 682682 + set +x 2020-01-02 11:43:52,511: DEBUG - 682786 + set +x 2020-01-02 11:43:52,513: DEBUG - 682788 + echo '! Helper used in legacy mode !' 2020-01-02 11:43:52,517: DEBUG - 682791 + set +x 2020-01-02 11:43:52,520: DEBUG - 682794 + echo '[#################+..] > Adding multimedia directories...' 2020-01-02 11:43:52,523: DEBUG - 682796 + set -x 2020-01-02 11:43:52,527: DEBUG - 682799 + ynh_multimedia_build_main_dir 2020-01-02 11:43:52,530: DEBUG - 682801 + local ynh_media_release=v1.2 2020-01-02 11:43:52,532: DEBUG - 682803 + local checksum=806a827ba1902d6911095602a9221181 2020-01-02 11:43:52,534: DEBUG - 682807 + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/v1.2.tar.gz 2020-01-02 11:43:54,147: DEBUG - 684416 + echo '806a827ba1902d6911095602a9221181 v1.2.tar.gz' 2020-01-02 11:43:54,151: WARNING - 684419 2020-01-02 11:43:54 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.2 [15921/15921] -> "v1.2.tar.gz" [1] 2020-01-02 11:43:54,182: DEBUG - 684421 [#################+..] > Adding multimedia directories... 2020-01-02 11:43:54,184: DEBUG - 684424 + md5sum -c --status 2020-01-02 11:43:54,196: DEBUG - 684427 + ynh_package_is_installed acl 2020-01-02 11:43:54,208: DEBUG - 684429 + local legacy_args=p 2020-01-02 11:43:54,221: DEBUG - 684437 + args_array=([p]=package=) 2020-01-02 11:43:54,227: DEBUG - 684441 + declare -Ar args_array 2020-01-02 11:43:54,233: DEBUG - 684454 + local package 2020-01-02 11:43:54,236: DEBUG - 684467 + ynh_handle_getopts_args acl 2020-01-02 11:43:54,238: DEBUG - 684483 + set +x 2020-01-02 11:43:54,251: DEBUG - 684489 + echo '! Helper used in legacy mode !' 2020-01-02 11:43:54,253: DEBUG - 684499 + set +x 2020-01-02 11:43:54,257: DEBUG - 684508 + ynh_wait_dpkg_free 2020-01-02 11:43:54,260: DEBUG - 684515 + local try 2020-01-02 11:43:54,262: DEBUG - 684525 ++ seq 1 17 2020-01-02 11:43:54,264: DEBUG - 684528 + for try in `seq 1 17` 2020-01-02 11:43:54,267: DEBUG - 684531 + sudo lsof /var/lib/dpkg/lock 2020-01-02 11:43:55,576: DEBUG - 685846 + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-02 11:43:55,848: DEBUG - 686034 ++ ls -1 /var/lib/dpkg/updates/ 2020-01-02 11:43:55,850: DEBUG - 686036 + read dpkg_file 2020-01-02 11:43:55,852: DEBUG - 686039 + echo '' 2020-01-02 11:43:55,855: DEBUG - 686041 + grep -Pq '^[[:digit:]]+$' 2020-01-02 11:43:55,857: DEBUG - 686043 + read dpkg_file 2020-01-02 11:43:55,860: DEBUG - 686046 + return 0 2020-01-02 11:43:55,862: DEBUG - 686048 + dpkg-query -W -f '${Status}' acl 2020-01-02 11:43:55,864: DEBUG - 686051 + grep -c 'ok installed' 2020-01-02 11:43:56,067: DEBUG - 686254 + mkdir yunohost.multimedia-master 2020-01-02 11:43:56,070: DEBUG - 686256 + tar -xf v1.2.tar.gz -C yunohost.multimedia-master --strip-components 1 2020-01-02 11:43:56,072: DEBUG - 686258 + ./yunohost.multimedia-master/script/ynh_media_build.sh 2020-01-02 11:44:10,056: DEBUG - 700247 hook: /etc/yunohost/hooks.d/post_user_create/50-ynh_media 2020-01-02 11:44:12,172: DEBUG - 702362 hook: /etc/yunohost/hooks.d/post_user_delete/50-ynh_media 2020-01-02 11:44:12,677: DEBUG - 702867 + ynh_multimedia_addaccess nextcloud 2020-01-02 11:44:12,719: DEBUG - 702869 + local user_name=nextcloud 2020-01-02 11:44:12,721: DEBUG - 702872 + groupadd -f multimedia 2020-01-02 11:44:12,723: DEBUG - 702874 + usermod -a -G multimedia nextcloud 2020-01-02 11:44:13,227: DEBUG - 703479 + ynh_script_progression '--message=Restoring the fail2ban configuration...' --weight=7 2020-01-02 11:44:13,230: DEBUG - 703482 + set +x 2020-01-02 11:44:13,333: DEBUG - 703585 + set +x 2020-01-02 11:44:13,337: DEBUG - 703587 + echo '! Helper used in legacy mode !' 2020-01-02 11:44:13,340: DEBUG - 703590 + set +x 2020-01-02 11:44:13,342: DEBUG - 703594 + echo '[##################+.] > Restoring the fail2ban configuration...' 2020-01-02 11:44:13,351: DEBUG - 703597 + set -x 2020-01-02 11:44:13,354: DEBUG - 703602 + ynh_restore_file --origin_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,370: DEBUG - 703606 + local legacy_args=odm 2020-01-02 11:44:13,373: DEBUG - 703609 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:44:13,375: DEBUG - 703611 + declare -Ar args_array 2020-01-02 11:44:13,377: DEBUG - 703614 + local origin_********** 2020-01-02 11:44:13,385: DEBUG - 703628 [##################+.] > Restoring the fail2ban configuration... 2020-01-02 11:44:13,387: DEBUG - 703632 + local archive_********** 2020-01-02 11:44:13,394: DEBUG - 703641 + local dest_********** 2020-01-02 11:44:13,397: DEBUG - 703644 + local not_mandatory 2020-01-02 11:44:13,400: DEBUG - 703647 + ynh_handle_getopts_args --origin_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,402: DEBUG - 703651 + set +x 2020-01-02 11:44:13,404: DEBUG - 703654 + local origin_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,406: DEBUG - 703656 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,408: DEBUG - 703660 + local dest_**********=/etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,411: DEBUG - 703662 + local not_mandatory=0 2020-01-02 11:44:13,413: DEBUG - 703666 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf ']' 2020-01-02 11:44:13,420: DEBUG - 703670 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf ']' 2020-01-02 11:44:13,423: DEBUG - 703674 + [[ -e /etc/fail2ban/jail.d/nextcloud.conf ]] 2020-01-02 11:44:13,426: DEBUG - 703676 ++ dirname /etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,431: DEBUG - 703685 + mkdir -p /etc/fail2ban/jail.d 2020-01-02 11:44:13,434: DEBUG - 703688 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:44:13,437: DEBUG - 703691 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf /etc/fail2ban/jail.d/nextcloud.conf 2020-01-02 11:44:13,543: DEBUG - 703800 + ynh_restore_file --origin_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,546: DEBUG - 703803 + local legacy_args=odm 2020-01-02 11:44:13,548: DEBUG - 703805 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory) 2020-01-02 11:44:13,553: DEBUG - 703809 + declare -Ar args_array 2020-01-02 11:44:13,556: DEBUG - 703812 + local origin_********** 2020-01-02 11:44:13,559: DEBUG - 703816 + local archive_********** 2020-01-02 11:44:13,572: DEBUG - 703819 + local dest_********** 2020-01-02 11:44:13,580: DEBUG - 703822 + local not_mandatory 2020-01-02 11:44:13,582: DEBUG - 703833 + ynh_handle_getopts_args --origin_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,590: DEBUG - 703845 + set +x 2020-01-02 11:44:13,597: DEBUG - 703848 + local origin_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,599: DEBUG - 703851 + local archive_**********=/home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,607: DEBUG - 703860 + local dest_**********=/etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,619: DEBUG - 703867 + local not_mandatory=0 2020-01-02 11:44:13,621: DEBUG - 703874 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf ']' 2020-01-02 11:44:13,623: DEBUG - 703884 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf ']' 2020-01-02 11:44:13,626: DEBUG - 703888 + [[ -e /etc/fail2ban/filter.d/nextcloud.conf ]] 2020-01-02 11:44:13,629: DEBUG - 703896 ++ dirname /etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,631: DEBUG - 703900 + mkdir -p /etc/fail2ban/filter.d 2020-01-02 11:44:13,634: DEBUG - 703907 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2020-01-02 11:44:13,637: DEBUG - 703911 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf /etc/fail2ban/filter.d/nextcloud.conf 2020-01-02 11:44:13,640: DEBUG - 703916 + logfile=/home/yunohost.app/nextcloud/data/nextcloud.log 2020-01-02 11:44:13,643: DEBUG - 703919 + '[' '!' -f /home/yunohost.app/nextcloud/data/nextcloud.log ']' 2020-01-02 11:44:13,646: DEBUG - 703922 + ynh_systemd_action --action=restart --service_name=fail2ban 2020-01-02 11:44:13,648: DEBUG - 703925 + local legacy_args=nalpte 2020-01-02 11:44:13,751: DEBUG - 703934 + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-01-02 11:44:13,754: DEBUG - 703937 + declare -Ar args_array 2020-01-02 11:44:13,756: DEBUG - 703940 + local service_name 2020-01-02 11:44:13,759: DEBUG - 703944 + local action 2020-01-02 11:44:13,761: DEBUG - 703947 + local line_match 2020-01-02 11:44:13,763: DEBUG - 703949 + local length 2020-01-02 11:44:13,766: DEBUG - 703952 + local log_********** 2020-01-02 11:44:13,768: DEBUG - 703954 + local timeout 2020-01-02 11:44:13,770: DEBUG - 703957 + ynh_handle_getopts_args --action=restart --service_name=fail2ban 2020-01-02 11:44:13,772: DEBUG - 703961 + set +x 2020-01-02 11:44:13,775: DEBUG - 703964 + local service_name=fail2ban 2020-01-02 11:44:13,777: DEBUG - 703970 + local action=restart 2020-01-02 11:44:13,779: DEBUG - 703972 + local log_**********=/var/log/fail2ban/fail2ban.log 2020-01-02 11:44:13,782: DEBUG - 703974 + local length=20 2020-01-02 11:44:13,784: DEBUG - 703976 + local timeout=300 2020-01-02 11:44:13,787: DEBUG - 703978 + [[ -n '' ]] 2020-01-02 11:44:13,789: DEBUG - 703980 + '[' restart == reload ']' 2020-01-02 11:44:13,792: DEBUG - 703982 + systemctl restart fail2ban 2020-01-02 11:44:44,328: DEBUG - 734510 + [[ -n '' ]] 2020-01-02 11:44:44,330: DEBUG - 734513 + ynh_script_progression '--message=Reloading nginx web server and php-fpm...' 2020-01-02 11:44:44,332: DEBUG - 734522 + set +x 2020-01-02 11:44:44,443: DEBUG - 734625 + set +x 2020-01-02 11:44:44,447: DEBUG - 734628 + echo '! Helper used in legacy mode !' 2020-01-02 11:44:44,451: DEBUG - 734631 + set +x 2020-01-02 11:44:44,468: DEBUG - 734641 + echo '[###################.] > Reloading nginx web server and php-fpm...' 2020-01-02 11:44:44,476: DEBUG - 734644 [###################.] > Reloading nginx web server and php-fpm... 2020-01-02 11:44:44,479: DEBUG - 734647 + set -x 2020-01-02 11:44:44,490: DEBUG - 734652 + ynh_systemd_action --service_name=php7.0-fpm --action=reload 2020-01-02 11:44:44,493: DEBUG - 734655 + local legacy_args=nalpte 2020-01-02 11:44:44,501: DEBUG - 734658 + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-01-02 11:44:44,503: DEBUG - 734661 + declare -Ar args_array 2020-01-02 11:44:44,506: DEBUG - 734664 + local service_name 2020-01-02 11:44:44,508: DEBUG - 734667 + local action 2020-01-02 11:44:44,518: DEBUG - 734674 + local line_match 2020-01-02 11:44:44,523: DEBUG - 734677 + local length 2020-01-02 11:44:44,546: DEBUG - 734679 + local log_********** 2020-01-02 11:44:44,549: DEBUG - 734682 + local timeout 2020-01-02 11:44:44,551: DEBUG - 734688 + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload 2020-01-02 11:44:44,554: DEBUG - 734690 + set +x 2020-01-02 11:44:44,557: DEBUG - 734794 + local service_name=php7.0-fpm 2020-01-02 11:44:44,559: DEBUG - 734796 + local action=reload 2020-01-02 11:44:44,562: DEBUG - 734799 + local log_**********=/var/log/php7.0-fpm/php7.0-fpm.log 2020-01-02 11:44:44,565: DEBUG - 734801 + local length=20 2020-01-02 11:44:44,567: DEBUG - 734804 + local timeout=300 2020-01-02 11:44:44,570: DEBUG - 734806 + [[ -n '' ]] 2020-01-02 11:44:44,572: DEBUG - 734814 + '[' reload == reload ']' 2020-01-02 11:44:44,578: DEBUG - 734816 + action=reload-or-restart 2020-01-02 11:44:44,585: DEBUG - 734819 + systemctl reload-or-restart php7.0-fpm 2020-01-02 11:44:44,688: DEBUG - 734921 + [[ -n '' ]] 2020-01-02 11:44:44,797: DEBUG - 734953 + ynh_systemd_action --service_name=nginx --action=reload 2020-01-02 11:44:44,799: DEBUG - 734956 + local legacy_args=nalpte 2020-01-02 11:44:44,813: DEBUG - 734979 + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_**********= [t]=timeout= [e]=length=) 2020-01-02 11:44:44,827: DEBUG - 734982 + declare -Ar args_array 2020-01-02 11:44:44,830: DEBUG - 734988 + local service_name 2020-01-02 11:44:44,838: DEBUG - 734991 + local action 2020-01-02 11:44:44,842: DEBUG - 734994 + local line_match 2020-01-02 11:44:44,851: DEBUG - 734996 + local length 2020-01-02 11:44:44,860: DEBUG - 735087 + local log_********** 2020-01-02 11:44:44,872: DEBUG - 735089 + local timeout 2020-01-02 11:44:44,875: DEBUG - 735092 + ynh_handle_getopts_args --service_name=nginx --action=reload 2020-01-02 11:44:44,878: DEBUG - 735102 + set +x 2020-01-02 11:44:44,981: DEBUG - 735205 + local service_name=nginx 2020-01-02 11:44:44,986: DEBUG - 735207 + local action=reload 2020-01-02 11:44:44,991: DEBUG - 735217 + local log_**********=/var/log/nginx/nginx.log 2020-01-02 11:44:45,001: DEBUG - 735228 + local length=20 2020-01-02 11:44:45,020: DEBUG - 735230 + local timeout=300 2020-01-02 11:44:45,024: DEBUG - 735242 + [[ -n '' ]] 2020-01-02 11:44:45,028: DEBUG - 735254 + '[' reload == reload ']' 2020-01-02 11:44:45,031: DEBUG - 735258 + action=reload-or-restart 2020-01-02 11:44:45,034: DEBUG - 735260 + systemctl reload-or-restart nginx 2020-01-02 11:44:46,851: DEBUG - 737091 + [[ -n '' ]] 2020-01-02 11:44:46,853: DEBUG - 737094 + ynh_script_progression '--message=Restoration completed for nextcloud' --last 2020-01-02 11:44:46,854: DEBUG - 737096 + set +x 2020-01-02 11:44:46,957: DEBUG - 737198 + set +x 2020-01-02 11:44:47,060: DEBUG - 737303 + echo '! Helper used in legacy mode !' 2020-01-02 11:44:47,062: DEBUG - 737305 + set +x 2020-01-02 11:44:47,064: DEBUG - 737307 + echo '[####################] > Restoration completed for nextcloud' 2020-01-02 11:44:47,066: DEBUG - 737317 + set -x 2020-01-02 11:44:47,068: DEBUG - 737319 + ynh_exit_properly 2020-01-02 11:44:47,081: DEBUG - 737321 + local exit_code=0 2020-01-02 11:44:47,083: DEBUG - 737325 + '[' 0 -eq 0 ']' 2020-01-02 11:44:47,095: DEBUG - 737338 + exit 0 2020-01-02 11:44:47,106: DEBUG - 737346 [####################] > Restoration completed for nextcloud 2020-01-02 11:44:47,210: DEBUG - 737471 To view the log of the operation 'Restore 'nextcloud' from a backup archive', use the command 'yunohost log display 20200102-103746-backup_restore_app-nextcloud' 2020-01-02 11:45:10,135: DEBUG - The SSOwat configuration has been generated 2020-01-02 11:45:10,768: DEBUG - 760954 Restore complete 2020-01-02 11:45:10,771: DEBUG - 760956 action [9296.1] executed in 758.582s 2020-01-02 11:45:10,774: DEBUG - apps: 2020-01-02 11:45:10,776: DEBUG - nextcloud: Success 2020-01-02 11:45:10,779: DEBUG - system: 2020-01-02 11:45:10,983: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.' 2020-01-02 11:45:10,986: WARNING - The app was restored to the way it was before the failed upgrade. 2020-01-02 11:45:10,992: DEBUG - + local legacy_args=mc 2020-01-02 11:45:10,993: DEBUG - + args_array=([m]=message= [c]=ret_code=) 2020-01-02 11:45:10,995: DEBUG - + declare -Ar args_array 2020-01-02 11:45:10,997: DEBUG - + local message 2020-01-02 11:45:11,000: DEBUG - + local ret_code 2020-01-02 11:45:11,002: DEBUG - + ynh_handle_getopts_args '--message=The app was restored to the way it was before the failed upgrade.' 2020-01-02 11:45:11,003: DEBUG - + set +x 2020-01-02 11:45:11,005: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.' 2020-01-02 11:45:11,007: DEBUG - + exit 1 2020-01-02 11:45:11,144: ERROR - Unable to upgrade nextcloud