ended_at: 2023-01-21 09:21:14.165675
env:
  BASH_XTRACEFD: '7'
  NO_BACKUP_UPGRADE: '0'
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw
  YNH_APP_CURRENT_VERSION: 12.3.0~ynh1
  YNH_APP_ID: piwigo
  YNH_APP_INSTANCE_NAME: piwigo
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 13.4.0~ynh1
  YNH_APP_UPGRADE_TYPE: UPGRADE_APP
  YNH_ARCH: amd64
  YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/scripts
  YNH_INTERFACE: cli
  YNH_STDRETURN: /tmp/tmptkunk80a/stdreturn
error: "Une erreur s'est produite durant l'ex\xE9cution du script de mise \xE0 niveau\
  \ de l'application"
interface: cli
operation: app_upgrade
parent: null
related_to:
- - app
  - piwigo
started_at: 2023-01-21 09:19:14.594637
success: false
yunohost_version: 11.0.11

============

2023-01-21 10:19:14,726: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2023-01-21 10:19:14,734: DEBUG - + source _common.sh
2023-01-21 10:19:14,735: DEBUG - ++ YNH_PHP_VERSION=8.0
2023-01-21 10:19:14,735: DEBUG - ++ pkg_dependencies='imagemagick php8.0-gd php8.0-imagick php8.0-xml php8.0-mbstring php8.0-mysqli php8.0-ldap'
2023-01-21 10:19:14,736: DEBUG - + source /usr/share/yunohost/helpers
2023-01-21 10:19:14,764: DEBUG - +++ set +o
2023-01-21 10:19:14,765: DEBUG - +++ grep xtrace
2023-01-21 10:19:14,767: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-01-21 10:19:14,768: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2023-01-21 10:19:14,959: INFO - [....................] > Loading installation settings...
2023-01-21 10:19:14,960: DEBUG - + app=piwigo
2023-01-21 10:19:14,961: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=domain
2023-01-21 10:19:14,961: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,004: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,004: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,004: DEBUG - ++ ynh_app_setting get piwigo domain
2023-01-21 10:19:15,098: DEBUG - + domain=maindomain.tld
2023-01-21 10:19:15,099: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=path
2023-01-21 10:19:15,099: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,143: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,143: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,143: DEBUG - ++ ynh_app_setting get piwigo path
2023-01-21 10:19:15,238: DEBUG - + path_url=/piwigo
2023-01-21 10:19:15,239: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=language
2023-01-21 10:19:15,239: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,282: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,283: DEBUG - ++ [[ language =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,283: DEBUG - ++ ynh_app_setting get piwigo language
2023-01-21 10:19:15,377: DEBUG - + language=fr
2023-01-21 10:19:15,378: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=admin
2023-01-21 10:19:15,378: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,422: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,422: DEBUG - ++ [[ admin =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,422: DEBUG - ++ ynh_app_setting get piwigo admin
2023-01-21 10:19:15,517: DEBUG - + admin=stef
2023-01-21 10:19:15,518: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=final_path
2023-01-21 10:19:15,518: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,562: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,562: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,562: DEBUG - ++ ynh_app_setting get piwigo final_path
2023-01-21 10:19:15,657: DEBUG - + final_path=/var/www/piwigo
2023-01-21 10:19:15,657: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=db_name
2023-01-21 10:19:15,658: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,701: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,701: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,702: DEBUG - ++ ynh_app_setting get piwigo db_name
2023-01-21 10:19:15,795: DEBUG - + db_name=piwigo
2023-01-21 10:19:15,796: DEBUG - + db_user=piwigo
2023-01-21 10:19:15,796: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=mysqlpwd
2023-01-21 10:19:15,796: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,840: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,840: DEBUG - ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,841: DEBUG - ++ ynh_app_setting get piwigo mysqlpwd
2023-01-21 10:19:15,935: DEBUG - + db_pwd=**********
2023-01-21 10:19:15,936: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=admin_pwd
2023-01-21 10:19:15,936: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:15,979: DEBUG - ++ app=piwigo
2023-01-21 10:19:15,980: DEBUG - ++ [[ admin_pwd =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:15,980: DEBUG - ++ ynh_app_setting get piwigo admin_pwd
2023-01-21 10:19:16,074: DEBUG - + admin_pwd=**********
2023-01-21 10:19:16,075: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=datadir
2023-01-21 10:19:16,075: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:16,119: DEBUG - ++ app=piwigo
2023-01-21 10:19:16,119: DEBUG - ++ [[ datadir =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:16,119: DEBUG - ++ ynh_app_setting get piwigo datadir
2023-01-21 10:19:16,213: DEBUG - + datadir=/home/yunohost.app/piwigo
2023-01-21 10:19:16,214: DEBUG - ++ ynh_check_app_version_changed
2023-01-21 10:19:16,214: DEBUG - ++ local return_value=UPGRADE_APP
2023-01-21 10:19:16,215: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FULL ']'
2023-01-21 10:19:16,215: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FORCED ']'
2023-01-21 10:19:16,215: DEBUG - ++ '[' UPGRADE_APP == DOWNGRADE_FORCED ']'
2023-01-21 10:19:16,215: DEBUG - ++ echo UPGRADE_APP
2023-01-21 10:19:16,215: DEBUG - + upgrade_type=UPGRADE_APP
2023-01-21 10:19:16,313: INFO - [+++.................] > Backing up the app before upgrading (may take a while)...
2023-01-21 10:19:16,313: DEBUG - + ynh_backup_before_upgrade
2023-01-21 10:19:16,314: DEBUG - + '[' '!' -e /etc/yunohost/apps/piwigo/scripts/backup ']'
2023-01-21 10:19:16,314: DEBUG - + backup_number=1
2023-01-21 10:19:16,314: DEBUG - + local old_backup_number=2
2023-01-21 10:19:16,314: DEBUG - + local app_bck=piwigo
2023-01-21 10:19:16,315: DEBUG - + NO_BACKUP_UPGRADE=0
2023-01-21 10:19:16,315: DEBUG - + ynh_backup_archive_exists piwigo-pre-upgrade1
2023-01-21 10:19:16,315: DEBUG - + jq -e --arg archive piwigo-pre-upgrade1 '.archives | index($archive)'
2023-01-21 10:19:16,315: DEBUG - + yunohost backup list --output-as json --quiet
2023-01-21 10:19:16,839: DEBUG - + backup_number=2
2023-01-21 10:19:16,840: DEBUG - + old_backup_number=1
2023-01-21 10:19:16,840: DEBUG - + BACKUP_CORE_ONLY=1
2023-01-21 10:19:16,840: DEBUG - + yunohost backup create --apps piwigo --name piwigo-pre-upgrade2 --debug
2023-01-21 10:19:17,099: DEBUG - 194  initializing base actions map parser for cli
2023-01-21 10:19:17,100: DEBUG - 196  loading actions map
2023-01-21 10:19:17,102: DEBUG - 197  building parser...
2023-01-21 10:19:17,109: DEBUG - 204  building parser took 0.007s
2023-01-21 10:19:17,111: DEBUG - 206  acquiring lock...
2023-01-21 10:19:17,156: DEBUG - 251  loading python module yunohost.backup took 0.027s
2023-01-21 10:19:17,156: DEBUG - 251  processing action [413856.1]: yunohost.backup.create with args={'name': 'piwigo-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['piwigo'], 'dry_run': False}
2023-01-21 10:19:17,795: DEBUG - 890  Collecte des fichiers devant être sauvegardés pour piwigo...
2023-01-21 10:19:17,909: DEBUG - 1004 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_nte0hko9/scripts/backup"  7>&1']'
2023-01-21 10:19:17,916: DEBUG - 1011 + source ../settings/scripts/_common.sh
2023-01-21 10:19:17,917: DEBUG - 1012 ++ YNH_PHP_VERSION=7.4
2023-01-21 10:19:17,917: DEBUG - 1012 ++ pkg_dependencies='imagemagick php7.4-gd php7.4-imagick php7.4-xml php7.4-mbstring php7.4-mysqli'
2023-01-21 10:19:17,917: DEBUG - 1013 + source /usr/share/yunohost/helpers
2023-01-21 10:19:17,919: DEBUG - 1014 +++ set +o
2023-01-21 10:19:17,919: DEBUG - 1015 +++ grep xtrace
2023-01-21 10:19:17,922: DEBUG - 1018 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-01-21 10:19:17,923: DEBUG - 1018 ++ XTRACE_ENABLE='set -o xtrace'
2023-01-21 10:19:17,949: DEBUG - 1044 + ynh_abort_if_errors
2023-01-21 10:19:17,950: DEBUG - 1045 + trap ynh_exit_properly EXIT
2023-01-21 10:19:17,950: DEBUG - 1045 + ynh_print_info '--message=Loading installation settings...'
2023-01-21 10:19:17,966: DEBUG - 1061 + echo 'Loading installation settings...'
2023-01-21 10:19:17,967: DEBUG - 1062 + app=piwigo
2023-01-21 10:19:17,967: DEBUG - 1062 Loading installation settings...
2023-01-21 10:19:17,968: DEBUG - 1062 ++ ynh_app_setting_get --app=piwigo --key=final_path
2023-01-21 10:19:17,968: DEBUG - 1063 ++ local _globalapp=piwigo
2023-01-21 10:19:18,013: DEBUG - 1108 ++ app=piwigo
2023-01-21 10:19:18,013: DEBUG - 1108 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:18,014: DEBUG - 1109 ++ ynh_app_setting get piwigo final_path
2023-01-21 10:19:18,108: DEBUG - 1203 + final_path=/var/www/piwigo
2023-01-21 10:19:18,110: DEBUG - 1204 ++ ynh_app_setting_get --app=piwigo --key=domain
2023-01-21 10:19:18,110: DEBUG - 1205 ++ local _globalapp=piwigo
2023-01-21 10:19:18,154: DEBUG - 1249 ++ app=piwigo
2023-01-21 10:19:18,154: DEBUG - 1249 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:18,154: DEBUG - 1250 ++ ynh_app_setting get piwigo domain
2023-01-21 10:19:18,249: DEBUG - 1344 + domain=maindomain.tld
2023-01-21 10:19:18,252: DEBUG - 1345 ++ ynh_app_setting_get --app=piwigo --key=db_name
2023-01-21 10:19:18,252: DEBUG - 1346 ++ local _globalapp=piwigo
2023-01-21 10:19:18,295: DEBUG - 1390 ++ app=piwigo
2023-01-21 10:19:18,295: DEBUG - 1390 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:18,297: DEBUG - 1392 ++ ynh_app_setting get piwigo db_name
2023-01-21 10:19:18,391: DEBUG - 1486 + db_name=piwigo
2023-01-21 10:19:18,392: DEBUG - 1487 ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:19:18,392: DEBUG - 1488 ++ local _globalapp=piwigo
2023-01-21 10:19:18,437: DEBUG - 1532 ++ app=piwigo
2023-01-21 10:19:18,437: DEBUG - 1532 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:18,439: DEBUG - 1534 ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:19:18,533: DEBUG - 1628 + phpversion=7.4
2023-01-21 10:19:18,534: DEBUG - 1629 ++ ynh_app_setting_get --app=piwigo --key=datadir
2023-01-21 10:19:18,534: DEBUG - 1630 ++ local _globalapp=piwigo
2023-01-21 10:19:18,579: DEBUG - 1674 ++ app=piwigo
2023-01-21 10:19:18,579: DEBUG - 1674 ++ [[ datadir =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:18,581: DEBUG - 1676 ++ ynh_app_setting get piwigo datadir
2023-01-21 10:19:18,676: DEBUG - 1770 + datadir=/home/yunohost.app/piwigo
2023-01-21 10:19:18,676: DEBUG - 1771 + ynh_print_info '--message=Declaring files to be backed up...'
2023-01-21 10:19:18,690: DEBUG - 1786 + echo 'Declaring files to be backed up...'
2023-01-21 10:19:18,694: DEBUG - 1786 Declaring files to be backed up...
2023-01-21 10:19:18,694: DEBUG - 1787 + ynh_backup --src_path=/var/www/piwigo
2023-01-21 10:19:18,736: DEBUG - 1832 + dest_path=
2023-01-21 10:19:18,737: DEBUG - 1832 + is_big=0
2023-01-21 10:19:18,737: DEBUG - 1832 + not_mandatory=0
2023-01-21 10:19:18,737: DEBUG - 1833 + BACKUP_CORE_ONLY=1
2023-01-21 10:19:18,737: DEBUG - 1833 + test -n piwigo
2023-01-21 10:19:18,738: DEBUG - 1834 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
2023-01-21 10:19:18,739: DEBUG - 1834 ++ local _globalapp=piwigo
2023-01-21 10:19:18,786: DEBUG - 1881 ++ app=piwigo
2023-01-21 10:19:18,786: DEBUG - 1881 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:18,786: DEBUG - 1882 ++ ynh_app_setting get piwigo do_not_backup_data
2023-01-21 10:19:18,881: DEBUG - 1977 + do_not_backup_data=
2023-01-21 10:19:18,882: DEBUG - 1977 + '[' '!' -e /var/www/piwigo ']'
2023-01-21 10:19:18,883: DEBUG - 1978 ++ realpath /var/www/piwigo
2023-01-21 10:19:18,915: DEBUG - 2010 + src_path=/var/www/piwigo
2023-01-21 10:19:18,916: DEBUG - 2011 + [[ -z '' ]]
2023-01-21 10:19:18,916: DEBUG - 2011 + dest_path=var/www/piwigo
2023-01-21 10:19:18,916: DEBUG - 2011 + [[ -e var/www/piwigo ]]
2023-01-21 10:19:18,916: DEBUG - 2012 + local rel_dir=/apps/piwigo/backup
2023-01-21 10:19:18,917: DEBUG - 2012 + rel_dir=/apps/piwigo/backup/
2023-01-21 10:19:18,917: DEBUG - 2012 + dest_path=/apps/piwigo/backup/var/www/piwigo
2023-01-21 10:19:18,917: DEBUG - 2013 + dest_path=apps/piwigo/backup/var/www/piwigo
2023-01-21 10:19:18,918: DEBUG - 2014 ++ echo /var/www/piwigo
2023-01-21 10:19:18,919: DEBUG - 2015 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:18,923: DEBUG - 2018 + local src=/var/www/piwigo
2023-01-21 10:19:18,925: DEBUG - 2020 ++ echo apps/piwigo/backup/var/www/piwigo
2023-01-21 10:19:18,925: DEBUG - 2020 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:18,929: DEBUG - 2024 + local dest=apps/piwigo/backup/var/www/piwigo
2023-01-21 10:19:18,929: DEBUG - 2024 + echo '"/var/www/piwigo","apps/piwigo/backup/var/www/piwigo"'
2023-01-21 10:19:18,930: DEBUG - 2025 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/var/www/piwigo
2023-01-21 10:19:18,951: DEBUG - 2047 + mkdir --parents /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/var/www
2023-01-21 10:19:18,955: DEBUG - 2050 + ynh_backup --src_path=/home/yunohost.app/piwigo --is_big
2023-01-21 10:19:19,038: DEBUG - 2132 + dest_path=
2023-01-21 10:19:19,038: DEBUG - 2133 + is_big=1
2023-01-21 10:19:19,039: DEBUG - 2133 + not_mandatory=0
2023-01-21 10:19:19,039: DEBUG - 2133 + BACKUP_CORE_ONLY=1
2023-01-21 10:19:19,039: DEBUG - 2133 + test -n piwigo
2023-01-21 10:19:19,042: DEBUG - 2135 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
2023-01-21 10:19:19,042: DEBUG - 2135 ++ local _globalapp=piwigo
2023-01-21 10:19:19,085: DEBUG - 2180 ++ app=piwigo
2023-01-21 10:19:19,085: DEBUG - 2180 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:19,086: DEBUG - 2181 ++ ynh_app_setting get piwigo do_not_backup_data
2023-01-21 10:19:19,180: DEBUG - 2275 + do_not_backup_data=
2023-01-21 10:19:19,184: DEBUG - 2277 + ynh_print_info '--message=/home/yunohost.app/piwigo will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
2023-01-21 10:19:19,197: DEBUG - 2292 + echo '/home/yunohost.app/piwigo will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
2023-01-21 10:19:19,198: DEBUG - 2292 + return 0
2023-01-21 10:19:19,198: DEBUG - 2293 /home/yunohost.app/piwigo will not be saved, because 'BACKUP_CORE_ONLY' is set.
2023-01-21 10:19:19,200: DEBUG - 2293 + ynh_backup --src_path=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,248: DEBUG - 2342 + dest_path=
2023-01-21 10:19:19,248: DEBUG - 2343 + is_big=0
2023-01-21 10:19:19,249: DEBUG - 2343 + not_mandatory=0
2023-01-21 10:19:19,249: DEBUG - 2343 + BACKUP_CORE_ONLY=1
2023-01-21 10:19:19,249: DEBUG - 2343 + test -n piwigo
2023-01-21 10:19:19,250: DEBUG - 2344 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
2023-01-21 10:19:19,251: DEBUG - 2344 ++ local _globalapp=piwigo
2023-01-21 10:19:19,297: DEBUG - 2391 ++ app=piwigo
2023-01-21 10:19:19,297: DEBUG - 2392 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:19,297: DEBUG - 2392 ++ ynh_app_setting get piwigo do_not_backup_data
2023-01-21 10:19:19,392: DEBUG - 2486 + do_not_backup_data=
2023-01-21 10:19:19,392: DEBUG - 2487 + '[' '!' -e /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf ']'
2023-01-21 10:19:19,393: DEBUG - 2488 ++ realpath /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,396: DEBUG - 2490 + src_path=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,397: DEBUG - 2490 + [[ -z '' ]]
2023-01-21 10:19:19,397: DEBUG - 2490 + dest_path=etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,397: DEBUG - 2491 + [[ -e etc/nginx/conf.d/maindomain.tld.d/piwigo.conf ]]
2023-01-21 10:19:19,398: DEBUG - 2491 + local rel_dir=/apps/piwigo/backup
2023-01-21 10:19:19,398: DEBUG - 2491 + rel_dir=/apps/piwigo/backup/
2023-01-21 10:19:19,398: DEBUG - 2492 + dest_path=/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,398: DEBUG - 2492 + dest_path=apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,398: DEBUG - 2492 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:19,399: DEBUG - 2494 ++ echo /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,401: DEBUG - 2496 + local src=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,402: DEBUG - 2498 ++ echo apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,403: DEBUG - 2498 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:19,406: DEBUG - 2501 + local dest=apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,407: DEBUG - 2502 + echo '"/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf","apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf"'
2023-01-21 10:19:19,408: DEBUG - 2503 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:19:19,409: DEBUG - 2505 + mkdir --parents /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d
2023-01-21 10:19:19,415: DEBUG - 2508 + ynh_backup --src_path=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,461: DEBUG - 2556 + dest_path=
2023-01-21 10:19:19,462: DEBUG - 2556 + is_big=0
2023-01-21 10:19:19,462: DEBUG - 2556 + not_mandatory=0
2023-01-21 10:19:19,462: DEBUG - 2557 + BACKUP_CORE_ONLY=1
2023-01-21 10:19:19,462: DEBUG - 2557 + test -n piwigo
2023-01-21 10:19:19,465: DEBUG - 2558 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
2023-01-21 10:19:19,465: DEBUG - 2559 ++ local _globalapp=piwigo
2023-01-21 10:19:19,509: DEBUG - 2604 ++ app=piwigo
2023-01-21 10:19:19,510: DEBUG - 2605 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:19,510: DEBUG - 2605 ++ ynh_app_setting get piwigo do_not_backup_data
2023-01-21 10:19:19,605: DEBUG - 2699 + do_not_backup_data=
2023-01-21 10:19:19,605: DEBUG - 2700 + '[' '!' -e /etc/php/7.4/fpm/pool.d/piwigo.conf ']'
2023-01-21 10:19:19,606: DEBUG - 2701 ++ realpath /etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,608: DEBUG - 2703 + src_path=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,609: DEBUG - 2704 + [[ -z '' ]]
2023-01-21 10:19:19,609: DEBUG - 2705 + dest_path=etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,610: DEBUG - 2705 + [[ -e etc/php/7.4/fpm/pool.d/piwigo.conf ]]
2023-01-21 10:19:19,611: DEBUG - 2706 + local rel_dir=/apps/piwigo/backup
2023-01-21 10:19:19,612: DEBUG - 2707 + rel_dir=/apps/piwigo/backup/
2023-01-21 10:19:19,612: DEBUG - 2708 + dest_path=/apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,613: DEBUG - 2708 + dest_path=apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,614: DEBUG - 2709 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:19,614: DEBUG - 2710 ++ echo /etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,616: DEBUG - 2711 + local src=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,617: DEBUG - 2712 ++ echo apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,618: DEBUG - 2713 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:19,621: DEBUG - 2716 + local dest=apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,622: DEBUG - 2717 + echo '"/etc/php/7.4/fpm/pool.d/piwigo.conf","apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf"'
2023-01-21 10:19:19,622: DEBUG - 2718 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:19,624: DEBUG - 2719 + mkdir --parents /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/php/7.4/fpm/pool.d
2023-01-21 10:19:19,677: DEBUG - 2772 + ynh_backup --src_path=/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,728: DEBUG - 2822 + dest_path=
2023-01-21 10:19:19,728: DEBUG - 2822 + is_big=0
2023-01-21 10:19:19,728: DEBUG - 2823 + not_mandatory=0
2023-01-21 10:19:19,728: DEBUG - 2823 + BACKUP_CORE_ONLY=1
2023-01-21 10:19:19,728: DEBUG - 2823 + test -n piwigo
2023-01-21 10:19:19,731: DEBUG - 2825 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
2023-01-21 10:19:19,732: DEBUG - 2825 ++ local _globalapp=piwigo
2023-01-21 10:19:19,775: DEBUG - 2870 ++ app=piwigo
2023-01-21 10:19:19,776: DEBUG - 2871 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:19,777: DEBUG - 2872 ++ ynh_app_setting get piwigo do_not_backup_data
2023-01-21 10:19:19,871: DEBUG - 2966 + do_not_backup_data=
2023-01-21 10:19:19,872: DEBUG - 2967 + '[' '!' -e /etc/fail2ban/jail.d/piwigo.conf ']'
2023-01-21 10:19:19,872: DEBUG - 2967 ++ realpath /etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,875: DEBUG - 2969 + src_path=/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,876: DEBUG - 2970 + [[ -z '' ]]
2023-01-21 10:19:19,876: DEBUG - 2970 + dest_path=etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,876: DEBUG - 2970 + [[ -e etc/fail2ban/jail.d/piwigo.conf ]]
2023-01-21 10:19:19,876: DEBUG - 2970 + local rel_dir=/apps/piwigo/backup
2023-01-21 10:19:19,876: DEBUG - 2971 + rel_dir=/apps/piwigo/backup/
2023-01-21 10:19:19,877: DEBUG - 2971 + dest_path=/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,878: DEBUG - 2973 + dest_path=apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,878: DEBUG - 2973 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:19,879: DEBUG - 2974 ++ echo /etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,881: DEBUG - 2976 + local src=/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,882: DEBUG - 2977 ++ echo apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,883: DEBUG - 2978 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:19,886: DEBUG - 2981 + local dest=apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,887: DEBUG - 2982 + echo '"/etc/fail2ban/jail.d/piwigo.conf","apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf"'
2023-01-21 10:19:19,887: DEBUG - 2983 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:19:19,889: DEBUG - 2985 + mkdir --parents /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/jail.d
2023-01-21 10:19:19,895: DEBUG - 2988 + ynh_backup --src_path=/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:19,942: DEBUG - 3036 + dest_path=
2023-01-21 10:19:19,942: DEBUG - 3037 + is_big=0
2023-01-21 10:19:19,942: DEBUG - 3037 + not_mandatory=0
2023-01-21 10:19:19,943: DEBUG - 3037 + BACKUP_CORE_ONLY=1
2023-01-21 10:19:19,943: DEBUG - 3037 + test -n piwigo
2023-01-21 10:19:19,946: DEBUG - 3039 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
2023-01-21 10:19:19,946: DEBUG - 3039 ++ local _globalapp=piwigo
2023-01-21 10:19:19,989: DEBUG - 3084 ++ app=piwigo
2023-01-21 10:19:19,990: DEBUG - 3085 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:19,990: DEBUG - 3086 ++ ynh_app_setting get piwigo do_not_backup_data
2023-01-21 10:19:20,086: DEBUG - 3181 + do_not_backup_data=
2023-01-21 10:19:20,086: DEBUG - 3181 + '[' '!' -e /etc/fail2ban/filter.d/piwigo.conf ']'
2023-01-21 10:19:20,087: DEBUG - 3182 ++ realpath /etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,089: DEBUG - 3184 + src_path=/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,090: DEBUG - 3185 + [[ -z '' ]]
2023-01-21 10:19:20,090: DEBUG - 3185 + dest_path=etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,090: DEBUG - 3185 + [[ -e etc/fail2ban/filter.d/piwigo.conf ]]
2023-01-21 10:19:20,090: DEBUG - 3186 + local rel_dir=/apps/piwigo/backup
2023-01-21 10:19:20,091: DEBUG - 3186 + rel_dir=/apps/piwigo/backup/
2023-01-21 10:19:20,091: DEBUG - 3186 + dest_path=/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,091: DEBUG - 3186 + dest_path=apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,093: DEBUG - 3188 ++ echo /etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,093: DEBUG - 3189 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:20,097: DEBUG - 3192 + local src=/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,099: DEBUG - 3194 ++ echo apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,099: DEBUG - 3195 ++ sed --regexp-extended 's/"/\"\"/g'
2023-01-21 10:19:20,103: DEBUG - 3197 + local dest=apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,103: DEBUG - 3198 + echo '"/etc/fail2ban/filter.d/piwigo.conf","apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf"'
2023-01-21 10:19:20,104: DEBUG - 3199 ++ dirname /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:19:20,105: DEBUG - 3200 + mkdir --parents /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/filter.d
2023-01-21 10:19:20,109: DEBUG - 3204 + ynh_print_info '--message=Backing up the MySQL database...'
2023-01-21 10:19:20,125: DEBUG - 3220 + echo 'Backing up the MySQL database...'
2023-01-21 10:19:20,125: DEBUG - 3220 + ynh_mysql_dump_db --database=piwigo
2023-01-21 10:19:20,125: DEBUG - 3221 Backing up the MySQL database...
2023-01-21 10:19:20,142: DEBUG - 3237 + mysqldump --single-transaction --skip-dump-date piwigo
2023-01-21 10:19:20,774: DEBUG - 3869 + ynh_print_info '--message=Backup script completed for piwigo. (YunoHost will then actually copy those files to the archive).'
2023-01-21 10:19:20,790: DEBUG - 3884 + echo 'Backup script completed for piwigo. (YunoHost will then actually copy those files to the archive).'
2023-01-21 10:19:20,791: DEBUG - 3885 + ynh_exit_properly
2023-01-21 10:19:20,792: DEBUG - 3886 Backup script completed for piwigo. (YunoHost will then actually copy those files to the archive).
2023-01-21 10:19:20,800: DEBUG - 3896 + exit 0
2023-01-21 10:19:21,802: DEBUG - 4897 Permission de sauvegarde pour piwigo
2023-01-21 10:19:21,883: DEBUG - 4978 initializing ldap interface
2023-01-21 10:19:22,647: DEBUG - 5742 Création d'une archive de sauvegarde à partir des fichiers collectés ...
2023-01-21 10:19:22,647: DEBUG - 5743 L'archive contiendra environ 44.3MiB de données.
2023-01-21 10:19:22,648: DEBUG - 5743 Création de l'archive TAR de la sauvegarde ...
2023-01-21 10:19:28,629: DEBUG - 11724 L'archive TAR de la sauvegarde a été créée
2023-01-21 10:19:28,630: DEBUG - 11725 Sauvegarde terminée
2023-01-21 10:19:28,634: DEBUG - 11729 Pour voir le journal de cette opération 'Créer une archive de sauvegarde', utilisez la commande 'yunohost log show 20230121-091917-backup_create'
2023-01-21 10:19:28,709: DEBUG - 11804 action [413856.1] executed in 11.552s
2023-01-21 10:19:28,709: DEBUG - name: piwigo-pre-upgrade2
2023-01-21 10:19:28,709: DEBUG - results:
2023-01-21 10:19:28,709: DEBUG -   apps:
2023-01-21 10:19:28,710: DEBUG -     piwigo: Success
2023-01-21 10:19:28,710: DEBUG -   system:
2023-01-21 10:19:28,710: DEBUG - size: 46399885
2023-01-21 10:19:28,813: DEBUG - + ynh_backup_archive_exists piwigo-pre-upgrade1
2023-01-21 10:19:28,814: DEBUG - + yunohost backup list --output-as json --quiet
2023-01-21 10:19:28,814: DEBUG - + jq -e --arg archive piwigo-pre-upgrade1 '.archives | index($archive)'
2023-01-21 10:19:29,604: DEBUG - + yunohost backup delete piwigo-pre-upgrade1
2023-01-21 10:19:30,194: DEBUG - + ynh_abort_if_errors
2023-01-21 10:19:30,195: DEBUG - + trap ynh_exit_properly EXIT
2023-01-21 10:19:30,341: INFO - [###+................] > Ensuring downward compatibility...
2023-01-21 10:19:30,342: DEBUG - + ynh_legacy_permissions_exists
2023-01-21 10:19:30,343: DEBUG - + for permission in "skipped" "unprotected" "protected"
2023-01-21 10:19:30,343: DEBUG - + ynh_permission_exists --permission=legacy_skipped_uris
2023-01-21 10:19:30,357: DEBUG - + yunohost user permission list piwigo --output-as json --quiet
2023-01-21 10:19:30,357: DEBUG - + jq -e --arg perm piwigo.legacy_skipped_uris '.permissions[$perm]'
2023-01-21 10:19:31,100: DEBUG - + for permission in "skipped" "unprotected" "protected"
2023-01-21 10:19:31,100: DEBUG - + ynh_permission_exists --permission=legacy_unprotected_uris
2023-01-21 10:19:31,115: DEBUG - + yunohost user permission list piwigo --output-as json --quiet
2023-01-21 10:19:31,116: DEBUG - + jq -e --arg perm piwigo.legacy_unprotected_uris '.permissions[$perm]'
2023-01-21 10:19:31,649: DEBUG - + for permission in "skipped" "unprotected" "protected"
2023-01-21 10:19:31,649: DEBUG - + ynh_permission_exists --permission=legacy_protected_uris
2023-01-21 10:19:31,665: DEBUG - + yunohost user permission list piwigo --output-as json --quiet
2023-01-21 10:19:31,666: DEBUG - + jq -e --arg perm piwigo.legacy_protected_uris '.permissions[$perm]'
2023-01-21 10:19:32,202: DEBUG - + return 1
2023-01-21 10:19:32,202: DEBUG - + '[' -z /home/yunohost.app/piwigo ']'
2023-01-21 10:19:32,203: DEBUG - + '[' -z piwigo ']'
2023-01-21 10:19:32,203: DEBUG - + '[' -z /var/www/piwigo ']'
2023-01-21 10:19:32,203: DEBUG - + '[' -z ********** ']'
2023-01-21 10:19:32,203: DEBUG - + '[' -z /piwigo ']'
2023-01-21 10:19:32,307: INFO - [####................] > Making sure dedicated system user exists...
2023-01-21 10:19:32,307: DEBUG - + ynh_system_user_create --username=piwigo --home_dir=/var/www/piwigo
2023-01-21 10:19:32,393: DEBUG - + use_shell=0
2023-01-21 10:19:32,393: DEBUG - + home_dir=/var/www/piwigo
2023-01-21 10:19:32,394: DEBUG - + groups=
2023-01-21 10:19:32,394: DEBUG - + ynh_system_user_exists piwigo
2023-01-21 10:19:32,408: DEBUG - + getent passwd piwigo
2023-01-21 10:19:32,414: DEBUG - + shopt -s extglob
2023-01-21 10:19:32,414: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']'
2023-01-21 10:19:32,518: INFO - [####++..............] > Upgrading source files...
2023-01-21 10:19:32,519: DEBUG - ++ ynh_smart_mktemp --min_size=300
2023-01-21 10:19:32,519: DEBUG - ++ declare -Ar args_array
2023-01-21 10:19:32,534: DEBUG - ++ min_size=300
2023-01-21 10:19:32,534: DEBUG - ++ min_size=307200
2023-01-21 10:19:32,534: DEBUG - ++ is_there_enough_space /tmp
2023-01-21 10:19:32,535: DEBUG - +++ df --output=avail /tmp
2023-01-21 10:19:32,535: DEBUG - +++ sed 1d
2023-01-21 10:19:32,571: DEBUG - ++ local free_space=80925276
2023-01-21 10:19:32,571: DEBUG - ++ test 80925276 -ge 307200
2023-01-21 10:19:32,572: DEBUG - ++ local tmpdir=/tmp
2023-01-21 10:19:32,572: DEBUG - +++ mktemp --directory --tmpdir=/tmp
2023-01-21 10:19:32,574: DEBUG - ++ echo /tmp/tmp.WPkJj9qVCT
2023-01-21 10:19:32,576: DEBUG - + tmpdir=/tmp/tmp.WPkJj9qVCT
2023-01-21 10:19:32,576: DEBUG - + ynh_setup_source --dest_dir=/tmp/tmp.WPkJj9qVCT
2023-01-21 10:19:32,621: DEBUG - + source_id=app
2023-01-21 10:19:32,621: DEBUG - + keep=
2023-01-21 10:19:32,621: DEBUG - + full_replace=0
2023-01-21 10:19:32,621: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,622: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,622: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,626: DEBUG - + local 'src_url=https://piwigo.org/download/dlcounter.php?code=13.4.0'
2023-01-21 10:19:32,627: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,628: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,631: DEBUG - + local src_sum=13c195f3e4fbc02555ce138fd4453164bbf369876b26b78d9bc7f3c5373e2a59
2023-01-21 10:19:32,633: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,633: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,637: DEBUG - + local src_sumprg=sha256sum
2023-01-21 10:19:32,638: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,638: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,642: DEBUG - + local src_format=zip
2023-01-21 10:19:32,643: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,644: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,647: DEBUG - + local src_extract=true
2023-01-21 10:19:32,648: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,649: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,653: DEBUG - + local src_in_subdir=true
2023-01-21 10:19:32,654: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/app.src
2023-01-21 10:19:32,655: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:32,658: DEBUG - + local src_filename=
2023-01-21 10:19:32,658: DEBUG - + src_sumprg=sha256sum
2023-01-21 10:19:32,659: DEBUG - + src_in_subdir=true
2023-01-21 10:19:32,659: DEBUG - + src_format=zip
2023-01-21 10:19:32,660: DEBUG - ++ echo zip
2023-01-21 10:19:32,660: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2023-01-21 10:19:32,662: DEBUG - + src_format=zip
2023-01-21 10:19:32,663: DEBUG - + src_extract=true
2023-01-21 10:19:32,663: DEBUG - + '[' '' = '' ']'
2023-01-21 10:19:32,663: DEBUG - + src_filename=app.zip
2023-01-21 10:19:32,664: DEBUG - + local local_src=/opt/yunohost-apps-src/piwigo/app.zip
2023-01-21 10:19:32,664: DEBUG - + mkdir -p /var/cache/yunohost/download/piwigo/
2023-01-21 10:19:32,692: DEBUG - + src_filename=/var/cache/yunohost/download/piwigo/app.zip
2023-01-21 10:19:32,692: DEBUG - + test -e /opt/yunohost-apps-src/piwigo/app.zip
2023-01-21 10:19:32,707: DEBUG - + '[' -n 'https://piwigo.org/download/dlcounter.php?code=13.4.0' ']'
2023-01-21 10:19:32,708: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/piwigo/app.zip 'https://piwigo.org/download/dlcounter.php?code=13.4.0'
2023-01-21 10:19:33,480: DEBUG - + out='2023-01-21 10:19:33 URL:https://piwigo.org/download/dlcounter.php?code=13.4.0 [18291826/18291826] -> "/var/cache/yunohost/download/piwigo/app.zip" [1]'
2023-01-21 10:19:33,481: DEBUG - + sha256sum --check --status
2023-01-21 10:19:33,672: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-01-21 10:19:33,674: DEBUG - + '[' -n '' ']'
2023-01-21 10:19:33,674: DEBUG - + mkdir --parents /tmp/tmp.WPkJj9qVCT
2023-01-21 10:19:33,676: DEBUG - + '[' -n /var/www/piwigo ']'
2023-01-21 10:19:33,677: DEBUG - + '[' /tmp/tmp.WPkJj9qVCT == /var/www/piwigo ']'
2023-01-21 10:19:33,677: DEBUG - + true
2023-01-21 10:19:33,677: DEBUG - + '[' zip = zip ']'
2023-01-21 10:19:33,677: DEBUG - + true
2023-01-21 10:19:33,677: DEBUG - ++ mktemp --directory
2023-01-21 10:19:33,679: DEBUG - + local tmp_dir=/tmp/tmp.BG5vIdwzhJ
2023-01-21 10:19:33,680: DEBUG - + unzip -quo /var/cache/yunohost/download/piwigo/app.zip -d /tmp/tmp.BG5vIdwzhJ
2023-01-21 10:19:34,865: DEBUG - + cp --archive /tmp/tmp.BG5vIdwzhJ/piwigo/. /tmp/tmp.WPkJj9qVCT
2023-01-21 10:19:35,782: DEBUG - + ynh_secure_remove --file=/tmp/tmp.BG5vIdwzhJ
2023-01-21 10:19:39,779: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/piwigo/app.zip
2023-01-21 10:19:40,381: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/sources/patches/ ']'
2023-01-21 10:19:40,381: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/sources/extra_files/app
2023-01-21 10:19:40,382: DEBUG - + '[' -n '' ']'
2023-01-21 10:19:40,382: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-01-21 10:19:40,383: DEBUG - + mkdir -p /tmp/tmp.WPkJj9qVCT/plugins/Ldap_Login
2023-01-21 10:19:40,386: DEBUG - + ynh_setup_source --dest_dir=/tmp/tmp.WPkJj9qVCT/plugins/Ldap_Login --source_id=ldap_plugin
2023-01-21 10:19:40,475: DEBUG - + source_id=ldap_plugin
2023-01-21 10:19:40,475: DEBUG - + keep=
2023-01-21 10:19:40,475: DEBUG - + full_replace=0
2023-01-21 10:19:40,476: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,476: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,477: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,480: DEBUG - + local 'src_url=https://piwigo.org/ext/download.php?rid=7036'
2023-01-21 10:19:40,481: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,482: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,485: DEBUG - + local src_sum=3c22652f6c0653aaeebe239435796748ee57612ad44e8e5f2553277545d36e5e
2023-01-21 10:19:40,486: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,487: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,491: DEBUG - + local src_sumprg=sha256sum
2023-01-21 10:19:40,492: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,492: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,496: DEBUG - + local src_format=zip
2023-01-21 10:19:40,497: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,498: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,501: DEBUG - + local src_extract=
2023-01-21 10:19:40,502: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,503: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,506: DEBUG - + local src_in_subdir=true
2023-01-21 10:19:40,508: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/ldap_plugin.src
2023-01-21 10:19:40,508: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,512: DEBUG - + local src_filename=
2023-01-21 10:19:40,512: DEBUG - + src_sumprg=sha256sum
2023-01-21 10:19:40,512: DEBUG - + src_in_subdir=true
2023-01-21 10:19:40,513: DEBUG - + src_format=zip
2023-01-21 10:19:40,513: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2023-01-21 10:19:40,515: DEBUG - ++ echo zip
2023-01-21 10:19:40,516: DEBUG - + src_format=zip
2023-01-21 10:19:40,517: DEBUG - + src_extract=true
2023-01-21 10:19:40,517: DEBUG - + '[' '' = '' ']'
2023-01-21 10:19:40,517: DEBUG - + src_filename=ldap_plugin.zip
2023-01-21 10:19:40,517: DEBUG - + local local_src=/opt/yunohost-apps-src/piwigo/ldap_plugin.zip
2023-01-21 10:19:40,518: DEBUG - + mkdir -p /var/cache/yunohost/download/piwigo/
2023-01-21 10:19:40,519: DEBUG - + src_filename=/var/cache/yunohost/download/piwigo/ldap_plugin.zip
2023-01-21 10:19:40,519: DEBUG - + test -e /opt/yunohost-apps-src/piwigo/ldap_plugin.zip
2023-01-21 10:19:40,520: DEBUG - + '[' -n 'https://piwigo.org/ext/download.php?rid=7036' ']'
2023-01-21 10:19:40,520: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/piwigo/ldap_plugin.zip 'https://piwigo.org/ext/download.php?rid=7036'
2023-01-21 10:19:40,640: DEBUG - + out='2023-01-21 10:19:40 URL:https://piwigo.org/ext/download.php?rid=7036 [74375/74375] -> "/var/cache/yunohost/download/piwigo/ldap_plugin.zip" [1]'
2023-01-21 10:19:40,641: DEBUG - + sha256sum --check --status
2023-01-21 10:19:40,644: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-01-21 10:19:40,646: DEBUG - + '[' -n '' ']'
2023-01-21 10:19:40,647: DEBUG - + mkdir --parents /tmp/tmp.WPkJj9qVCT/plugins/Ldap_Login
2023-01-21 10:19:40,649: DEBUG - + '[' -n /var/www/piwigo ']'
2023-01-21 10:19:40,650: DEBUG - + '[' /tmp/tmp.WPkJj9qVCT/plugins/Ldap_Login == /var/www/piwigo ']'
2023-01-21 10:19:40,650: DEBUG - + true
2023-01-21 10:19:40,650: DEBUG - + '[' zip = zip ']'
2023-01-21 10:19:40,650: DEBUG - + true
2023-01-21 10:19:40,651: DEBUG - ++ mktemp --directory
2023-01-21 10:19:40,654: DEBUG - + local tmp_dir=/tmp/tmp.ROVazdjGDh
2023-01-21 10:19:40,654: DEBUG - + unzip -quo /var/cache/yunohost/download/piwigo/ldap_plugin.zip -d /tmp/tmp.ROVazdjGDh
2023-01-21 10:19:40,667: DEBUG - + cp --archive /tmp/tmp.ROVazdjGDh/Ldap_Login/. /tmp/tmp.WPkJj9qVCT/plugins/Ldap_Login
2023-01-21 10:19:40,679: DEBUG - + ynh_secure_remove --file=/tmp/tmp.ROVazdjGDh
2023-01-21 10:19:40,712: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/piwigo/ldap_plugin.zip
2023-01-21 10:19:40,747: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/sources/patches/ ']'
2023-01-21 10:19:40,747: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/sources/extra_files/ldap_plugin
2023-01-21 10:19:40,747: DEBUG - + '[' -n '' ']'
2023-01-21 10:19:40,748: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-01-21 10:19:40,749: DEBUG - + ynh_setup_source --dest_dir=/tmp/tmp.WPkJj9qVCT/plugins --source_id=log_failed_logins_plugin
2023-01-21 10:19:40,840: DEBUG - + source_id=log_failed_logins_plugin
2023-01-21 10:19:40,840: DEBUG - + keep=
2023-01-21 10:19:40,840: DEBUG - + full_replace=0
2023-01-21 10:19:40,840: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,841: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,842: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,845: DEBUG - + local 'src_url=http://piwigo.org/ext/download.php?rid=5525'
2023-01-21 10:19:40,846: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,847: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,851: DEBUG - + local src_sum=85b9a06f2c7ca8ae9698e6151c7631f519c945f696b02da72f9ff53243d7e4ca
2023-01-21 10:19:40,852: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,852: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,856: DEBUG - + local src_sumprg=sha256sum
2023-01-21 10:19:40,857: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,857: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,861: DEBUG - + local src_format=zip
2023-01-21 10:19:40,862: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,863: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,866: DEBUG - + local src_extract=
2023-01-21 10:19:40,868: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,868: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,872: DEBUG - + local src_in_subdir=false
2023-01-21 10:19:40,873: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/log_failed_logins_plugin.src
2023-01-21 10:19:40,874: DEBUG - ++ cut --delimiter== --fields=2-
2023-01-21 10:19:40,877: DEBUG - + local src_filename=
2023-01-21 10:19:40,877: DEBUG - + src_sumprg=sha256sum
2023-01-21 10:19:40,878: DEBUG - + src_in_subdir=false
2023-01-21 10:19:40,878: DEBUG - + src_format=zip
2023-01-21 10:19:40,879: DEBUG - ++ echo zip
2023-01-21 10:19:40,879: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2023-01-21 10:19:40,882: DEBUG - + src_format=zip
2023-01-21 10:19:40,882: DEBUG - + src_extract=true
2023-01-21 10:19:40,882: DEBUG - + '[' '' = '' ']'
2023-01-21 10:19:40,883: DEBUG - + src_filename=log_failed_logins_plugin.zip
2023-01-21 10:19:40,883: DEBUG - + local local_src=/opt/yunohost-apps-src/piwigo/log_failed_logins_plugin.zip
2023-01-21 10:19:40,883: DEBUG - + mkdir -p /var/cache/yunohost/download/piwigo/
2023-01-21 10:19:40,884: DEBUG - + src_filename=/var/cache/yunohost/download/piwigo/log_failed_logins_plugin.zip
2023-01-21 10:19:40,885: DEBUG - + test -e /opt/yunohost-apps-src/piwigo/log_failed_logins_plugin.zip
2023-01-21 10:19:40,885: DEBUG - + '[' -n 'http://piwigo.org/ext/download.php?rid=5525' ']'
2023-01-21 10:19:40,886: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/piwigo/log_failed_logins_plugin.zip 'http://piwigo.org/ext/download.php?rid=5525'
2023-01-21 10:19:41,003: DEBUG - + out='2023-01-21 10:19:40 URL:https://piwigo.org/ext/download.php?rid=5525 [2815/2815] -> "/var/cache/yunohost/download/piwigo/log_failed_logins_plugin.zip" [1]'
2023-01-21 10:19:41,004: DEBUG - + sha256sum --check --status
2023-01-21 10:19:41,007: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-01-21 10:19:41,009: DEBUG - + '[' -n '' ']'
2023-01-21 10:19:41,009: DEBUG - + mkdir --parents /tmp/tmp.WPkJj9qVCT/plugins
2023-01-21 10:19:41,011: DEBUG - + '[' -n /var/www/piwigo ']'
2023-01-21 10:19:41,011: DEBUG - + '[' /tmp/tmp.WPkJj9qVCT/plugins == /var/www/piwigo ']'
2023-01-21 10:19:41,012: DEBUG - + true
2023-01-21 10:19:41,012: DEBUG - + '[' zip = zip ']'
2023-01-21 10:19:41,012: DEBUG - + false
2023-01-21 10:19:41,012: DEBUG - + unzip -quo /var/cache/yunohost/download/piwigo/log_failed_logins_plugin.zip -d /tmp/tmp.WPkJj9qVCT/plugins
2023-01-21 10:19:41,016: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/piwigo/log_failed_logins_plugin.zip
2023-01-21 10:19:41,047: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/sources/patches/ ']'
2023-01-21 10:19:41,048: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/sources/extra_files/log_failed_logins_plugin
2023-01-21 10:19:41,048: DEBUG - + '[' -n '' ']'
2023-01-21 10:19:41,048: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-01-21 10:19:41,050: DEBUG - + cp -a /tmp/tmp.WPkJj9qVCT/about.php /tmp/tmp.WPkJj9qVCT/action.php /tmp/tmp.WPkJj9qVCT/admin /tmp/tmp.WPkJj9qVCT/admin.php /tmp/tmp.WPkJj9qVCT/comments.php /tmp/tmp.WPkJj9qVCT/COPYING.txt /tmp/tmp.WPkJj9qVCT/doc /tmp/tmp.WPkJj9qVCT/docs /tmp/tmp.WPkJj9qVCT/feed.php /tmp/tmp.WPkJj9qVCT/identification.php /tmp/tmp.WPkJj9qVCT/include /tmp/tmp.WPkJj9qVCT/index.php /tmp/tmp.WPkJj9qVCT/install /tmp/tmp.WPkJj9qVCT/install.php /tmp/tmp.WPkJj9qVCT/i.php /tmp/tmp.WPkJj9qVCT/language /tmp/tmp.WPkJj9qVCT/LICENSE.txt /tmp/tmp.WPkJj9qVCT/local /tmp/tmp.WPkJj9qVCT/nbm.php /tmp/tmp.WPkJj9qVCT/notification.php /tmp/tmp.WPkJj9qVCT/password.php /tmp/tmp.WPkJj9qVCT/picture.php /tmp/tmp.WPkJj9qVCT/plugins /tmp/tmp.WPkJj9qVCT/popuphelp.php /tmp/tmp.WPkJj9qVCT/profile.php /tmp/tmp.WPkJj9qVCT/qsearch.php /tmp/tmp.WPkJj9qVCT/random.php /tmp/tmp.WPkJj9qVCT/README.md /tmp/tmp.WPkJj9qVCT/register.php /tmp/tmp.WPkJj9qVCT/search.php /tmp/tmp.WPkJj9qVCT/search_rules.php /tmp/tmp.WPkJj9qVCT/tags.php /tmp/tmp.WPkJj9qVCT/template-extension /tmp/tmp.WPkJj9qVCT/themes /tmp/tmp.WPkJj9qVCT/tools /tmp/tmp.WPkJj9qVCT/upgrade_feed.php /tmp/tmp.WPkJj9qVCT/upgrade.php /tmp/tmp.WPkJj9qVCT/ws.php /var/www/piwigo
2023-01-21 10:19:42,127: DEBUG - + '[' '!' -h /var/www/piwigo/_data ']'
2023-01-21 10:19:42,128: DEBUG - + '[' '!' -h /var/www/piwigo/galleries ']'
2023-01-21 10:19:42,128: DEBUG - + ynh_secure_remove --file=/tmp/tmp.WPkJj9qVCT
2023-01-21 10:19:45,463: DEBUG - + chmod 750 /home/yunohost.app/piwigo
2023-01-21 10:19:45,465: DEBUG - + chmod -R o-rwx /home/yunohost.app/piwigo
2023-01-21 10:19:45,929: DEBUG - + chown -R piwigo:www-data /home/yunohost.app/piwigo
2023-01-21 10:19:45,938: DEBUG - + chmod 750 /var/www/piwigo
2023-01-21 10:19:45,940: DEBUG - + chmod -R o-rwx /var/www/piwigo
2023-01-21 10:19:45,995: DEBUG - + chown -R piwigo:www-data /var/www/piwigo
2023-01-21 10:19:46,200: INFO - [######+++...........] > Upgrading dependencies...
2023-01-21 10:19:46,201: DEBUG - + ynh_install_app_dependencies imagemagick php8.0-gd php8.0-imagick php8.0-xml php8.0-mbstring php8.0-mysqli php8.0-ldap
2023-01-21 10:19:46,201: DEBUG - + local 'dependencies=imagemagick php8.0-gd php8.0-imagick php8.0-xml php8.0-mbstring php8.0-mysqli php8.0-ldap'
2023-01-21 10:19:46,202: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2023-01-21 10:19:46,202: DEBUG - ++ echo 'imagemagick php8.0-gd php8.0-imagick php8.0-xml php8.0-mbstring php8.0-mysqli php8.0-ldap'
2023-01-21 10:19:46,206: DEBUG - + dependencies='imagemagick, php8.0-gd, php8.0-imagick, php8.0-xml, php8.0-mbstring, php8.0-mysqli, php8.0-ldap'
2023-01-21 10:19:46,206: DEBUG - + local 'dependencies=imagemagick, php8.0-gd, php8.0-imagick, php8.0-xml, php8.0-mbstring, php8.0-mysqli, php8.0-ldap'
2023-01-21 10:19:46,206: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/manifest.json
2023-01-21 10:19:46,206: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/manifest.json
2023-01-21 10:19:46,274: DEBUG - + local version=13.4.0~ynh1
2023-01-21 10:19:46,275: DEBUG - + '[' -z 13.4.0~ynh1 ']'
2023-01-21 10:19:46,275: DEBUG - + '[' 13.4.0~ynh1 == null ']'
2023-01-21 10:19:46,275: DEBUG - + local dep_app=piwigo
2023-01-21 10:19:46,275: DEBUG - + [[ imagemagick, php8.0-gd, php8.0-imagick, php8.0-xml, php8.0-mbstring, php8.0-mysqli, php8.0-ldap =~ [<=>] ]]
2023-01-21 10:19:46,276: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)'
2023-01-21 10:19:46,277: DEBUG - ++ sort -u
2023-01-21 10:19:46,279: DEBUG - ++ echo imagemagick, php8.0-gd, php8.0-imagick, php8.0-xml, php8.0-mbstring, php8.0-mysqli, php8.0-ldap
2023-01-21 10:19:46,281: DEBUG - + local specific_php_version=8.0
2023-01-21 10:19:46,281: DEBUG - + [[ -n 8.0 ]]
2023-01-21 10:19:46,282: DEBUG - ++ echo 8.0
2023-01-21 10:19:46,283: DEBUG - ++ wc -l
2023-01-21 10:19:46,286: DEBUG - + [[ 1 -eq 1 ]]
2023-01-21 10:19:46,286: DEBUG - + dependencies+=', php8.0, php8.0-fpm, php8.0-common'
2023-01-21 10:19:46,286: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:19:46,287: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:46,333: DEBUG - ++ app=piwigo
2023-01-21 10:19:46,333: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:46,333: DEBUG - ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:19:46,429: DEBUG - + local old_phpversion=7.4
2023-01-21 10:19:46,430: DEBUG - + '[' -n 7.4 ']'
2023-01-21 10:19:46,430: DEBUG - + '[' 7.4 '!=' 8.0 ']'
2023-01-21 10:19:46,430: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=fpm_config_dir
2023-01-21 10:19:46,430: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:46,477: DEBUG - ++ app=piwigo
2023-01-21 10:19:46,477: DEBUG - ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:46,477: DEBUG - ++ ynh_app_setting get piwigo fpm_config_dir
2023-01-21 10:19:46,573: DEBUG - + local old_php_fpm_config_dir=/etc/php/7.4/fpm
2023-01-21 10:19:46,573: DEBUG - + local old_php_finalphpconf=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:46,574: DEBUG - + [[ -f /etc/php/7.4/fpm/pool.d/piwigo.conf ]]
2023-01-21 10:19:46,574: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:46,588: DEBUG - + local checksum_setting_name=checksum__etc_php_7.4_fpm_pool.d_piwigo.conf
2023-01-21 10:19:46,589: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=checksum__etc_php_7.4_fpm_pool.d_piwigo.conf
2023-01-21 10:19:46,590: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:46,637: DEBUG - ++ app=piwigo
2023-01-21 10:19:46,637: DEBUG - ++ [[ checksum__etc_php_7.4_fpm_pool.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:46,638: DEBUG - ++ ynh_app_setting get piwigo checksum__etc_php_7.4_fpm_pool.d_piwigo.conf
2023-01-21 10:19:46,734: DEBUG - + local checksum_value=39c0748ab96889f733f28f9c557df31c
2023-01-21 10:19:46,735: DEBUG - + backup_file_checksum=
2023-01-21 10:19:46,735: DEBUG - + '[' -n 39c0748ab96889f733f28f9c557df31c ']'
2023-01-21 10:19:46,735: DEBUG - + '[' -e /etc/php/7.4/fpm/pool.d/piwigo.conf ']'
2023-01-21 10:19:46,736: DEBUG - + md5sum --check --status
2023-01-21 10:19:46,781: DEBUG - + ynh_remove_fpm_config
2023-01-21 10:19:46,782: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=fpm_config_dir
2023-01-21 10:19:46,783: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:46,830: DEBUG - ++ app=piwigo
2023-01-21 10:19:46,830: DEBUG - ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:46,831: DEBUG - ++ ynh_app_setting get piwigo fpm_config_dir
2023-01-21 10:19:46,928: DEBUG - + local fpm_config_dir=/etc/php/7.4/fpm
2023-01-21 10:19:46,929: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=fpm_service
2023-01-21 10:19:46,929: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:46,978: DEBUG - ++ app=piwigo
2023-01-21 10:19:46,978: DEBUG - ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:46,978: DEBUG - ++ ynh_app_setting get piwigo fpm_service
2023-01-21 10:19:47,078: DEBUG - + local fpm_service=php7.4-fpm
2023-01-21 10:19:47,079: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=fpm_dedicated_service
2023-01-21 10:19:47,079: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:47,128: DEBUG - ++ app=piwigo
2023-01-21 10:19:47,129: DEBUG - ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:47,129: DEBUG - ++ ynh_app_setting get piwigo fpm_dedicated_service
2023-01-21 10:19:47,225: DEBUG - + local dedicated_service=0
2023-01-21 10:19:47,225: DEBUG - + dedicated_service=0
2023-01-21 10:19:47,226: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:19:47,226: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:19:47,275: DEBUG - ++ app=piwigo
2023-01-21 10:19:47,275: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:47,276: DEBUG - ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:19:47,378: DEBUG - + local phpversion=7.4
2023-01-21 10:19:47,379: DEBUG - + phpversion=7.4
2023-01-21 10:19:47,379: DEBUG - + '[' -z /etc/php/7.4/fpm ']'
2023-01-21 10:19:47,380: DEBUG - + ynh_secure_remove --file=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:19:47,409: DEBUG - + '[' -e /etc/php/7.4/fpm/conf.d/20-piwigo.ini ']'
2023-01-21 10:19:47,410: DEBUG - + ynh_package_is_installed --package=php7.4-fpm
2023-01-21 10:19:47,425: DEBUG - + ynh_wait_dpkg_free
2023-01-21 10:19:47,634: DEBUG - + return 0
2023-01-21 10:19:47,635: DEBUG - + dpkg-query --show '--showformat=${Status}' php7.4-fpm
2023-01-21 10:19:47,635: DEBUG - + grep --count 'ok installed'
2023-01-21 10:19:47,665: DEBUG - + ynh_systemd_action --service_name=php7.4-fpm --action=reload
2023-01-21 10:19:47,790: DEBUG - + service_name=php7.4-fpm
2023-01-21 10:19:47,791: DEBUG - + action=reload
2023-01-21 10:19:47,791: DEBUG - + line_match=
2023-01-21 10:19:47,791: DEBUG - + length=20
2023-01-21 10:19:47,791: DEBUG - + log_path=/var/log/php7.4-fpm/php7.4-fpm.log
2023-01-21 10:19:47,791: DEBUG - + timeout=300
2023-01-21 10:19:47,792: DEBUG - + '[' reload == stop ']'
2023-01-21 10:19:47,792: DEBUG - + '[' reload == reload ']'
2023-01-21 10:19:47,792: DEBUG - + action=reload-or-restart
2023-01-21 10:19:47,792: DEBUG - + systemctl reload-or-restart php7.4-fpm
2023-01-21 10:19:48,107: DEBUG - + '[' 7.4 '!=' 7.4 ']'
2023-01-21 10:19:48,107: DEBUG - + ynh_app_setting_set --app=piwigo --key=phpversion --value=8.0
2023-01-21 10:19:48,107: DEBUG - + local _globalapp=piwigo
2023-01-21 10:19:48,210: DEBUG - + app=piwigo
2023-01-21 10:19:48,211: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:19:48,211: DEBUG - + ynh_app_setting set piwigo phpversion 8.0
2023-01-21 10:19:48,311: DEBUG - + update-alternatives --set php /usr/bin/php7.4
2023-01-21 10:19:48,445: DEBUG - ++ ynh_package_is_installed postgresql-13
2023-01-21 10:19:48,464: DEBUG - ++ ynh_wait_dpkg_free
2023-01-21 10:19:48,645: DEBUG - ++ return 0
2023-01-21 10:19:48,646: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2023-01-21 10:19:48,647: DEBUG - ++ grep --count 'ok installed'
2023-01-21 10:19:48,676: DEBUG - ++ echo yes
2023-01-21 10:19:48,677: DEBUG - + local psql_installed=yes
2023-01-21 10:19:48,677: DEBUG - + [[ true == \t\r\u\e ]]
2023-01-21 10:19:48,678: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2023-01-21 10:19:48,678: DEBUG - + cat
2023-01-21 10:19:48,680: DEBUG - + ynh_package_install_from_equivs /tmp/piwigo-ynh-deps.control
2023-01-21 10:19:48,680: DEBUG - + local controlfile=/tmp/piwigo-ynh-deps.control
2023-01-21 10:19:48,681: DEBUG - ++ grep '^Package: ' /tmp/piwigo-ynh-deps.control
2023-01-21 10:19:48,681: DEBUG - ++ cut '--delimiter= ' --fields=2
2023-01-21 10:19:48,685: DEBUG - + local pkgname=piwigo-ynh-deps
2023-01-21 10:19:48,686: DEBUG - ++ grep '^Version: ' /tmp/piwigo-ynh-deps.control
2023-01-21 10:19:48,686: DEBUG - ++ cut '--delimiter= ' --fields=2
2023-01-21 10:19:48,690: DEBUG - + local pkgversion=13.4.0~ynh1
2023-01-21 10:19:48,690: DEBUG - + [[ -z piwigo-ynh-deps ]]
2023-01-21 10:19:48,691: DEBUG - + [[ -z 13.4.0~ynh1 ]]
2023-01-21 10:19:48,691: DEBUG - + ynh_package_update
2023-01-21 10:19:48,691: DEBUG - + ynh_apt update
2023-01-21 10:19:48,691: DEBUG - + ynh_wait_dpkg_free
2023-01-21 10:19:48,868: DEBUG - + return 0
2023-01-21 10:19:48,868: DEBUG - + LC_ALL=C
2023-01-21 10:19:48,868: DEBUG - + DEBIAN_FRONTEND=noninteractive
2023-01-21 10:19:48,869: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2023-01-21 10:19:49,083: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease
2023-01-21 10:19:49,112: DEBUG - Hit:2 http://security.debian.org bullseye-security InRelease
2023-01-21 10:19:49,113: DEBUG - Hit:3 http://ftp.debian.org/debian bullseye InRelease
2023-01-21 10:19:49,115: DEBUG - Hit:4 https://packages.sury.org/php bullseye InRelease
2023-01-21 10:19:49,130: DEBUG - Hit:5 http://ftp.debian.org/debian bullseye-updates InRelease
2023-01-21 10:19:51,733: DEBUG - Reading package lists...
2023-01-21 10:19:51,779: DEBUG - ++ mktemp --directory
2023-01-21 10:19:51,781: DEBUG - + local TMPDIR=/tmp/tmp.ZoZvjGSjTX
2023-01-21 10:19:51,781: DEBUG - + rm -f /usr/share/equivs/template/debian/compat
2023-01-21 10:19:51,783: DEBUG - + ynh_wait_dpkg_free
2023-01-21 10:19:51,975: DEBUG - + return 0
2023-01-21 10:19:51,976: DEBUG - + cp /tmp/piwigo-ynh-deps.control /tmp/tmp.ZoZvjGSjTX/control
2023-01-21 10:19:51,980: DEBUG - + cd /tmp/tmp.ZoZvjGSjTX
2023-01-21 10:19:51,980: DEBUG - + LC_ALL=C
2023-01-21 10:19:51,981: DEBUG - + equivs-build ./control
2023-01-21 10:19:54,645: DEBUG - dpkg-buildpackage: info: source package piwigo-ynh-deps
2023-01-21 10:19:54,646: DEBUG - dpkg-buildpackage: info: source version 13.4.0~ynh1
2023-01-21 10:19:54,646: DEBUG - dpkg-buildpackage: info: source distribution unstable
2023-01-21 10:19:54,646: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@yunohost.yunohost.org>
2023-01-21 10:19:54,900: DEBUG -  dpkg-source --before-build .
2023-01-21 10:19:54,901: DEBUG - dpkg-buildpackage: info: host architecture amd64
2023-01-21 10:19:55,257: DEBUG -  debian/rules clean
2023-01-21 10:19:55,302: DEBUG - dh clean
2023-01-21 10:19:55,730: DEBUG -    dh_clean
2023-01-21 10:19:55,804: DEBUG -  debian/rules binary
2023-01-21 10:19:55,807: DEBUG - dh binary
2023-01-21 10:19:55,988: DEBUG -    dh_update_autotools_config
2023-01-21 10:19:56,053: DEBUG -    dh_autoreconf
2023-01-21 10:19:56,190: DEBUG -    create-stamp debian/debhelper-build-stamp
2023-01-21 10:19:56,190: DEBUG -    dh_prep
2023-01-21 10:19:56,265: DEBUG -    dh_install
2023-01-21 10:19:56,343: DEBUG -    dh_installdocs
2023-01-21 10:19:56,436: DEBUG -    dh_installchangelogs
2023-01-21 10:19:56,641: DEBUG -    dh_perl
2023-01-21 10:19:56,763: DEBUG -    dh_link
2023-01-21 10:19:56,931: DEBUG -    dh_strip_nondeterminism
2023-01-21 10:19:57,551: DEBUG -    dh_compress
2023-01-21 10:19:57,690: DEBUG -    dh_fixperms
2023-01-21 10:19:57,833: DEBUG -    dh_missing
2023-01-21 10:19:57,902: DEBUG -    dh_installdeb
2023-01-21 10:19:57,984: DEBUG -    dh_gencontrol
2023-01-21 10:19:58,421: DEBUG -    dh_md5sums
2023-01-21 10:19:58,500: DEBUG -    dh_builddeb
2023-01-21 10:19:58,571: DEBUG - dpkg-deb: building package 'piwigo-ynh-deps' in '../piwigo-ynh-deps_13.4.0~ynh1_all.deb'.
2023-01-21 10:19:58,692: DEBUG -  dpkg-genbuildinfo --build=binary
2023-01-21 10:19:59,680: DEBUG -  dpkg-genchanges --build=binary >../piwigo-ynh-deps_13.4.0~ynh1_amd64.changes
2023-01-21 10:19:59,884: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included)
2023-01-21 10:19:59,890: DEBUG -  dpkg-source --after-build .
2023-01-21 10:20:00,130: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included)
2023-01-21 10:20:00,138: DEBUG - 
2023-01-21 10:20:00,139: DEBUG - The package has been created.
2023-01-21 10:20:00,139: DEBUG - Attention, the package has been created in the current directory,
2023-01-21 10:20:00,139: DEBUG - not in ".." as indicated by the message above!
2023-01-21 10:20:00,141: DEBUG - + LC_ALL=C
2023-01-21 10:20:00,142: DEBUG - + tee ./dpkg_log
2023-01-21 10:20:00,142: DEBUG - + dpkg --force-depends --install ./piwigo-ynh-deps_13.4.0~ynh1_all.deb
2023-01-21 10:20:00,381: DEBUG - (Reading database ... 66762 files and directories currently installed.)
2023-01-21 10:20:00,389: DEBUG - Preparing to unpack .../piwigo-ynh-deps_13.4.0~ynh1_all.deb ...
2023-01-21 10:20:00,540: DEBUG - Unpacking piwigo-ynh-deps (13.4.0~ynh1) over (12.3.0~ynh1) ...
2023-01-21 10:20:00,868: DEBUG - Setting up piwigo-ynh-deps (13.4.0~ynh1) ...
2023-01-21 10:20:01,176: DEBUG - + ynh_package_install --fix-broken
2023-01-21 10:20:01,176: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2023-01-21 10:20:01,177: DEBUG - + ynh_wait_dpkg_free
2023-01-21 10:20:01,360: DEBUG - + return 0
2023-01-21 10:20:01,360: DEBUG - + LC_ALL=C
2023-01-21 10:20:01,361: DEBUG - + DEBIAN_FRONTEND=noninteractive
2023-01-21 10:20:01,361: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2023-01-21 10:20:01,776: DEBUG - Reading package lists...
2023-01-21 10:20:02,148: DEBUG - Building dependency tree...
2023-01-21 10:20:02,150: DEBUG - Reading state information...
2023-01-21 10:20:02,745: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2023-01-21 10:20:02,746: DEBUG - + [[ -n /tmp/tmp.ZoZvjGSjTX ]]
2023-01-21 10:20:02,746: DEBUG - + rm --recursive --force /tmp/tmp.ZoZvjGSjTX
2023-01-21 10:20:02,748: DEBUG - + ynh_package_is_installed piwigo-ynh-deps
2023-01-21 10:20:02,764: DEBUG - + ynh_wait_dpkg_free
2023-01-21 10:20:02,953: DEBUG - + return 0
2023-01-21 10:20:02,954: DEBUG - + dpkg-query --show '--showformat=${Status}' piwigo-ynh-deps
2023-01-21 10:20:02,955: DEBUG - + grep --count 'ok installed'
2023-01-21 10:20:02,984: DEBUG - + rm /tmp/piwigo-ynh-deps.control
2023-01-21 10:20:02,986: DEBUG - ++ ynh_package_is_installed postgresql-13
2023-01-21 10:20:03,002: DEBUG - ++ ynh_wait_dpkg_free
2023-01-21 10:20:03,187: DEBUG - ++ return 0
2023-01-21 10:20:03,188: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2023-01-21 10:20:03,188: DEBUG - ++ grep --count 'ok installed'
2023-01-21 10:20:03,217: DEBUG - ++ echo yes
2023-01-21 10:20:03,217: DEBUG - + local psql_installed2=yes
2023-01-21 10:20:03,217: DEBUG - + [[ yes != \y\e\s ]]
2023-01-21 10:20:03,328: INFO - [#########+..........] > Upgrading PHP-FPM configuration...
2023-01-21 10:20:03,329: DEBUG - + ynh_add_fpm_config
2023-01-21 10:20:03,331: DEBUG - + package=
2023-01-21 10:20:03,331: DEBUG - + use_template=1
2023-01-21 10:20:03,331: DEBUG - + usage=
2023-01-21 10:20:03,332: DEBUG - + footprint=
2023-01-21 10:20:03,332: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:03,332: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:03,332: DEBUG - + dedicated_service=0
2023-01-21 10:20:03,332: DEBUG - + phpversion=8.0
2023-01-21 10:20:03,333: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:20:03,333: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:20:03,375: DEBUG - ++ app=piwigo
2023-01-21 10:20:03,376: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:03,376: DEBUG - ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:20:03,471: DEBUG - + local old_phpversion=8.0
2023-01-21 10:20:03,471: DEBUG - + '[' -n 8.0 ']'
2023-01-21 10:20:03,471: DEBUG - + '[' 8.0 '!=' 8.0 ']'
2023-01-21 10:20:03,471: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:03,472: DEBUG - + local fpm_service=php8.0-fpm
2023-01-21 10:20:03,472: DEBUG - + local fpm_config_dir=/etc/php/8.0/fpm
2023-01-21 10:20:03,472: DEBUG - + mkdir --parents /etc/php/8.0/fpm/pool.d
2023-01-21 10:20:03,473: DEBUG - + ynh_app_setting_set --app=piwigo --key=fpm_config_dir --value=/etc/php/8.0/fpm
2023-01-21 10:20:03,474: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:03,567: DEBUG - + app=piwigo
2023-01-21 10:20:03,567: DEBUG - + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:03,568: DEBUG - + ynh_app_setting set piwigo fpm_config_dir /etc/php/8.0/fpm
2023-01-21 10:20:03,666: DEBUG - + ynh_app_setting_set --app=piwigo --key=fpm_service --value=php8.0-fpm
2023-01-21 10:20:03,666: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:03,759: DEBUG - + app=piwigo
2023-01-21 10:20:03,760: DEBUG - + [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:03,760: DEBUG - + ynh_app_setting set piwigo fpm_service php8.0-fpm
2023-01-21 10:20:03,859: DEBUG - + ynh_app_setting_set --app=piwigo --key=fpm_dedicated_service --value=0
2023-01-21 10:20:03,859: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:03,952: DEBUG - + app=piwigo
2023-01-21 10:20:03,953: DEBUG - + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:03,953: DEBUG - + ynh_app_setting set piwigo fpm_dedicated_service 0
2023-01-21 10:20:04,053: DEBUG - + ynh_app_setting_set --app=piwigo --key=phpversion --value=8.0
2023-01-21 10:20:04,053: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:04,145: DEBUG - + app=piwigo
2023-01-21 10:20:04,146: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:04,146: DEBUG - + ynh_app_setting set piwigo phpversion 8.0
2023-01-21 10:20:04,246: DEBUG - + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf
2023-01-21 10:20:04,246: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf ']'
2023-01-21 10:20:04,246: DEBUG - + local finalphpconf=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,246: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf --destination=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,292: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf//var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf ']'
2023-01-21 10:20:04,292: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf ']'
2023-01-21 10:20:04,292: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf
2023-01-21 10:20:04,293: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,307: DEBUG - + local checksum_setting_name=checksum__etc_php_8.0_fpm_pool.d_piwigo.conf
2023-01-21 10:20:04,308: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=checksum__etc_php_8.0_fpm_pool.d_piwigo.conf
2023-01-21 10:20:04,308: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:20:04,354: DEBUG - ++ app=piwigo
2023-01-21 10:20:04,355: DEBUG - ++ [[ checksum__etc_php_8.0_fpm_pool.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:04,355: DEBUG - ++ ynh_app_setting get piwigo checksum__etc_php_8.0_fpm_pool.d_piwigo.conf
2023-01-21 10:20:04,449: DEBUG - + local checksum_value=
2023-01-21 10:20:04,449: DEBUG - + backup_file_checksum=
2023-01-21 10:20:04,449: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:04,449: DEBUG - + touch /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,451: DEBUG - + chown root:root /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,453: DEBUG - + chmod 640 /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,455: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.conf /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,458: DEBUG - + _ynh_apply_default_permissions /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,458: DEBUG - + local target=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,459: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/manifest.json
2023-01-21 10:20:04,459: DEBUG - ++ tr -d '>= '
2023-01-21 10:20:04,528: DEBUG - + local ynh_requirement=11.0.9
2023-01-21 10:20:04,529: DEBUG - + '[' -z 11.0.9 ']'
2023-01-21 10:20:04,529: DEBUG - + '[' 11.0.9 == null ']'
2023-01-21 10:20:04,529: DEBUG - + dpkg --compare-versions 11.0.9 ge 4.2
2023-01-21 10:20:04,531: DEBUG - + chmod o-rwx /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,533: DEBUG - + chmod g-w /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,535: DEBUG - + chown -R root:root /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,538: DEBUG - + ynh_system_user_exists piwigo
2023-01-21 10:20:04,552: DEBUG - + getent passwd piwigo
2023-01-21 10:20:04,554: DEBUG - + chown piwigo:piwigo /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,560: DEBUG - + echo /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,560: DEBUG - + grep -q '^/etc/cron'
2023-01-21 10:20:04,563: DEBUG - + ynh_replace_vars --file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,578: DEBUG - + test -n /piwigo
2023-01-21 10:20:04,578: DEBUG - + local path_url_slash_less=/piwigo
2023-01-21 10:20:04,579: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,675: DEBUG - + sed --in-place s@__PATH__/@/piwigo/@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,678: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/piwigo --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,777: DEBUG - + sed --in-place s@__PATH__@/piwigo@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,780: DEBUG - + test -n piwigo
2023-01-21 10:20:04,780: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=piwigo --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,880: DEBUG - + sed --in-place s@__NAME__@piwigo@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,883: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,983: DEBUG - + sed --in-place s@__NAMETOCHANGE__@piwigo@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:04,987: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=piwigo --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,088: DEBUG - + sed --in-place s@__USER__@piwigo@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,092: DEBUG - + test -n /var/www/piwigo
2023-01-21 10:20:05,092: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,193: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/piwigo@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,196: DEBUG - + test -n 8.0
2023-01-21 10:20:05,197: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=8.0 --target_file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,293: DEBUG - + sed --in-place s@__PHPVERSION__@8.0@g /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,297: DEBUG - + test -n ''
2023-01-21 10:20:05,298: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,299: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-01-21 10:20:05,300: DEBUG - ++ sort --unique
2023-01-21 10:20:05,305: DEBUG - + uniques_vars=()
2023-01-21 10:20:05,305: DEBUG - + local delimit=@
2023-01-21 10:20:05,305: DEBUG - + ynh_store_file_checksum --file=/etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,307: DEBUG - + update_only=0
2023-01-21 10:20:05,332: DEBUG - + local checksum_setting_name=checksum__etc_php_8.0_fpm_pool.d_piwigo.conf
2023-01-21 10:20:05,334: DEBUG - ++ md5sum /etc/php/8.0/fpm/pool.d/piwigo.conf
2023-01-21 10:20:05,334: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-01-21 10:20:05,337: DEBUG - + ynh_app_setting_set --app=piwigo --key=checksum__etc_php_8.0_fpm_pool.d_piwigo.conf --value=4c1c55ff6c0ef235b157ede0345bbc5c
2023-01-21 10:20:05,338: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:05,435: DEBUG - + app=piwigo
2023-01-21 10:20:05,435: DEBUG - + [[ checksum__etc_php_8.0_fpm_pool.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:05,435: DEBUG - + ynh_app_setting set piwigo checksum__etc_php_8.0_fpm_pool.d_piwigo.conf 4c1c55ff6c0ef235b157ede0345bbc5c
2023-01-21 10:20:05,535: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:05,535: DEBUG - + unset backup_file_checksum
2023-01-21 10:20:05,536: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/php-fpm.ini ']'
2023-01-21 10:20:05,536: DEBUG - + php-fpm8.0 --test
2023-01-21 10:20:06,091: DEBUG - + ynh_systemd_action --service_name=php8.0-fpm --action=reload
2023-01-21 10:20:06,221: DEBUG - + service_name=php8.0-fpm
2023-01-21 10:20:06,221: DEBUG - + action=reload
2023-01-21 10:20:06,221: DEBUG - + line_match=
2023-01-21 10:20:06,221: DEBUG - + length=20
2023-01-21 10:20:06,221: DEBUG - + log_path=/var/log/php8.0-fpm/php8.0-fpm.log
2023-01-21 10:20:06,222: DEBUG - + timeout=300
2023-01-21 10:20:06,222: DEBUG - + '[' reload == stop ']'
2023-01-21 10:20:06,222: DEBUG - + '[' reload == reload ']'
2023-01-21 10:20:06,222: DEBUG - + action=reload-or-restart
2023-01-21 10:20:06,223: DEBUG - + systemctl reload-or-restart php8.0-fpm
2023-01-21 10:20:06,263: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:20:06,264: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:20:06,333: DEBUG - ++ app=piwigo
2023-01-21 10:20:06,333: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:06,334: DEBUG - ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:20:06,447: DEBUG - + phpversion=8.0
2023-01-21 10:20:06,576: INFO - [##########+.........] > Upgrading NGINX web server configuration...
2023-01-21 10:20:06,577: DEBUG - + ynh_add_nginx_config
2023-01-21 10:20:06,578: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,578: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,629: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/nginx.conf ']'
2023-01-21 10:20:06,629: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/nginx.conf
2023-01-21 10:20:06,629: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,646: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf
2023-01-21 10:20:06,647: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf
2023-01-21 10:20:06,648: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:20:06,702: DEBUG - ++ app=piwigo
2023-01-21 10:20:06,703: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:06,703: DEBUG - ++ ynh_app_setting get piwigo checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf
2023-01-21 10:20:06,802: DEBUG - + local checksum_value=
2023-01-21 10:20:06,802: DEBUG - + backup_file_checksum=
2023-01-21 10:20:06,802: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:06,803: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,804: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,806: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,809: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,812: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,812: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,813: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/manifest.json
2023-01-21 10:20:06,814: DEBUG - ++ tr -d '>= '
2023-01-21 10:20:06,886: DEBUG - + local ynh_requirement=11.0.9
2023-01-21 10:20:06,886: DEBUG - + '[' -z 11.0.9 ']'
2023-01-21 10:20:06,886: DEBUG - + '[' 11.0.9 == null ']'
2023-01-21 10:20:06,887: DEBUG - + dpkg --compare-versions 11.0.9 ge 4.2
2023-01-21 10:20:06,890: DEBUG - + chmod o-rwx /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,892: DEBUG - + chmod g-w /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,894: DEBUG - + chown -R root:root /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,896: DEBUG - + ynh_system_user_exists piwigo
2023-01-21 10:20:06,912: DEBUG - + getent passwd piwigo
2023-01-21 10:20:06,915: DEBUG - + chown piwigo:piwigo /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,917: DEBUG - + echo /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,918: DEBUG - + grep -q '^/etc/cron'
2023-01-21 10:20:06,921: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:06,936: DEBUG - + test -n /piwigo
2023-01-21 10:20:06,936: DEBUG - + local path_url_slash_less=/piwigo
2023-01-21 10:20:06,937: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,037: DEBUG - + sed --in-place s@__PATH__/@/piwigo/@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,048: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/piwigo --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,150: DEBUG - + sed --in-place s@__PATH__@/piwigo@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,153: DEBUG - + test -n piwigo
2023-01-21 10:20:07,153: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=piwigo --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,256: DEBUG - + sed --in-place s@__NAME__@piwigo@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,259: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,362: DEBUG - + sed --in-place s@__NAMETOCHANGE__@piwigo@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,365: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=piwigo --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,468: DEBUG - + sed --in-place s@__USER__@piwigo@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,471: DEBUG - + test -n /var/www/piwigo
2023-01-21 10:20:07,472: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,575: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/piwigo@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,578: DEBUG - + test -n 8.0
2023-01-21 10:20:07,579: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=8.0 --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,680: DEBUG - + sed --in-place s@__PHPVERSION__@8.0@g /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,684: DEBUG - + test -n ''
2023-01-21 10:20:07,685: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,686: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-01-21 10:20:07,689: DEBUG - ++ sort --unique
2023-01-21 10:20:07,692: DEBUG - + uniques_vars=()
2023-01-21 10:20:07,692: DEBUG - + local delimit=@
2023-01-21 10:20:07,693: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,694: DEBUG - + update_only=0
2023-01-21 10:20:07,720: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf
2023-01-21 10:20:07,722: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:07,722: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-01-21 10:20:07,725: DEBUG - + ynh_app_setting_set --app=piwigo --key=checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf --value=ca6448681e82fe152d33860b93592b28
2023-01-21 10:20:07,726: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:07,827: DEBUG - + app=piwigo
2023-01-21 10:20:07,827: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:07,828: DEBUG - + ynh_app_setting set piwigo checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf ca6448681e82fe152d33860b93592b28
2023-01-21 10:20:07,927: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:07,928: DEBUG - + unset backup_file_checksum
2023-01-21 10:20:07,928: DEBUG - + '[' /piwigo '!=' / ']'
2023-01-21 10:20:07,928: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:08,032: DEBUG - + sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:08,035: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:08,036: DEBUG - + update_only=0
2023-01-21 10:20:08,063: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf
2023-01-21 10:20:08,064: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:20:08,065: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-01-21 10:20:08,068: DEBUG - + ynh_app_setting_set --app=piwigo --key=checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf --value=e2c42f3a10daa60f64f722aab1d7b83e
2023-01-21 10:20:08,069: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:08,170: DEBUG - + app=piwigo
2023-01-21 10:20:08,170: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:08,171: DEBUG - + ynh_app_setting set piwigo checksum__etc_nginx_conf.d_maindomain.tld.d_piwigo.conf e2c42f3a10daa60f64f722aab1d7b83e
2023-01-21 10:20:08,271: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:08,271: DEBUG - + unset backup_file_checksum
2023-01-21 10:20:08,271: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2023-01-21 10:20:08,402: DEBUG - + service_name=nginx
2023-01-21 10:20:08,402: DEBUG - + action=reload
2023-01-21 10:20:08,402: DEBUG - + line_match=
2023-01-21 10:20:08,402: DEBUG - + length=20
2023-01-21 10:20:08,403: DEBUG - + log_path=/var/log/nginx/nginx.log
2023-01-21 10:20:08,403: DEBUG - + timeout=300
2023-01-21 10:20:08,403: DEBUG - + '[' reload == stop ']'
2023-01-21 10:20:08,403: DEBUG - + '[' reload == reload ']'
2023-01-21 10:20:08,404: DEBUG - + action=reload-or-restart
2023-01-21 10:20:08,404: DEBUG - + systemctl reload-or-restart nginx
2023-01-21 10:20:08,654: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2023-01-21 10:20:08,656: INFO - [###########+++......] > Upgrading Piwigo with cURL...
2023-01-21 10:20:08,797: DEBUG - + service_name=nginx
2023-01-21 10:20:08,797: DEBUG - + action=reload
2023-01-21 10:20:08,797: DEBUG - + line_match=
2023-01-21 10:20:08,797: DEBUG - + length=20
2023-01-21 10:20:08,797: DEBUG - + log_path=/var/log/nginx/nginx.log
2023-01-21 10:20:08,798: DEBUG - + timeout=300
2023-01-21 10:20:08,798: DEBUG - + '[' reload == stop ']'
2023-01-21 10:20:08,798: DEBUG - + '[' reload == reload ']'
2023-01-21 10:20:08,798: DEBUG - + action=reload-or-restart
2023-01-21 10:20:08,798: DEBUG - + systemctl reload-or-restart nginx
2023-01-21 10:20:08,905: DEBUG - + '[' fr = fr ']'
2023-01-21 10:20:08,905: DEBUG - + applanguage=fr_FR
2023-01-21 10:20:08,906: DEBUG - + ynh_local_curl '/upgrade.php?language=fr_FR&now=true' language=fr_FR username=stef password=**********
2023-01-21 10:20:08,908: DEBUG - ++ ynh_normalize_url_path '/upgrade.php?language=fr_FR&now=true'
2023-01-21 10:20:08,932: DEBUG - ++ test -n '/upgrade.php?language=fr_FR&now=true'
2023-01-21 10:20:08,933: DEBUG - ++ '[' / '!=' / ']'
2023-01-21 10:20:08,933: DEBUG - ++ '[' e == / ']'
2023-01-21 10:20:08,933: DEBUG - ++ echo '/upgrade.php?language=fr_FR&now=true'
2023-01-21 10:20:08,934: DEBUG - + local 'local_page=/upgrade.php?language=fr_FR&now=true'
2023-01-21 10:20:08,934: DEBUG - + local 'full_path=/piwigo/upgrade.php?language=fr_FR&now=true'
2023-01-21 10:20:08,934: DEBUG - + '[' /piwigo == / ']'
2023-01-21 10:20:08,934: DEBUG - + local 'full_page_url=https://localhost/piwigo/upgrade.php?language=fr_FR&now=true'
2023-01-21 10:20:08,934: DEBUG - + local POST_data=
2023-01-21 10:20:08,935: DEBUG - + local arg=
2023-01-21 10:20:08,935: DEBUG - + for arg in "${@:2}"
2023-01-21 10:20:08,935: DEBUG - + POST_data='language=fr_FR&'
2023-01-21 10:20:08,935: DEBUG - + for arg in "${@:2}"
2023-01-21 10:20:08,935: DEBUG - + POST_data='language=fr_FR&username=stef&'
2023-01-21 10:20:08,935: DEBUG - + for arg in "${@:2}"
2023-01-21 10:20:08,936: DEBUG - + POST_data='language=fr_FR&username=stef&password=**********&'
2023-01-21 10:20:08,936: DEBUG - + '[' -n 'language=fr_FR&username=stef&password=**********&' ']'
2023-01-21 10:20:08,936: DEBUG - + POST_data='--data language=fr_FR&username=stef&password=**********'
2023-01-21 10:20:08,936: DEBUG - + sleep 2
2023-01-21 10:20:10,938: DEBUG - + local cookiefile=/tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:10,939: DEBUG - + touch /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:10,940: DEBUG - + chown root /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:10,946: DEBUG - + chmod 700 /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:10,948: DEBUG - ++ ynh_permission_has_user main visitors
2023-01-21 10:20:10,996: DEBUG - ++ ynh_permission_exists --permission=main
2023-01-21 10:20:11,012: DEBUG - ++ yunohost user permission list piwigo --output-as json --quiet
2023-01-21 10:20:11,013: DEBUG - ++ jq -e --arg perm piwigo.main '.permissions[$perm]'
2023-01-21 10:20:11,599: DEBUG - ++ for section in "allowed" "corresponding_users"
2023-01-21 10:20:11,600: DEBUG - ++ yunohost user permission info piwigo.main --output-as json --quiet
2023-01-21 10:20:11,600: DEBUG - ++ jq -e --arg user visitors --arg section allowed '.[$section] | index($user)'
2023-01-21 10:20:12,251: DEBUG - ++ return 0
2023-01-21 10:20:12,252: DEBUG - ++ echo yes
2023-01-21 10:20:12,253: DEBUG - + local visitors_enabled=yes
2023-01-21 10:20:12,253: DEBUG - + [[ yes == \n\o ]]
2023-01-21 10:20:12,253: DEBUG - + curl --silent --show-error --insecure --location --header 'Host: maindomain.tld' --resolve maindomain.tld:443:127.0.0.1 --data 'language=fr_FR&username=stef&password=**********' 'https://localhost/piwigo/upgrade.php?language=fr_FR&now=true' --cookie-jar /tmp/ynh-piwigo-cookie.txt --cookie /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:12,694: DEBUG - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2023-01-21 10:20:12,694: DEBUG - "http://www.w3.org/TR/html4/strict.dtd">
2023-01-21 10:20:12,694: DEBUG - <html lang="fr" dir="ltr">
2023-01-21 10:20:12,694: DEBUG - <head>
2023-01-21 10:20:12,695: DEBUG - <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2023-01-21 10:20:12,695: DEBUG - <meta http-equiv="Content-script-type" content="text/javascript">
2023-01-21 10:20:12,695: DEBUG - <meta http-equiv="Content-Style-Type" content="text/css">
2023-01-21 10:20:12,695: DEBUG - <link rel="shortcut icon" type="image/x-icon" href="themes/default/icon/favicon.ico">
2023-01-21 10:20:12,695: DEBUG - 
2023-01-21 10:20:12,696: DEBUG - <link rel="stylesheet" type="text/css" href="_data/combined/jlq1ac.css">
2023-01-21 10:20:12,696: DEBUG - 
2023-01-21 10:20:12,696: DEBUG - 
2023-01-21 10:20:12,696: DEBUG - 
2023-01-21 10:20:12,696: DEBUG - <!--[if IE 7]>
2023-01-21 10:20:12,696: DEBUG -   <link rel="stylesheet" type="text/css" href="admin/themes/default/fix-ie7.css">
2023-01-21 10:20:12,697: DEBUG - <![endif]-->
2023-01-21 10:20:12,697: DEBUG - 
2023-01-21 10:20:12,697: DEBUG - <!-- BEGIN get_combined_scripts -->
2023-01-21 10:20:12,697: DEBUG - 
2023-01-21 10:20:12,697: DEBUG - <!-- END get_combined_scripts -->
2023-01-21 10:20:12,697: DEBUG - 
2023-01-21 10:20:12,698: DEBUG - 
2023-01-21 10:20:12,698: DEBUG - <style type="text/css">
2023-01-21 10:20:12,698: DEBUG - body {
2023-01-21 10:20:12,698: DEBUG -   font-size:12px;
2023-01-21 10:20:12,698: DEBUG - }
2023-01-21 10:20:12,699: DEBUG - 
2023-01-21 10:20:12,699: DEBUG - .content {
2023-01-21 10:20:12,699: DEBUG -  width: 800px;
2023-01-21 10:20:12,699: DEBUG -  margin: auto;
2023-01-21 10:20:12,699: DEBUG -  text-align: center;
2023-01-21 10:20:12,699: DEBUG -  padding:0;
2023-01-21 10:20:12,700: DEBUG -  background-color:transparent !important;
2023-01-21 10:20:12,700: DEBUG -  border:none;
2023-01-21 10:20:12,700: DEBUG - }
2023-01-21 10:20:12,700: DEBUG - 
2023-01-21 10:20:12,700: DEBUG - #content {
2023-01-21 10:20:12,700: DEBUG -   min-height:0;
2023-01-21 10:20:12,701: DEBUG -   border:none;
2023-01-21 10:20:12,701: DEBUG -   margin:1em auto;
2023-01-21 10:20:12,701: DEBUG - }
2023-01-21 10:20:12,701: DEBUG - 
2023-01-21 10:20:12,701: DEBUG - #theHeader {
2023-01-21 10:20:12,701: DEBUG -   display: block;
2023-01-21 10:20:12,702: DEBUG -   background:url("admin/themes/default/images/piwigo-orange.svg") no-repeat scroll center 20px transparent;
2023-01-21 10:20:12,702: DEBUG -   height:100px;
2023-01-21 10:20:12,702: DEBUG -   background-size: 300px;
2023-01-21 10:20:12,702: DEBUG - }
2023-01-21 10:20:12,702: DEBUG - 
2023-01-21 10:20:12,702: DEBUG - fieldset {
2023-01-21 10:20:12,703: DEBUG -   margin-top:20px;
2023-01-21 10:20:12,703: DEBUG -   background-color:#f1f1f1;
2023-01-21 10:20:12,703: DEBUG - }
2023-01-21 10:20:12,703: DEBUG - 
2023-01-21 10:20:12,703: DEBUG - legend {
2023-01-21 10:20:12,704: DEBUG -   font-weight:bold;
2023-01-21 10:20:12,704: DEBUG -   letter-spacing:2px;
2023-01-21 10:20:12,704: DEBUG - }
2023-01-21 10:20:12,704: DEBUG - 
2023-01-21 10:20:12,704: DEBUG - form fieldset p {
2023-01-21 10:20:12,704: DEBUG -   text-align:left;
2023-01-21 10:20:12,705: DEBUG -   margin:10px;
2023-01-21 10:20:12,705: DEBUG - }
2023-01-21 10:20:12,705: DEBUG - 
2023-01-21 10:20:12,705: DEBUG - .content h2 {
2023-01-21 10:20:12,705: DEBUG -   display:block;
2023-01-21 10:20:12,705: DEBUG -   font-size:20px;
2023-01-21 10:20:12,706: DEBUG -   text-align:center;
2023-01-21 10:20:12,706: DEBUG -   /* margin-top:5px; */
2023-01-21 10:20:12,706: DEBUG - }
2023-01-21 10:20:12,706: DEBUG - 
2023-01-21 10:20:12,706: DEBUG - table.table2 {
2023-01-21 10:20:12,706: DEBUG -   width: 100%;
2023-01-21 10:20:12,707: DEBUG -   border:0;
2023-01-21 10:20:12,707: DEBUG - }
2023-01-21 10:20:12,707: DEBUG - 
2023-01-21 10:20:12,707: DEBUG - table.table2 td {
2023-01-21 10:20:12,707: DEBUG -   text-align: left;
2023-01-21 10:20:12,708: DEBUG -   padding: 5px 2px;
2023-01-21 10:20:12,708: DEBUG - }
2023-01-21 10:20:12,708: DEBUG - 
2023-01-21 10:20:12,708: DEBUG - table.table2 td.fieldname {
2023-01-21 10:20:12,708: DEBUG -   font-weight:normal;
2023-01-21 10:20:12,708: DEBUG - }
2023-01-21 10:20:12,709: DEBUG - 
2023-01-21 10:20:12,709: DEBUG - table.table2 td.fielddesc {
2023-01-21 10:20:12,709: DEBUG -   padding-left:10px;
2023-01-21 10:20:12,709: DEBUG -   font-style:italic;
2023-01-21 10:20:12,709: DEBUG - }
2023-01-21 10:20:12,709: DEBUG - 
2023-01-21 10:20:12,710: DEBUG - input[type="submit"], input[type="button"], a.bigButton {
2023-01-21 10:20:12,710: DEBUG -   font-size:14px;
2023-01-21 10:20:12,710: DEBUG -   font-weight:bold;
2023-01-21 10:20:12,710: DEBUG -   letter-spacing:2px;
2023-01-21 10:20:12,710: DEBUG -   border:none;
2023-01-21 10:20:12,710: DEBUG -   background-color:#666666;
2023-01-21 10:20:12,711: DEBUG -   color:#fff;
2023-01-21 10:20:12,711: DEBUG -   padding:5px;
2023-01-21 10:20:12,711: DEBUG -   -moz-border-radius:5px;
2023-01-21 10:20:12,711: DEBUG - }
2023-01-21 10:20:12,711: DEBUG - 
2023-01-21 10:20:12,712: DEBUG - input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
2023-01-21 10:20:12,712: DEBUG -   background-color:#ff7700;
2023-01-21 10:20:12,712: DEBUG -   color:white;
2023-01-21 10:20:12,712: DEBUG -   text-decoration:none;
2023-01-21 10:20:12,712: DEBUG - }
2023-01-21 10:20:12,712: DEBUG - 
2023-01-21 10:20:12,713: DEBUG - input[type="text"], input[type="password"], select {
2023-01-21 10:20:12,713: DEBUG -   background-color:#ddd;
2023-01-21 10:20:12,713: DEBUG -   border:2px solid #ccc;
2023-01-21 10:20:12,713: DEBUG -   -moz-border-radius:5px;
2023-01-21 10:20:12,713: DEBUG -   padding:2px;
2023-01-21 10:20:12,713: DEBUG - }
2023-01-21 10:20:12,714: DEBUG - 
2023-01-21 10:20:12,714: DEBUG - input[type="text"]:focus, input[type="password"]:focus, select:focus {
2023-01-21 10:20:12,714: DEBUG -   background-color:#fff;
2023-01-21 10:20:12,714: DEBUG -   border:2px solid #ff7700;
2023-01-21 10:20:12,714: DEBUG - }
2023-01-21 10:20:12,714: DEBUG - 
2023-01-21 10:20:12,715: DEBUG - .sql_content, .infos a {
2023-01-21 10:20:12,715: DEBUG -   color: #ff3363;
2023-01-21 10:20:12,715: DEBUG - }
2023-01-21 10:20:12,715: DEBUG - 
2023-01-21 10:20:12,715: DEBUG - .errors {
2023-01-21 10:20:12,715: DEBUG -   padding-bottom:5px;
2023-01-21 10:20:12,716: DEBUG - }
2023-01-21 10:20:12,716: DEBUG - 
2023-01-21 10:20:12,716: DEBUG - </style>
2023-01-21 10:20:12,716: DEBUG - 
2023-01-21 10:20:12,716: DEBUG - <title>Piwigo 13.4.0 - Mise à jour</title>
2023-01-21 10:20:12,717: DEBUG - <script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head>
2023-01-21 10:20:12,717: DEBUG - 
2023-01-21 10:20:12,717: DEBUG - <body>
2023-01-21 10:20:12,717: DEBUG - <div id="the_page">
2023-01-21 10:20:12,717: DEBUG - <div id="theHeader"></div>
2023-01-21 10:20:12,717: DEBUG - <div id="content" class="content">
2023-01-21 10:20:12,718: DEBUG - 
2023-01-21 10:20:12,718: DEBUG - <h2>Version 13.4.0 - Mise à jour</h2>
2023-01-21 10:20:12,718: DEBUG - 
2023-01-21 10:20:12,718: DEBUG - <div class="errors">
2023-01-21 10:20:12,718: DEBUG -   <ul>
2023-01-21 10:20:12,718: DEBUG -     <li>Mot de passe invalide !</li>
2023-01-21 10:20:12,719: DEBUG -   </ul>
2023-01-21 10:20:12,719: DEBUG - </div>
2023-01-21 10:20:12,719: DEBUG - 
2023-01-21 10:20:12,719: DEBUG - <form method="POST" action="upgrade.php?language=fr_FR" name="upgrade_form">
2023-01-21 10:20:12,719: DEBUG - 
2023-01-21 10:20:12,720: DEBUG - <fieldset>
2023-01-21 10:20:12,720: DEBUG - <table>
2023-01-21 10:20:12,720: DEBUG -   <tr>
2023-01-21 10:20:12,720: DEBUG -     <td>Langue</td>
2023-01-21 10:20:12,720: DEBUG -     <td>
2023-01-21 10:20:12,720: DEBUG -       <select name="language" onchange="document.location = 'upgrade.php?language='+this.options[this.selectedIndex].value;">
2023-01-21 10:20:12,721: DEBUG -         <option value="af_ZA">Afrikaans [ZA]</option>
2023-01-21 10:20:12,721: DEBUG - <option value="es_AR">Argentina [AR]</option>
2023-01-21 10:20:12,721: DEBUG - <option value="az_AZ">Azərbaycanca [AZ]</option>
2023-01-21 10:20:12,721: DEBUG - <option value="id_ID">Bahasa Indonesia [ID]</option>
2023-01-21 10:20:12,721: DEBUG - <option value="pt_BR">Brasil [BR]</option>
2023-01-21 10:20:12,722: DEBUG - <option value="br_FR">Brezhoneg [FR]</option>
2023-01-21 10:20:12,722: DEBUG - <option value="ca_ES">Català [CA]</option>
2023-01-21 10:20:12,722: DEBUG - <option value="da_DK">Dansk [DK]</option>
2023-01-21 10:20:12,722: DEBUG - <option value="de_DE">Deutsch [DE]</option>
2023-01-21 10:20:12,722: DEBUG - <option value="dv_MV">Dhivehi [MV]</option>
2023-01-21 10:20:12,722: DEBUG - <option value="en_GB">English [GB]</option>
2023-01-21 10:20:12,723: DEBUG - <option value="en_UK">English [UK]</option>
2023-01-21 10:20:12,723: DEBUG - <option value="en_US">English [US]</option>
2023-01-21 10:20:12,723: DEBUG - <option value="es_ES">Español [ES]</option>
2023-01-21 10:20:12,723: DEBUG - <option value="eo_EO">Esperanto [EO]</option>
2023-01-21 10:20:12,723: DEBUG - <option value="et_EE">Estonian [EE]</option>
2023-01-21 10:20:12,724: DEBUG - <option value="eu_ES">Euskara [ES]</option>
2023-01-21 10:20:12,724: DEBUG - <option value="fi_FI">Finnish [FI]</option>
2023-01-21 10:20:12,724: DEBUG - <option value="fr_FR" selected="selected">Français [FR]</option>
2023-01-21 10:20:12,724: DEBUG - <option value="fr_CA">Français [QC]</option>
2023-01-21 10:20:12,724: DEBUG - <option value="ga_IE">Gaeilge [IE]</option>
2023-01-21 10:20:12,724: DEBUG - <option value="gl_ES">Galego [ES]</option>
2023-01-21 10:20:12,725: DEBUG - <option value="hr_HR">Hrvatski [HR]</option>
2023-01-21 10:20:12,725: DEBUG - <option value="it_IT">Italiano [IT]</option>
2023-01-21 10:20:12,725: DEBUG - <option value="lv_LV">Latviešu [LV]</option>
2023-01-21 10:20:12,725: DEBUG - <option value="lt_LT">Lietuviu [LT]</option>
2023-01-21 10:20:12,725: DEBUG - <option value="lb_LU">Lëtzebuergesch [LU]</option>
2023-01-21 10:20:12,726: DEBUG - <option value="hu_HU">Magyar [HU]</option>
2023-01-21 10:20:12,726: DEBUG - <option value="ms_MY">Malay [MY]</option>
2023-01-21 10:20:12,726: DEBUG - <option value="es_MX">México [MX]</option>
2023-01-21 10:20:12,726: DEBUG - <option value="nl_NL">Nederlands [NL]</option>
2023-01-21 10:20:12,726: DEBUG - <option value="nb_NO">Norsk bokmål [NO]</option>
2023-01-21 10:20:12,726: DEBUG - <option value="nn_NO">Norwegian nynorsk [NO]</option>
2023-01-21 10:20:12,727: DEBUG - <option value="pl_PL">Polski [PL]</option>
2023-01-21 10:20:12,727: DEBUG - <option value="pt_PT">Português [PT]</option>
2023-01-21 10:20:12,727: DEBUG - <option value="ro_RO">Română [RO]</option>
2023-01-21 10:20:12,727: DEBUG - <option value="sk_SK">Slovensky [SK]</option>
2023-01-21 10:20:12,727: DEBUG - <option value="sl_SI">Slovenšcina [SI]</option>
2023-01-21 10:20:12,728: DEBUG - <option value="sh_RS">Srpski [SR]</option>
2023-01-21 10:20:12,728: DEBUG - <option value="sv_SE">Svenska [SE]</option>
2023-01-21 10:20:12,728: DEBUG - <option value="vi_VN">Tiếng Việt [VN]</option>
2023-01-21 10:20:12,752: DEBUG - <option value="tr_TR">Türkçe [TR]</option>
2023-01-21 10:20:12,753: DEBUG - <option value="wo_SN">Wolof [SN]</option>
2023-01-21 10:20:12,753: DEBUG - <option value="is_IS">Íslenska [IS]</option>
2023-01-21 10:20:12,753: DEBUG - <option value="cs_CZ">Česky [CZ]</option>
2023-01-21 10:20:12,753: DEBUG - <option value="el_GR">Ελληνικά [GR]</option>
2023-01-21 10:20:12,753: DEBUG - <option value="bg_BG">Български [BG]</option>
2023-01-21 10:20:12,754: DEBUG - <option value="mk_MK">Македонски [MK]</option>
2023-01-21 10:20:12,754: DEBUG - <option value="mn_MN">Монгол [MN]</option>
2023-01-21 10:20:12,754: DEBUG - <option value="ru_RU">Русский [RU]</option>
2023-01-21 10:20:12,754: DEBUG - <option value="sr_RS">Српски [SR]</option>
2023-01-21 10:20:12,754: DEBUG - <option value="uk_UA">Українська [UA]</option>
2023-01-21 10:20:12,754: DEBUG - <option value="he_IL">עברית [IL]</option>
2023-01-21 10:20:12,755: DEBUG - <option value="ar_EG">العربية (مصر) [EG]</option>
2023-01-21 10:20:12,755: DEBUG - <option value="ar_SA">العربية [AR]</option>
2023-01-21 10:20:12,755: DEBUG - <option value="ar_MA">العربية [MA]</option>
2023-01-21 10:20:12,755: DEBUG - <option value="fa_IR">پارسی [IR]</option>
2023-01-21 10:20:12,755: DEBUG - <option value="kok_IN">कोंकणी [IN]</option>
2023-01-21 10:20:12,756: DEBUG - <option value="bn_IN">বাংলা[IN]</option>
2023-01-21 10:20:12,756: DEBUG - <option value="gu_IN">ગુજરાતી[IN]</option>
2023-01-21 10:20:12,756: DEBUG - <option value="ta_IN">தமிழ் [IN]</option>
2023-01-21 10:20:12,756: DEBUG - <option value="kn_IN">ಕನ್ನಡ [IN]</option>
2023-01-21 10:20:12,756: DEBUG - <option value="th_TH">ภาษาไทย [TH]</option>
2023-01-21 10:20:12,757: DEBUG - <option value="ka_GE">ქართული [GE]</option>
2023-01-21 10:20:12,757: DEBUG - <option value="km_KH">ខ្មែរ [KH]</option>
2023-01-21 10:20:12,757: DEBUG - <option value="zh_TW">中文 (繁體) [TW]</option>
2023-01-21 10:20:12,757: DEBUG - <option value="zh_HK">中文 (香港) [HK]</option>
2023-01-21 10:20:12,757: DEBUG - <option value="ja_JP">日本語 [JP]</option>
2023-01-21 10:20:12,758: DEBUG - <option value="zh_CN">简体中文 [CN]</option>
2023-01-21 10:20:12,758: DEBUG - <option value="ko_KR">한국어 [KR]</option>
2023-01-21 10:20:12,758: DEBUG - 
2023-01-21 10:20:12,758: DEBUG -       </select>
2023-01-21 10:20:12,758: DEBUG -     </td>
2023-01-21 10:20:12,758: DEBUG -   </tr>
2023-01-21 10:20:12,759: DEBUG - </table>
2023-01-21 10:20:12,759: DEBUG - 
2023-01-21 10:20:12,759: DEBUG - <p>Cette page vous propose de mettre à jour la base de données de votre ancienne version de piwigo vers la nouvelle version.
2023-01-21 10:20:12,759: DEBUG - L'assistant de mise à jour pense que vous disposez actuellement de la <strong>version 12.0.0</strong> (ou équivalente).</p>
2023-01-21 10:20:12,760: DEBUG - <p>Seul un administrateur peut lancer la mise à jour: veuillez vous identifier ci-dessous.</p>
2023-01-21 10:20:12,760: DEBUG - 
2023-01-21 10:20:12,760: DEBUG - <table>
2023-01-21 10:20:12,760: DEBUG -   <tr>
2023-01-21 10:20:12,760: DEBUG -     <td>Nom d'utilisateur</td>
2023-01-21 10:20:12,760: DEBUG -     <td><input type="text" name="username" id="username" size="20" maxlength="50" style="width: 150px;"></td>
2023-01-21 10:20:12,761: DEBUG -   </tr>
2023-01-21 10:20:12,761: DEBUG -   <tr>
2023-01-21 10:20:12,761: DEBUG -     <td>Mot de passe</td>
2023-01-21 10:20:12,761: DEBUG -     <td><input type="password" name="password" id="password" style="width: 150px;"></td>
2023-01-21 10:20:12,761: DEBUG -   </tr>
2023-01-21 10:20:12,761: DEBUG - </table>
2023-01-21 10:20:12,762: DEBUG - </fieldset>
2023-01-21 10:20:12,762: DEBUG - <p style="text-align: center;">
2023-01-21 10:20:12,762: DEBUG - <input class="submit" type="submit" name="submit" value="Mise à jour de la version 12.0.0 à 13.4.0">
2023-01-21 10:20:12,762: DEBUG - </p>
2023-01-21 10:20:12,762: DEBUG - </form>
2023-01-21 10:20:12,763: DEBUG - <!--
2023-01-21 10:20:12,763: DEBUG - <p style="text-align: center;">
2023-01-21 10:20:12,763: DEBUG - <a href="">Mise à jour de la version 12.0.0 à 13.4.0</a>
2023-01-21 10:20:12,763: DEBUG - </p>
2023-01-21 10:20:12,763: DEBUG - -->
2023-01-21 10:20:12,763: DEBUG - 
2023-01-21 10:20:12,764: DEBUG - 
2023-01-21 10:20:12,764: DEBUG - 
2023-01-21 10:20:12,764: DEBUG - </div> <div>Besoin d'aide ? Posez votre question sur le <a href="https://fr.piwigo.org/forum">forum de Piwigo</a>.</div>
2023-01-21 10:20:12,764: DEBUG - </div> </body>
2023-01-21 10:20:12,764: DEBUG - </html>
2023-01-21 10:20:12,764: DEBUG - + [[ yes == \n\o ]]
2023-01-21 10:20:12,778: INFO - [##############......] > Configuring Piwigo...
2023-01-21 10:20:12,778: DEBUG - + ynh_add_config --template=../conf/config.inc.php --destination=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:12,829: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/../conf/config.inc.php ']'
2023-01-21 10:20:12,829: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/../conf/config.inc.php
2023-01-21 10:20:12,829: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:12,846: DEBUG - + local checksum_setting_name=checksum__var_www_piwigo_local_config_config.inc.php
2023-01-21 10:20:12,847: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=checksum__var_www_piwigo_local_config_config.inc.php
2023-01-21 10:20:12,847: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:20:12,897: DEBUG - ++ app=piwigo
2023-01-21 10:20:12,897: DEBUG - ++ [[ checksum__var_www_piwigo_local_config_config.inc.php =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:12,897: DEBUG - ++ ynh_app_setting get piwigo checksum__var_www_piwigo_local_config_config.inc.php
2023-01-21 10:20:12,992: DEBUG - + local checksum_value=01d16d98f64a71f83a1a29cd74d0390d
2023-01-21 10:20:12,993: DEBUG - + backup_file_checksum=
2023-01-21 10:20:12,993: DEBUG - + '[' -n 01d16d98f64a71f83a1a29cd74d0390d ']'
2023-01-21 10:20:12,993: DEBUG - + '[' -e /var/www/piwigo/local/config/config.inc.php ']'
2023-01-21 10:20:12,993: DEBUG - + md5sum --check --status
2023-01-21 10:20:12,997: DEBUG - + touch /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:12,999: DEBUG - + chown root:root /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,001: DEBUG - + chmod 640 /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,002: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/../conf/config.inc.php /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,005: DEBUG - + _ynh_apply_default_permissions /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,006: DEBUG - + local target=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,006: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/manifest.json
2023-01-21 10:20:13,007: DEBUG - ++ tr -d '>= '
2023-01-21 10:20:13,076: DEBUG - + local ynh_requirement=11.0.9
2023-01-21 10:20:13,076: DEBUG - + '[' -z 11.0.9 ']'
2023-01-21 10:20:13,076: DEBUG - + '[' 11.0.9 == null ']'
2023-01-21 10:20:13,077: DEBUG - + dpkg --compare-versions 11.0.9 ge 4.2
2023-01-21 10:20:13,079: DEBUG - + chmod o-rwx /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,080: DEBUG - + chmod g-w /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,082: DEBUG - + chown -R root:root /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,085: DEBUG - + ynh_system_user_exists piwigo
2023-01-21 10:20:13,101: DEBUG - + getent passwd piwigo
2023-01-21 10:20:13,103: DEBUG - + chown piwigo:piwigo /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,105: DEBUG - + echo /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,106: DEBUG - + grep -q '^/etc/cron'
2023-01-21 10:20:13,110: DEBUG - + ynh_replace_vars --file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,125: DEBUG - + test -n /piwigo
2023-01-21 10:20:13,126: DEBUG - + local path_url_slash_less=/piwigo
2023-01-21 10:20:13,126: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,226: DEBUG - + sed --in-place s@__PATH__/@/piwigo/@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,229: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/piwigo --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,333: DEBUG - + sed --in-place s@__PATH__@/piwigo@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,336: DEBUG - + test -n piwigo
2023-01-21 10:20:13,336: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=piwigo --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,438: DEBUG - + sed --in-place s@__NAME__@piwigo@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,442: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,547: DEBUG - + sed --in-place s@__NAMETOCHANGE__@piwigo@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,550: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=piwigo --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,653: DEBUG - + sed --in-place s@__USER__@piwigo@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,656: DEBUG - + test -n /var/www/piwigo
2023-01-21 10:20:13,656: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,762: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/piwigo@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,766: DEBUG - + test -n 8.0
2023-01-21 10:20:13,766: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=8.0 --target_file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,872: DEBUG - + sed --in-place s@__PHPVERSION__@8.0@g /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,876: DEBUG - + test -n ''
2023-01-21 10:20:13,878: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,878: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-01-21 10:20:13,881: DEBUG - ++ sort --unique
2023-01-21 10:20:13,886: DEBUG - + uniques_vars=()
2023-01-21 10:20:13,886: DEBUG - + local delimit=@
2023-01-21 10:20:13,887: DEBUG - + ynh_store_file_checksum --file=/var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,888: DEBUG - + update_only=0
2023-01-21 10:20:13,914: DEBUG - + local checksum_setting_name=checksum__var_www_piwigo_local_config_config.inc.php
2023-01-21 10:20:13,915: DEBUG - ++ md5sum /var/www/piwigo/local/config/config.inc.php
2023-01-21 10:20:13,915: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-01-21 10:20:13,919: DEBUG - + ynh_app_setting_set --app=piwigo --key=checksum__var_www_piwigo_local_config_config.inc.php --value=01d16d98f64a71f83a1a29cd74d0390d
2023-01-21 10:20:13,919: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:14,025: DEBUG - + app=piwigo
2023-01-21 10:20:14,025: DEBUG - + [[ checksum__var_www_piwigo_local_config_config.inc.php =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:14,025: DEBUG - + ynh_app_setting set piwigo checksum__var_www_piwigo_local_config_config.inc.php 01d16d98f64a71f83a1a29cd74d0390d
2023-01-21 10:20:14,125: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:14,126: DEBUG - + unset backup_file_checksum
2023-01-21 10:20:14,126: DEBUG - + ynh_add_config --template=../conf/database.inc.php --destination=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,179: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/../conf/database.inc.php ']'
2023-01-21 10:20:14,179: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/../conf/database.inc.php
2023-01-21 10:20:14,179: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,196: DEBUG - + local checksum_setting_name=checksum__var_www_piwigo_local_config_database.inc.php
2023-01-21 10:20:14,196: DEBUG - ++ ynh_app_setting_get --app=piwigo --key=checksum__var_www_piwigo_local_config_database.inc.php
2023-01-21 10:20:14,197: DEBUG - ++ local _globalapp=piwigo
2023-01-21 10:20:14,247: DEBUG - ++ app=piwigo
2023-01-21 10:20:14,248: DEBUG - ++ [[ checksum__var_www_piwigo_local_config_database.inc.php =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:14,248: DEBUG - ++ ynh_app_setting get piwigo checksum__var_www_piwigo_local_config_database.inc.php
2023-01-21 10:20:14,343: DEBUG - + local checksum_value=8790eda6e12917285cd7f6b3f1fde04e
2023-01-21 10:20:14,343: DEBUG - + backup_file_checksum=
2023-01-21 10:20:14,344: DEBUG - + '[' -n 8790eda6e12917285cd7f6b3f1fde04e ']'
2023-01-21 10:20:14,344: DEBUG - + '[' -e /var/www/piwigo/local/config/database.inc.php ']'
2023-01-21 10:20:14,344: DEBUG - + md5sum --check --status
2023-01-21 10:20:14,347: DEBUG - + touch /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,349: DEBUG - + chown root:root /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,351: DEBUG - + chmod 640 /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,353: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/conf/../conf/database.inc.php /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,356: DEBUG - + _ynh_apply_default_permissions /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,356: DEBUG - + local target=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,357: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wiic1zpw/manifest.json
2023-01-21 10:20:14,357: DEBUG - ++ tr -d '>= '
2023-01-21 10:20:14,427: DEBUG - + local ynh_requirement=11.0.9
2023-01-21 10:20:14,427: DEBUG - + '[' -z 11.0.9 ']'
2023-01-21 10:20:14,427: DEBUG - + '[' 11.0.9 == null ']'
2023-01-21 10:20:14,427: DEBUG - + dpkg --compare-versions 11.0.9 ge 4.2
2023-01-21 10:20:14,429: DEBUG - + chmod o-rwx /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,431: DEBUG - + chmod g-w /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,433: DEBUG - + chown -R root:root /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,436: DEBUG - + ynh_system_user_exists piwigo
2023-01-21 10:20:14,452: DEBUG - + getent passwd piwigo
2023-01-21 10:20:14,454: DEBUG - + chown piwigo:piwigo /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,457: DEBUG - + echo /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,457: DEBUG - + grep -q '^/etc/cron'
2023-01-21 10:20:14,461: DEBUG - + ynh_replace_vars --file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,477: DEBUG - + test -n /piwigo
2023-01-21 10:20:14,477: DEBUG - + local path_url_slash_less=/piwigo
2023-01-21 10:20:14,478: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,580: DEBUG - + sed --in-place s@__PATH__/@/piwigo/@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,584: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/piwigo --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,689: DEBUG - + sed --in-place s@__PATH__@/piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,692: DEBUG - + test -n piwigo
2023-01-21 10:20:14,693: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=piwigo --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,798: DEBUG - + sed --in-place s@__NAME__@piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,801: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,908: DEBUG - + sed --in-place s@__NAMETOCHANGE__@piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:14,911: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=piwigo --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,016: DEBUG - + sed --in-place s@__USER__@piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,020: DEBUG - + test -n /var/www/piwigo
2023-01-21 10:20:15,020: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/piwigo --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,128: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,131: DEBUG - + test -n 8.0
2023-01-21 10:20:15,131: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=8.0 --target_file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,236: DEBUG - + sed --in-place s@__PHPVERSION__@8.0@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,239: DEBUG - + test -n ''
2023-01-21 10:20:15,241: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,242: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-01-21 10:20:15,244: DEBUG - ++ sort --unique
2023-01-21 10:20:15,249: DEBUG - + uniques_vars=('db_name' 'db_pwd' 'db_user')
2023-01-21 10:20:15,250: DEBUG - + local delimit=@
2023-01-21 10:20:15,250: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-01-21 10:20:15,250: DEBUG - + [[ -v db_name ]]
2023-01-21 10:20:15,250: DEBUG - + match_string=__DB_NAME__
2023-01-21 10:20:15,250: DEBUG - + match_string=__DB_NAME__
2023-01-21 10:20:15,250: DEBUG - + replace_string=piwigo
2023-01-21 10:20:15,251: DEBUG - + replace_string=piwigo
2023-01-21 10:20:15,251: DEBUG - + replace_string=piwigo
2023-01-21 10:20:15,251: DEBUG - + sed --in-place s@__DB_NAME__@piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,252: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-01-21 10:20:15,253: DEBUG - + [[ -v db_pwd ]]
2023-01-21 10:20:15,253: DEBUG - + match_string=__DB_PWD__
2023-01-21 10:20:15,253: DEBUG - + match_string=__DB_PWD__
2023-01-21 10:20:15,253: DEBUG - + replace_string=**********
2023-01-21 10:20:15,253: DEBUG - + replace_string=**********
2023-01-21 10:20:15,254: DEBUG - + replace_string=**********
2023-01-21 10:20:15,254: DEBUG - + sed --in-place s@__DB_PWD__@**********@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,256: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-01-21 10:20:15,256: DEBUG - + [[ -v db_user ]]
2023-01-21 10:20:15,256: DEBUG - + match_string=__DB_USER__
2023-01-21 10:20:15,256: DEBUG - + match_string=__DB_USER__
2023-01-21 10:20:15,256: DEBUG - + replace_string=piwigo
2023-01-21 10:20:15,257: DEBUG - + replace_string=piwigo
2023-01-21 10:20:15,257: DEBUG - + replace_string=piwigo
2023-01-21 10:20:15,257: DEBUG - + sed --in-place s@__DB_USER__@piwigo@g /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,259: DEBUG - + ynh_store_file_checksum --file=/var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,261: DEBUG - + update_only=0
2023-01-21 10:20:15,287: DEBUG - + local checksum_setting_name=checksum__var_www_piwigo_local_config_database.inc.php
2023-01-21 10:20:15,288: DEBUG - ++ md5sum /var/www/piwigo/local/config/database.inc.php
2023-01-21 10:20:15,289: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-01-21 10:20:15,292: DEBUG - + ynh_app_setting_set --app=piwigo --key=checksum__var_www_piwigo_local_config_database.inc.php --value=8790eda6e12917285cd7f6b3f1fde04e
2023-01-21 10:20:15,292: DEBUG - + local _globalapp=piwigo
2023-01-21 10:20:15,399: DEBUG - + app=piwigo
2023-01-21 10:20:15,399: DEBUG - + [[ checksum__var_www_piwigo_local_config_database.inc.php =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:15,399: DEBUG - + ynh_app_setting set piwigo checksum__var_www_piwigo_local_config_database.inc.php 8790eda6e12917285cd7f6b3f1fde04e
2023-01-21 10:20:15,500: DEBUG - + '[' -n '' ']'
2023-01-21 10:20:15,500: DEBUG - + unset backup_file_checksum
2023-01-21 10:20:15,500: DEBUG - + chmod 750 /var/www/piwigo
2023-01-21 10:20:15,502: DEBUG - + chmod -R o-rwx /var/www/piwigo
2023-01-21 10:20:15,561: DEBUG - + chown -R piwigo:www-data /var/www/piwigo
2023-01-21 10:20:15,688: INFO - [##############+.....] > Configuring LDAP plugin...
2023-01-21 10:20:15,689: DEBUG - + ynh_mysql_connect_as --user=piwigo --password=********** --database=piwigo
2023-01-21 10:20:15,793: DEBUG - + database=piwigo
2023-01-21 10:20:15,793: DEBUG - + mysql --user=piwigo --password=********** --batch piwigo
2023-01-21 10:20:16,067: DEBUG - + ynh_local_curl '/ws.php?format=json' method=pwg.session.login username=stef password=**********
2023-01-21 10:20:16,068: DEBUG - ++ ynh_normalize_url_path '/ws.php?format=json'
2023-01-21 10:20:16,085: DEBUG - ++ test -n '/ws.php?format=json'
2023-01-21 10:20:16,085: DEBUG - ++ '[' / '!=' / ']'
2023-01-21 10:20:16,085: DEBUG - ++ '[' n == / ']'
2023-01-21 10:20:16,086: DEBUG - ++ echo '/ws.php?format=json'
2023-01-21 10:20:16,086: DEBUG - + local 'local_page=/ws.php?format=json'
2023-01-21 10:20:16,086: DEBUG - + local 'full_path=/piwigo/ws.php?format=json'
2023-01-21 10:20:16,086: DEBUG - + '[' /piwigo == / ']'
2023-01-21 10:20:16,086: DEBUG - + local 'full_page_url=https://localhost/piwigo/ws.php?format=json'
2023-01-21 10:20:16,087: DEBUG - + local POST_data=
2023-01-21 10:20:16,087: DEBUG - + local arg=
2023-01-21 10:20:16,087: DEBUG - + for arg in "${@:2}"
2023-01-21 10:20:16,087: DEBUG - + POST_data='method=pwg.session.login&'
2023-01-21 10:20:16,087: DEBUG - + for arg in "${@:2}"
2023-01-21 10:20:16,088: DEBUG - + POST_data='method=pwg.session.login&username=stef&'
2023-01-21 10:20:16,088: DEBUG - + for arg in "${@:2}"
2023-01-21 10:20:16,088: DEBUG - + POST_data='method=pwg.session.login&username=stef&password=**********&'
2023-01-21 10:20:16,088: DEBUG - + '[' -n 'method=pwg.session.login&username=stef&password=**********&' ']'
2023-01-21 10:20:16,088: DEBUG - + POST_data='--data method=pwg.session.login&username=stef&password=**********'
2023-01-21 10:20:16,088: DEBUG - + sleep 2
2023-01-21 10:20:18,088: DEBUG - + local cookiefile=/tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:18,089: DEBUG - + touch /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:18,090: DEBUG - + chown root /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:18,092: DEBUG - + chmod 700 /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:18,095: DEBUG - ++ ynh_permission_has_user main visitors
2023-01-21 10:20:18,142: DEBUG - ++ ynh_permission_exists --permission=main
2023-01-21 10:20:18,158: DEBUG - ++ yunohost user permission list piwigo --output-as json --quiet
2023-01-21 10:20:18,158: DEBUG - ++ jq -e --arg perm piwigo.main '.permissions[$perm]'
2023-01-21 10:20:18,699: DEBUG - ++ for section in "allowed" "corresponding_users"
2023-01-21 10:20:18,700: DEBUG - ++ jq -e --arg user visitors --arg section allowed '.[$section] | index($user)'
2023-01-21 10:20:18,700: DEBUG - ++ yunohost user permission info piwigo.main --output-as json --quiet
2023-01-21 10:20:19,347: DEBUG - ++ return 0
2023-01-21 10:20:19,348: DEBUG - ++ echo yes
2023-01-21 10:20:19,348: DEBUG - + local visitors_enabled=yes
2023-01-21 10:20:19,348: DEBUG - + [[ yes == \n\o ]]
2023-01-21 10:20:19,348: DEBUG - + curl --silent --show-error --insecure --location --header 'Host: maindomain.tld' --resolve maindomain.tld:443:127.0.0.1 --data 'method=pwg.session.login&username=stef&password=**********' 'https://localhost/piwigo/ws.php?format=json' --cookie-jar /tmp/ynh-piwigo-cookie.txt --cookie /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:19,460: DEBUG - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2023-01-21 10:20:19,460: DEBUG - "http://www.w3.org/TR/html4/strict.dtd">
2023-01-21 10:20:19,460: DEBUG - <html lang="en" dir="ltr">
2023-01-21 10:20:19,460: DEBUG - <head>
2023-01-21 10:20:19,461: DEBUG - <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2023-01-21 10:20:19,461: DEBUG - <meta http-equiv="Content-script-type" content="text/javascript">
2023-01-21 10:20:19,461: DEBUG - <meta http-equiv="Content-Style-Type" content="text/css">
2023-01-21 10:20:19,461: DEBUG - <link rel="shortcut icon" type="image/x-icon" href="themes/default/icon/favicon.ico">
2023-01-21 10:20:19,461: DEBUG - 
2023-01-21 10:20:19,461: DEBUG - <link rel="stylesheet" type="text/css" href="_data/combined/jlq1ac.css">
2023-01-21 10:20:19,462: DEBUG - 
2023-01-21 10:20:19,462: DEBUG - 
2023-01-21 10:20:19,462: DEBUG - 
2023-01-21 10:20:19,462: DEBUG - <!--[if IE 7]>
2023-01-21 10:20:19,462: DEBUG -   <link rel="stylesheet" type="text/css" href="admin/themes/default/fix-ie7.css">
2023-01-21 10:20:19,462: DEBUG - <![endif]-->
2023-01-21 10:20:19,463: DEBUG - 
2023-01-21 10:20:19,463: DEBUG - <!-- BEGIN get_combined_scripts -->
2023-01-21 10:20:19,463: DEBUG - 
2023-01-21 10:20:19,463: DEBUG - <!-- END get_combined_scripts -->
2023-01-21 10:20:19,463: DEBUG - 
2023-01-21 10:20:19,464: DEBUG - 
2023-01-21 10:20:19,464: DEBUG - <style type="text/css">
2023-01-21 10:20:19,464: DEBUG - body {
2023-01-21 10:20:19,464: DEBUG -   font-size:12px;
2023-01-21 10:20:19,464: DEBUG - }
2023-01-21 10:20:19,464: DEBUG - 
2023-01-21 10:20:19,465: DEBUG - .content {
2023-01-21 10:20:19,465: DEBUG -  width: 800px;
2023-01-21 10:20:19,465: DEBUG -  margin: auto;
2023-01-21 10:20:19,465: DEBUG -  text-align: center;
2023-01-21 10:20:19,465: DEBUG -  padding:0;
2023-01-21 10:20:19,465: DEBUG -  background-color:transparent !important;
2023-01-21 10:20:19,466: DEBUG -  border:none;
2023-01-21 10:20:19,466: DEBUG - }
2023-01-21 10:20:19,466: DEBUG - 
2023-01-21 10:20:19,466: DEBUG - #content {
2023-01-21 10:20:19,466: DEBUG -   min-height:0;
2023-01-21 10:20:19,467: DEBUG -   border:none;
2023-01-21 10:20:19,467: DEBUG -   margin:1em auto;
2023-01-21 10:20:19,468: DEBUG - }
2023-01-21 10:20:19,468: DEBUG - 
2023-01-21 10:20:19,468: DEBUG - #theHeader {
2023-01-21 10:20:19,468: DEBUG -   display: block;
2023-01-21 10:20:19,468: DEBUG -   background:url("admin/themes/default/images/piwigo-orange.svg") no-repeat scroll center 20px transparent;
2023-01-21 10:20:19,468: DEBUG -   height:100px;
2023-01-21 10:20:19,469: DEBUG -   background-size: 300px;
2023-01-21 10:20:19,469: DEBUG - }
2023-01-21 10:20:19,469: DEBUG - 
2023-01-21 10:20:19,469: DEBUG - fieldset {
2023-01-21 10:20:19,470: DEBUG -   margin-top:20px;
2023-01-21 10:20:19,470: DEBUG -   background-color:#f1f1f1;
2023-01-21 10:20:19,470: DEBUG - }
2023-01-21 10:20:19,470: DEBUG - 
2023-01-21 10:20:19,470: DEBUG - legend {
2023-01-21 10:20:19,470: DEBUG -   font-weight:bold;
2023-01-21 10:20:19,471: DEBUG -   letter-spacing:2px;
2023-01-21 10:20:19,471: DEBUG - }
2023-01-21 10:20:19,471: DEBUG - 
2023-01-21 10:20:19,471: DEBUG - form fieldset p {
2023-01-21 10:20:19,471: DEBUG -   text-align:left;
2023-01-21 10:20:19,472: DEBUG -   margin:10px;
2023-01-21 10:20:19,472: DEBUG - }
2023-01-21 10:20:19,472: DEBUG - 
2023-01-21 10:20:19,472: DEBUG - .content h2 {
2023-01-21 10:20:19,472: DEBUG -   display:block;
2023-01-21 10:20:19,472: DEBUG -   font-size:20px;
2023-01-21 10:20:19,473: DEBUG -   text-align:center;
2023-01-21 10:20:19,473: DEBUG -   /* margin-top:5px; */
2023-01-21 10:20:19,473: DEBUG - }
2023-01-21 10:20:19,473: DEBUG - 
2023-01-21 10:20:19,473: DEBUG - table.table2 {
2023-01-21 10:20:19,474: DEBUG -   width: 100%;
2023-01-21 10:20:19,474: DEBUG -   border:0;
2023-01-21 10:20:19,474: DEBUG - }
2023-01-21 10:20:19,474: DEBUG - 
2023-01-21 10:20:19,474: DEBUG - table.table2 td {
2023-01-21 10:20:19,474: DEBUG -   text-align: left;
2023-01-21 10:20:19,475: DEBUG -   padding: 5px 2px;
2023-01-21 10:20:19,475: DEBUG - }
2023-01-21 10:20:19,475: DEBUG - 
2023-01-21 10:20:19,475: DEBUG - table.table2 td.fieldname {
2023-01-21 10:20:19,475: DEBUG -   font-weight:normal;
2023-01-21 10:20:19,475: DEBUG - }
2023-01-21 10:20:19,476: DEBUG - 
2023-01-21 10:20:19,476: DEBUG - table.table2 td.fielddesc {
2023-01-21 10:20:19,476: DEBUG -   padding-left:10px;
2023-01-21 10:20:19,476: DEBUG -   font-style:italic;
2023-01-21 10:20:19,476: DEBUG - }
2023-01-21 10:20:19,476: DEBUG - 
2023-01-21 10:20:19,477: DEBUG - input[type="submit"], input[type="button"], a.bigButton {
2023-01-21 10:20:19,477: DEBUG -   font-size:14px;
2023-01-21 10:20:19,477: DEBUG -   font-weight:bold;
2023-01-21 10:20:19,477: DEBUG -   letter-spacing:2px;
2023-01-21 10:20:19,477: DEBUG -   border:none;
2023-01-21 10:20:19,478: DEBUG -   background-color:#666666;
2023-01-21 10:20:19,478: DEBUG -   color:#fff;
2023-01-21 10:20:19,478: DEBUG -   padding:5px;
2023-01-21 10:20:19,478: DEBUG -   -moz-border-radius:5px;
2023-01-21 10:20:19,478: DEBUG - }
2023-01-21 10:20:19,478: DEBUG - 
2023-01-21 10:20:19,479: DEBUG - input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
2023-01-21 10:20:19,479: DEBUG -   background-color:#ff7700;
2023-01-21 10:20:19,479: DEBUG -   color:white;
2023-01-21 10:20:19,479: DEBUG -   text-decoration:none;
2023-01-21 10:20:19,479: DEBUG - }
2023-01-21 10:20:19,479: DEBUG - 
2023-01-21 10:20:19,480: DEBUG - input[type="text"], input[type="password"], select {
2023-01-21 10:20:19,480: DEBUG -   background-color:#ddd;
2023-01-21 10:20:19,480: DEBUG -   border:2px solid #ccc;
2023-01-21 10:20:19,480: DEBUG -   -moz-border-radius:5px;
2023-01-21 10:20:19,480: DEBUG -   padding:2px;
2023-01-21 10:20:19,481: DEBUG - }
2023-01-21 10:20:19,481: DEBUG - 
2023-01-21 10:20:19,481: DEBUG - input[type="text"]:focus, input[type="password"]:focus, select:focus {
2023-01-21 10:20:19,481: DEBUG -   background-color:#fff;
2023-01-21 10:20:19,481: DEBUG -   border:2px solid #ff7700;
2023-01-21 10:20:19,481: DEBUG - }
2023-01-21 10:20:19,482: DEBUG - 
2023-01-21 10:20:19,482: DEBUG - .sql_content, .infos a {
2023-01-21 10:20:19,482: DEBUG -   color: #ff3363;
2023-01-21 10:20:19,482: DEBUG - }
2023-01-21 10:20:19,482: DEBUG - 
2023-01-21 10:20:19,482: DEBUG - .errors {
2023-01-21 10:20:19,483: DEBUG -   padding-bottom:5px;
2023-01-21 10:20:19,483: DEBUG - }
2023-01-21 10:20:19,483: DEBUG - 
2023-01-21 10:20:19,483: DEBUG - </style>
2023-01-21 10:20:19,483: DEBUG - 
2023-01-21 10:20:19,484: DEBUG - <title>Piwigo 13.4.0 - Upgrade</title>
2023-01-21 10:20:19,484: DEBUG - <script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head>
2023-01-21 10:20:19,484: DEBUG - 
2023-01-21 10:20:19,484: DEBUG - <body>
2023-01-21 10:20:19,484: DEBUG - <div id="the_page">
2023-01-21 10:20:19,484: DEBUG - <div id="theHeader"></div>
2023-01-21 10:20:19,485: DEBUG - <div id="content" class="content">
2023-01-21 10:20:19,485: DEBUG - 
2023-01-21 10:20:19,485: DEBUG - <h2>Version 13.4.0 - Upgrade</h2>
2023-01-21 10:20:19,485: DEBUG - 
2023-01-21 10:20:19,485: DEBUG - 
2023-01-21 10:20:19,485: DEBUG - <form method="POST" action="upgrade.php?language=en_UK" name="upgrade_form">
2023-01-21 10:20:19,486: DEBUG - 
2023-01-21 10:20:19,486: DEBUG - <fieldset>
2023-01-21 10:20:19,486: DEBUG - <table>
2023-01-21 10:20:19,486: DEBUG -   <tr>
2023-01-21 10:20:19,486: DEBUG -     <td>Language</td>
2023-01-21 10:20:19,487: DEBUG -     <td>
2023-01-21 10:20:19,487: DEBUG -       <select name="language" onchange="document.location = 'upgrade.php?language='+this.options[this.selectedIndex].value;">
2023-01-21 10:20:19,487: DEBUG -         <option value="af_ZA">Afrikaans [ZA]</option>
2023-01-21 10:20:19,487: DEBUG - <option value="es_AR">Argentina [AR]</option>
2023-01-21 10:20:19,487: DEBUG - <option value="az_AZ">Azərbaycanca [AZ]</option>
2023-01-21 10:20:19,488: DEBUG - <option value="id_ID">Bahasa Indonesia [ID]</option>
2023-01-21 10:20:19,488: DEBUG - <option value="pt_BR">Brasil [BR]</option>
2023-01-21 10:20:19,488: DEBUG - <option value="br_FR">Brezhoneg [FR]</option>
2023-01-21 10:20:19,488: DEBUG - <option value="ca_ES">Català [CA]</option>
2023-01-21 10:20:19,488: DEBUG - <option value="da_DK">Dansk [DK]</option>
2023-01-21 10:20:19,488: DEBUG - <option value="de_DE">Deutsch [DE]</option>
2023-01-21 10:20:19,489: DEBUG - <option value="dv_MV">Dhivehi [MV]</option>
2023-01-21 10:20:19,489: DEBUG - <option value="en_GB">English [GB]</option>
2023-01-21 10:20:19,489: DEBUG - <option value="en_UK" selected="selected">English [UK]</option>
2023-01-21 10:20:19,489: DEBUG - <option value="en_US">English [US]</option>
2023-01-21 10:20:19,489: DEBUG - <option value="es_ES">Español [ES]</option>
2023-01-21 10:20:19,490: DEBUG - <option value="eo_EO">Esperanto [EO]</option>
2023-01-21 10:20:19,490: DEBUG - <option value="et_EE">Estonian [EE]</option>
2023-01-21 10:20:19,490: DEBUG - <option value="eu_ES">Euskara [ES]</option>
2023-01-21 10:20:19,490: DEBUG - <option value="fi_FI">Finnish [FI]</option>
2023-01-21 10:20:19,490: DEBUG - <option value="fr_FR">Français [FR]</option>
2023-01-21 10:20:19,490: DEBUG - <option value="fr_CA">Français [QC]</option>
2023-01-21 10:20:19,491: DEBUG - <option value="ga_IE">Gaeilge [IE]</option>
2023-01-21 10:20:19,491: DEBUG - <option value="gl_ES">Galego [ES]</option>
2023-01-21 10:20:19,491: DEBUG - <option value="hr_HR">Hrvatski [HR]</option>
2023-01-21 10:20:19,491: DEBUG - <option value="it_IT">Italiano [IT]</option>
2023-01-21 10:20:19,492: DEBUG - <option value="lv_LV">Latviešu [LV]</option>
2023-01-21 10:20:19,492: DEBUG - <option value="lt_LT">Lietuviu [LT]</option>
2023-01-21 10:20:19,492: DEBUG - <option value="lb_LU">Lëtzebuergesch [LU]</option>
2023-01-21 10:20:19,492: DEBUG - <option value="hu_HU">Magyar [HU]</option>
2023-01-21 10:20:19,492: DEBUG - <option value="ms_MY">Malay [MY]</option>
2023-01-21 10:20:19,492: DEBUG - <option value="es_MX">México [MX]</option>
2023-01-21 10:20:19,493: DEBUG - <option value="nl_NL">Nederlands [NL]</option>
2023-01-21 10:20:19,493: DEBUG - <option value="nb_NO">Norsk bokmål [NO]</option>
2023-01-21 10:20:19,493: DEBUG - <option value="nn_NO">Norwegian nynorsk [NO]</option>
2023-01-21 10:20:19,493: DEBUG - <option value="pl_PL">Polski [PL]</option>
2023-01-21 10:20:19,493: DEBUG - <option value="pt_PT">Português [PT]</option>
2023-01-21 10:20:19,494: DEBUG - <option value="ro_RO">Română [RO]</option>
2023-01-21 10:20:19,494: DEBUG - <option value="sk_SK">Slovensky [SK]</option>
2023-01-21 10:20:19,494: DEBUG - <option value="sl_SI">Slovenšcina [SI]</option>
2023-01-21 10:20:19,494: DEBUG - <option value="sh_RS">Srpski [SR]</option>
2023-01-21 10:20:19,494: DEBUG - <option value="sv_SE">Svenska [SE]</option>
2023-01-21 10:20:19,494: DEBUG - <option value="vi_VN">Tiếng Việt [VN]</option>
2023-01-21 10:20:19,495: DEBUG - <option value="tr_TR">Türkçe [TR]</option>
2023-01-21 10:20:19,495: DEBUG - <option value="wo_SN">Wolof [SN]</option>
2023-01-21 10:20:19,495: DEBUG - <option value="is_IS">Íslenska [IS]</option>
2023-01-21 10:20:19,495: DEBUG - <option value="cs_CZ">Česky [CZ]</option>
2023-01-21 10:20:19,495: DEBUG - <option value="el_GR">Ελληνικά [GR]</option>
2023-01-21 10:20:19,495: DEBUG - <option value="bg_BG">Български [BG]</option>
2023-01-21 10:20:19,496: DEBUG - <option value="mk_MK">Македонски [MK]</option>
2023-01-21 10:20:19,496: DEBUG - <option value="mn_MN">Монгол [MN]</option>
2023-01-21 10:20:19,496: DEBUG - <option value="ru_RU">Русский [RU]</option>
2023-01-21 10:20:19,496: DEBUG - <option value="sr_RS">Српски [SR]</option>
2023-01-21 10:20:19,496: DEBUG - <option value="uk_UA">Українська [UA]</option>
2023-01-21 10:20:19,496: DEBUG - <option value="he_IL">עברית [IL]</option>
2023-01-21 10:20:19,497: DEBUG - <option value="ar_EG">العربية (مصر) [EG]</option>
2023-01-21 10:20:19,497: DEBUG - <option value="ar_SA">العربية [AR]</option>
2023-01-21 10:20:19,497: DEBUG - <option value="ar_MA">العربية [MA]</option>
2023-01-21 10:20:19,497: DEBUG - <option value="fa_IR">پارسی [IR]</option>
2023-01-21 10:20:19,497: DEBUG - <option value="kok_IN">कोंकणी [IN]</option>
2023-01-21 10:20:19,497: DEBUG - <option value="bn_IN">বাংলা[IN]</option>
2023-01-21 10:20:19,498: DEBUG - <option value="gu_IN">ગુજરાતી[IN]</option>
2023-01-21 10:20:19,498: DEBUG - <option value="ta_IN">தமிழ் [IN]</option>
2023-01-21 10:20:19,498: DEBUG - <option value="kn_IN">ಕನ್ನಡ [IN]</option>
2023-01-21 10:20:19,498: DEBUG - <option value="th_TH">ภาษาไทย [TH]</option>
2023-01-21 10:20:19,498: DEBUG - <option value="ka_GE">ქართული [GE]</option>
2023-01-21 10:20:19,498: DEBUG - <option value="km_KH">ខ្មែរ [KH]</option>
2023-01-21 10:20:19,499: DEBUG - <option value="zh_TW">中文 (繁體) [TW]</option>
2023-01-21 10:20:19,499: DEBUG - <option value="zh_HK">中文 (香港) [HK]</option>
2023-01-21 10:20:19,499: DEBUG - <option value="ja_JP">日本語 [JP]</option>
2023-01-21 10:20:19,499: DEBUG - <option value="zh_CN">简体中文 [CN]</option>
2023-01-21 10:20:19,499: DEBUG - <option value="ko_KR">한국어 [KR]</option>
2023-01-21 10:20:19,499: DEBUG - 
2023-01-21 10:20:19,500: DEBUG -       </select>
2023-01-21 10:20:19,500: DEBUG -     </td>
2023-01-21 10:20:19,500: DEBUG -   </tr>
2023-01-21 10:20:19,500: DEBUG - </table>
2023-01-21 10:20:19,500: DEBUG - 
2023-01-21 10:20:19,500: DEBUG - <p>This page proposes to upgrade the database from your old Piwigo version to the new version. The upgrade assistant thinks you are currently running <strong>release 12.0.0</strong> (or equivalent).</p>
2023-01-21 10:20:19,501: DEBUG - <p>Only an administrator can run an upgrade: please sign in below.</p>
2023-01-21 10:20:19,501: DEBUG - 
2023-01-21 10:20:19,501: DEBUG - <table>
2023-01-21 10:20:19,501: DEBUG -   <tr>
2023-01-21 10:20:19,501: DEBUG -     <td>Username</td>
2023-01-21 10:20:19,501: DEBUG -     <td><input type="text" name="username" id="username" size="20" maxlength="50" style="width: 150px;"></td>
2023-01-21 10:20:19,502: DEBUG -   </tr>
2023-01-21 10:20:19,502: DEBUG -   <tr>
2023-01-21 10:20:19,502: DEBUG -     <td>Password</td>
2023-01-21 10:20:19,502: DEBUG -     <td><input type="password" name="password" id="password" style="width: 150px;"></td>
2023-01-21 10:20:19,502: DEBUG -   </tr>
2023-01-21 10:20:19,502: DEBUG - </table>
2023-01-21 10:20:19,502: DEBUG - </fieldset>
2023-01-21 10:20:19,503: DEBUG - <p style="text-align: center;">
2023-01-21 10:20:19,503: DEBUG - <input class="submit" type="submit" name="submit" value="Upgrade from version 12.0.0 to 13.4.0">
2023-01-21 10:20:19,503: DEBUG - </p>
2023-01-21 10:20:19,503: DEBUG - </form>
2023-01-21 10:20:19,503: DEBUG - <!--
2023-01-21 10:20:19,503: DEBUG - <p style="text-align: center;">
2023-01-21 10:20:19,504: DEBUG - <a href="">Upgrade from version 12.0.0 to 13.4.0</a>
2023-01-21 10:20:19,504: DEBUG - </p>
2023-01-21 10:20:19,504: DEBUG - -->
2023-01-21 10:20:19,504: DEBUG - 
2023-01-21 10:20:19,504: DEBUG - 
2023-01-21 10:20:19,504: DEBUG - 
2023-01-21 10:20:19,505: DEBUG - </div> <div>Need help? Ask your question on the <a href="https://piwigo.org/forum">Piwigo message board</a>.</div>
2023-01-21 10:20:19,505: DEBUG - </div> </body>
2023-01-21 10:20:19,505: DEBUG - </html>
2023-01-21 10:20:19,505: DEBUG - + [[ yes == \n\o ]]
2023-01-21 10:20:19,505: DEBUG - ++ ynh_local_curl '/ws.php?format=json' method=pwg.session.getStatus
2023-01-21 10:20:19,505: DEBUG - +++ ynh_normalize_url_path '/ws.php?format=json'
2023-01-21 10:20:19,507: DEBUG - +++ test -n '/ws.php?format=json'
2023-01-21 10:20:19,507: DEBUG - +++ '[' / '!=' / ']'
2023-01-21 10:20:19,507: DEBUG - +++ '[' n == / ']'
2023-01-21 10:20:19,507: DEBUG - +++ echo '/ws.php?format=json'
2023-01-21 10:20:19,507: DEBUG - ++ local 'local_page=/ws.php?format=json'
2023-01-21 10:20:19,508: DEBUG - ++ local 'full_path=/piwigo/ws.php?format=json'
2023-01-21 10:20:19,508: DEBUG - ++ '[' /piwigo == / ']'
2023-01-21 10:20:19,508: DEBUG - ++ local 'full_page_url=https://localhost/piwigo/ws.php?format=json'
2023-01-21 10:20:19,508: DEBUG - ++ local POST_data=
2023-01-21 10:20:19,508: DEBUG - ++ local arg=
2023-01-21 10:20:19,508: DEBUG - ++ for arg in "${@:2}"
2023-01-21 10:20:19,508: DEBUG - ++ POST_data='method=pwg.session.getStatus&'
2023-01-21 10:20:19,509: DEBUG - ++ '[' -n 'method=pwg.session.getStatus&' ']'
2023-01-21 10:20:19,509: DEBUG - ++ POST_data='--data method=pwg.session.getStatus'
2023-01-21 10:20:19,509: DEBUG - ++ sleep 2
2023-01-21 10:20:21,493: DEBUG - ++ local cookiefile=/tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:21,494: DEBUG - ++ touch /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:21,495: DEBUG - ++ chown root /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:21,497: DEBUG - ++ chmod 700 /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:21,500: DEBUG - +++ ynh_permission_has_user main visitors
2023-01-21 10:20:21,547: DEBUG - +++ ynh_permission_exists --permission=main
2023-01-21 10:20:21,564: DEBUG - +++ yunohost user permission list piwigo --output-as json --quiet
2023-01-21 10:20:21,564: DEBUG - +++ jq -e --arg perm piwigo.main '.permissions[$perm]'
2023-01-21 10:20:22,100: DEBUG - +++ for section in "allowed" "corresponding_users"
2023-01-21 10:20:22,101: DEBUG - +++ jq -e --arg user visitors --arg section allowed '.[$section] | index($user)'
2023-01-21 10:20:22,102: DEBUG - +++ yunohost user permission info piwigo.main --output-as json --quiet
2023-01-21 10:20:22,749: DEBUG - +++ return 0
2023-01-21 10:20:22,749: DEBUG - +++ echo yes
2023-01-21 10:20:22,750: DEBUG - ++ local visitors_enabled=yes
2023-01-21 10:20:22,750: DEBUG - ++ [[ yes == \n\o ]]
2023-01-21 10:20:22,750: DEBUG - ++ curl --silent --show-error --insecure --location --header 'Host: maindomain.tld' --resolve maindomain.tld:443:127.0.0.1 --data method=pwg.session.getStatus 'https://localhost/piwigo/ws.php?format=json' --cookie-jar /tmp/ynh-piwigo-cookie.txt --cookie /tmp/ynh-piwigo-cookie.txt
2023-01-21 10:20:22,844: DEBUG - ++ [[ yes == \n\o ]]
2023-01-21 10:20:22,846: DEBUG - + status='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2023-01-21 10:20:22,847: DEBUG - "http://www.w3.org/TR/html4/strict.dtd">
2023-01-21 10:20:22,847: DEBUG - <html lang="en" dir="ltr">
2023-01-21 10:20:22,847: DEBUG - <head>
2023-01-21 10:20:22,847: DEBUG - <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2023-01-21 10:20:22,847: DEBUG - <meta http-equiv="Content-script-type" content="text/javascript">
2023-01-21 10:20:22,848: DEBUG - <meta http-equiv="Content-Style-Type" content="text/css">
2023-01-21 10:20:22,848: DEBUG - <link rel="shortcut icon" type="image/x-icon" href="themes/default/icon/favicon.ico">
2023-01-21 10:20:22,848: DEBUG - 
2023-01-21 10:20:22,848: DEBUG - <link rel="stylesheet" type="text/css" href="_data/combined/jlq1ac.css">
2023-01-21 10:20:22,848: DEBUG - 
2023-01-21 10:20:22,848: DEBUG - 
2023-01-21 10:20:22,849: DEBUG - 
2023-01-21 10:20:22,849: DEBUG - <!--[if IE 7]>
2023-01-21 10:20:22,849: DEBUG -   <link rel="stylesheet" type="text/css" href="admin/themes/default/fix-ie7.css">
2023-01-21 10:20:22,849: DEBUG - <![endif]-->
2023-01-21 10:20:22,849: DEBUG - 
2023-01-21 10:20:22,849: DEBUG - <!-- BEGIN get_combined_scripts -->
2023-01-21 10:20:22,850: DEBUG - 
2023-01-21 10:20:22,850: DEBUG - <!-- END get_combined_scripts -->
2023-01-21 10:20:22,850: DEBUG - 
2023-01-21 10:20:22,850: DEBUG - 
2023-01-21 10:20:22,850: DEBUG - <style type="text/css">
2023-01-21 10:20:22,850: DEBUG - body {
2023-01-21 10:20:22,851: DEBUG -   font-size:12px;
2023-01-21 10:20:22,851: DEBUG - }
2023-01-21 10:20:22,851: DEBUG - 
2023-01-21 10:20:22,851: DEBUG - .content {
2023-01-21 10:20:22,851: DEBUG -  width: 800px;
2023-01-21 10:20:22,851: DEBUG -  margin: auto;
2023-01-21 10:20:22,852: DEBUG -  text-align: center;
2023-01-21 10:20:22,852: DEBUG -  padding:0;
2023-01-21 10:20:22,852: DEBUG -  background-color:transparent !important;
2023-01-21 10:20:22,852: DEBUG -  border:none;
2023-01-21 10:20:22,852: DEBUG - }
2023-01-21 10:20:22,852: DEBUG - 
2023-01-21 10:20:22,852: DEBUG - #content {
2023-01-21 10:20:22,853: DEBUG -   min-height:0;
2023-01-21 10:20:22,853: DEBUG -   border:none;
2023-01-21 10:20:22,853: DEBUG -   margin:1em auto;
2023-01-21 10:20:22,853: DEBUG - }
2023-01-21 10:20:22,853: DEBUG - 
2023-01-21 10:20:22,853: DEBUG - #theHeader {
2023-01-21 10:20:22,854: DEBUG -   display: block;
2023-01-21 10:20:22,854: DEBUG -   background:url("admin/themes/default/images/piwigo-orange.svg") no-repeat scroll center 20px transparent;
2023-01-21 10:20:22,854: DEBUG -   height:100px;
2023-01-21 10:20:22,854: DEBUG -   background-size: 300px;
2023-01-21 10:20:22,854: DEBUG - }
2023-01-21 10:20:22,854: DEBUG - 
2023-01-21 10:20:22,855: DEBUG - fieldset {
2023-01-21 10:20:22,855: DEBUG -   margin-top:20px;
2023-01-21 10:20:22,855: DEBUG -   background-color:#f1f1f1;
2023-01-21 10:20:22,855: DEBUG - }
2023-01-21 10:20:22,855: DEBUG - 
2023-01-21 10:20:22,856: DEBUG - legend {
2023-01-21 10:20:22,856: DEBUG -   font-weight:bold;
2023-01-21 10:20:22,856: DEBUG -   letter-spacing:2px;
2023-01-21 10:20:22,856: DEBUG - }
2023-01-21 10:20:22,856: DEBUG - 
2023-01-21 10:20:22,856: DEBUG - form fieldset p {
2023-01-21 10:20:22,857: DEBUG -   text-align:left;
2023-01-21 10:20:22,857: DEBUG -   margin:10px;
2023-01-21 10:20:22,857: DEBUG - }
2023-01-21 10:20:22,857: DEBUG - 
2023-01-21 10:20:22,857: DEBUG - .content h2 {
2023-01-21 10:20:22,857: DEBUG -   display:block;
2023-01-21 10:20:22,858: DEBUG -   font-size:20px;
2023-01-21 10:20:22,858: DEBUG -   text-align:center;
2023-01-21 10:20:22,858: DEBUG -   /* margin-top:5px; */
2023-01-21 10:20:22,858: DEBUG - }
2023-01-21 10:20:22,858: DEBUG - 
2023-01-21 10:20:22,858: DEBUG - table.table2 {
2023-01-21 10:20:22,859: DEBUG -   width: 100%;
2023-01-21 10:20:22,859: DEBUG -   border:0;
2023-01-21 10:20:22,859: DEBUG - }
2023-01-21 10:20:22,859: DEBUG - 
2023-01-21 10:20:22,859: DEBUG - table.table2 td {
2023-01-21 10:20:22,860: DEBUG -   text-align: left;
2023-01-21 10:20:22,860: DEBUG -   padding: 5px 2px;
2023-01-21 10:20:22,860: DEBUG - }
2023-01-21 10:20:22,860: DEBUG - 
2023-01-21 10:20:22,860: DEBUG - table.table2 td.fieldname {
2023-01-21 10:20:22,860: DEBUG -   font-weight:normal;
2023-01-21 10:20:22,861: DEBUG - }
2023-01-21 10:20:22,861: DEBUG - 
2023-01-21 10:20:22,861: DEBUG - table.table2 td.fielddesc {
2023-01-21 10:20:22,861: DEBUG -   padding-left:10px;
2023-01-21 10:20:22,861: DEBUG -   font-style:italic;
2023-01-21 10:20:22,861: DEBUG - }
2023-01-21 10:20:22,861: DEBUG - 
2023-01-21 10:20:22,862: DEBUG - input[type="submit"], input[type="button"], a.bigButton {
2023-01-21 10:20:22,862: DEBUG -   font-size:14px;
2023-01-21 10:20:22,862: DEBUG -   font-weight:bold;
2023-01-21 10:20:22,862: DEBUG -   letter-spacing:2px;
2023-01-21 10:20:22,862: DEBUG -   border:none;
2023-01-21 10:20:22,863: DEBUG -   background-color:#666666;
2023-01-21 10:20:22,863: DEBUG -   color:#fff;
2023-01-21 10:20:22,863: DEBUG -   padding:5px;
2023-01-21 10:20:22,863: DEBUG -   -moz-border-radius:5px;
2023-01-21 10:20:22,863: DEBUG - }
2023-01-21 10:20:22,863: DEBUG - 
2023-01-21 10:20:22,864: DEBUG - input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
2023-01-21 10:20:22,864: DEBUG -   background-color:#ff7700;
2023-01-21 10:20:22,864: DEBUG -   color:white;
2023-01-21 10:20:22,864: DEBUG -   text-decoration:none;
2023-01-21 10:20:22,864: DEBUG - }
2023-01-21 10:20:22,864: DEBUG - 
2023-01-21 10:20:22,865: DEBUG - input[type="text"], input[type="password"], select {
2023-01-21 10:20:22,865: DEBUG -   background-color:#ddd;
2023-01-21 10:20:22,865: DEBUG -   border:2px solid #ccc;
2023-01-21 10:20:22,865: DEBUG -   -moz-border-radius:5px;
2023-01-21 10:20:22,865: DEBUG -   padding:2px;
2023-01-21 10:20:22,866: DEBUG - }
2023-01-21 10:20:22,866: DEBUG - 
2023-01-21 10:20:22,866: DEBUG - input[type="text"]:focus, input[type="password"]:focus, select:focus {
2023-01-21 10:20:22,866: DEBUG -   background-color:#fff;
2023-01-21 10:20:22,866: DEBUG -   border:2px solid #ff7700;
2023-01-21 10:20:22,866: DEBUG - }
2023-01-21 10:20:22,867: DEBUG - 
2023-01-21 10:20:22,867: DEBUG - .sql_content, .infos a {
2023-01-21 10:20:22,867: DEBUG -   color: #ff3363;
2023-01-21 10:20:22,867: DEBUG - }
2023-01-21 10:20:22,867: DEBUG - 
2023-01-21 10:20:22,867: DEBUG - .errors {
2023-01-21 10:20:22,868: DEBUG -   padding-bottom:5px;
2023-01-21 10:20:22,868: DEBUG - }
2023-01-21 10:20:22,868: DEBUG - 
2023-01-21 10:20:22,868: DEBUG - </style>
2023-01-21 10:20:22,868: DEBUG - 
2023-01-21 10:20:22,868: DEBUG - <title>Piwigo 13.4.0 - Upgrade</title>
2023-01-21 10:20:22,869: DEBUG - <script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head>
2023-01-21 10:20:22,869: DEBUG - 
2023-01-21 10:20:22,869: DEBUG - <body>
2023-01-21 10:20:22,869: DEBUG - <div id="the_page">
2023-01-21 10:20:22,869: DEBUG - <div id="theHeader"></div>
2023-01-21 10:20:22,869: DEBUG - <div id="content" class="content">
2023-01-21 10:20:22,870: DEBUG - 
2023-01-21 10:20:22,870: DEBUG - <h2>Version 13.4.0 - Upgrade</h2>
2023-01-21 10:20:22,870: DEBUG - 
2023-01-21 10:20:22,870: DEBUG - 
2023-01-21 10:20:22,870: DEBUG - <form method="POST" action="upgrade.php?language=en_UK" name="upgrade_form">
2023-01-21 10:20:22,870: DEBUG - 
2023-01-21 10:20:22,871: DEBUG - <fieldset>
2023-01-21 10:20:22,871: DEBUG - <table>
2023-01-21 10:20:22,871: DEBUG -   <tr>
2023-01-21 10:20:22,871: DEBUG -     <td>Language</td>
2023-01-21 10:20:22,871: DEBUG -     <td>
2023-01-21 10:20:22,871: DEBUG -       <select name="language" onchange="document.location = '\''upgrade.php?language='\''+this.options[this.selectedIndex].value;">
2023-01-21 10:20:22,872: DEBUG -         <option value="af_ZA">Afrikaans [ZA]</option>
2023-01-21 10:20:22,872: DEBUG - <option value="es_AR">Argentina [AR]</option>
2023-01-21 10:20:22,872: DEBUG - <option value="az_AZ">Azərbaycanca [AZ]</option>
2023-01-21 10:20:22,872: DEBUG - <option value="id_ID">Bahasa Indonesia [ID]</option>
2023-01-21 10:20:22,872: DEBUG - <option value="pt_BR">Brasil [BR]</option>
2023-01-21 10:20:22,873: DEBUG - <option value="br_FR">Brezhoneg [FR]</option>
2023-01-21 10:20:22,873: DEBUG - <option value="ca_ES">Català [CA]</option>
2023-01-21 10:20:22,873: DEBUG - <option value="da_DK">Dansk [DK]</option>
2023-01-21 10:20:22,873: DEBUG - <option value="de_DE">Deutsch [DE]</option>
2023-01-21 10:20:22,873: DEBUG - <option value="dv_MV">Dhivehi [MV]</option>
2023-01-21 10:20:22,873: DEBUG - <option value="en_GB">English [GB]</option>
2023-01-21 10:20:22,874: DEBUG - <option value="en_UK" selected="selected">English [UK]</option>
2023-01-21 10:20:22,874: DEBUG - <option value="en_US">English [US]</option>
2023-01-21 10:20:22,874: DEBUG - <option value="es_ES">Español [ES]</option>
2023-01-21 10:20:22,874: DEBUG - <option value="eo_EO">Esperanto [EO]</option>
2023-01-21 10:20:22,874: DEBUG - <option value="et_EE">Estonian [EE]</option>
2023-01-21 10:20:22,874: DEBUG - <option value="eu_ES">Euskara [ES]</option>
2023-01-21 10:20:22,875: DEBUG - <option value="fi_FI">Finnish [FI]</option>
2023-01-21 10:20:22,875: DEBUG - <option value="fr_FR">Français [FR]</option>
2023-01-21 10:20:22,875: DEBUG - <option value="fr_CA">Français [QC]</option>
2023-01-21 10:20:22,875: DEBUG - <option value="ga_IE">Gaeilge [IE]</option>
2023-01-21 10:20:22,875: DEBUG - <option value="gl_ES">Galego [ES]</option>
2023-01-21 10:20:22,876: DEBUG - <option value="hr_HR">Hrvatski [HR]</option>
2023-01-21 10:20:22,876: DEBUG - <option value="it_IT">Italiano [IT]</option>
2023-01-21 10:20:22,876: DEBUG - <option value="lv_LV">Latviešu [LV]</option>
2023-01-21 10:20:22,876: DEBUG - <option value="lt_LT">Lietuviu [LT]</option>
2023-01-21 10:20:22,876: DEBUG - <option value="lb_LU">Lëtzebuergesch [LU]</option>
2023-01-21 10:20:22,877: DEBUG - <option value="hu_HU">Magyar [HU]</option>
2023-01-21 10:20:22,877: DEBUG - <option value="ms_MY">Malay [MY]</option>
2023-01-21 10:20:22,877: DEBUG - <option value="es_MX">México [MX]</option>
2023-01-21 10:20:22,877: DEBUG - <option value="nl_NL">Nederlands [NL]</option>
2023-01-21 10:20:22,877: DEBUG - <option value="nb_NO">Norsk bokmål [NO]</option>
2023-01-21 10:20:22,877: DEBUG - <option value="nn_NO">Norwegian nynorsk [NO]</option>
2023-01-21 10:20:22,878: DEBUG - <option value="pl_PL">Polski [PL]</option>
2023-01-21 10:20:22,878: DEBUG - <option value="pt_PT">Português [PT]</option>
2023-01-21 10:20:22,878: DEBUG - <option value="ro_RO">Română [RO]</option>
2023-01-21 10:20:22,878: DEBUG - <option value="sk_SK">Slovensky [SK]</option>
2023-01-21 10:20:22,878: DEBUG - <option value="sl_SI">Slovenšcina [SI]</option>
2023-01-21 10:20:22,879: DEBUG - <option value="sh_RS">Srpski [SR]</option>
2023-01-21 10:20:22,879: DEBUG - <option value="sv_SE">Svenska [SE]</option>
2023-01-21 10:20:22,879: DEBUG - <option value="vi_VN">Tiếng Việt [VN]</option>
2023-01-21 10:20:22,879: DEBUG - <option value="tr_TR">Türkçe [TR]</option>
2023-01-21 10:20:22,879: DEBUG - <option value="wo_SN">Wolof [SN]</option>
2023-01-21 10:20:22,879: DEBUG - <option value="is_IS">Íslenska [IS]</option>
2023-01-21 10:20:22,880: DEBUG - <option value="cs_CZ">Česky [CZ]</option>
2023-01-21 10:20:22,880: DEBUG - <option value="el_GR">Ελληνικά [GR]</option>
2023-01-21 10:20:22,880: DEBUG - <option value="bg_BG">Български [BG]</option>
2023-01-21 10:20:22,880: DEBUG - <option value="mk_MK">Македонски [MK]</option>
2023-01-21 10:20:22,880: DEBUG - <option value="mn_MN">Монгол [MN]</option>
2023-01-21 10:20:22,881: DEBUG - <option value="ru_RU">Русский [RU]</option>
2023-01-21 10:20:22,881: DEBUG - <option value="sr_RS">Српски [SR]</option>
2023-01-21 10:20:22,881: DEBUG - <option value="uk_UA">Українська [UA]</option>
2023-01-21 10:20:22,881: DEBUG - <option value="he_IL">עברית [IL]</option>
2023-01-21 10:20:22,881: DEBUG - <option value="ar_EG">العربية (مصر) [EG]</option>
2023-01-21 10:20:22,881: DEBUG - <option value="ar_SA">العربية [AR]</option>
2023-01-21 10:20:22,882: DEBUG - <option value="ar_MA">العربية [MA]</option>
2023-01-21 10:20:22,882: DEBUG - <option value="fa_IR">پارسی [IR]</option>
2023-01-21 10:20:22,882: DEBUG - <option value="kok_IN">कोंकणी [IN]</option>
2023-01-21 10:20:22,882: DEBUG - <option value="bn_IN">বাংলা[IN]</option>
2023-01-21 10:20:22,882: DEBUG - <option value="gu_IN">ગુજરાતી[IN]</option>
2023-01-21 10:20:22,882: DEBUG - <option value="ta_IN">தமிழ் [IN]</option>
2023-01-21 10:20:22,883: DEBUG - <option value="kn_IN">ಕನ್ನಡ [IN]</option>
2023-01-21 10:20:22,883: DEBUG - <option value="th_TH">ภาษาไทย [TH]</option>
2023-01-21 10:20:22,883: DEBUG - <option value="ka_GE">ქართული [GE]</option>
2023-01-21 10:20:22,883: DEBUG - <option value="km_KH">ខ្មែរ [KH]</option>
2023-01-21 10:20:22,883: DEBUG - <option value="zh_TW">中文 (繁體) [TW]</option>
2023-01-21 10:20:22,884: DEBUG - <option value="zh_HK">中文 (香港) [HK]</option>
2023-01-21 10:20:22,884: DEBUG - <option value="ja_JP">日本語 [JP]</option>
2023-01-21 10:20:22,884: DEBUG - <option value="zh_CN">简体中文 [CN]</option>
2023-01-21 10:20:22,884: DEBUG - <option value="ko_KR">한국어 [KR]</option>
2023-01-21 10:20:22,884: DEBUG - 
2023-01-21 10:20:22,885: DEBUG -       </select>
2023-01-21 10:20:22,885: DEBUG -     </td>
2023-01-21 10:20:22,885: DEBUG -   </tr>
2023-01-21 10:20:22,885: DEBUG - </table>
2023-01-21 10:20:22,885: DEBUG - 
2023-01-21 10:20:22,885: DEBUG - <p>This page proposes to upgrade the database from your old Piwigo version to the new version. The upgrade assistant thinks you are currently running <strong>release 12.0.0</strong> (or equivalent).</p>
2023-01-21 10:20:22,886: DEBUG - <p>Only an administrator can run an upgrade: please sign in below.</p>
2023-01-21 10:20:22,886: DEBUG - 
2023-01-21 10:20:22,886: DEBUG - <table>
2023-01-21 10:20:22,886: DEBUG -   <tr>
2023-01-21 10:20:22,886: DEBUG -     <td>Username</td>
2023-01-21 10:20:22,886: DEBUG -     <td><input type="text" name="username" id="username" size="20" maxlength="50" style="width: 150px;"></td>
2023-01-21 10:20:22,887: DEBUG -   </tr>
2023-01-21 10:20:22,887: DEBUG -   <tr>
2023-01-21 10:20:22,887: DEBUG -     <td>Password</td>
2023-01-21 10:20:22,887: DEBUG -     <td><input type="password" name="password" id="password" style="width: 150px;"></td>
2023-01-21 10:20:22,887: DEBUG -   </tr>
2023-01-21 10:20:22,888: DEBUG - </table>
2023-01-21 10:20:22,888: DEBUG - </fieldset>
2023-01-21 10:20:22,888: DEBUG - <p style="text-align: center;">
2023-01-21 10:20:22,888: DEBUG - <input class="submit" type="submit" name="submit" value="Upgrade from version 12.0.0 to 13.4.0">
2023-01-21 10:20:22,888: DEBUG - </p>
2023-01-21 10:20:22,888: DEBUG - </form>
2023-01-21 10:20:22,889: DEBUG - <!--
2023-01-21 10:20:22,889: DEBUG - <p style="text-align: center;">
2023-01-21 10:20:22,889: DEBUG - <a href="">Upgrade from version 12.0.0 to 13.4.0</a>
2023-01-21 10:20:22,889: DEBUG - </p>
2023-01-21 10:20:22,889: DEBUG - -->
2023-01-21 10:20:22,889: DEBUG - 
2023-01-21 10:20:22,890: DEBUG - 
2023-01-21 10:20:22,890: DEBUG - 
2023-01-21 10:20:22,890: DEBUG - </div> <div>Need help? Ask your question on the <a href="https://piwigo.org/forum">Piwigo message board</a>.</div>
2023-01-21 10:20:22,890: DEBUG - </div> </body>
2023-01-21 10:20:22,890: DEBUG - </html>'
2023-01-21 10:20:22,890: DEBUG - ++ jq --raw-output .result.pwg_token
2023-01-21 10:20:22,922: WARNING - parse error: Invalid numeric literal at line 1, column 10
2023-01-21 10:20:22,923: DEBUG - + pwg_token=
2023-01-21 10:20:22,924: DEBUG - + ynh_exit_properly
2023-01-21 10:20:22,924: DEBUG - + local exit_code=4
2023-01-21 10:20:22,925: DEBUG - + '[' 4 -eq 0 ']'
2023-01-21 10:20:23,427: DEBUG - + ynh_clean_setup
2023-01-21 10:20:23,427: DEBUG - + ynh_restore_upgradebackup
2023-01-21 10:20:23,428: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2023-01-21 10:20:23,444: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2023-01-21 10:20:23,445: DEBUG - + echo -e '[Error] Upgrade failed.'
2023-01-21 10:20:23,445: DEBUG - + local app_bck=piwigo
2023-01-21 10:20:23,445: DEBUG - + NO_BACKUP_UPGRADE=0
2023-01-21 10:20:23,446: DEBUG - + ynh_backup_archive_exists piwigo-pre-upgrade2
2023-01-21 10:20:23,446: WARNING - [Error] Upgrade failed.
2023-01-21 10:20:23,446: DEBUG - + jq -e --arg archive piwigo-pre-upgrade2 '.archives | index($archive)'
2023-01-21 10:20:23,447: DEBUG - + yunohost backup list --output-as json --quiet
2023-01-21 10:20:23,841: DEBUG - + yunohost app remove piwigo
2023-01-21 10:20:24,324: DEBUG - Suppression de piwigo...
2023-01-21 10:20:24,558: DEBUG - [+...................] > Loading installation settings...
2023-01-21 10:20:25,186: DEBUG - [#+..................] > Removing the MySQL database...
2023-01-21 10:20:26,106: DEBUG - [##+.................] > Removing app main directory...
2023-01-21 10:20:26,488: DEBUG - [###++...............] > Removing NGINX web server configuration...
2023-01-21 10:20:26,844: DEBUG - [#####+..............] > Removing PHP-FPM configuration...
2023-01-21 10:20:32,121: DEBUG - [######+.............] > Removing dependencies...
2023-01-21 10:20:33,372: WARNING - E: Unable to locate package piwigo-ynh-deps
2023-01-21 10:20:33,479: DEBUG - [#######+++++++++....] > Removing Fail2Ban configuration...
2023-01-21 10:20:36,627: DEBUG - [################+...] > Removing the dedicated system user...
2023-01-21 10:20:38,631: DEBUG - [####################] > Removal of piwigo completed
2023-01-21 10:20:39,634: DEBUG - piwigo désinstallé
2023-01-21 10:20:43,423: DEBUG - + yunohost backup restore piwigo-pre-upgrade2 --apps piwigo --force --debug
2023-01-21 10:20:43,682: DEBUG - 194  initializing base actions map parser for cli
2023-01-21 10:20:43,684: DEBUG - 196  loading actions map
2023-01-21 10:20:43,686: DEBUG - 198  building parser...
2023-01-21 10:20:43,693: DEBUG - 205  building parser took 0.007s
2023-01-21 10:20:43,695: DEBUG - 207  acquiring lock...
2023-01-21 10:20:43,739: DEBUG - 252  loading python module yunohost.backup took 0.027s
2023-01-21 10:20:43,740: DEBUG - 252  processing action [421397.1]: yunohost.backup.restore with args={'name': 'piwigo-pre-upgrade2', 'system': None, 'apps': ['piwigo'], 'force': True}
2023-01-21 10:20:43,772: DEBUG - 284  Préparation de l'archive pour restauration...
2023-01-21 10:20:43,772: DEBUG - 284  Extraction des fichiers nécessaires depuis l'archive...
2023-01-21 10:20:46,186: DEBUG - 2698 restoring from backup 'piwigo-pre-upgrade2' created on 2023-01-21 09:19:17
2023-01-21 10:20:46,353: DEBUG - 2865 Restauration de piwigo...
2023-01-21 10:20:46,699: DEBUG - 3211 initializing ldap interface
2023-01-21 10:20:47,228: DEBUG - 3740 Permission 'piwigo.main' mise à jour
2023-01-21 10:20:47,369: DEBUG - 3882 Pour voir le journal de cette opération 'Mise à jour de l'URL associée à l'autorisation 'piwigo'', utilisez la commande 'yunohost log show 20230121-092047-permission_url-piwigo'
2023-01-21 10:20:47,864: DEBUG - 4376 Permission 'piwigo.main' créée
2023-01-21 10:20:47,865: DEBUG - 4377 Pour voir le journal de cette opération 'Créer permission 'piwigo'', utilisez la commande 'yunohost log show 20230121-092046-permission_create-piwigo'
2023-01-21 10:20:48,544: DEBUG - 5056 The permission database has been resynchronized
2023-01-21 10:20:48,741: DEBUG - 5253 La configuration de SSOwat a été regénérée
2023-01-21 10:20:48,758: DEBUG - 5270 Chargement de la migration 0024_rebuild_python_venv ...
2023-01-21 10:20:48,760: DEBUG - 5272 Chargement de la migration 0021_migrate_to_bullseye ...
2023-01-21 10:20:48,761: DEBUG - 5273 Chargement de la migration 0022_php73_to_php74_pools ...
2023-01-21 10:20:48,762: DEBUG - 5274 Chargement de la migration 0023_postgresql_11_to_13 ...
2023-01-21 10:20:48,804: DEBUG - 5316 Exécution du script de restauration de l'application 'piwigo'...
2023-01-21 10:20:48,840: DEBUG - 5352 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_x7q0o1t5/restore"  7>&1']'
2023-01-21 10:20:48,850: DEBUG - 5361 + source ../settings/scripts/_common.sh
2023-01-21 10:20:48,851: DEBUG - 5362 ++ YNH_PHP_VERSION=7.4
2023-01-21 10:20:48,851: DEBUG - 5363 ++ pkg_dependencies='imagemagick php7.4-gd php7.4-imagick php7.4-xml php7.4-mbstring php7.4-mysqli'
2023-01-21 10:20:48,852: DEBUG - 5364 + source /usr/share/yunohost/helpers
2023-01-21 10:20:48,853: DEBUG - 5365 +++ set +o
2023-01-21 10:20:48,853: DEBUG - 5365 +++ grep xtrace
2023-01-21 10:20:48,856: DEBUG - 5368 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-01-21 10:20:48,857: DEBUG - 5369 ++ XTRACE_ENABLE='set -o xtrace'
2023-01-21 10:20:48,882: DEBUG - 5394 + ynh_abort_if_errors
2023-01-21 10:20:48,884: DEBUG - 5395 + trap ynh_exit_properly EXIT
2023-01-21 10:20:49,003: DEBUG - 5515 + echo '[....................] > Loading settings...'
2023-01-21 10:20:49,006: DEBUG - 5517 [....................] > Loading settings...
2023-01-21 10:20:49,006: DEBUG - 5517 + app=piwigo
2023-01-21 10:20:49,006: DEBUG - 5517 ++ ynh_app_setting_get --app=piwigo --key=domain
2023-01-21 10:20:49,006: DEBUG - 5517 ++ local _globalapp=piwigo
2023-01-21 10:20:49,051: DEBUG - 5563 ++ app=piwigo
2023-01-21 10:20:49,052: DEBUG - 5563 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:49,053: DEBUG - 5564 ++ ynh_app_setting get piwigo domain
2023-01-21 10:20:49,152: DEBUG - 5664 + domain=maindomain.tld
2023-01-21 10:20:49,153: DEBUG - 5665 ++ ynh_app_setting_get --app=piwigo --key=path
2023-01-21 10:20:49,154: DEBUG - 5666 ++ local _globalapp=piwigo
2023-01-21 10:20:49,200: DEBUG - 5712 ++ app=piwigo
2023-01-21 10:20:49,201: DEBUG - 5713 ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:49,202: DEBUG - 5714 ++ ynh_app_setting get piwigo path
2023-01-21 10:20:49,296: DEBUG - 5808 + path_url=/piwigo
2023-01-21 10:20:49,296: DEBUG - 5809 ++ ynh_app_setting_get --app=piwigo --key=final_path
2023-01-21 10:20:49,298: DEBUG - 5810 ++ local _globalapp=piwigo
2023-01-21 10:20:49,344: DEBUG - 5856 ++ app=piwigo
2023-01-21 10:20:49,344: DEBUG - 5856 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:49,346: DEBUG - 5857 ++ ynh_app_setting get piwigo final_path
2023-01-21 10:20:49,440: DEBUG - 5952 + final_path=/var/www/piwigo
2023-01-21 10:20:49,441: DEBUG - 5953 ++ ynh_app_setting_get --app=piwigo --key=db_name
2023-01-21 10:20:49,442: DEBUG - 5954 ++ local _globalapp=piwigo
2023-01-21 10:20:49,489: DEBUG - 6000 ++ app=piwigo
2023-01-21 10:20:49,489: DEBUG - 6000 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:49,489: DEBUG - 6001 ++ ynh_app_setting get piwigo db_name
2023-01-21 10:20:49,584: DEBUG - 6097 + db_name=piwigo
2023-01-21 10:20:49,585: DEBUG - 6097 + db_user=piwigo
2023-01-21 10:20:49,586: DEBUG - 6098 ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:20:49,587: DEBUG - 6099 ++ local _globalapp=piwigo
2023-01-21 10:20:49,635: DEBUG - 6147 ++ app=piwigo
2023-01-21 10:20:49,636: DEBUG - 6148 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:49,637: DEBUG - 6149 ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:20:49,735: DEBUG - 6247 + phpversion=7.4
2023-01-21 10:20:49,735: DEBUG - 6248 ++ ynh_app_setting_get --app=piwigo --key=datadir
2023-01-21 10:20:49,736: DEBUG - 6248 ++ local _globalapp=piwigo
2023-01-21 10:20:49,782: DEBUG - 6294 ++ app=piwigo
2023-01-21 10:20:49,783: DEBUG - 6295 ++ [[ datadir =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:49,783: DEBUG - 6295 ++ ynh_app_setting get piwigo datadir
2023-01-21 10:20:49,881: DEBUG - 6392 + datadir=/home/yunohost.app/piwigo
2023-01-21 10:20:49,948: DEBUG - 6460 + echo '[....................] > Validating restoration parameters...'
2023-01-21 10:20:49,949: DEBUG - 6460 [....................] > Validating restoration parameters...
2023-01-21 10:20:49,950: DEBUG - 6461 + test '!' -d /var/www/piwigo
2023-01-21 10:20:50,051: DEBUG - 6563 + echo '[+...................] > Recreating the dedicated system user...'
2023-01-21 10:20:50,055: DEBUG - 6564 + ynh_system_user_create --username=piwigo --home_dir=/var/www/piwigo
2023-01-21 10:20:50,057: DEBUG - 6567 [+...................] > Recreating the dedicated system user...
2023-01-21 10:20:50,140: DEBUG - 6651 + use_shell=0
2023-01-21 10:20:50,140: DEBUG - 6651 + home_dir=/var/www/piwigo
2023-01-21 10:20:50,140: DEBUG - 6651 + groups=
2023-01-21 10:20:50,140: DEBUG - 6652 + ynh_system_user_exists piwigo
2023-01-21 10:20:50,159: DEBUG - 6671 + getent passwd piwigo
2023-01-21 10:20:50,167: DEBUG - 6678 + '[' -n /var/www/piwigo ']'
2023-01-21 10:20:50,167: DEBUG - 6678 + local 'user_home_dir=--home-dir /var/www/piwigo'
2023-01-21 10:20:50,167: DEBUG - 6679 + local 'shell=--shell /usr/sbin/nologin'
2023-01-21 10:20:50,167: DEBUG - 6679 + useradd --home-dir /var/www/piwigo --system --user-group piwigo --shell /usr/sbin/nologin
2023-01-21 10:20:53,586: DEBUG - 10097 + echo '[#...................] > Restoring the app main directory...'
2023-01-21 10:20:53,588: DEBUG - 10098 [#...................] > Restoring the app main directory...
2023-01-21 10:20:53,588: DEBUG - 10098 + ynh_restore_file --origin_path=/var/www/piwigo
2023-01-21 10:20:53,634: DEBUG - 10144 + origin_path=/var/www/piwigo
2023-01-21 10:20:53,634: DEBUG - 10144 + dest_path=/var/www/piwigo
2023-01-21 10:20:53,635: DEBUG - 10145 + not_mandatory=0
2023-01-21 10:20:53,635: DEBUG - 10145 + local archive_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/var/www/piwigo
2023-01-21 10:20:53,635: DEBUG - 10145 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/var/www/piwigo ']'
2023-01-21 10:20:53,635: DEBUG - 10145 + [[ -e /var/www/piwigo ]]
2023-01-21 10:20:53,635: DEBUG - 10147 ++ dirname /var/www/piwigo
2023-01-21 10:20:53,639: DEBUG - 10151 + mkdir --parents /var/www
2023-01-21 10:20:53,642: DEBUG - 10154 + mountpoint --quiet /home/yunohost.backup/tmp/piwigo-pre-upgrade2
2023-01-21 10:20:53,661: DEBUG - 10173 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/var/www/piwigo /var/www/piwigo
2023-01-21 10:20:53,674: DEBUG - 10187 + [[ /var/www/piwigo == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
2023-01-21 10:20:53,675: DEBUG - 10187 + chmod 750 /var/www/piwigo
2023-01-21 10:20:53,685: DEBUG - 10197 + chmod -R o-rwx /var/www/piwigo
2023-01-21 10:20:53,786: DEBUG - 10297 + chown -R piwigo:www-data /var/www/piwigo
2023-01-21 10:20:53,935: DEBUG - 10447 + echo '[#+..................] > Restoring the data directory...'
2023-01-21 10:20:53,935: DEBUG - 10448 + ynh_restore_file --origin_path=/home/yunohost.app/piwigo --not_mandatory
2023-01-21 10:20:53,937: DEBUG - 10450 [#+..................] > Restoring the data directory...
2023-01-21 10:20:54,020: DEBUG - 10532 + origin_path=/home/yunohost.app/piwigo
2023-01-21 10:20:54,020: DEBUG - 10532 + dest_path=/home/yunohost.app/piwigo
2023-01-21 10:20:54,020: DEBUG - 10533 + not_mandatory=1
2023-01-21 10:20:54,021: DEBUG - 10533 + local archive_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/home/yunohost.app/piwigo
2023-01-21 10:20:54,021: DEBUG - 10533 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/home/yunohost.app/piwigo ']'
2023-01-21 10:20:54,021: DEBUG - 10533 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/home/yunohost.app/piwigo ']'
2023-01-21 10:20:54,021: DEBUG - 10534 + '[' '!' -L /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/home/yunohost.app/piwigo ']'
2023-01-21 10:20:54,022: DEBUG - 10534 + '[' 1 == 0 ']'
2023-01-21 10:20:54,022: DEBUG - 10534 + return 0
2023-01-21 10:20:54,022: DEBUG - 10534 + mkdir -p /home/yunohost.app/piwigo
2023-01-21 10:20:54,025: DEBUG - 10537 + chmod 750 /home/yunohost.app/piwigo
2023-01-21 10:20:54,027: DEBUG - 10539 + chmod -R o-rwx /home/yunohost.app/piwigo
2023-01-21 10:20:54,040: DEBUG - 10552 + chown -R piwigo:www-data /home/yunohost.app/piwigo
2023-01-21 10:20:54,162: DEBUG - 10673 + echo '[##++................] > Restoring the Fail2Ban configuration...'
2023-01-21 10:20:54,162: DEBUG - 10674 [##++................] > Restoring the Fail2Ban configuration...
2023-01-21 10:20:54,162: DEBUG - 10674 + touch /var/log/piwigoFailedLogins.log
2023-01-21 10:20:54,163: DEBUG - 10675 + chown piwigo: /var/log/piwigoFailedLogins.log
2023-01-21 10:20:54,169: DEBUG - 10681 + ynh_restore_file --origin_path=/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:20:54,209: DEBUG - 10719 + origin_path=/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:20:54,209: DEBUG - 10720 + dest_path=/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:20:54,209: DEBUG - 10720 + not_mandatory=0
2023-01-21 10:20:54,209: DEBUG - 10720 + local archive_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:20:54,210: DEBUG - 10720 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf ']'
2023-01-21 10:20:54,210: DEBUG - 10721 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf ']'
2023-01-21 10:20:54,210: DEBUG - 10721 + [[ -e /etc/fail2ban/jail.d/piwigo.conf ]]
2023-01-21 10:20:54,211: DEBUG - 10723 ++ dirname /etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:20:54,211: DEBUG - 10724 + mkdir --parents /etc/fail2ban/jail.d
2023-01-21 10:20:54,213: DEBUG - 10725 + mountpoint --quiet /home/yunohost.backup/tmp/piwigo-pre-upgrade2
2023-01-21 10:20:54,216: DEBUG - 10728 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/jail.d/piwigo.conf /etc/fail2ban/jail.d/piwigo.conf
2023-01-21 10:20:54,219: DEBUG - 10731 + [[ /etc/fail2ban/jail.d/piwigo.conf == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
2023-01-21 10:20:54,220: DEBUG - 10732 + ynh_restore_file --origin_path=/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:20:54,257: DEBUG - 10770 + origin_path=/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:20:54,258: DEBUG - 10770 + dest_path=/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:20:54,258: DEBUG - 10770 + not_mandatory=0
2023-01-21 10:20:54,258: DEBUG - 10770 + local archive_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:20:54,258: DEBUG - 10771 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf ']'
2023-01-21 10:20:54,259: DEBUG - 10771 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf ']'
2023-01-21 10:20:54,259: DEBUG - 10771 + [[ -e /etc/fail2ban/filter.d/piwigo.conf ]]
2023-01-21 10:20:54,260: DEBUG - 10772 ++ dirname /etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:20:54,262: DEBUG - 10774 + mkdir --parents /etc/fail2ban/filter.d
2023-01-21 10:20:54,265: DEBUG - 10777 + mountpoint --quiet /home/yunohost.backup/tmp/piwigo-pre-upgrade2
2023-01-21 10:20:54,268: DEBUG - 10780 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/fail2ban/filter.d/piwigo.conf /etc/fail2ban/filter.d/piwigo.conf
2023-01-21 10:20:54,272: DEBUG - 10784 + [[ /etc/fail2ban/filter.d/piwigo.conf == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
2023-01-21 10:20:54,272: DEBUG - 10785 + ynh_systemd_action --action=restart --service_name=fail2ban
2023-01-21 10:20:54,398: DEBUG - 10909 + service_name=fail2ban
2023-01-21 10:20:54,398: DEBUG - 10909 + action=restart
2023-01-21 10:20:54,398: DEBUG - 10909 + line_match=
2023-01-21 10:20:54,399: DEBUG - 10910 + length=20
2023-01-21 10:20:54,399: DEBUG - 10910 + log_path=/var/log/fail2ban/fail2ban.log
2023-01-21 10:20:54,399: DEBUG - 10910 + timeout=300
2023-01-21 10:20:54,399: DEBUG - 10910 + '[' restart == stop ']'
2023-01-21 10:20:54,401: DEBUG - 10913 + '[' restart == reload ']'
2023-01-21 10:20:54,401: DEBUG - 10913 + systemctl restart fail2ban
2023-01-21 10:20:55,574: DEBUG - 12085 + echo '[####+++++++++++.....] > Reinstalling dependencies...'
2023-01-21 10:20:55,575: DEBUG - 12086 + ynh_install_app_dependencies imagemagick php7.4-gd php7.4-imagick php7.4-xml php7.4-mbstring php7.4-mysqli
2023-01-21 10:20:55,575: DEBUG - 12086 + local 'dependencies=imagemagick php7.4-gd php7.4-imagick php7.4-xml php7.4-mbstring php7.4-mysqli'
2023-01-21 10:20:55,575: DEBUG - 12087 [####+++++++++++.....] > Reinstalling dependencies...
2023-01-21 10:20:55,578: DEBUG - 12090 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2023-01-21 10:20:55,582: DEBUG - 12094 ++ echo 'imagemagick php7.4-gd php7.4-imagick php7.4-xml php7.4-mbstring php7.4-mysqli'
2023-01-21 10:20:55,586: DEBUG - 12097 + dependencies='imagemagick, php7.4-gd, php7.4-imagick, php7.4-xml, php7.4-mbstring, php7.4-mysqli'
2023-01-21 10:20:55,586: DEBUG - 12098 + local 'dependencies=imagemagick, php7.4-gd, php7.4-imagick, php7.4-xml, php7.4-mbstring, php7.4-mysqli'
2023-01-21 10:20:55,586: DEBUG - 12098 + local manifest_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/settings/manifest.json
2023-01-21 10:20:55,588: DEBUG - 12100 ++ jq -r .version /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/settings/manifest.json
2023-01-21 10:20:55,669: DEBUG - 12180 + local version=12.3.0~ynh1
2023-01-21 10:20:55,669: DEBUG - 12180 + '[' -z 12.3.0~ynh1 ']'
2023-01-21 10:20:55,669: DEBUG - 12181 + '[' 12.3.0~ynh1 == null ']'
2023-01-21 10:20:55,670: DEBUG - 12181 + local dep_app=piwigo
2023-01-21 10:20:55,670: DEBUG - 12181 + [[ imagemagick, php7.4-gd, php7.4-imagick, php7.4-xml, php7.4-mbstring, php7.4-mysqli =~ [<=>] ]]
2023-01-21 10:20:55,670: DEBUG - 12183 ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)'
2023-01-21 10:20:55,674: DEBUG - 12186 ++ echo imagemagick, php7.4-gd, php7.4-imagick, php7.4-xml, php7.4-mbstring, php7.4-mysqli
2023-01-21 10:20:55,675: DEBUG - 12187 ++ sort -u
2023-01-21 10:20:55,679: DEBUG - 12191 + local specific_php_version=7.4
2023-01-21 10:20:55,679: DEBUG - 12191 + [[ -n 7.4 ]]
2023-01-21 10:20:55,681: DEBUG - 12193 ++ wc -l
2023-01-21 10:20:55,683: DEBUG - 12196 ++ echo 7.4
2023-01-21 10:20:55,686: DEBUG - 12197 + [[ 1 -eq 1 ]]
2023-01-21 10:20:55,686: DEBUG - 12198 + dependencies+=', php7.4, php7.4-fpm, php7.4-common'
2023-01-21 10:20:55,686: DEBUG - 12198 ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:20:55,688: DEBUG - 12199 ++ local _globalapp=piwigo
2023-01-21 10:20:55,740: DEBUG - 12251 ++ app=piwigo
2023-01-21 10:20:55,740: DEBUG - 12252 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:55,740: DEBUG - 12252 ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:20:55,838: DEBUG - 12349 + local old_phpversion=7.4
2023-01-21 10:20:55,839: DEBUG - 12350 + '[' -n 7.4 ']'
2023-01-21 10:20:55,839: DEBUG - 12350 + '[' 7.4 '!=' 7.4 ']'
2023-01-21 10:20:55,839: DEBUG - 12350 + ynh_app_setting_set --app=piwigo --key=phpversion --value=7.4
2023-01-21 10:20:55,845: DEBUG - 12355 + local _globalapp=piwigo
2023-01-21 10:20:55,957: DEBUG - 12468 + app=piwigo
2023-01-21 10:20:55,957: DEBUG - 12469 + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:20:55,957: DEBUG - 12469 + ynh_app_setting set piwigo phpversion 7.4
2023-01-21 10:20:56,068: DEBUG - 12580 + update-alternatives --set php /usr/bin/php7.4
2023-01-21 10:20:56,072: DEBUG - 12584 ++ ynh_package_is_installed postgresql-13
2023-01-21 10:20:56,096: DEBUG - 12608 ++ ynh_wait_dpkg_free
2023-01-21 10:20:56,305: DEBUG - 12817 ++ return 0
2023-01-21 10:20:56,305: DEBUG - 12817 ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2023-01-21 10:20:56,306: DEBUG - 12818 ++ grep --count 'ok installed'
2023-01-21 10:20:56,337: DEBUG - 12849 ++ echo yes
2023-01-21 10:20:56,338: DEBUG - 12849 + local psql_installed=yes
2023-01-21 10:20:56,338: DEBUG - 12850 + [[ true == \t\r\u\e ]]
2023-01-21 10:20:56,338: DEBUG - 12850 + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2023-01-21 10:20:56,338: DEBUG - 12850 + cat
2023-01-21 10:20:56,341: DEBUG - 12853 + ynh_package_install_from_equivs /tmp/piwigo-ynh-deps.control
2023-01-21 10:20:56,342: DEBUG - 12854 + local controlfile=/tmp/piwigo-ynh-deps.control
2023-01-21 10:20:56,343: DEBUG - 12856 ++ grep '^Package: ' /tmp/piwigo-ynh-deps.control
2023-01-21 10:20:56,344: DEBUG - 12856 ++ cut '--delimiter= ' --fields=2
2023-01-21 10:20:56,348: DEBUG - 12860 + local pkgname=piwigo-ynh-deps
2023-01-21 10:20:56,350: DEBUG - 12862 ++ grep '^Version: ' /tmp/piwigo-ynh-deps.control
2023-01-21 10:20:56,350: DEBUG - 12862 ++ cut '--delimiter= ' --fields=2
2023-01-21 10:20:56,354: DEBUG - 12866 + local pkgversion=12.3.0~ynh1
2023-01-21 10:20:56,354: DEBUG - 12867 + [[ -z piwigo-ynh-deps ]]
2023-01-21 10:20:56,355: DEBUG - 12867 + [[ -z 12.3.0~ynh1 ]]
2023-01-21 10:20:56,355: DEBUG - 12867 + ynh_package_update
2023-01-21 10:20:56,355: DEBUG - 12867 + ynh_apt update
2023-01-21 10:20:56,355: DEBUG - 12867 + ynh_wait_dpkg_free
2023-01-21 10:20:56,547: DEBUG - 13058 + return 0
2023-01-21 10:20:56,547: DEBUG - 13059 + LC_ALL=C
2023-01-21 10:20:56,547: DEBUG - 13059 + DEBIAN_FRONTEND=noninteractive
2023-01-21 10:20:56,547: DEBUG - 13059 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2023-01-21 10:20:56,730: DEBUG - 13242 Hit:1 http://security.debian.org bullseye-security InRelease
2023-01-21 10:20:56,730: DEBUG - 13242 Hit:2 http://ftp.debian.org/debian bullseye InRelease
2023-01-21 10:20:56,731: DEBUG - 13242 Hit:3 http://forge.yunohost.org/debian bullseye InRelease
2023-01-21 10:20:56,743: DEBUG - 13255 Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
2023-01-21 10:20:56,752: DEBUG - 13264 Hit:5 https://packages.sury.org/php bullseye InRelease
2023-01-21 10:20:59,124: DEBUG - 15636 Reading package lists...
2023-01-21 10:20:59,161: DEBUG - 15673 ++ mktemp --directory
2023-01-21 10:20:59,163: DEBUG - 15675 + local TMPDIR=/tmp/tmp.ltIp9QFEAv
2023-01-21 10:20:59,163: DEBUG - 15675 + rm -f /usr/share/equivs/template/debian/compat
2023-01-21 10:20:59,165: DEBUG - 15677 + ynh_wait_dpkg_free
2023-01-21 10:20:59,344: DEBUG - 15856 + return 0
2023-01-21 10:20:59,345: DEBUG - 15857 + cp /tmp/piwigo-ynh-deps.control /tmp/tmp.ltIp9QFEAv/control
2023-01-21 10:20:59,348: DEBUG - 15860 + cd /tmp/tmp.ltIp9QFEAv
2023-01-21 10:20:59,349: DEBUG - 15861 + LC_ALL=C
2023-01-21 10:20:59,349: DEBUG - 15861 + equivs-build ./control
2023-01-21 10:20:59,661: DEBUG - 16173 dpkg-buildpackage: info: source package piwigo-ynh-deps
2023-01-21 10:20:59,661: DEBUG - 16174 dpkg-buildpackage: info: source version 12.3.0~ynh1
2023-01-21 10:20:59,662: DEBUG - 16174 dpkg-buildpackage: info: source distribution unstable
2023-01-21 10:20:59,662: DEBUG - 16174 dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@yunohost.yunohost.org>
2023-01-21 10:20:59,741: DEBUG - 16253  dpkg-source --before-build .
2023-01-21 10:20:59,741: DEBUG - 16253 dpkg-buildpackage: info: host architecture amd64
2023-01-21 10:20:59,984: DEBUG - 16496  debian/rules clean
2023-01-21 10:20:59,988: DEBUG - 16500 dh clean
2023-01-21 10:21:00,171: DEBUG - 16683    dh_clean
2023-01-21 10:21:00,245: DEBUG - 16757  debian/rules binary
2023-01-21 10:21:00,248: DEBUG - 16760 dh binary
2023-01-21 10:21:00,403: DEBUG - 16915    dh_update_autotools_config
2023-01-21 10:21:00,468: DEBUG - 16980    dh_autoreconf
2023-01-21 10:21:00,564: DEBUG - 17076    create-stamp debian/debhelper-build-stamp
2023-01-21 10:21:00,565: DEBUG - 17076    dh_prep
2023-01-21 10:21:00,630: DEBUG - 17142    dh_install
2023-01-21 10:21:00,709: DEBUG - 17221    dh_installdocs
2023-01-21 10:21:00,799: DEBUG - 17311    dh_installchangelogs
2023-01-21 10:21:00,991: DEBUG - 17503    dh_perl
2023-01-21 10:21:01,076: DEBUG - 17588    dh_link
2023-01-21 10:21:01,155: DEBUG - 17667    dh_strip_nondeterminism
2023-01-21 10:21:01,291: DEBUG - 17803    dh_compress
2023-01-21 10:21:01,379: DEBUG - 17891    dh_fixperms
2023-01-21 10:21:01,466: DEBUG - 17978    dh_missing
2023-01-21 10:21:01,527: DEBUG - 18039    dh_installdeb
2023-01-21 10:21:01,606: DEBUG - 18118    dh_gencontrol
2023-01-21 10:21:01,880: DEBUG - 18392    dh_md5sums
2023-01-21 10:21:01,957: DEBUG - 18469    dh_builddeb
2023-01-21 10:21:02,018: DEBUG - 18530 dpkg-deb: building package 'piwigo-ynh-deps' in '../piwigo-ynh-deps_12.3.0~ynh1_all.deb'.
2023-01-21 10:21:03,404: DEBUG - 19916  dpkg-genbuildinfo --build=binary
2023-01-21 10:21:04,214: DEBUG - 20726  dpkg-genchanges --build=binary >../piwigo-ynh-deps_12.3.0~ynh1_amd64.changes
2023-01-21 10:21:04,405: DEBUG - 20917 dpkg-genchanges: info: binary-only upload (no source code included)
2023-01-21 10:21:04,411: DEBUG - 20923  dpkg-source --after-build .
2023-01-21 10:21:04,662: DEBUG - 21173 dpkg-buildpackage: info: binary-only upload (no source included)
2023-01-21 10:21:04,669: DEBUG - 21181
2023-01-21 10:21:04,670: DEBUG - 21182 The package has been created.
2023-01-21 10:21:04,671: DEBUG - 21183 Attention, the package has been created in the current directory,
2023-01-21 10:21:04,672: DEBUG - 21185 not in ".." as indicated by the message above!
2023-01-21 10:21:04,673: DEBUG - 21185 + LC_ALL=C
2023-01-21 10:21:04,674: DEBUG - 21186 + dpkg --force-depends --install ./piwigo-ynh-deps_12.3.0~ynh1_all.deb
2023-01-21 10:21:04,677: DEBUG - 21188 + tee ./dpkg_log
2023-01-21 10:21:05,349: DEBUG - 21861 Selecting previously unselected package piwigo-ynh-deps.
2023-01-21 10:21:05,414: DEBUG - 21925 (Reading database ... 66758 files and directories currently installed.)
2023-01-21 10:21:05,422: DEBUG - 21934 Preparing to unpack .../piwigo-ynh-deps_12.3.0~ynh1_all.deb ...
2023-01-21 10:21:05,490: DEBUG - 22002 Unpacking piwigo-ynh-deps (12.3.0~ynh1) ...
2023-01-21 10:21:05,682: DEBUG - 22194 Setting up piwigo-ynh-deps (12.3.0~ynh1) ...
2023-01-21 10:21:05,951: DEBUG - 22463 + ynh_package_install --fix-broken
2023-01-21 10:21:05,952: DEBUG - 22464 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2023-01-21 10:21:05,953: DEBUG - 22464 + ynh_wait_dpkg_free
2023-01-21 10:21:06,136: DEBUG - 22648 + return 0
2023-01-21 10:21:06,138: DEBUG - 22649 + LC_ALL=C
2023-01-21 10:21:06,138: DEBUG - 22650 + DEBIAN_FRONTEND=noninteractive
2023-01-21 10:21:06,138: DEBUG - 22650 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2023-01-21 10:21:06,496: DEBUG - 23008 Reading package lists...
2023-01-21 10:21:06,811: DEBUG - 23323 Building dependency tree...
2023-01-21 10:21:06,812: DEBUG - 23325 Reading state information...
2023-01-21 10:21:07,403: DEBUG - 23915 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2023-01-21 10:21:07,405: DEBUG - 23917 + [[ -n /tmp/tmp.ltIp9QFEAv ]]
2023-01-21 10:21:07,405: DEBUG - 23917 + rm --recursive --force /tmp/tmp.ltIp9QFEAv
2023-01-21 10:21:07,408: DEBUG - 23919 + ynh_package_is_installed piwigo-ynh-deps
2023-01-21 10:21:07,424: DEBUG - 23936 + ynh_wait_dpkg_free
2023-01-21 10:21:07,607: DEBUG - 24119 + return 0
2023-01-21 10:21:07,608: DEBUG - 24120 + grep --count 'ok installed'
2023-01-21 10:21:07,609: DEBUG - 24121 + dpkg-query --show '--showformat=${Status}' piwigo-ynh-deps
2023-01-21 10:21:07,639: DEBUG - 24151 + rm /tmp/piwigo-ynh-deps.control
2023-01-21 10:21:07,642: DEBUG - 24154 ++ ynh_package_is_installed postgresql-13
2023-01-21 10:21:07,658: DEBUG - 24170 ++ ynh_wait_dpkg_free
2023-01-21 10:21:07,839: DEBUG - 24350 ++ return 0
2023-01-21 10:21:07,839: DEBUG - 24352 ++ grep --count 'ok installed'
2023-01-21 10:21:07,840: DEBUG - 24352 ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2023-01-21 10:21:07,871: DEBUG - 24383 ++ echo yes
2023-01-21 10:21:07,872: DEBUG - 24384 + local psql_installed2=yes
2023-01-21 10:21:07,873: DEBUG - 24384 + [[ yes != \y\e\s ]]
2023-01-21 10:21:07,980: DEBUG - 24492 + echo '[###############+++..] > Restoring the PHP-FPM configuration...'
2023-01-21 10:21:07,981: DEBUG - 24492 [###############+++..] > Restoring the PHP-FPM configuration...
2023-01-21 10:21:07,983: DEBUG - 24494 + ynh_restore_file --origin_path=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:21:08,018: DEBUG - 24530 + origin_path=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:21:08,018: DEBUG - 24530 + dest_path=/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:21:08,018: DEBUG - 24530 + not_mandatory=0
2023-01-21 10:21:08,018: DEBUG - 24531 + local archive_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:21:08,019: DEBUG - 24531 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf ']'
2023-01-21 10:21:08,019: DEBUG - 24531 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf ']'
2023-01-21 10:21:08,019: DEBUG - 24531 + [[ -e /etc/php/7.4/fpm/pool.d/piwigo.conf ]]
2023-01-21 10:21:08,020: DEBUG - 24532 ++ dirname /etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:21:08,022: DEBUG - 24534 + mkdir --parents /etc/php/7.4/fpm/pool.d
2023-01-21 10:21:08,025: DEBUG - 24537 + mountpoint --quiet /home/yunohost.backup/tmp/piwigo-pre-upgrade2
2023-01-21 10:21:08,028: DEBUG - 24540 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/php/7.4/fpm/pool.d/piwigo.conf /etc/php/7.4/fpm/pool.d/piwigo.conf
2023-01-21 10:21:08,032: DEBUG - 24544 + [[ /etc/php/7.4/fpm/pool.d/piwigo.conf == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
2023-01-21 10:21:08,033: DEBUG - 24545 ++ ynh_app_setting_get --app=piwigo --key=phpversion
2023-01-21 10:21:08,034: DEBUG - 24546 ++ local _globalapp=piwigo
2023-01-21 10:21:08,081: DEBUG - 24593 ++ app=piwigo
2023-01-21 10:21:08,081: DEBUG - 24593 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:21:08,081: DEBUG - 24594 ++ ynh_app_setting get piwigo phpversion
2023-01-21 10:21:08,178: DEBUG - 24689 + phpversion=7.4
2023-01-21 10:21:08,247: DEBUG - 24759 + echo '[##################..] > Restoring the NGINX web server configuration...'
2023-01-21 10:21:08,250: DEBUG - 24760 + ynh_restore_file --origin_path=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,252: DEBUG - 24762 [##################..] > Restoring the NGINX web server configuration...
2023-01-21 10:21:08,285: DEBUG - 24797 + origin_path=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,285: DEBUG - 24797 + dest_path=/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,285: DEBUG - 24798 + not_mandatory=0
2023-01-21 10:21:08,286: DEBUG - 24798 + local archive_path=/home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,286: DEBUG - 24798 + '[' '!' -d /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf ']'
2023-01-21 10:21:08,286: DEBUG - 24798 + '[' '!' -f /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf ']'
2023-01-21 10:21:08,286: DEBUG - 24798 + [[ -e /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf ]]
2023-01-21 10:21:08,287: DEBUG - 24799 ++ dirname /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,290: DEBUG - 24802 + mkdir --parents /etc/nginx/conf.d/maindomain.tld.d
2023-01-21 10:21:08,293: DEBUG - 24805 + mountpoint --quiet /home/yunohost.backup/tmp/piwigo-pre-upgrade2
2023-01-21 10:21:08,296: DEBUG - 24808 + mv /home/yunohost.backup/tmp/piwigo-pre-upgrade2/apps/piwigo/backup/etc/nginx/conf.d/maindomain.tld.d/piwigo.conf /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,299: DEBUG - 24811 + [[ /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
2023-01-21 10:21:08,300: DEBUG - 24812 + grep 'php7.3.*sock' /etc/nginx/conf.d/maindomain.tld.d/piwigo.conf
2023-01-21 10:21:08,410: DEBUG - 24922 + echo '[##################+.] > Restoring the MySQL database...'
2023-01-21 10:21:08,410: DEBUG - 24923 [##################+.] > Restoring the MySQL database...
2023-01-21 10:21:08,411: DEBUG - 24923 ++ ynh_app_setting_get --app=piwigo --key=mysqlpwd
2023-01-21 10:21:08,412: DEBUG - 24924 ++ local _globalapp=piwigo
2023-01-21 10:21:08,461: DEBUG - 24973 ++ app=piwigo
2023-01-21 10:21:08,461: DEBUG - 24974 ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:21:08,462: DEBUG - 24974 ++ ynh_app_setting get piwigo mysqlpwd
2023-01-21 10:21:08,558: DEBUG - 25069 + db_pwd=**********
2023-01-21 10:21:08,558: DEBUG - 25070 + ynh_mysql_setup_db --db_user=piwigo --db_name=piwigo --db_pwd=**********
2023-01-21 10:21:08,560: DEBUG - 25071 + db_pwd=
2023-01-21 10:21:08,656: DEBUG - 25168 ++ ynh_string_random
2023-01-21 10:21:08,660: DEBUG - 25171 ++ length=24
2023-01-21 10:21:08,660: DEBUG - 25171 ++ filter=A-Za-z0-9
2023-01-21 10:21:08,661: DEBUG - 25173 ++ tr --complement --delete A-Za-z0-9
2023-01-21 10:21:08,662: DEBUG - 25174 ++ dd if=/dev/urandom bs=1 count=1000
2023-01-21 10:21:08,663: DEBUG - 25175 ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2023-01-21 10:21:08,702: DEBUG - 25214 + local new_db_pwd=**********
2023-01-21 10:21:08,702: DEBUG - 25214 + db_pwd=**********
2023-01-21 10:21:08,703: DEBUG - 25215 + ynh_mysql_create_db piwigo piwigo **********
2023-01-21 10:21:08,703: DEBUG - 25215 + local db=piwigo
2023-01-21 10:21:08,703: DEBUG - 25215 + local 'sql=CREATE DATABASE piwigo;'
2023-01-21 10:21:08,703: DEBUG - 25216 + [[ 3 -gt 1 ]]
2023-01-21 10:21:08,703: DEBUG - 25216 + sql+=' GRANT ALL PRIVILEGES ON piwigo.* TO '\''piwigo'\''@'\''localhost'\'''
2023-01-21 10:21:08,704: DEBUG - 25216 + [[ -n ********** ]]
2023-01-21 10:21:08,704: DEBUG - 25216 + sql+=' IDENTIFIED BY '\''**********'\'''
2023-01-21 10:21:08,704: DEBUG - 25217 + sql+=' WITH GRANT OPTION;'
2023-01-21 10:21:08,705: DEBUG - 25217 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE piwigo; GRANT ALL PRIVILEGES ON piwigo.* TO '\''piwigo'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2023-01-21 10:21:08,733: DEBUG - 25244 + database=
2023-01-21 10:21:08,733: DEBUG - 25245 + '[' -n '' ']'
2023-01-21 10:21:08,733: DEBUG - 25245 + mysql -B ''
2023-01-21 10:21:08,823: DEBUG - 25334 + ynh_app_setting_set --app=piwigo --key=mysqlpwd --value=**********
2023-01-21 10:21:08,823: DEBUG - 25334 + local _globalapp=piwigo
2023-01-21 10:21:08,921: DEBUG - 25433 + app=piwigo
2023-01-21 10:21:08,921: DEBUG - 25433 + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2023-01-21 10:21:08,922: DEBUG - 25434 + ynh_app_setting set piwigo mysqlpwd **********
2023-01-21 10:21:09,021: DEBUG - 25533 + ynh_mysql_connect_as --user=piwigo --password=********** --database=piwigo
2023-01-21 10:21:09,119: DEBUG - 25631 + database=piwigo
2023-01-21 10:21:09,120: DEBUG - 25632 + mysql --user=piwigo --password=********** --batch piwigo
2023-01-21 10:21:11,101: DEBUG - 27612 + echo '[###################.] > Reloading NGINX web server and PHP-FPM...'
2023-01-21 10:21:11,101: DEBUG - 27613 [###################.] > Reloading NGINX web server and PHP-FPM...
2023-01-21 10:21:11,103: DEBUG - 27614 + ynh_systemd_action --service_name=php7.4-fpm --action=reload
2023-01-21 10:21:11,230: DEBUG - 27740 + service_name=php7.4-fpm
2023-01-21 10:21:11,230: DEBUG - 27740 + action=reload
2023-01-21 10:21:11,230: DEBUG - 27740 + line_match=
2023-01-21 10:21:11,231: DEBUG - 27741 + length=20
2023-01-21 10:21:11,231: DEBUG - 27741 + log_path=/var/log/php7.4-fpm/php7.4-fpm.log
2023-01-21 10:21:11,231: DEBUG - 27741 + timeout=300
2023-01-21 10:21:11,231: DEBUG - 27741 + '[' reload == stop ']'
2023-01-21 10:21:11,232: DEBUG - 27742 + '[' reload == reload ']'
2023-01-21 10:21:11,232: DEBUG - 27742 + action=reload-or-restart
2023-01-21 10:21:11,232: DEBUG - 27742 + systemctl reload-or-restart php7.4-fpm
2023-01-21 10:21:11,259: DEBUG - 27769 + ynh_systemd_action --service_name=nginx --action=reload
2023-01-21 10:21:11,433: DEBUG - 27943 + service_name=nginx
2023-01-21 10:21:11,434: DEBUG - 27944 + action=reload
2023-01-21 10:21:11,434: DEBUG - 27944 + line_match=
2023-01-21 10:21:11,434: DEBUG - 27944 + length=20
2023-01-21 10:21:11,434: DEBUG - 27944 + log_path=/var/log/nginx/nginx.log
2023-01-21 10:21:11,434: DEBUG - 27944 + timeout=300
2023-01-21 10:21:11,435: DEBUG - 27945 + '[' reload == stop ']'
2023-01-21 10:21:11,435: DEBUG - 27945 + '[' reload == reload ']'
2023-01-21 10:21:11,435: DEBUG - 27945 + action=reload-or-restart
2023-01-21 10:21:11,435: DEBUG - 27945 + systemctl reload-or-restart nginx
2023-01-21 10:21:11,679: DEBUG - 28191 + echo '[####################] > Restoration completed for piwigo'
2023-01-21 10:21:11,681: DEBUG - 28192 [####################] > Restoration completed for piwigo
2023-01-21 10:21:11,681: DEBUG - 28193 + ynh_exit_properly
2023-01-21 10:21:11,682: DEBUG - 28194 + exit 0
2023-01-21 10:21:12,684: DEBUG - 29197 Pour voir le journal de cette opération 'Restaurer 'piwigo' depuis une sauvegarde', utilisez la commande 'yunohost log show 20230121-092046-backup_restore_app-piwigo'
2023-01-21 10:21:12,839: DEBUG - 29351 The permission database has been resynchronized
2023-01-21 10:21:13,028: DEBUG - 29540 La configuration de SSOwat a été regénérée
2023-01-21 10:21:13,041: DEBUG - 29553 Restauration terminée
2023-01-21 10:21:13,041: DEBUG - 29553 action [421397.1] executed in 29.301s
2023-01-21 10:21:13,042: DEBUG - apps:
2023-01-21 10:21:13,042: DEBUG -   piwigo: Success
2023-01-21 10:21:13,042: DEBUG - system:
2023-01-21 10:21:13,133: DEBUG - + [[ -d /etc/yunohost/apps/piwigo ]]
2023-01-21 10:21:13,133: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
2023-01-21 10:21:13,163: WARNING - The app was restored to the way it was before the failed upgrade.
2023-01-21 10:21:14,165: ERROR - Impossible de mettre à jour piwigo : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application