Failed to upgrade Framaforms 1.0.3~ynh1 to 1.0.3~ynh2

Hi

My YunoHost server

Hardware: VPS OVH
YunoHost version: 4.2.8.3
I have access to my server : Webadmin

Description of my issue

I am looking to update the Framaforms package from 1.0.3~ynh1 to 1.0.3~ynh2
This operation has been systematically failed for several months.

Thanks for helping

Full log

ended_at: 2021-10-24 10:22:50.793749
env:
  BASH_XTRACEFD: '7'
  NO_BACKUP_UPGRADE: '0'
  YNH_APP_CURRENT_VERSION: 1.0.3~ynh1
  YNH_APP_ID: framaforms
  YNH_APP_INSTANCE_NAME: framaforms
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 1.0.3~ynh2
  YNH_APP_UPGRADE_TYPE: UPGRADE_PACKAGE
  YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/scripts
  YNH_INTERFACE: api
  YNH_STDRETURN: /tmp/tmpvm9xw4s9/stdreturn
error: "Une erreur s\u2019est produite durant l\u2019ex\xE9cution du script de mise\
  \ \xE0 niveau de l\u2019application"
interface: api
operation: app_upgrade
parent: null
related_to:
- - app
  - framaforms
started_at: 2021-10-24 10:21:06.728398
success: false
yunohost_version: 4.2.8.3

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

2021-10-24 12:21:06,739: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2021-10-24 12:21:06,745: DEBUG - + source _common.sh
2021-10-24 12:21:06,746: DEBUG - ++ pkg_dependencies='postgresql curl libzip-dev'
2021-10-24 12:21:06,746: DEBUG - ++ YNH_PHP_VERSION=7.3
2021-10-24 12:21:06,746: DEBUG - ++ extra_php_dependencies='php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:06,747: DEBUG - ++ YNH_COMPOSER_VERSION=1.10.17
2021-10-24 12:21:06,747: DEBUG - + source /usr/share/yunohost/helpers
2021-10-24 12:21:06,749: DEBUG - +++ grep xtrace
2021-10-24 12:21:06,750: DEBUG - +++ set +o
2021-10-24 12:21:06,752: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-10-24 12:21:06,752: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-10-24 12:21:07,009: DEBUG - + echo '[....................] > Loading installation settings...'
2021-10-24 12:21:07,010: DEBUG - + app=framaforms
2021-10-24 12:21:07,010: INFO - [....................] > Loading installation settings...
2021-10-24 12:21:07,011: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=domain
2021-10-24 12:21:07,047: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,047: DEBUG - ++ ynh_app_setting get framaforms domain
2021-10-24 12:21:07,309: DEBUG - + domain=form.domain2.tld
2021-10-24 12:21:07,309: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=path
2021-10-24 12:21:07,347: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,347: DEBUG - ++ ynh_app_setting get framaforms path
2021-10-24 12:21:07,400: DEBUG - + path_url=/
2021-10-24 12:21:07,400: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=final_path
2021-10-24 12:21:07,437: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,437: DEBUG - ++ ynh_app_setting get framaforms final_path
2021-10-24 12:21:07,500: DEBUG - + final_path=/var/www/framaforms
2021-10-24 12:21:07,501: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=admin
2021-10-24 12:21:07,542: DEBUG - ++ [[ admin =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,542: DEBUG - ++ ynh_app_setting get framaforms admin
2021-10-24 12:21:07,595: DEBUG - + admin=admin
2021-10-24 12:21:07,596: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=db_name
2021-10-24 12:21:07,632: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,632: DEBUG - ++ ynh_app_setting get framaforms db_name
2021-10-24 12:21:07,685: DEBUG - + db_name=framaforms
2021-10-24 12:21:07,686: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=phpversion
2021-10-24 12:21:07,721: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,721: DEBUG - ++ ynh_app_setting get framaforms phpversion
2021-10-24 12:21:07,772: DEBUG - + phpversion=7.3
2021-10-24 12:21:07,773: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=datadir
2021-10-24 12:21:07,809: DEBUG - ++ [[ datadir =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:07,809: DEBUG - ++ ynh_app_setting get framaforms datadir
2021-10-24 12:21:07,865: DEBUG - + datadir=
2021-10-24 12:21:07,950: DEBUG - + echo '[....................] > Checking version...'
2021-10-24 12:21:07,950: INFO - [....................] > Checking version...
2021-10-24 12:21:07,951: DEBUG - ++ ynh_check_app_version_changed
2021-10-24 12:21:07,952: DEBUG - ++ local return_value=UPGRADE_PACKAGE
2021-10-24 12:21:07,952: DEBUG - ++ '[' UPGRADE_PACKAGE == UPGRADE_FULL ']'
2021-10-24 12:21:07,952: DEBUG - ++ '[' UPGRADE_PACKAGE == UPGRADE_FORCED ']'
2021-10-24 12:21:07,953: DEBUG - ++ '[' UPGRADE_PACKAGE == DOWNGRADE_FORCED ']'
2021-10-24 12:21:07,953: DEBUG - ++ echo UPGRADE_PACKAGE
2021-10-24 12:21:07,954: DEBUG - + upgrade_type=UPGRADE_PACKAGE
2021-10-24 12:21:08,048: DEBUG - + echo '[++++++..............] > Backing up the app before upgrading (may take a while)...'
2021-10-24 12:21:08,048: DEBUG - + ynh_backup_before_upgrade
2021-10-24 12:21:08,048: DEBUG - + '[' '!' -e /etc/yunohost/apps/framaforms/scripts/backup ']'
2021-10-24 12:21:08,049: DEBUG - + backup_number=1
2021-10-24 12:21:08,049: DEBUG - + local old_backup_number=2
2021-10-24 12:21:08,049: DEBUG - + local app_bck=framaforms
2021-10-24 12:21:08,049: DEBUG - + NO_BACKUP_UPGRADE=0
2021-10-24 12:21:08,049: DEBUG - + '[' 0 -eq 0 ']'
2021-10-24 12:21:08,049: DEBUG - + ynh_backup_archive_exists framaforms-pre-upgrade1
2021-10-24 12:21:08,050: INFO - [++++++..............] > Backing up the app before upgrading (may take a while)...
2021-10-24 12:21:08,051: DEBUG - + jq -e --arg archive framaforms-pre-upgrade1 '.archives | index($archive)'
2021-10-24 12:21:08,051: DEBUG - + yunohost backup list --output-as json --quiet
2021-10-24 12:21:08,806: DEBUG - + BACKUP_CORE_ONLY=1
2021-10-24 12:21:08,806: DEBUG - + yunohost backup create --apps framaforms --name framaforms-pre-upgrade1 --debug
2021-10-24 12:21:08,976: DEBUG - 122  initializing base actions map parser for cli
2021-10-24 12:21:08,981: DEBUG - 130  loading actions map namespace 'yunohost'
2021-10-24 12:21:08,982: DEBUG - 132  building parser...
2021-10-24 12:21:08,984: DEBUG - 137  building parser took 0.005s
2021-10-24 12:21:08,986: DEBUG - 139  acquiring lock...
2021-10-24 12:21:09,032: DEBUG - 185  loading python module yunohost.backup took 0.034s
2021-10-24 12:21:09,032: DEBUG - 186  processing action [31203.1]: yunohost.backup.create with args={'name': 'framaforms-pre-upgrade1', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['framaforms'], 'dry_run': False}
2021-10-24 12:21:09,098: DEBUG - 251  Collecting files to be backed up for framaforms...
2021-10-24 12:21:09,131: DEBUG - 283  Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_u2_p1hhg/scripts/backup"  7>&1']'
2021-10-24 12:21:09,139: DEBUG - 291  + source ../settings/scripts/_common.sh
2021-10-24 12:21:09,139: DEBUG - 292  ++ pkg_dependencies='postgresql curl libzip-dev'
2021-10-24 12:21:09,140: DEBUG - 293  ++ YNH_PHP_VERSION=7.3
2021-10-24 12:21:09,140: DEBUG - 293  ++ extra_php_dependencies='php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:09,141: DEBUG - 294  + source /usr/share/yunohost/helpers
2021-10-24 12:21:09,142: DEBUG - 295  +++ grep xtrace
2021-10-24 12:21:09,144: DEBUG - 297  +++ set +o
2021-10-24 12:21:09,146: DEBUG - 299  ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-10-24 12:21:09,146: DEBUG - 299  ++ XTRACE_ENABLE='set -o xtrace'
2021-10-24 12:21:09,178: DEBUG - 330  + ynh_abort_if_errors
2021-10-24 12:21:09,178: DEBUG - 331  + set -o errexit
2021-10-24 12:21:09,179: DEBUG - 332  + set -o nounset
2021-10-24 12:21:09,179: DEBUG - 332  + trap ynh_exit_properly EXIT
2021-10-24 12:21:09,180: DEBUG - 333  + ynh_print_info '--message=Loading installation settings...'
2021-10-24 12:21:09,195: DEBUG - 347  + echo 'Loading installation settings...'
2021-10-24 12:21:09,195: DEBUG - 347  + app=framaforms
2021-10-24 12:21:09,195: DEBUG - 348  Loading installation settings...
2021-10-24 12:21:09,196: DEBUG - 349  ++ ynh_app_setting_get --app=framaforms --key=final_path
2021-10-24 12:21:09,235: DEBUG - 387  ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:09,235: DEBUG - 387  ++ ynh_app_setting get framaforms final_path
2021-10-24 12:21:09,291: DEBUG - 444  + final_path=/var/www/framaforms
2021-10-24 12:21:09,292: DEBUG - 445  ++ ynh_app_setting_get --app=framaforms --key=domain
2021-10-24 12:21:09,333: DEBUG - 486  ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:09,334: DEBUG - 486  ++ ynh_app_setting get framaforms domain
2021-10-24 12:21:09,388: DEBUG - 541  + domain=form.domain2.tld
2021-10-24 12:21:09,389: DEBUG - 542  ++ ynh_app_setting_get --app=framaforms --key=db_name
2021-10-24 12:21:09,426: DEBUG - 579  ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:09,426: DEBUG - 579  ++ ynh_app_setting get framaforms db_name
2021-10-24 12:21:09,479: DEBUG - 632  + db_name=framaforms
2021-10-24 12:21:09,480: DEBUG - 633  ++ ynh_app_setting_get --app=framaforms --key=phpversion
2021-10-24 12:21:09,517: DEBUG - 670  ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:09,518: DEBUG - 670  ++ ynh_app_setting get framaforms phpversion
2021-10-24 12:21:09,577: DEBUG - 729  + phpversion=7.3
2021-10-24 12:21:09,577: DEBUG - 729  + ynh_print_info '--message=Declaring files to be backed up...'
2021-10-24 12:21:09,590: DEBUG - 742  + echo 'Declaring files to be backed up...'
2021-10-24 12:21:09,591: DEBUG - 742  + ynh_backup --src_path=/var/www/framaforms
2021-10-24 12:21:09,592: DEBUG - 743  Declaring files to be backed up...
2021-10-24 12:21:09,627: DEBUG - 779  + dest_path=
2021-10-24 12:21:09,627: DEBUG - 780  + is_big=0
2021-10-24 12:21:09,627: DEBUG - 780  + not_mandatory=0
2021-10-24 12:21:09,628: DEBUG - 780  + BACKUP_CORE_ONLY=1
2021-10-24 12:21:09,628: DEBUG - 780  + test -n framaforms
2021-10-24 12:21:09,629: DEBUG - 782  ++ ynh_app_setting_get --app=framaforms --key=do_not_backup_data
2021-10-24 12:21:09,669: DEBUG - 821  ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:09,669: DEBUG - 821  ++ ynh_app_setting get framaforms do_not_backup_data
2021-10-24 12:21:09,728: DEBUG - 880  + do_not_backup_data=
2021-10-24 12:21:09,728: DEBUG - 881  + '[' 0 -eq 1 ']'
2021-10-24 12:21:09,728: DEBUG - 881  + '[' '!' -e /var/www/framaforms ']'
2021-10-24 12:21:09,729: DEBUG - 882  ++ realpath /var/www/framaforms
2021-10-24 12:21:09,732: DEBUG - 884  + src_path=/var/www/framaforms
2021-10-24 12:21:09,732: DEBUG - 884  + [[ -z '' ]]
2021-10-24 12:21:09,733: DEBUG - 885  + dest_path=var/www/framaforms
2021-10-24 12:21:09,733: DEBUG - 885  + [[ -e var/www/framaforms ]]
2021-10-24 12:21:09,733: DEBUG - 885  + local rel_dir=/apps/framaforms/backup
2021-10-24 12:21:09,733: DEBUG - 885  + rel_dir=/apps/framaforms/backup/
2021-10-24 12:21:09,733: DEBUG - 885  + dest_path=/apps/framaforms/backup/var/www/framaforms
2021-10-24 12:21:09,733: DEBUG - 885  + dest_path=apps/framaforms/backup/var/www/framaforms
2021-10-24 12:21:09,735: DEBUG - 888  ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:09,737: DEBUG - 890  ++ echo /var/www/framaforms
2021-10-24 12:21:09,739: DEBUG - 892  + local src=/var/www/framaforms
2021-10-24 12:21:09,740: DEBUG - 893  ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:09,742: DEBUG - 895  ++ echo apps/framaforms/backup/var/www/framaforms
2021-10-24 12:21:09,744: DEBUG - 897  + local dest=apps/framaforms/backup/var/www/framaforms
2021-10-24 12:21:09,744: DEBUG - 897  + echo '"/var/www/framaforms","apps/framaforms/backup/var/www/framaforms"'
2021-10-24 12:21:09,745: DEBUG - 898  ++ dirname /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/var/www/framaforms
2021-10-24 12:21:09,747: DEBUG - 900  + mkdir --parents /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/var/www
2021-10-24 12:21:09,751: DEBUG - 903  + ynh_backup --src_path=/home/yunohost.app/framaforms/data --is_big=1
2021-10-24 12:21:09,817: DEBUG - 969  + dest_path=
2021-10-24 12:21:09,817: DEBUG - 969  + is_big=1
2021-10-24 12:21:09,817: DEBUG - 969  + not_mandatory=0
2021-10-24 12:21:09,817: DEBUG - 970  + BACKUP_CORE_ONLY=1
2021-10-24 12:21:09,817: DEBUG - 970  + test -n framaforms
2021-10-24 12:21:09,818: DEBUG - 971  ++ ynh_app_setting_get --app=framaforms --key=do_not_backup_data
2021-10-24 12:21:09,859: DEBUG - 1011 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:09,859: DEBUG - 1012 ++ ynh_app_setting get framaforms do_not_backup_data
2021-10-24 12:21:09,921: DEBUG - 1074 + do_not_backup_data=
2021-10-24 12:21:09,921: DEBUG - 1074 + '[' 1 -eq 1 ']'
2021-10-24 12:21:09,922: DEBUG - 1075 + '[' 0 -eq 1 ']'
2021-10-24 12:21:09,923: DEBUG - 1076 + '[' 1 -eq 1 ']'
2021-10-24 12:21:09,925: DEBUG - 1077 + '[' 1 -eq 1 ']'
2021-10-24 12:21:09,925: DEBUG - 1077 + ynh_print_info '--message=/home/yunohost.app/framaforms/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
2021-10-24 12:21:09,939: DEBUG - 1091 + echo '/home/yunohost.app/framaforms/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
2021-10-24 12:21:09,939: DEBUG - 1091 + return 0
2021-10-24 12:21:09,939: DEBUG - 1091 + ynh_backup --src_path=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:09,942: DEBUG - 1095 /home/yunohost.app/framaforms/data will not be saved, because 'BACKUP_CORE_ONLY' is set.
2021-10-24 12:21:09,984: DEBUG - 1136 + dest_path=
2021-10-24 12:21:09,984: DEBUG - 1137 + is_big=0
2021-10-24 12:21:09,985: DEBUG - 1137 + not_mandatory=0
2021-10-24 12:21:09,985: DEBUG - 1137 + BACKUP_CORE_ONLY=1
2021-10-24 12:21:09,985: DEBUG - 1137 + test -n framaforms
2021-10-24 12:21:09,986: DEBUG - 1139 ++ ynh_app_setting_get --app=framaforms --key=do_not_backup_data
2021-10-24 12:21:10,027: DEBUG - 1180 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:10,028: DEBUG - 1180 ++ ynh_app_setting get framaforms do_not_backup_data
2021-10-24 12:21:10,083: DEBUG - 1235 + do_not_backup_data=
2021-10-24 12:21:10,083: DEBUG - 1235 + '[' 0 -eq 1 ']'
2021-10-24 12:21:10,083: DEBUG - 1236 + '[' '!' -e /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf ']'
2021-10-24 12:21:10,084: DEBUG - 1237 ++ realpath /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,087: DEBUG - 1239 + src_path=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,087: DEBUG - 1239 + [[ -z '' ]]
2021-10-24 12:21:10,087: DEBUG - 1239 + dest_path=etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,087: DEBUG - 1239 + [[ -e etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf ]]
2021-10-24 12:21:10,087: DEBUG - 1240 + local rel_dir=/apps/framaforms/backup
2021-10-24 12:21:10,088: DEBUG - 1240 + rel_dir=/apps/framaforms/backup/
2021-10-24 12:21:10,088: DEBUG - 1240 + dest_path=/apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,088: DEBUG - 1240 + dest_path=apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,090: DEBUG - 1243 ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:10,091: DEBUG - 1244 ++ echo /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,093: DEBUG - 1246 + local src=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,095: DEBUG - 1248 ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:10,097: DEBUG - 1250 ++ echo apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,099: DEBUG - 1252 + local dest=apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,099: DEBUG - 1252 + echo '"/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf","apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf"'
2021-10-24 12:21:10,100: DEBUG - 1253 ++ dirname /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:10,102: DEBUG - 1255 + mkdir --parents /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/etc/nginx/conf.d/form.domain2.tld.d
2021-10-24 12:21:10,106: DEBUG - 1258 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,148: DEBUG - 1300 + dest_path=
2021-10-24 12:21:10,148: DEBUG - 1301 + is_big=0
2021-10-24 12:21:10,148: DEBUG - 1301 + not_mandatory=0
2021-10-24 12:21:10,149: DEBUG - 1301 + BACKUP_CORE_ONLY=1
2021-10-24 12:21:10,149: DEBUG - 1301 + test -n framaforms
2021-10-24 12:21:10,150: DEBUG - 1303 ++ ynh_app_setting_get --app=framaforms --key=do_not_backup_data
2021-10-24 12:21:10,191: DEBUG - 1343 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:10,191: DEBUG - 1344 ++ ynh_app_setting get framaforms do_not_backup_data
2021-10-24 12:21:10,244: DEBUG - 1396 + do_not_backup_data=
2021-10-24 12:21:10,244: DEBUG - 1397 + '[' 0 -eq 1 ']'
2021-10-24 12:21:10,244: DEBUG - 1397 + '[' '!' -e /etc/php/7.3/fpm/pool.d/framaforms.conf ']'
2021-10-24 12:21:10,245: DEBUG - 1398 ++ realpath /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,248: DEBUG - 1400 + src_path=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,248: DEBUG - 1400 + [[ -z '' ]]
2021-10-24 12:21:10,248: DEBUG - 1400 + dest_path=etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,248: DEBUG - 1400 + [[ -e etc/php/7.3/fpm/pool.d/framaforms.conf ]]
2021-10-24 12:21:10,248: DEBUG - 1401 + local rel_dir=/apps/framaforms/backup
2021-10-24 12:21:10,249: DEBUG - 1401 + rel_dir=/apps/framaforms/backup/
2021-10-24 12:21:10,249: DEBUG - 1401 + dest_path=/apps/framaforms/backup/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,249: DEBUG - 1401 + dest_path=apps/framaforms/backup/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,250: DEBUG - 1403 ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:10,252: DEBUG - 1406 ++ echo /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,254: DEBUG - 1407 + local src=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,255: DEBUG - 1408 ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:10,257: DEBUG - 1410 ++ echo apps/framaforms/backup/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,259: DEBUG - 1412 + local dest=apps/framaforms/backup/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,259: DEBUG - 1412 + echo '"/etc/php/7.3/fpm/pool.d/framaforms.conf","apps/framaforms/backup/etc/php/7.3/fpm/pool.d/framaforms.conf"'
2021-10-24 12:21:10,260: DEBUG - 1413 ++ dirname /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:10,262: DEBUG - 1415 + mkdir --parents /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/etc/php/7.3/fpm/pool.d
2021-10-24 12:21:10,266: DEBUG - 1418 + ynh_backup --src_path=/etc/cron.d/framaforms
2021-10-24 12:21:10,306: DEBUG - 1458 + dest_path=
2021-10-24 12:21:10,306: DEBUG - 1459 + is_big=0
2021-10-24 12:21:10,307: DEBUG - 1459 + not_mandatory=0
2021-10-24 12:21:10,307: DEBUG - 1459 + BACKUP_CORE_ONLY=1
2021-10-24 12:21:10,307: DEBUG - 1459 + test -n framaforms
2021-10-24 12:21:10,308: DEBUG - 1461 ++ ynh_app_setting_get --app=framaforms --key=do_not_backup_data
2021-10-24 12:21:10,349: DEBUG - 1501 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:10,349: DEBUG - 1501 ++ ynh_app_setting get framaforms do_not_backup_data
2021-10-24 12:21:10,417: DEBUG - 1569 + do_not_backup_data=
2021-10-24 12:21:10,417: DEBUG - 1569 + '[' 0 -eq 1 ']'
2021-10-24 12:21:10,417: DEBUG - 1570 + '[' '!' -e /etc/cron.d/framaforms ']'
2021-10-24 12:21:10,418: DEBUG - 1571 ++ realpath /etc/cron.d/framaforms
2021-10-24 12:21:10,422: DEBUG - 1574 + src_path=/etc/cron.d/framaforms
2021-10-24 12:21:10,422: DEBUG - 1574 + [[ -z '' ]]
2021-10-24 12:21:10,422: DEBUG - 1574 + dest_path=etc/cron.d/framaforms
2021-10-24 12:21:10,423: DEBUG - 1574 + [[ -e etc/cron.d/framaforms ]]
2021-10-24 12:21:10,423: DEBUG - 1574 + local rel_dir=/apps/framaforms/backup
2021-10-24 12:21:10,423: DEBUG - 1575 + rel_dir=/apps/framaforms/backup/
2021-10-24 12:21:10,423: DEBUG - 1575 + dest_path=/apps/framaforms/backup/etc/cron.d/framaforms
2021-10-24 12:21:10,423: DEBUG - 1575 + dest_path=apps/framaforms/backup/etc/cron.d/framaforms
2021-10-24 12:21:10,425: DEBUG - 1578 ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:10,427: DEBUG - 1580 ++ echo /etc/cron.d/framaforms
2021-10-24 12:21:10,429: DEBUG - 1582 + local src=/etc/cron.d/framaforms
2021-10-24 12:21:10,430: DEBUG - 1583 ++ sed --regexp-extended 's/"/\"\"/g'
2021-10-24 12:21:10,432: DEBUG - 1585 ++ echo apps/framaforms/backup/etc/cron.d/framaforms
2021-10-24 12:21:10,435: DEBUG - 1588 + local dest=apps/framaforms/backup/etc/cron.d/framaforms
2021-10-24 12:21:10,435: DEBUG - 1588 + echo '"/etc/cron.d/framaforms","apps/framaforms/backup/etc/cron.d/framaforms"'
2021-10-24 12:21:10,436: DEBUG - 1589 ++ dirname /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/etc/cron.d/framaforms
2021-10-24 12:21:10,438: DEBUG - 1591 + mkdir --parents /home/yunohost.backup/tmp/framaforms-pre-upgrade1/apps/framaforms/backup/etc/cron.d
2021-10-24 12:21:10,442: DEBUG - 1594 + ynh_print_info '--message=Backing up the PostgreSQL database...'
2021-10-24 12:21:10,458: DEBUG - 1609 + echo 'Backing up the PostgreSQL database...'
2021-10-24 12:21:10,458: DEBUG - 1609 + ynh_psql_dump_db --database=framaforms
2021-10-24 12:21:10,459: DEBUG - 1610 Backing up the PostgreSQL database...
2021-10-24 12:21:10,473: DEBUG - 1626 + sudo --login --user=postgres pg_dump framaforms
2021-10-24 12:21:11,490: DEBUG - 2641 + ynh_print_info '--message=Backup script completed for framaforms. (YunoHost will then actually copy those files to the archive).'
2021-10-24 12:21:11,511: DEBUG - 2664 + echo 'Backup script completed for framaforms. (YunoHost will then actually copy those files to the archive).'
2021-10-24 12:21:11,512: DEBUG - 2664 + ynh_exit_properly
2021-10-24 12:21:11,512: DEBUG - 2664 + local exit_code=0
2021-10-24 12:21:11,512: DEBUG - 2664 + rm -rf /var/cache/yunohost/download/
2021-10-24 12:21:11,512: DEBUG - 2664 Backup script completed for framaforms. (YunoHost will then actually copy those files to the archive).
2021-10-24 12:21:11,515: DEBUG - 2668 + '[' 0 -eq 0 ']'
2021-10-24 12:21:11,515: DEBUG - 2668 + exit 0
2021-10-24 12:21:12,517: DEBUG - 3669 Backup permission for framaforms
2021-10-24 12:21:12,633: DEBUG - 3785 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2021-10-24 12:21:12,818: DEBUG - 3970 Creating a backup archive from the collected files...
2021-10-24 12:21:12,819: DEBUG - 3971 The archive will contain about 206.5MiB of data.
2021-10-24 12:21:12,819: DEBUG - 3971 Creating the backup TAR archive...
2021-10-24 12:21:40,130: DEBUG - 31282 TAR backup archive created
2021-10-24 12:21:40,132: DEBUG - 31285 Backup created
2021-10-24 12:21:40,137: DEBUG - 31290 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20211024-102109-backup_create20211024-102109-backup_create'
2021-10-24 12:21:40,148: DEBUG - 31301 action [31203.1] executed in 31.115s
2021-10-24 12:21:40,149: DEBUG - name: framaforms-pre-upgrade1
2021-10-24 12:21:40,149: DEBUG - results:
2021-10-24 12:21:40,149: DEBUG -   apps:
2021-10-24 12:21:40,149: DEBUG -     framaforms: Success
2021-10-24 12:21:40,149: DEBUG -   system:
2021-10-24 12:21:40,150: DEBUG - size: 216510939
2021-10-24 12:21:40,234: DEBUG - + '[' 0 -eq 0 ']'
2021-10-24 12:21:40,235: DEBUG - + ynh_backup_archive_exists framaforms-pre-upgrade2
2021-10-24 12:21:40,236: DEBUG - + yunohost backup list --output-as json --quiet
2021-10-24 12:21:40,239: DEBUG - + jq -e --arg archive framaforms-pre-upgrade2 '.archives | index($archive)'
2021-10-24 12:21:40,484: DEBUG - + ynh_abort_if_errors
2021-10-24 12:21:40,484: DEBUG - + set -o errexit
2021-10-24 12:21:40,485: DEBUG - + set -o nounset
2021-10-24 12:21:40,485: DEBUG - + trap ynh_exit_properly EXIT
2021-10-24 12:21:40,569: DEBUG - + echo '[######..............] > Ensuring downward compatibility...'
2021-10-24 12:21:40,569: DEBUG - + '[' -z framaforms ']'
2021-10-24 12:21:40,569: DEBUG - + '[' -z /var/www/framaforms ']'
2021-10-24 12:21:40,569: DEBUG - + '[' -z '' ']'
2021-10-24 12:21:40,570: DEBUG - + final_path=/home/yunohost.app/framaforms
2021-10-24 12:21:40,570: DEBUG - + ynh_app_setting_set --app=framaforms --key=final_path --value=
2021-10-24 12:21:40,571: INFO - [######..............] > Ensuring downward compatibility...
2021-10-24 12:21:40,650: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:40,651: DEBUG - + ynh_app_setting set framaforms final_path ''
2021-10-24 12:21:40,708: DEBUG - + ynh_legacy_permissions_exists
2021-10-24 12:21:40,708: DEBUG - + for permission in "skipped" "unprotected" "protected"
2021-10-24 12:21:40,708: DEBUG - + ynh_permission_exists --permission=legacy_skipped_uris
2021-10-24 12:21:40,720: DEBUG - + jq -e --arg perm framaforms.legacy_skipped_uris '.permissions[$perm]'
2021-10-24 12:21:40,723: DEBUG - + yunohost user permission list framaforms --output-as json --quiet
2021-10-24 12:21:41,075: DEBUG - + for permission in "skipped" "unprotected" "protected"
2021-10-24 12:21:41,075: DEBUG - + ynh_permission_exists --permission=legacy_unprotected_uris
2021-10-24 12:21:41,087: DEBUG - + jq -e --arg perm framaforms.legacy_unprotected_uris '.permissions[$perm]'
2021-10-24 12:21:41,091: DEBUG - + yunohost user permission list framaforms --output-as json --quiet
2021-10-24 12:21:41,407: DEBUG - + for permission in "skipped" "unprotected" "protected"
2021-10-24 12:21:41,408: DEBUG - + ynh_permission_exists --permission=legacy_protected_uris
2021-10-24 12:21:41,420: DEBUG - + jq -e --arg perm framaforms.legacy_protected_uris '.permissions[$perm]'
2021-10-24 12:21:41,423: DEBUG - + yunohost user permission list framaforms --output-as json --quiet
2021-10-24 12:21:41,731: DEBUG - + return 1
2021-10-24 12:21:41,732: DEBUG - + ynh_permission_exists --permission=admin
2021-10-24 12:21:41,745: DEBUG - + jq -e --arg perm framaforms.admin '.permissions[$perm]'
2021-10-24 12:21:41,747: DEBUG - + yunohost user permission list framaforms --output-as json --quiet
2021-10-24 12:21:42,160: DEBUG - + echo '[######..............] > Making sure dedicated system user exists...'
2021-10-24 12:21:42,161: DEBUG - + ynh_system_user_create --username=framaforms --home_dir=/home/yunohost.app/framaforms
2021-10-24 12:21:42,162: INFO - [######..............] > Making sure dedicated system user exists...
2021-10-24 12:21:42,236: DEBUG - + use_shell=0
2021-10-24 12:21:42,236: DEBUG - + home_dir=/home/yunohost.app/framaforms
2021-10-24 12:21:42,236: DEBUG - + groups=
2021-10-24 12:21:42,236: DEBUG - + ynh_system_user_exists framaforms
2021-10-24 12:21:42,250: DEBUG - + getent passwd framaforms
2021-10-24 12:21:42,266: DEBUG - + '[' UPGRADE_PACKAGE == UPGRADE_APP ']'
2021-10-24 12:21:42,266: DEBUG - + chmod 750 /home/yunohost.app/framaforms
2021-10-24 12:21:42,268: DEBUG - + chmod -R o-rwx /home/yunohost.app/framaforms
2021-10-24 12:21:42,269: DEBUG - + chown -R framaforms:www-data /home/yunohost.app/framaforms
2021-10-24 12:21:42,360: DEBUG - + echo '[######..............] > Upgrading NGINX web server configuration...'
2021-10-24 12:21:42,361: DEBUG - + ynh_add_nginx_config
2021-10-24 12:21:42,361: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,361: DEBUG - + '[' / '!=' / ']'
2021-10-24 12:21:42,361: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf
2021-10-24 12:21:42,363: INFO - [######..............] > Upgrading NGINX web server configuration...
2021-10-24 12:21:42,444: DEBUG - + local delimit=@
2021-10-24 12:21:42,445: DEBUG - + match_string='^#root_path_only'
2021-10-24 12:21:42,445: DEBUG - + replace_string=
2021-10-24 12:21:42,445: DEBUG - + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf
2021-10-24 12:21:42,448: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf --destination=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,489: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf//var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf ']'
2021-10-24 12:21:42,489: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf ']'
2021-10-24 12:21:42,490: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf
2021-10-24 12:21:42,490: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,504: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf
2021-10-24 12:21:42,505: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf
2021-10-24 12:21:42,545: DEBUG - ++ [[ checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:42,545: DEBUG - ++ ynh_app_setting get framaforms checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf
2021-10-24 12:21:42,600: DEBUG - + local checksum_value=
2021-10-24 12:21:42,600: DEBUG - + backup_file_checksum=
2021-10-24 12:21:42,600: DEBUG - + '[' -n '' ']'
2021-10-24 12:21:42,600: DEBUG - + touch /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,602: DEBUG - + chown root:root /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,604: DEBUG - + chmod 640 /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,605: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/nginx.conf /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,608: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,608: DEBUG - + local target=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,609: DEBUG - ++ tr -d '>= '
2021-10-24 12:21:42,611: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/manifest.json
2021-10-24 12:21:42,616: DEBUG - + local ynh_requirement=4.2.0
2021-10-24 12:21:42,616: DEBUG - + '[' -z 4.2.0 ']'
2021-10-24 12:21:42,616: DEBUG - + '[' 4.2.0 == null ']'
2021-10-24 12:21:42,616: DEBUG - + dpkg --compare-versions 4.2.0 ge 4.2
2021-10-24 12:21:42,620: DEBUG - + chmod o-rwx /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,622: DEBUG - + chmod g-w /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,623: DEBUG - + chown -R root:root /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,625: DEBUG - + ynh_system_user_exists framaforms
2021-10-24 12:21:42,638: DEBUG - + getent passwd framaforms
2021-10-24 12:21:42,639: DEBUG - + chown framaforms:framaforms /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,643: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,655: DEBUG - + test -n /
2021-10-24 12:21:42,655: DEBUG - + local path_url_slash_less=
2021-10-24 12:21:42,655: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,731: DEBUG - + local delimit=@
2021-10-24 12:21:42,731: DEBUG - + match_string=__PATH__/
2021-10-24 12:21:42,731: DEBUG - + replace_string=/
2021-10-24 12:21:42,731: DEBUG - + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,734: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,812: DEBUG - + local delimit=@
2021-10-24 12:21:42,813: DEBUG - + match_string=__PATH__
2021-10-24 12:21:42,813: DEBUG - + replace_string=/
2021-10-24 12:21:42,813: DEBUG - + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,815: DEBUG - + test -n framaforms
2021-10-24 12:21:42,816: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=framaforms --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,904: DEBUG - + local delimit=@
2021-10-24 12:21:42,905: DEBUG - + match_string=__NAME__
2021-10-24 12:21:42,905: DEBUG - + replace_string=framaforms
2021-10-24 12:21:42,905: DEBUG - + sed --in-place s@__NAME__@framaforms@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,907: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=framaforms --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,986: DEBUG - + local delimit=@
2021-10-24 12:21:42,987: DEBUG - + match_string=__NAMETOCHANGE__
2021-10-24 12:21:42,987: DEBUG - + replace_string=framaforms
2021-10-24 12:21:42,987: DEBUG - + sed --in-place s@__NAMETOCHANGE__@framaforms@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:42,990: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=framaforms --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,070: DEBUG - + local delimit=@
2021-10-24 12:21:43,070: DEBUG - + match_string=__USER__
2021-10-24 12:21:43,071: DEBUG - + replace_string=framaforms
2021-10-24 12:21:43,071: DEBUG - + sed --in-place s@__USER__@framaforms@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,074: DEBUG - + test -n /home/yunohost.app/framaforms
2021-10-24 12:21:43,074: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/home/yunohost.app/framaforms --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,158: DEBUG - + local delimit=@
2021-10-24 12:21:43,158: DEBUG - + match_string=__FINALPATH__
2021-10-24 12:21:43,159: DEBUG - + replace_string=/home/yunohost.app/framaforms
2021-10-24 12:21:43,159: DEBUG - + sed --in-place s@__FINALPATH__@/home/yunohost.app/framaforms@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,162: DEBUG - + test -n 7.3
2021-10-24 12:21:43,162: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,244: DEBUG - + local delimit=@
2021-10-24 12:21:43,244: DEBUG - + match_string=__PHPVERSION__
2021-10-24 12:21:43,245: DEBUG - + replace_string=7.3
2021-10-24 12:21:43,245: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,247: DEBUG - + test -n ''
2021-10-24 12:21:43,247: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-10-24 12:21:43,249: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-10-24 12:21:43,251: DEBUG - ++ sort --unique
2021-10-24 12:21:43,252: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,260: DEBUG - + local delimit=@
2021-10-24 12:21:43,260: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,274: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf
2021-10-24 12:21:43,276: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-10-24 12:21:43,277: DEBUG - ++ md5sum /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:21:43,281: DEBUG - + ynh_app_setting_set --app=framaforms --key=checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf --value=e66041de6ceda8a91b77931efffc813f
2021-10-24 12:21:43,366: DEBUG - + [[ checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:43,366: DEBUG - + ynh_app_setting set framaforms checksum__etc_nginx_conf.d_form.domain2.tld.d_framaforms.conf e66041de6ceda8a91b77931efffc813f
2021-10-24 12:21:43,428: DEBUG - + '[' -n '' ']'
2021-10-24 12:21:43,428: DEBUG - + unset backup_file_checksum
2021-10-24 12:21:43,428: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2021-10-24 12:21:43,524: DEBUG - + service_name=nginx
2021-10-24 12:21:43,524: DEBUG - + action=reload
2021-10-24 12:21:43,524: DEBUG - + line_match=
2021-10-24 12:21:43,524: DEBUG - + length=20
2021-10-24 12:21:43,524: DEBUG - + log_path=/var/log/nginx/nginx.log
2021-10-24 12:21:43,524: DEBUG - + timeout=300
2021-10-24 12:21:43,525: DEBUG - + '[' reload == stop ']'
2021-10-24 12:21:43,525: DEBUG - + [[ -n '' ]]
2021-10-24 12:21:43,525: DEBUG - + '[' reload == reload ']'
2021-10-24 12:21:43,525: DEBUG - + action=reload-or-restart
2021-10-24 12:21:43,525: DEBUG - + systemctl reload-or-restart nginx
2021-10-24 12:21:43,771: DEBUG - + [[ -n '' ]]
2021-10-24 12:21:44,042: DEBUG - + echo '[######++............] > Upgrading dependencies...'
2021-10-24 12:21:44,043: DEBUG - + ynh_install_app_dependencies postgresql curl libzip-dev
2021-10-24 12:21:44,043: DEBUG - + local 'dependencies=postgresql curl libzip-dev'
2021-10-24 12:21:44,043: INFO - [######++............] > Upgrading dependencies...
2021-10-24 12:21:44,045: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2021-10-24 12:21:44,047: DEBUG - ++ echo 'postgresql curl libzip-dev'
2021-10-24 12:21:44,048: DEBUG - + dependencies='postgresql, curl, libzip-dev'
2021-10-24 12:21:44,048: DEBUG - + local 'dependencies=postgresql, curl, libzip-dev'
2021-10-24 12:21:44,048: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/manifest.json
2021-10-24 12:21:44,049: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/manifest.json
2021-10-24 12:21:44,053: DEBUG - + local version=1.0.3~ynh2
2021-10-24 12:21:44,054: DEBUG - + '[' -z 1.0.3~ynh2 ']'
2021-10-24 12:21:44,054: DEBUG - + '[' 1.0.3~ynh2 == null ']'
2021-10-24 12:21:44,054: DEBUG - + local dep_app=framaforms
2021-10-24 12:21:44,054: DEBUG - + [[ postgresql, curl, libzip-dev =~ [<=>] ]]
2021-10-24 12:21:44,054: DEBUG - + grep --quiet php
2021-10-24 12:21:44,057: DEBUG - + echo postgresql, curl, libzip-dev
2021-10-24 12:21:44,058: DEBUG - + cat
2021-10-24 12:21:44,060: DEBUG - + ynh_package_install_from_equivs /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:44,060: DEBUG - + local controlfile=/tmp/framaforms-ynh-deps.control
2021-10-24 12:21:44,061: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-10-24 12:21:44,063: DEBUG - ++ grep '^Package: ' /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:44,066: DEBUG - + local pkgname=framaforms-ynh-deps
2021-10-24 12:21:44,067: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-10-24 12:21:44,069: DEBUG - ++ grep '^Version: ' /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:44,072: DEBUG - + local pkgversion=1.0.3~ynh2
2021-10-24 12:21:44,072: DEBUG - + [[ -z framaforms-ynh-deps ]]
2021-10-24 12:21:44,072: DEBUG - + [[ -z 1.0.3~ynh2 ]]
2021-10-24 12:21:44,072: DEBUG - + ynh_package_update
2021-10-24 12:21:44,072: DEBUG - + ynh_apt update
2021-10-24 12:21:44,072: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:44,276: DEBUG - + return 0
2021-10-24 12:21:44,276: DEBUG - + LC_ALL=C
2021-10-24 12:21:44,276: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-10-24 12:21:44,276: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-10-24 12:21:44,411: DEBUG - Hit:1 http://security.debian.org buster/updates InRelease
2021-10-24 12:21:44,411: DEBUG - Hit:2 http://download.onlyoffice.com/repo/debian squeeze InRelease
2021-10-24 12:21:44,411: DEBUG - Hit:3 http://forge.yunohost.org/debian buster InRelease
2021-10-24 12:21:44,441: DEBUG - Hit:4 https://packages.sury.org/php buster InRelease
2021-10-24 12:21:44,497: DEBUG - Hit:5 http://deb.debian.org/debian buster InRelease
2021-10-24 12:21:44,500: DEBUG - Hit:6 http://deb.debian.org/debian buster-updates InRelease
2021-10-24 12:21:46,377: DEBUG - Reading package lists...
2021-10-24 12:21:46,428: DEBUG - ++ mktemp --directory
2021-10-24 12:21:46,430: DEBUG - + local TMPDIR=/tmp/tmp.cMbATkFEzE
2021-10-24 12:21:46,431: DEBUG - + echo 10
2021-10-24 12:21:46,432: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:46,562: DEBUG - + return 0
2021-10-24 12:21:46,562: DEBUG - + cp /tmp/framaforms-ynh-deps.control /tmp/tmp.cMbATkFEzE/control
2021-10-24 12:21:46,565: DEBUG - + cd /tmp/tmp.cMbATkFEzE
2021-10-24 12:21:46,565: DEBUG - + LC_ALL=C
2021-10-24 12:21:46,565: DEBUG - + equivs-build ./control
2021-10-24 12:21:47,570: DEBUG - + tee ./dpkg_log
2021-10-24 12:21:47,572: DEBUG - + LC_ALL=C
2021-10-24 12:21:47,572: DEBUG - + dpkg --force-depends --install ./framaforms-ynh-deps_1.0.3~ynh2_all.deb
2021-10-24 12:21:48,285: DEBUG - (Reading database ... 101531 files and directories currently installed.)
2021-10-24 12:21:48,290: DEBUG - Preparing to unpack .../framaforms-ynh-deps_1.0.3~ynh2_all.deb ...
2021-10-24 12:21:48,330: DEBUG - Unpacking framaforms-ynh-deps (1.0.3~ynh2) over (1.0.3~ynh1) ...
2021-10-24 12:21:48,377: DEBUG - Setting up framaforms-ynh-deps (1.0.3~ynh2) ...
2021-10-24 12:21:48,442: DEBUG - + ynh_package_install --fix-broken
2021-10-24 12:21:48,442: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-10-24 12:21:48,442: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:48,565: DEBUG - + return 0
2021-10-24 12:21:48,565: DEBUG - + LC_ALL=C
2021-10-24 12:21:48,565: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-10-24 12:21:48,565: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-10-24 12:21:48,785: DEBUG - Reading package lists...
2021-10-24 12:21:49,015: DEBUG - Building dependency tree...
2021-10-24 12:21:49,016: DEBUG - Reading state information...
2021-10-24 12:21:49,248: DEBUG - The following packages were automatically installed and are no longer required:
2021-10-24 12:21:49,249: DEBUG -   php7.3-pgsql php7.3-smbclient
2021-10-24 12:21:49,249: DEBUG - Use 'apt autoremove' to remove them.
2021-10-24 12:21:49,277: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2021-10-24 12:21:49,278: DEBUG - + [[ -n /tmp/tmp.cMbATkFEzE ]]
2021-10-24 12:21:49,279: DEBUG - + rm --recursive --force /tmp/tmp.cMbATkFEzE
2021-10-24 12:21:49,281: DEBUG - + ynh_package_is_installed framaforms-ynh-deps
2021-10-24 12:21:49,293: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:49,419: DEBUG - + return 0
2021-10-24 12:21:49,420: DEBUG - + grep --count 'ok installed'
2021-10-24 12:21:49,422: DEBUG - + dpkg-query --show '--showformat=${Status}' framaforms-ynh-deps
2021-10-24 12:21:49,444: DEBUG - + rm /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:49,446: DEBUG - + ynh_app_setting_set --app=framaforms --key=apt_dependencies '--value=postgresql, curl, libzip-dev'
2021-10-24 12:21:49,520: DEBUG - + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:49,520: DEBUG - + ynh_app_setting set framaforms apt_dependencies 'postgresql, curl, libzip-dev'
2021-10-24 12:21:49,662: DEBUG - + echo '[########............] > Upgrading PHP-FPM configuration...'
2021-10-24 12:21:49,662: DEBUG - + ynh_add_fpm_config --usage=low --footprint=low '--package=php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:49,664: INFO - [########............] > Upgrading PHP-FPM configuration...
2021-10-24 12:21:49,803: DEBUG - + package='php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:49,803: DEBUG - + use_template=1
2021-10-24 12:21:49,803: DEBUG - + usage=low
2021-10-24 12:21:49,804: DEBUG - + footprint=low
2021-10-24 12:21:49,804: DEBUG - + '[' -n low ']'
2021-10-24 12:21:49,804: DEBUG - + use_template=0
2021-10-24 12:21:49,804: DEBUG - + dedicated_service=0
2021-10-24 12:21:49,804: DEBUG - + phpversion=7.3
2021-10-24 12:21:49,805: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=phpversion
2021-10-24 12:21:49,844: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:49,844: DEBUG - ++ ynh_app_setting get framaforms phpversion
2021-10-24 12:21:49,897: DEBUG - + local old_phpversion=7.3
2021-10-24 12:21:49,897: DEBUG - + '[' -n 7.3 ']'
2021-10-24 12:21:49,897: DEBUG - + '[' 7.3 '!=' 7.3 ']'
2021-10-24 12:21:49,897: DEBUG - + '[' 7.3 '!=' 7.3 ']'
2021-10-24 12:21:49,898: DEBUG - + '[' -n 'php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql' ']'
2021-10-24 12:21:49,898: DEBUG - + ynh_add_app_dependencies '--package=php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:49,920: DEBUG - + replace=0
2021-10-24 12:21:49,921: DEBUG - + local current_dependencies=
2021-10-24 12:21:49,921: DEBUG - + '[' 0 -eq 0 ']'
2021-10-24 12:21:49,921: DEBUG - + local dep_app=framaforms
2021-10-24 12:21:49,921: DEBUG - + ynh_package_is_installed --package=framaforms-ynh-deps
2021-10-24 12:21:49,933: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:50,053: DEBUG - + return 0
2021-10-24 12:21:50,053: DEBUG - + grep --count 'ok installed'
2021-10-24 12:21:50,055: DEBUG - + dpkg-query --show '--showformat=${Status}' framaforms-ynh-deps
2021-10-24 12:21:50,077: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' framaforms-ynh-deps
2021-10-24 12:21:50,098: DEBUG - + current_dependencies='postgresql, curl, libzip-dev '
2021-10-24 12:21:50,098: DEBUG - + current_dependencies='postgresql, curl, libzip-dev '
2021-10-24 12:21:50,098: DEBUG - + ynh_install_app_dependencies 'postgresql, curl, libzip-dev php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:50,099: DEBUG - + local 'dependencies=postgresql, curl, libzip-dev php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:50,100: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2021-10-24 12:21:50,102: DEBUG - ++ echo 'postgresql, curl, libzip-dev php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:21:50,103: DEBUG - + dependencies='postgresql,, curl,, libzip-dev, php7.3-fpm, php7.3-cli, php7.3-gd, php7.3-mysql, php7.3-xml, php7.3-ldap, php7.3-mbstring, php7.3-pgsql'
2021-10-24 12:21:50,104: DEBUG - + local 'dependencies=postgresql,, curl,, libzip-dev, php7.3-fpm, php7.3-cli, php7.3-gd, php7.3-mysql, php7.3-xml, php7.3-ldap, php7.3-mbstring, php7.3-pgsql'
2021-10-24 12:21:50,104: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/manifest.json
2021-10-24 12:21:50,104: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/manifest.json
2021-10-24 12:21:50,113: DEBUG - + local version=1.0.3~ynh2
2021-10-24 12:21:50,113: DEBUG - + '[' -z 1.0.3~ynh2 ']'
2021-10-24 12:21:50,113: DEBUG - + '[' 1.0.3~ynh2 == null ']'
2021-10-24 12:21:50,113: DEBUG - + local dep_app=framaforms
2021-10-24 12:21:50,113: DEBUG - + [[ postgresql,, curl,, libzip-dev, php7.3-fpm, php7.3-cli, php7.3-gd, php7.3-mysql, php7.3-xml, php7.3-ldap, php7.3-mbstring, php7.3-pgsql =~ [<=>] ]]
2021-10-24 12:21:50,114: DEBUG - + grep --quiet php
2021-10-24 12:21:50,115: DEBUG - + echo postgresql,, curl,, libzip-dev, php7.3-fpm, php7.3-cli, php7.3-gd, php7.3-mysql, php7.3-xml, php7.3-ldap, php7.3-mbstring, php7.3-pgsql
2021-10-24 12:21:50,117: DEBUG - + grep --quiet --invert-match 7.0.33-0+deb9
2021-10-24 12:21:50,119: DEBUG - + grep php7.0
2021-10-24 12:21:50,121: DEBUG - + dpkg --list
2021-10-24 12:21:50,148: DEBUG - + grep --recursive --quiet '^ *deb.*sury' /etc/apt/sources.list /etc/apt/sources.list~ /etc/apt/sources.list.d
2021-10-24 12:21:50,151: DEBUG - + cat
2021-10-24 12:21:50,153: DEBUG - + ynh_package_install_from_equivs /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:50,153: DEBUG - + local controlfile=/tmp/framaforms-ynh-deps.control
2021-10-24 12:21:50,154: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-10-24 12:21:50,156: DEBUG - ++ grep '^Package: ' /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:50,158: DEBUG - + local pkgname=framaforms-ynh-deps
2021-10-24 12:21:50,159: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-10-24 12:21:50,161: DEBUG - ++ grep '^Version: ' /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:50,163: DEBUG - + local pkgversion=1.0.3~ynh2
2021-10-24 12:21:50,163: DEBUG - + [[ -z framaforms-ynh-deps ]]
2021-10-24 12:21:50,164: DEBUG - + [[ -z 1.0.3~ynh2 ]]
2021-10-24 12:21:50,164: DEBUG - + ynh_package_update
2021-10-24 12:21:50,164: DEBUG - + ynh_apt update
2021-10-24 12:21:50,164: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:50,282: DEBUG - + return 0
2021-10-24 12:21:50,283: DEBUG - + LC_ALL=C
2021-10-24 12:21:50,283: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-10-24 12:21:50,283: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-10-24 12:21:50,421: DEBUG - Hit:1 http://security.debian.org buster/updates InRelease
2021-10-24 12:21:50,422: DEBUG - Hit:2 http://deb.debian.org/debian buster InRelease
2021-10-24 12:21:50,422: DEBUG - Hit:3 http://deb.debian.org/debian buster-updates InRelease
2021-10-24 12:21:50,422: DEBUG - Hit:4 http://download.onlyoffice.com/repo/debian squeeze InRelease
2021-10-24 12:21:50,422: DEBUG - Hit:5 http://forge.yunohost.org/debian buster InRelease
2021-10-24 12:21:50,436: DEBUG - Hit:6 https://packages.sury.org/php buster InRelease
2021-10-24 12:21:52,170: DEBUG - Reading package lists...
2021-10-24 12:21:52,215: DEBUG - ++ mktemp --directory
2021-10-24 12:21:52,218: DEBUG - + local TMPDIR=/tmp/tmp.4q43HJrpLw
2021-10-24 12:21:52,218: DEBUG - + echo 10
2021-10-24 12:21:52,218: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:52,350: DEBUG - + return 0
2021-10-24 12:21:52,350: DEBUG - + cp /tmp/framaforms-ynh-deps.control /tmp/tmp.4q43HJrpLw/control
2021-10-24 12:21:52,352: DEBUG - + cd /tmp/tmp.4q43HJrpLw
2021-10-24 12:21:52,353: DEBUG - + LC_ALL=C
2021-10-24 12:21:52,353: DEBUG - + equivs-build ./control
2021-10-24 12:21:53,223: DEBUG - + tee ./dpkg_log
2021-10-24 12:21:53,224: DEBUG - + LC_ALL=C
2021-10-24 12:21:53,226: DEBUG - + dpkg --force-depends --install ./framaforms-ynh-deps_1.0.3~ynh2_all.deb
2021-10-24 12:21:53,355: DEBUG - (Reading database ... 101531 files and directories currently installed.)
2021-10-24 12:21:53,360: DEBUG - Preparing to unpack .../framaforms-ynh-deps_1.0.3~ynh2_all.deb ...
2021-10-24 12:21:53,371: DEBUG - Unpacking framaforms-ynh-deps (1.0.3~ynh2) over (1.0.3~ynh2) ...
2021-10-24 12:21:53,408: DEBUG - Setting up framaforms-ynh-deps (1.0.3~ynh2) ...
2021-10-24 12:21:53,481: DEBUG - + ynh_package_install --fix-broken
2021-10-24 12:21:53,481: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-10-24 12:21:53,482: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:53,722: DEBUG - + return 0
2021-10-24 12:21:53,722: DEBUG - + LC_ALL=C
2021-10-24 12:21:53,722: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-10-24 12:21:53,723: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-10-24 12:21:54,014: DEBUG - Reading package lists...
2021-10-24 12:21:54,242: DEBUG - Building dependency tree...
2021-10-24 12:21:54,244: DEBUG - Reading state information...
2021-10-24 12:21:54,444: DEBUG - The following package was automatically installed and is no longer required:
2021-10-24 12:21:54,445: DEBUG -   php7.3-smbclient
2021-10-24 12:21:54,445: DEBUG - Use 'apt autoremove' to remove it.
2021-10-24 12:21:54,471: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2021-10-24 12:21:54,472: DEBUG - + [[ -n /tmp/tmp.4q43HJrpLw ]]
2021-10-24 12:21:54,472: DEBUG - + rm --recursive --force /tmp/tmp.4q43HJrpLw
2021-10-24 12:21:54,474: DEBUG - + ynh_package_is_installed framaforms-ynh-deps
2021-10-24 12:21:54,486: DEBUG - + ynh_wait_dpkg_free
2021-10-24 12:21:54,608: DEBUG - + return 0
2021-10-24 12:21:54,609: DEBUG - + grep --count 'ok installed'
2021-10-24 12:21:54,611: DEBUG - + dpkg-query --show '--showformat=${Status}' framaforms-ynh-deps
2021-10-24 12:21:54,629: DEBUG - + rm /tmp/framaforms-ynh-deps.control
2021-10-24 12:21:54,631: DEBUG - + ynh_app_setting_set --app=framaforms --key=apt_dependencies '--value=postgresql,, curl,, libzip-dev, php7.3-fpm, php7.3-cli, php7.3-gd, php7.3-mysql, php7.3-xml, php7.3-ldap, php7.3-mbstring, php7.3-pgsql'
2021-10-24 12:21:54,704: DEBUG - + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:54,704: DEBUG - + ynh_app_setting set framaforms apt_dependencies 'postgresql,, curl,, libzip-dev, php7.3-fpm, php7.3-cli, php7.3-gd, php7.3-mysql, php7.3-xml, php7.3-ldap, php7.3-mbstring, php7.3-pgsql'
2021-10-24 12:21:54,774: DEBUG - + '[' 0 -eq 1 ']'
2021-10-24 12:21:54,775: DEBUG - + local fpm_service=php7.3-fpm
2021-10-24 12:21:54,775: DEBUG - + local fpm_config_dir=/etc/php/7.3/fpm
2021-10-24 12:21:54,775: DEBUG - + mkdir --parents /etc/php/7.3/fpm/pool.d
2021-10-24 12:21:54,778: DEBUG - + ynh_app_setting_set --app=framaforms --key=fpm_config_dir --value=/etc/php/7.3/fpm
2021-10-24 12:21:54,855: DEBUG - + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:54,855: DEBUG - + ynh_app_setting set framaforms fpm_config_dir /etc/php/7.3/fpm
2021-10-24 12:21:54,917: DEBUG - + ynh_app_setting_set --app=framaforms --key=fpm_service --value=php7.3-fpm
2021-10-24 12:21:54,993: DEBUG - + [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:54,994: DEBUG - + ynh_app_setting set framaforms fpm_service php7.3-fpm
2021-10-24 12:21:55,050: DEBUG - + ynh_app_setting_set --app=framaforms --key=fpm_dedicated_service --value=0
2021-10-24 12:21:55,142: DEBUG - + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:55,143: DEBUG - + ynh_app_setting set framaforms fpm_dedicated_service 0
2021-10-24 12:21:55,205: DEBUG - + ynh_app_setting_set --app=framaforms --key=phpversion --value=7.3
2021-10-24 12:21:55,279: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:55,280: DEBUG - + ynh_app_setting set framaforms phpversion 7.3
2021-10-24 12:21:55,334: DEBUG - + '[' 0 -eq 1 ']'
2021-10-24 12:21:55,334: DEBUG - + '[' 0 -eq 1 ']'
2021-10-24 12:21:55,334: DEBUG - + ynh_app_setting_set --app=framaforms --key=fpm_footprint --value=low
2021-10-24 12:21:55,409: DEBUG - + [[ fpm_footprint =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:55,409: DEBUG - + ynh_app_setting set framaforms fpm_footprint low
2021-10-24 12:21:55,465: DEBUG - + ynh_app_setting_set --app=framaforms --key=fpm_usage --value=low
2021-10-24 12:21:55,541: DEBUG - + [[ fpm_usage =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:55,541: DEBUG - + ynh_app_setting set framaforms fpm_usage low
2021-10-24 12:21:55,600: DEBUG - + ynh_get_scalable_phpfpm --usage=low --footprint=low
2021-10-24 12:21:55,648: DEBUG - + footprint=low
2021-10-24 12:21:55,648: DEBUG - + usage=low
2021-10-24 12:21:55,648: DEBUG - + print=0
2021-10-24 12:21:55,648: DEBUG - + '[' low = low ']'
2021-10-24 12:21:55,649: DEBUG - + footprint=20
2021-10-24 12:21:55,649: DEBUG - + '[' 20 -le 20 ']'
2021-10-24 12:21:55,649: DEBUG - + min_spare_servers_factor=8
2021-10-24 12:21:55,649: DEBUG - + '[' low = low ']'
2021-10-24 12:21:55,649: DEBUG - + php_pm=ondemand
2021-10-24 12:21:55,650: DEBUG - ++ ynh_get_ram --total --ignore_swap
2021-10-24 12:21:55,711: DEBUG - ++ ignore_swap=1
2021-10-24 12:21:55,711: DEBUG - ++ only_swap=0
2021-10-24 12:21:55,711: DEBUG - ++ free=0
2021-10-24 12:21:55,712: DEBUG - ++ total=1
2021-10-24 12:21:55,712: DEBUG - ++ '[' 0 -eq 1 ']'
2021-10-24 12:21:55,712: DEBUG - ++ '[' 0 -eq 1 ']'
2021-10-24 12:21:55,712: DEBUG - ++ '[' 1 -eq 1 ']'
2021-10-24 12:21:55,713: DEBUG - +++ awk '{print $1}'
2021-10-24 12:21:55,714: DEBUG - +++ grep 'total memory'
2021-10-24 12:21:55,717: DEBUG - +++ vmstat --stats --unit M
2021-10-24 12:21:55,731: DEBUG - ++ local total_ram=3850
2021-10-24 12:21:55,732: DEBUG - +++ awk '{print $1}'
2021-10-24 12:21:55,735: DEBUG - +++ grep 'total swap'
2021-10-24 12:21:55,736: DEBUG - +++ vmstat --stats --unit M
2021-10-24 12:21:55,742: DEBUG - ++ local total_swap=0
2021-10-24 12:21:55,742: DEBUG - ++ local total_ram_swap=3850
2021-10-24 12:21:55,742: DEBUG - ++ local ram=3850
2021-10-24 12:21:55,742: DEBUG - ++ '[' 1 -eq 1 ']'
2021-10-24 12:21:55,742: DEBUG - ++ ram=3850
2021-10-24 12:21:55,743: DEBUG - ++ echo 3850
2021-10-24 12:21:55,743: DEBUG - + local max_ram=3850
2021-10-24 12:21:55,743: DEBUG - + php_max_children=96
2021-10-24 12:21:55,743: DEBUG - + '[' ondemand = static ']'
2021-10-24 12:21:55,744: DEBUG - ++ at_least_one 96
2021-10-24 12:21:55,744: DEBUG - ++ '[' 96 -le 0 ']'
2021-10-24 12:21:55,744: DEBUG - ++ echo 96
2021-10-24 12:21:55,745: DEBUG - + php_max_children=96
2021-10-24 12:21:55,746: DEBUG - ++ nproc
2021-10-24 12:21:55,749: DEBUG - + local core_number=1
2021-10-24 12:21:55,749: DEBUG - + local max_proc=4
2021-10-24 12:21:55,749: DEBUG - + '[' 96 -gt 4 ']'
2021-10-24 12:21:55,749: DEBUG - + php_max_children=4
2021-10-24 12:21:55,750: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=php_forced_max_children
2021-10-24 12:21:55,787: DEBUG - ++ [[ php_forced_max_children =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:55,787: DEBUG - ++ ynh_app_setting get framaforms php_forced_max_children
2021-10-24 12:21:55,842: DEBUG - + local php_forced_max_children=
2021-10-24 12:21:55,842: DEBUG - + '[' -n '' ']'
2021-10-24 12:21:55,842: DEBUG - + '[' ondemand = dynamic ']'
2021-10-24 12:21:55,842: DEBUG - + php_min_spare_servers=0
2021-10-24 12:21:55,843: DEBUG - + php_max_spare_servers=0
2021-10-24 12:21:55,843: DEBUG - + php_start_servers=0
2021-10-24 12:21:55,843: DEBUG - + '[' 0 -eq 1 ']'
2021-10-24 12:21:55,843: DEBUG - + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.conf
2021-10-24 12:21:55,843: DEBUG - + echo '
2021-10-24 12:21:55,843: DEBUG - [__APP__]
2021-10-24 12:21:55,843: DEBUG - 
2021-10-24 12:21:55,843: DEBUG - user = __APP__
2021-10-24 12:21:55,843: DEBUG - group = __APP__
2021-10-24 12:21:55,844: DEBUG - 
2021-10-24 12:21:55,844: DEBUG - chdir = __FINALPATH__
2021-10-24 12:21:55,844: DEBUG - 
2021-10-24 12:21:55,844: DEBUG - listen = /var/run/php/php__PHPVERSION__-fpm-__APP__.sock
2021-10-24 12:21:55,844: DEBUG - listen.owner = www-data
2021-10-24 12:21:55,844: DEBUG - listen.group = www-data
2021-10-24 12:21:55,844: DEBUG - 
2021-10-24 12:21:55,844: DEBUG - pm = __PHP_PM__
2021-10-24 12:21:55,845: DEBUG - pm.max_children = __PHP_MAX_CHILDREN__
2021-10-24 12:21:55,845: DEBUG - pm.max_requests = 500
2021-10-24 12:21:55,845: DEBUG - request_terminate_timeout = 1d
2021-10-24 12:21:55,845: DEBUG - '
2021-10-24 12:21:55,845: DEBUG - + '[' ondemand = dynamic ']'
2021-10-24 12:21:55,845: DEBUG - + '[' ondemand = ondemand ']'
2021-10-24 12:21:55,845: DEBUG - + echo '
2021-10-24 12:21:55,845: DEBUG - pm.process_idle_timeout = 10s
2021-10-24 12:21:55,845: DEBUG - '
2021-10-24 12:21:55,846: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/extra_php-fpm.conf ']'
2021-10-24 12:21:55,846: DEBUG - + local finalphpconf=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,846: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,882: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf//var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.conf ']'
2021-10-24 12:21:55,882: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.conf ']'
2021-10-24 12:21:55,882: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.conf
2021-10-24 12:21:55,882: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,894: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_framaforms.conf
2021-10-24 12:21:55,895: DEBUG - ++ ynh_app_setting_get --app=framaforms --key=checksum__etc_php_7.3_fpm_pool.d_framaforms.conf
2021-10-24 12:21:55,934: DEBUG - ++ [[ checksum__etc_php_7.3_fpm_pool.d_framaforms.conf =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:55,934: DEBUG - ++ ynh_app_setting get framaforms checksum__etc_php_7.3_fpm_pool.d_framaforms.conf
2021-10-24 12:21:55,987: DEBUG - + local checksum_value=3c63d96171553e2ef05a90e6e09dee17
2021-10-24 12:21:55,987: DEBUG - + backup_file_checksum=
2021-10-24 12:21:55,987: DEBUG - + '[' -n 3c63d96171553e2ef05a90e6e09dee17 ']'
2021-10-24 12:21:55,987: DEBUG - + '[' -e /etc/php/7.3/fpm/pool.d/framaforms.conf ']'
2021-10-24 12:21:55,988: DEBUG - + md5sum --check --status
2021-10-24 12:21:55,989: DEBUG - + echo '3c63d96171553e2ef05a90e6e09dee17 /etc/php/7.3/fpm/pool.d/framaforms.conf'
2021-10-24 12:21:55,990: DEBUG - + touch /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,992: DEBUG - + chown root:root /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,993: DEBUG - + chmod 640 /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,995: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,998: DEBUG - + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:55,999: DEBUG - + local target=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,000: DEBUG - ++ tr -d '>= '
2021-10-24 12:21:56,002: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/manifest.json
2021-10-24 12:21:56,006: DEBUG - + local ynh_requirement=4.2.0
2021-10-24 12:21:56,006: DEBUG - + '[' -z 4.2.0 ']'
2021-10-24 12:21:56,006: DEBUG - + '[' 4.2.0 == null ']'
2021-10-24 12:21:56,007: DEBUG - + dpkg --compare-versions 4.2.0 ge 4.2
2021-10-24 12:21:56,009: DEBUG - + chmod o-rwx /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,011: DEBUG - + chmod g-w /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,012: DEBUG - + chown -R root:root /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,014: DEBUG - + ynh_system_user_exists framaforms
2021-10-24 12:21:56,027: DEBUG - + getent passwd framaforms
2021-10-24 12:21:56,028: DEBUG - + chown framaforms:framaforms /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,030: DEBUG - + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,043: DEBUG - + test -n /
2021-10-24 12:21:56,043: DEBUG - + local path_url_slash_less=
2021-10-24 12:21:56,043: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,124: DEBUG - + local delimit=@
2021-10-24 12:21:56,125: DEBUG - + match_string=__PATH__/
2021-10-24 12:21:56,125: DEBUG - + replace_string=/
2021-10-24 12:21:56,125: DEBUG - + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,128: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,206: DEBUG - + local delimit=@
2021-10-24 12:21:56,206: DEBUG - + match_string=__PATH__
2021-10-24 12:21:56,206: DEBUG - + replace_string=/
2021-10-24 12:21:56,206: DEBUG - + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,209: DEBUG - + test -n framaforms
2021-10-24 12:21:56,209: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=framaforms --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,287: DEBUG - + local delimit=@
2021-10-24 12:21:56,287: DEBUG - + match_string=__NAME__
2021-10-24 12:21:56,287: DEBUG - + replace_string=framaforms
2021-10-24 12:21:56,287: DEBUG - + sed --in-place s@__NAME__@framaforms@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,290: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=framaforms --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,370: DEBUG - + local delimit=@
2021-10-24 12:21:56,370: DEBUG - + match_string=__NAMETOCHANGE__
2021-10-24 12:21:56,371: DEBUG - + replace_string=framaforms
2021-10-24 12:21:56,371: DEBUG - + sed --in-place s@__NAMETOCHANGE__@framaforms@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,374: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=framaforms --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,452: DEBUG - + local delimit=@
2021-10-24 12:21:56,452: DEBUG - + match_string=__USER__
2021-10-24 12:21:56,452: DEBUG - + replace_string=framaforms
2021-10-24 12:21:56,452: DEBUG - + sed --in-place s@__USER__@framaforms@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,455: DEBUG - + test -n /home/yunohost.app/framaforms
2021-10-24 12:21:56,455: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/home/yunohost.app/framaforms --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,534: DEBUG - + local delimit=@
2021-10-24 12:21:56,535: DEBUG - + match_string=__FINALPATH__
2021-10-24 12:21:56,535: DEBUG - + replace_string=/home/yunohost.app/framaforms
2021-10-24 12:21:56,535: DEBUG - + sed --in-place s@__FINALPATH__@/home/yunohost.app/framaforms@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,538: DEBUG - + test -n 7.3
2021-10-24 12:21:56,538: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,617: DEBUG - + local delimit=@
2021-10-24 12:21:56,617: DEBUG - + match_string=__PHPVERSION__
2021-10-24 12:21:56,617: DEBUG - + replace_string=7.3
2021-10-24 12:21:56,617: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,619: DEBUG - + test -n ''
2021-10-24 12:21:56,619: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-10-24 12:21:56,621: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-10-24 12:21:56,623: DEBUG - ++ sort --unique
2021-10-24 12:21:56,625: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,628: DEBUG - + local delimit=@
2021-10-24 12:21:56,628: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-10-24 12:21:56,629: DEBUG - + [[ -v app ]]
2021-10-24 12:21:56,629: DEBUG - + match_string=__APP__
2021-10-24 12:21:56,629: DEBUG - + match_string=__APP__
2021-10-24 12:21:56,629: DEBUG - + replace_string=framaforms
2021-10-24 12:21:56,629: DEBUG - + replace_string=framaforms
2021-10-24 12:21:56,629: DEBUG - + replace_string=framaforms
2021-10-24 12:21:56,629: DEBUG - + sed --in-place s@__APP__@framaforms@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,632: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-10-24 12:21:56,632: DEBUG - + [[ -v php_max_children ]]
2021-10-24 12:21:56,632: DEBUG - + match_string=__PHP_MAX_CHILDREN__
2021-10-24 12:21:56,632: DEBUG - + match_string=__PHP_MAX_CHILDREN__
2021-10-24 12:21:56,632: DEBUG - + replace_string=4
2021-10-24 12:21:56,632: DEBUG - + replace_string=4
2021-10-24 12:21:56,632: DEBUG - + replace_string=4
2021-10-24 12:21:56,632: DEBUG - + sed --in-place s@__PHP_MAX_CHILDREN__@4@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,635: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-10-24 12:21:56,635: DEBUG - + [[ -v php_pm ]]
2021-10-24 12:21:56,635: DEBUG - + match_string=__PHP_PM__
2021-10-24 12:21:56,635: DEBUG - + match_string=__PHP_PM__
2021-10-24 12:21:56,635: DEBUG - + replace_string=ondemand
2021-10-24 12:21:56,635: DEBUG - + replace_string=ondemand
2021-10-24 12:21:56,635: DEBUG - + replace_string=ondemand
2021-10-24 12:21:56,636: DEBUG - + sed --in-place s@__PHP_PM__@ondemand@g /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,638: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,651: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_framaforms.conf
2021-10-24 12:21:56,652: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-10-24 12:21:56,654: DEBUG - ++ md5sum /etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:21:56,656: DEBUG - + ynh_app_setting_set --app=framaforms --key=checksum__etc_php_7.3_fpm_pool.d_framaforms.conf --value=ff7769512a6db0074b8a26b7987b897e
2021-10-24 12:21:56,735: DEBUG - + [[ checksum__etc_php_7.3_fpm_pool.d_framaforms.conf =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:21:56,735: DEBUG - + ynh_app_setting set framaforms checksum__etc_php_7.3_fpm_pool.d_framaforms.conf ff7769512a6db0074b8a26b7987b897e
2021-10-24 12:21:56,791: DEBUG - + '[' -n '' ']'
2021-10-24 12:21:56,792: DEBUG - + unset backup_file_checksum
2021-10-24 12:21:56,792: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_2w90lxxw/conf/php-fpm.ini ']'
2021-10-24 12:21:56,792: DEBUG - + '[' 0 -eq 1 ']'
2021-10-24 12:21:56,792: DEBUG - + php-fpm7.3 --test
2021-10-24 12:21:56,977: DEBUG - + ynh_systemd_action --service_name=php7.3-fpm --action=reload
2021-10-24 12:21:57,076: DEBUG - + service_name=php7.3-fpm
2021-10-24 12:21:57,076: DEBUG - + action=reload
2021-10-24 12:21:57,076: DEBUG - + line_match=
2021-10-24 12:21:57,076: DEBUG - + length=20
2021-10-24 12:21:57,076: DEBUG - + log_path=/var/log/php7.3-fpm/php7.3-fpm.log
2021-10-24 12:21:57,076: DEBUG - + timeout=300
2021-10-24 12:21:57,077: DEBUG - + '[' reload == stop ']'
2021-10-24 12:21:57,077: DEBUG - + [[ -n '' ]]
2021-10-24 12:21:57,077: DEBUG - + '[' reload == reload ']'
2021-10-24 12:21:57,077: DEBUG - + action=reload-or-restart
2021-10-24 12:21:57,077: DEBUG - + systemctl reload-or-restart php7.3-fpm
2021-10-24 12:21:57,182: DEBUG - + [[ -n '' ]]
2021-10-24 12:21:58,031: DEBUG - + echo '[########............] > Creating a data directory...'
2021-10-24 12:21:58,032: DEBUG - + mkdir -p
2021-10-24 12:21:58,032: INFO - [########............] > Creating a data directory...
2021-10-24 12:21:58,039: WARNING - mkdir: missing operand
2021-10-24 12:21:58,039: WARNING - Try 'mkdir --help' for more information.
2021-10-24 12:21:58,040: DEBUG - + ynh_exit_properly
2021-10-24 12:21:58,040: DEBUG - + local exit_code=1
2021-10-24 12:21:58,040: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-10-24 12:21:58,044: DEBUG - + '[' 1 -eq 0 ']'
2021-10-24 12:21:58,044: DEBUG - + trap '' EXIT
2021-10-24 12:21:58,044: DEBUG - + set +o errexit
2021-10-24 12:21:58,044: DEBUG - + set +o nounset
2021-10-24 12:21:58,044: DEBUG - + sleep 0.5
2021-10-24 12:21:58,553: DEBUG - + type -t ynh_clean_setup
2021-10-24 12:21:58,553: DEBUG - + ynh_clean_setup
2021-10-24 12:21:58,553: DEBUG - + ynh_restore_upgradebackup
2021-10-24 12:21:58,553: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2021-10-24 12:21:58,900: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2021-10-24 12:21:58,900: DEBUG - + echo -e '[Error] Upgrade failed.'
2021-10-24 12:21:58,901: DEBUG - + local app_bck=framaforms
2021-10-24 12:21:58,901: DEBUG - + NO_BACKUP_UPGRADE=0
2021-10-24 12:21:58,901: DEBUG - + '[' 0 -eq 0 ']'
2021-10-24 12:21:58,901: DEBUG - + ynh_backup_archive_exists framaforms-pre-upgrade1
2021-10-24 12:21:58,901: WARNING - [Error] Upgrade failed.
2021-10-24 12:21:58,919: DEBUG - + yunohost backup list --output-as json --quiet
2021-10-24 12:21:58,950: DEBUG - + jq -e --arg archive framaforms-pre-upgrade1 '.archives | index($archive)'
2021-10-24 12:22:02,093: DEBUG - + yunohost app remove framaforms
2021-10-24 12:22:02,632: DEBUG - Removing framaforms...
2021-10-24 12:22:03,696: DEBUG - [+...................] > Loading installation settings...
2021-10-24 12:22:04,610: DEBUG - [#+..................] > Removing the database...
2021-10-24 12:22:07,289: DEBUG - [##+++++++++.........] > Removing dependencies...
2021-10-24 12:22:12,583: DEBUG - [###########+........] > Removing app main directory...
2021-10-24 12:22:12,619: WARNING - ynh_secure_remove called with empty argument, ignoring.
2021-10-24 12:22:12,708: DEBUG - [############+.......] > Removing app main directory...
2021-10-24 12:22:12,804: DEBUG - [#############++.....] > Removing NGINX web server configuration...
2021-10-24 12:22:13,335: DEBUG - [###############+....] > Removing PHP-FPM configuration...
2021-10-24 12:22:14,234: DEBUG - [################+...] > Removing the cron file...
2021-10-24 12:22:14,383: DEBUG - [#################+..] > Removing the dedicated system user...
2021-10-24 12:22:14,737: DEBUG - [####################] > Removal of framaforms completed
2021-10-24 12:22:15,739: DEBUG - framaforms uninstalled
2021-10-24 12:22:17,681: DEBUG - + yunohost backup restore framaforms-pre-upgrade1 --apps framaforms --force --debug
2021-10-24 12:22:17,855: DEBUG - 135  initializing base actions map parser for cli
2021-10-24 12:22:17,861: DEBUG - 137  loading actions map namespace 'yunohost'
2021-10-24 12:22:17,864: DEBUG - 144  building parser...
2021-10-24 12:22:17,868: DEBUG - 149  building parser took 0.004s
2021-10-24 12:22:17,869: DEBUG - 150  acquiring lock...
2021-10-24 12:22:17,916: DEBUG - 196  loading python module yunohost.backup took 0.035s
2021-10-24 12:22:17,917: DEBUG - 197  processing action [6244.1]: yunohost.backup.restore with args={'name': 'framaforms-pre-upgrade1', 'system': None, 'apps': ['framaforms'], 'force': True}
2021-10-24 12:22:17,918: DEBUG - 198  Preparing archive for restoration...
2021-10-24 12:22:17,918: DEBUG - 199  Extracting needed files from the archive…
2021-10-24 12:22:33,800: DEBUG - 16079 restoring from backup 'framaforms-pre-upgrade1' created on 2021-10-24 10:21:09
2021-10-24 12:22:33,839: DEBUG - 16119 Restoring framaforms...
2021-10-24 12:22:34,012: DEBUG - 16292 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2021-10-24 12:22:34,201: DEBUG - 16481 Uhoh, unknown permission framaforms.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-10-24 12:22:34,337: DEBUG - 16617 Uhoh, unknown permission framaforms.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-10-24 12:22:34,381: DEBUG - 16661 Permission 'framaforms.admin' updated
2021-10-24 12:22:34,627: DEBUG - 16795 Uhoh, unknown permission framaforms.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-10-24 12:22:34,655: DEBUG - 16928 To view the log of the operation 'Update url related to permission 'framaforms'', use the command 'yunohost log show 20211024-102234-permission_url-framaforms20211024-102234-permission_url-framaforms'
2021-10-24 12:22:34,819: DEBUG - 17099 Uhoh, unknown permission framaforms.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-10-24 12:22:34,977: DEBUG - 17257 Uhoh, unknown permission framaforms.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-10-24 12:22:34,978: DEBUG - 17258 Permission 'framaforms.admin' created
2021-10-24 12:22:34,979: DEBUG - 17259 To view the log of the operation 'Create permission 'framaforms'', use the command 'yunohost log show 20211024-102234-permission_create-framaforms20211024-102234-permission_create-framaforms'
2021-10-24 12:22:35,330: DEBUG - 17610 Permission 'framaforms.main' updated
2021-10-24 12:22:35,469: DEBUG - 17750 To view the log of the operation 'Update url related to permission 'framaforms'', use the command 'yunohost log show 20211024-102235-permission_url-framaforms20211024-102235-permission_url-framaforms'
2021-10-24 12:22:35,748: DEBUG - 18028 Permission 'framaforms.main' created
2021-10-24 12:22:35,749: DEBUG - 18029 To view the log of the operation 'Create permission 'framaforms'', use the command 'yunohost log show 20211024-102234-permission_create-framaforms20211024-102234-permission_create-framaforms'
2021-10-24 12:22:35,898: DEBUG - 18178 The permission database has been resynchronized
2021-10-24 12:22:36,081: DEBUG - 18362 SSOwat configuration regenerated
2021-10-24 12:22:36,097: DEBUG - 18377 Loading migration 0020_ssh_sftp_permissions...
2021-10-24 12:22:36,099: DEBUG - 18379 Loading migration 0015_migrate_to_buster...
2021-10-24 12:22:36,100: DEBUG - 18381 Loading migration 0018_xtable_to_nftable...
2021-10-24 12:22:36,102: DEBUG - 18382 Loading migration 0017_postgresql_9p6_to_11...
2021-10-24 12:22:36,103: DEBUG - 18383 Loading migration 0016_php70_to_php73_pools...
2021-10-24 12:22:36,104: DEBUG - 18384 Loading migration 0019_extend_permissions_features...
2021-10-24 12:22:36,126: DEBUG - 18405 Restoring the app 'framaforms'…
2021-10-24 12:22:36,138: DEBUG - 18418 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_yda4az0f/restore"  7>&1']'
2021-10-24 12:22:36,149: DEBUG - 18428 + source ../settings/scripts/_common.sh
2021-10-24 12:22:36,149: DEBUG - 18428 ++ pkg_dependencies='postgresql curl libzip-dev'
2021-10-24 12:22:36,149: DEBUG - 18428 ++ YNH_PHP_VERSION=7.3
2021-10-24 12:22:36,149: DEBUG - 18429 ++ extra_php_dependencies='php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:22:36,149: DEBUG - 18429 + source ../settings/scripts/ynh_composer__2
2021-10-24 12:22:36,149: DEBUG - 18429 + source ../settings/scripts/ynh_exec_as
2021-10-24 12:22:36,149: DEBUG - 18429 + source /usr/share/yunohost/helpers
2021-10-24 12:22:36,151: DEBUG - 18431 +++ grep xtrace
2021-10-24 12:22:36,153: DEBUG - 18433 +++ set +o
2021-10-24 12:22:36,154: DEBUG - 18434 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-10-24 12:22:36,154: DEBUG - 18435 ++ XTRACE_ENABLE='set -o xtrace'
2021-10-24 12:22:36,184: DEBUG - 18465 + ynh_abort_if_errors
2021-10-24 12:22:36,185: DEBUG - 18465 + set -o errexit
2021-10-24 12:22:36,185: DEBUG - 18466 + set -o nounset
2021-10-24 12:22:36,186: DEBUG - 18466 + trap ynh_exit_properly EXIT
2021-10-24 12:22:36,283: DEBUG - 18563 + echo '[+...................] > Loading settings...'
2021-10-24 12:22:36,283: DEBUG - 18563 + app=framaforms
2021-10-24 12:22:36,283: DEBUG - 18563 [+...................] > Loading settings...
2021-10-24 12:22:36,284: DEBUG - 18565 ++ ynh_app_setting_get --app=framaforms --key=domain
2021-10-24 12:22:36,323: DEBUG - 18603 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:36,323: DEBUG - 18603 ++ ynh_app_setting get framaforms domain
2021-10-24 12:22:36,382: DEBUG - 18662 + domain=form.domain2.tld
2021-10-24 12:22:36,383: DEBUG - 18664 ++ ynh_app_setting_get --app=framaforms --key=path
2021-10-24 12:22:36,426: DEBUG - 18706 ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:36,427: DEBUG - 18707 ++ ynh_app_setting get framaforms path
2021-10-24 12:22:36,485: DEBUG - 18765 + path_url=/
2021-10-24 12:22:36,486: DEBUG - 18766 ++ ynh_app_setting_get --app=framaforms --key=final_path
2021-10-24 12:22:36,526: DEBUG - 18806 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:36,526: DEBUG - 18806 ++ ynh_app_setting get framaforms final_path
2021-10-24 12:22:36,580: DEBUG - 18860 + final_path=/var/www/framaforms
2021-10-24 12:22:36,581: DEBUG - 18861 ++ ynh_app_setting_get --app=framaforms --key=db_name
2021-10-24 12:22:36,619: DEBUG - 18899 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:36,619: DEBUG - 18899 ++ ynh_app_setting get framaforms db_name
2021-10-24 12:22:36,673: DEBUG - 18953 + db_name=framaforms
2021-10-24 12:22:36,674: DEBUG - 18954 + db_user=framaforms
2021-10-24 12:22:36,674: DEBUG - 18955 ++ ynh_app_setting_get --app=framaforms --key=psqlpwd
2021-10-24 12:22:36,715: DEBUG - 18995 ++ [[ psqlpwd =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:36,715: DEBUG - 18995 ++ ynh_app_setting get framaforms psqlpwd
2021-10-24 12:22:36,772: DEBUG - 19052 + db_pwd=**********
2021-10-24 12:22:36,773: DEBUG - 19054 ++ ynh_app_setting_get --app=framaforms --key=phpversion
2021-10-24 12:22:36,815: DEBUG - 19095 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:36,815: DEBUG - 19095 ++ ynh_app_setting get framaforms phpversion
2021-10-24 12:22:36,869: DEBUG - 19149 + phpversion=7.3
2021-10-24 12:22:36,951: DEBUG - 19230 + echo '[#++.................] > Validating restoration parameters...'
2021-10-24 12:22:36,952: DEBUG - 19230 + ynh_webpath_available --domain=form.domain2.tld --path_url=/
2021-10-24 12:22:36,953: DEBUG - 19232 [#++.................] > Validating restoration parameters...
2021-10-24 12:22:36,990: DEBUG - 19270 + yunohost domain url-available form.domain2.tld /
2021-10-24 12:22:37,479: DEBUG - 19759 False
2021-10-24 12:22:37,522: DEBUG - 19801 + test '!' -d /var/www/framaforms
2021-10-24 12:22:37,522: DEBUG - 19802 + ynh_die '--message=There is already a directory: /var/www/framaforms '
2021-10-24 12:22:37,547: DEBUG - 19826 + ret_code=1
2021-10-24 12:22:37,547: DEBUG - 19826 + echo 'There is already a directory: /var/www/framaforms '
2021-10-24 12:22:37,547: DEBUG - 19826 + exit 1
2021-10-24 12:22:37,547: DEBUG - 19826 + ynh_exit_properly
2021-10-24 12:22:37,547: DEBUG - 19826 + local exit_code=1
2021-10-24 12:22:37,547: DEBUG - 19826 + rm -rf /var/cache/yunohost/download/
2021-10-24 12:22:37,548: WARNING - 19829 There is already a directory: /var/www/framaforms
2021-10-24 12:22:37,553: DEBUG - 19833 + '[' 1 -eq 0 ']'
2021-10-24 12:22:37,553: DEBUG - 19833 + trap '' EXIT
2021-10-24 12:22:37,553: DEBUG - 19833 + set +o errexit
2021-10-24 12:22:37,553: DEBUG - 19833 + set +o nounset
2021-10-24 12:22:37,553: DEBUG - 19833 + sleep 0.5
2021-10-24 12:22:38,057: DEBUG - 20337 + type -t ynh_clean_setup
2021-10-24 12:22:38,057: DEBUG - 20337 + exit 1
2021-10-24 12:22:39,059: WARNING - 21338 Could not restore framaforms: An error occured inside the app restore script
2021-10-24 12:22:39,060: DEBUG - 21341 The operation 'Restore 'framaforms' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211024-102233-backup_restore_app-framaforms' to get help
2021-10-24 12:22:39,169: WARNING - 21449 Here's an extract of the logs before the crash. It might help debugging the error:
2021-10-24 12:22:39,170: DEBUG - 21450 DEBUG - + final_path=/var/www/framaforms
2021-10-24 12:22:39,170: DEBUG - 21450 DEBUG - ++ ynh_app_setting_get --app=framaforms --key=db_name
2021-10-24 12:22:39,170: DEBUG - 21451 DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:39,171: DEBUG - 21451 DEBUG - ++ ynh_app_setting get framaforms db_name
2021-10-24 12:22:39,171: DEBUG - 21451 DEBUG - + db_name=framaforms
2021-10-24 12:22:39,171: DEBUG - 21452 DEBUG - + db_user=framaforms
2021-10-24 12:22:39,172: DEBUG - 21452 DEBUG - ++ ynh_app_setting_get --app=framaforms --key=psqlpwd
2021-10-24 12:22:39,172: DEBUG - 21453 DEBUG - ++ [[ psqlpwd =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:39,172: DEBUG - 21453 DEBUG - ++ ynh_app_setting get framaforms psqlpwd
2021-10-24 12:22:39,173: DEBUG - 21453 DEBUG - + db_pwd=**********
2021-10-24 12:22:39,173: DEBUG - 21454 DEBUG - ++ ynh_app_setting_get --app=framaforms --key=phpversion
2021-10-24 12:22:39,173: DEBUG - 21454 DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:39,174: DEBUG - 21454 DEBUG - ++ ynh_app_setting get framaforms phpversion
2021-10-24 12:22:39,174: DEBUG - 21454 DEBUG - + phpversion=7.3
2021-10-24 12:22:39,174: DEBUG - 21455 DEBUG - + echo '[#++.................] > Validating restoration parameters...'
2021-10-24 12:22:39,175: DEBUG - 21455 DEBUG - + ynh_webpath_available --domain=form.domain2.tld --path_url=/
2021-10-24 12:22:39,175: DEBUG - 21456 INFO - [#++.................] > Validating restoration parameters...
2021-10-24 12:22:39,175: DEBUG - 21456 DEBUG - + yunohost domain url-available form.domain2.tld /
2021-10-24 12:22:39,176: DEBUG - 21456 DEBUG - False
2021-10-24 12:22:39,176: DEBUG - 21456 DEBUG - + test '!' -d /var/www/framaforms
2021-10-24 12:22:39,176: DEBUG - 21457 DEBUG - + ynh_die '--message=There is already a directory: /var/www/framaforms '
2021-10-24 12:22:39,199: DEBUG - 21479 Executing command '['sh', '-c', '/bin/bash -x "./remove"  7>&1']'
2021-10-24 12:22:39,206: DEBUG - 21486 + source _common.sh
2021-10-24 12:22:39,206: DEBUG - 21487 ++ pkg_dependencies='postgresql curl libzip-dev'
2021-10-24 12:22:39,207: DEBUG - 21487 ++ YNH_PHP_VERSION=7.3
2021-10-24 12:22:39,207: DEBUG - 21488 ++ extra_php_dependencies='php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql php7.3-xml php7.3-ldap php7.3-mbstring php7.3-pgsql'
2021-10-24 12:22:39,208: DEBUG - 21488 + source /usr/share/yunohost/helpers
2021-10-24 12:22:39,210: DEBUG - 21490 +++ grep xtrace
2021-10-24 12:22:39,212: DEBUG - 21492 +++ set +o
2021-10-24 12:22:39,213: DEBUG - 21494 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-10-24 12:22:39,214: DEBUG - 21494 ++ XTRACE_ENABLE='set -o xtrace'
2021-10-24 12:22:39,361: DEBUG - 21641 + echo '[+...................] > Loading installation settings...'
2021-10-24 12:22:39,361: DEBUG - 21641 + app=framaforms
2021-10-24 12:22:39,361: DEBUG - 21641 [+...................] > Loading installation settings...
2021-10-24 12:22:39,362: DEBUG - 21642 ++ ynh_app_setting_get --app=framaforms --key=domain
2021-10-24 12:22:39,403: DEBUG - 21683 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:39,403: DEBUG - 21683 ++ ynh_app_setting get framaforms domain
2021-10-24 12:22:39,465: DEBUG - 21745 + domain=form.domain2.tld
2021-10-24 12:22:39,465: DEBUG - 21746 ++ ynh_app_setting_get --app=framaforms --key=db_name
2021-10-24 12:22:39,506: DEBUG - 21786 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:39,506: DEBUG - 21786 ++ ynh_app_setting get framaforms db_name
2021-10-24 12:22:39,684: DEBUG - 21964 + db_name=framaforms
2021-10-24 12:22:39,685: DEBUG - 21965 + db_user=framaforms
2021-10-24 12:22:39,686: DEBUG - 21966 ++ ynh_app_setting_get --app=framaforms --key=final_path
2021-10-24 12:22:39,726: DEBUG - 22006 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:39,726: DEBUG - 22006 ++ ynh_app_setting get framaforms final_path
2021-10-24 12:22:39,788: DEBUG - 22068 + final_path=/var/www/framaforms
2021-10-24 12:22:39,880: DEBUG - 22159 + echo '[#+..................] > Removing the database...'
2021-10-24 12:22:39,880: DEBUG - 22160 + ynh_psql_remove_db --db_user=framaforms --db_name=framaforms
2021-10-24 12:22:39,882: DEBUG - 22161 [#+..................] > Removing the database...
2021-10-24 12:22:39,921: DEBUG - 22200 + ynh_psql_database_exists --database=framaforms
2021-10-24 12:22:39,935: DEBUG - 22215 + grep --quiet framaforms
2021-10-24 12:22:39,938: DEBUG - 22218 ++ cat /etc/yunohost/psql
2021-10-24 12:22:39,942: DEBUG - 22223 + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql -tAc 'SELECT datname FROM pg_database WHERE datname='\''framaforms'\'';'
2021-10-24 12:22:40,102: DEBUG - 22382 + return 1
2021-10-24 12:22:40,103: DEBUG - 22382 + ynh_print_warn '--message=Database framaforms not found'
2021-10-24 12:22:40,126: DEBUG - 22405 + ynh_print_log 'Database framaforms not found'
2021-10-24 12:22:40,126: DEBUG - 22405 + echo -e 'Database framaforms not found'
2021-10-24 12:22:40,127: DEBUG - 22406 + ynh_psql_user_exists --user=framaforms
2021-10-24 12:22:40,128: WARNING - 22408 Database framaforms not found
2021-10-24 12:22:40,143: DEBUG - 22423 + grep --quiet framaforms
2021-10-24 12:22:40,146: DEBUG - 22426 ++ cat /etc/yunohost/psql
2021-10-24 12:22:40,150: DEBUG - 22430 + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql -tAc 'SELECT rolname FROM pg_roles WHERE rolname='\''framaforms'\'';'
2021-10-24 12:22:40,265: DEBUG - 22545 + return 1
2021-10-24 12:22:40,265: DEBUG - 22545 + ynh_print_warn '--message=User framaforms not found'
2021-10-24 12:22:40,282: DEBUG - 22562 + ynh_print_log 'User framaforms not found'
2021-10-24 12:22:40,283: DEBUG - 22562 + echo -e 'User framaforms not found'
2021-10-24 12:22:40,283: WARNING - 22562 User framaforms not found
2021-10-24 12:22:40,380: DEBUG - 22659 + echo '[##+++++++++.........] > Removing dependencies...'
2021-10-24 12:22:40,381: DEBUG - 22660 + ynh_remove_app_dependencies
2021-10-24 12:22:40,381: DEBUG - 22660 + local dep_app=framaforms
2021-10-24 12:22:40,381: DEBUG - 22660 + ynh_package_autopurge framaforms-ynh-deps
2021-10-24 12:22:40,381: DEBUG - 22660 + ynh_apt autoremove --purge framaforms-ynh-deps
2021-10-24 12:22:40,381: DEBUG - 22660 + ynh_wait_dpkg_free
2021-10-24 12:22:40,382: DEBUG - 22661 [##+++++++++.........] > Removing dependencies...
2021-10-24 12:22:40,610: DEBUG - 22890 + return 0
2021-10-24 12:22:40,611: DEBUG - 22890 + LC_ALL=C
2021-10-24 12:22:40,611: DEBUG - 22891 + DEBIAN_FRONTEND=noninteractive
2021-10-24 12:22:40,611: DEBUG - 22891 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge framaforms-ynh-deps
2021-10-24 12:22:41,734: DEBUG - 24014 Reading package lists...
2021-10-24 12:22:41,941: DEBUG - 24222 Building dependency tree...
2021-10-24 12:22:41,949: DEBUG - 24230 Reading state information...
2021-10-24 12:22:42,096: WARNING - 24376 E: Unable to locate package framaforms-ynh-deps
2021-10-24 12:22:42,202: DEBUG - 24482 + echo '[###########+........] > Removing app main directory...'
2021-10-24 12:22:42,203: DEBUG - 24482 + ynh_secure_remove --file=/var/www/framaforms
2021-10-24 12:22:42,204: DEBUG - 24483 [###########+........] > Removing app main directory...
2021-10-24 12:22:42,217: DEBUG - 24497 + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-10-24 12:22:42,218: DEBUG - 24497 + '[' 1 -ge 2 ']'
2021-10-24 12:22:42,218: DEBUG - 24497 + [[ -z /var/www/framaforms ]]
2021-10-24 12:22:42,218: DEBUG - 24497 + [[      /var/www     /home/yunohost.app =~ /var/www/framaforms ]]
2021-10-24 12:22:42,218: DEBUG - 24497 + [[ /var/www/framaforms =~ ^/[[:alnum:]]+$ ]]
2021-10-24 12:22:42,218: DEBUG - 24497 + [[ s = \/ ]]
2021-10-24 12:22:42,218: DEBUG - 24498 + '[' -e /var/www/framaforms ']'
2021-10-24 12:22:42,218: DEBUG - 24498 + rm --recursive /var/www/framaforms
2021-10-24 12:22:42,784: DEBUG - 25063 + echo '[############+.......] > Removing app main directory...'
2021-10-24 12:22:42,784: DEBUG - 25063 + ynh_secure_remove --file=/home/yunohost.app/framaforms
2021-10-24 12:22:42,785: DEBUG - 25064 [############+.......] > Removing app main directory...
2021-10-24 12:22:42,799: DEBUG - 25078 + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-10-24 12:22:42,799: DEBUG - 25078 + '[' 1 -ge 2 ']'
2021-10-24 12:22:42,799: DEBUG - 25078 + [[ -z /home/yunohost.app/framaforms ]]
2021-10-24 12:22:42,799: DEBUG - 25078 + [[      /var/www     /home/yunohost.app =~ /home/yunohost\.app/framaforms ]]
2021-10-24 12:22:42,799: DEBUG - 25079 + [[ /home/yunohost.app/framaforms =~ ^/[[:alnum:]]+$ ]]
2021-10-24 12:22:42,799: DEBUG - 25079 + [[ s = \/ ]]
2021-10-24 12:22:42,799: DEBUG - 25079 + '[' -e /home/yunohost.app/framaforms ']'
2021-10-24 12:22:42,800: DEBUG - 25079 + ynh_print_info '--message='\''/home/yunohost.app/framaforms'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:42,814: DEBUG - 25093 + echo ''\''/home/yunohost.app/framaforms'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:42,814: DEBUG - 25094 '/home/yunohost.app/framaforms' wasn't deleted because it doesn't exist.
2021-10-24 12:22:42,900: DEBUG - 25179 + echo '[#############++.....] > Removing NGINX web server configuration...'
2021-10-24 12:22:42,900: DEBUG - 25179 + ynh_remove_nginx_config
2021-10-24 12:22:42,900: DEBUG - 25179 + ynh_secure_remove --file=/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf
2021-10-24 12:22:42,901: DEBUG - 25180 [#############++.....] > Removing NGINX web server configuration...
2021-10-24 12:22:42,915: DEBUG - 25194 + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-10-24 12:22:42,915: DEBUG - 25194 + '[' 1 -ge 2 ']'
2021-10-24 12:22:42,915: DEBUG - 25194 + [[ -z /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf ]]
2021-10-24 12:22:42,915: DEBUG - 25194 + [[      /var/www     /home/yunohost.app =~ /etc/nginx/conf\.d/form\.domain\.tld\.d/framaforms\.conf ]]
2021-10-24 12:22:42,915: DEBUG - 25194 + [[ /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf =~ ^/[[:alnum:]]+$ ]]
2021-10-24 12:22:42,915: DEBUG - 25195 + [[ f = \/ ]]
2021-10-24 12:22:42,916: DEBUG - 25195 + '[' -e /etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf ']'
2021-10-24 12:22:42,916: DEBUG - 25195 + ynh_print_info '--message='\''/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:42,931: DEBUG - 25210 + echo ''\''/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:42,931: DEBUG - 25210 + ynh_systemd_action --service_name=nginx --action=reload
2021-10-24 12:22:42,933: DEBUG - 25213 '/etc/nginx/conf.d/form.domain2.tld.d/framaforms.conf' wasn't deleted because it doesn't exist.
2021-10-24 12:22:43,030: DEBUG - 25309 + service_name=nginx
2021-10-24 12:22:43,030: DEBUG - 25310 + action=reload
2021-10-24 12:22:43,030: DEBUG - 25310 + line_match=
2021-10-24 12:22:43,031: DEBUG - 25310 + length=20
2021-10-24 12:22:43,031: DEBUG - 25310 + log_path=/var/log/nginx/nginx.log
2021-10-24 12:22:43,031: DEBUG - 25310 + timeout=300
2021-10-24 12:22:43,031: DEBUG - 25310 + '[' reload == stop ']'
2021-10-24 12:22:43,031: DEBUG - 25310 + [[ -n '' ]]
2021-10-24 12:22:43,031: DEBUG - 25310 + '[' reload == reload ']'
2021-10-24 12:22:43,031: DEBUG - 25310 + action=reload-or-restart
2021-10-24 12:22:43,031: DEBUG - 25311 + systemctl reload-or-restart nginx
2021-10-24 12:22:43,280: DEBUG - 25560 + [[ -n '' ]]
2021-10-24 12:22:43,445: DEBUG - 25725 + echo '[###############+....] > Removing PHP-FPM configuration...'
2021-10-24 12:22:43,445: DEBUG - 25725 + ynh_remove_fpm_config
2021-10-24 12:22:43,445: DEBUG - 25725 [###############+....] > Removing PHP-FPM configuration...
2021-10-24 12:22:43,447: DEBUG - 25728 ++ ynh_app_setting_get --app=framaforms --key=fpm_config_dir
2021-10-24 12:22:43,574: DEBUG - 25854 ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:43,574: DEBUG - 25854 ++ ynh_app_setting get framaforms fpm_config_dir
2021-10-24 12:22:43,657: DEBUG - 25937 + local fpm_config_dir=/etc/php/7.3/fpm
2021-10-24 12:22:43,658: DEBUG - 25938 ++ ynh_app_setting_get --app=framaforms --key=fpm_service
2021-10-24 12:22:43,722: DEBUG - 26002 ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:43,722: DEBUG - 26002 ++ ynh_app_setting get framaforms fpm_service
2021-10-24 12:22:43,778: DEBUG - 26058 + local fpm_service=php7.3-fpm
2021-10-24 12:22:43,779: DEBUG - 26059 ++ ynh_app_setting_get --app=framaforms --key=fpm_dedicated_service
2021-10-24 12:22:43,824: DEBUG - 26104 ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:43,824: DEBUG - 26104 ++ ynh_app_setting get framaforms fpm_dedicated_service
2021-10-24 12:22:43,878: DEBUG - 26159 + local dedicated_service=0
2021-10-24 12:22:43,879: DEBUG - 26159 + dedicated_service=0
2021-10-24 12:22:43,880: DEBUG - 26160 ++ ynh_app_setting_get --app=framaforms --key=phpversion
2021-10-24 12:22:43,924: DEBUG - 26204 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-10-24 12:22:43,924: DEBUG - 26204 ++ ynh_app_setting get framaforms phpversion
2021-10-24 12:22:43,978: DEBUG - 26257 + local phpversion=7.3
2021-10-24 12:22:43,978: DEBUG - 26257 + phpversion=7.3
2021-10-24 12:22:43,978: DEBUG - 26257 + '[' -z /etc/php/7.3/fpm ']'
2021-10-24 12:22:43,978: DEBUG - 26257 + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/framaforms.conf
2021-10-24 12:22:43,994: DEBUG - 26273 + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-10-24 12:22:43,994: DEBUG - 26273 + '[' 1 -ge 2 ']'
2021-10-24 12:22:43,994: DEBUG - 26273 + [[ -z /etc/php/7.3/fpm/pool.d/framaforms.conf ]]
2021-10-24 12:22:43,994: DEBUG - 26273 + [[      /var/www     /home/yunohost.app =~ /etc/php/7\.3/fpm/pool\.d/framaforms\.conf ]]
2021-10-24 12:22:43,995: DEBUG - 26273 + [[ /etc/php/7.3/fpm/pool.d/framaforms.conf =~ ^/[[:alnum:]]+$ ]]
2021-10-24 12:22:43,995: DEBUG - 26273 + [[ f = \/ ]]
2021-10-24 12:22:43,995: DEBUG - 26273 + '[' -e /etc/php/7.3/fpm/pool.d/framaforms.conf ']'
2021-10-24 12:22:43,995: DEBUG - 26274 + ynh_print_info '--message='\''/etc/php/7.3/fpm/pool.d/framaforms.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:44,009: DEBUG - 26288 + echo ''\''/etc/php/7.3/fpm/pool.d/framaforms.conf'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:44,009: DEBUG - 26288 + '[' -e /etc/php/7.3/fpm/conf.d/20-framaforms.ini ']'
2021-10-24 12:22:44,009: DEBUG - 26288 + '[' 0 -eq 1 ']'
2021-10-24 12:22:44,009: DEBUG - 26289 + ynh_package_is_installed --package=php7.3-fpm
2021-10-24 12:22:44,010: DEBUG - 26289 '/etc/php/7.3/fpm/pool.d/framaforms.conf' wasn't deleted because it doesn't exist.
2021-10-24 12:22:44,024: DEBUG - 26304 + ynh_wait_dpkg_free
2021-10-24 12:22:44,131: DEBUG - 26412 + return 0
2021-10-24 12:22:44,132: DEBUG - 26413 + grep --count 'ok installed'
2021-10-24 12:22:44,133: DEBUG - 26413 + dpkg-query --show '--showformat=${Status}' php7.3-fpm
2021-10-24 12:22:44,161: DEBUG - 26439 + ynh_systemd_action --service_name=php7.3-fpm --action=reload
2021-10-24 12:22:44,264: DEBUG - 26543 + service_name=php7.3-fpm
2021-10-24 12:22:44,265: DEBUG - 26544 + action=reload
2021-10-24 12:22:44,265: DEBUG - 26544 + line_match=
2021-10-24 12:22:44,265: DEBUG - 26544 + length=20
2021-10-24 12:22:44,265: DEBUG - 26544 + log_path=/var/log/php7.3-fpm/php7.3-fpm.log
2021-10-24 12:22:44,265: DEBUG - 26544 + timeout=300
2021-10-24 12:22:44,265: DEBUG - 26544 + '[' reload == stop ']'
2021-10-24 12:22:44,265: DEBUG - 26544 + [[ -n '' ]]
2021-10-24 12:22:44,265: DEBUG - 26545 + '[' reload == reload ']'
2021-10-24 12:22:44,266: DEBUG - 26545 + action=reload-or-restart
2021-10-24 12:22:44,266: DEBUG - 26545 + systemctl reload-or-restart php7.3-fpm
2021-10-24 12:22:44,303: DEBUG - 26583 + [[ -n '' ]]
2021-10-24 12:22:44,304: DEBUG - 26583 + '[' 7.3 '!=' 7.3 ']'
2021-10-24 12:22:44,477: DEBUG - 26756 + echo '[################+...] > Removing the cron file...'
2021-10-24 12:22:44,477: DEBUG - 26756 + ynh_secure_remove --file=/etc/cron.d/framaforms
2021-10-24 12:22:44,478: DEBUG - 26757 [################+...] > Removing the cron file...
2021-10-24 12:22:44,522: DEBUG - 26800 + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-10-24 12:22:44,522: DEBUG - 26801 + '[' 1 -ge 2 ']'
2021-10-24 12:22:44,522: DEBUG - 26801 + [[ -z /etc/cron.d/framaforms ]]
2021-10-24 12:22:44,522: DEBUG - 26801 + [[      /var/www     /home/yunohost.app =~ /etc/cron\.d/framaforms ]]
2021-10-24 12:22:44,522: DEBUG - 26801 + [[ /etc/cron.d/framaforms =~ ^/[[:alnum:]]+$ ]]
2021-10-24 12:22:44,522: DEBUG - 26801 + [[ s = \/ ]]
2021-10-24 12:22:44,522: DEBUG - 26801 + '[' -e /etc/cron.d/framaforms ']'
2021-10-24 12:22:44,522: DEBUG - 26801 + ynh_print_info '--message='\''/etc/cron.d/framaforms'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:44,555: DEBUG - 26835 + echo ''\''/etc/cron.d/framaforms'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-10-24 12:22:44,555: DEBUG - 26835 '/etc/cron.d/framaforms' wasn't deleted because it doesn't exist.
2021-10-24 12:22:46,099: DEBUG - 28377 + echo '[#################+..] > Removing the dedicated system user...'
2021-10-24 12:22:46,099: DEBUG - 28377 + ynh_system_user_delete --username=framaforms
2021-10-24 12:22:46,100: DEBUG - 28378 [#################+..] > Removing the dedicated system user...
2021-10-24 12:22:46,100: DEBUG - 28378 + ynh_system_user_exists framaforms
2021-10-24 12:22:46,104: DEBUG - 28384 + getent passwd framaforms
2021-10-24 12:22:46,104: DEBUG - 28385 + ynh_print_warn '--message=The user framaforms was not found'
2021-10-24 12:22:46,107: DEBUG - 28387 + ynh_print_log 'The user framaforms was not found'
2021-10-24 12:22:46,107: DEBUG - 28388 + echo -e 'The user framaforms was not found'
2021-10-24 12:22:46,108: DEBUG - 28388 + ynh_system_group_exists framaforms
2021-10-24 12:22:46,110: WARNING - 28391 The user framaforms was not found
2021-10-24 12:22:46,112: DEBUG - 28393 + getent group framaforms
2021-10-24 12:22:46,114: DEBUG - 28395 + echo '[####################] > Removal of framaforms completed'
2021-10-24 12:22:46,115: DEBUG - 28396 [####################] > Removal of framaforms completed
2021-10-24 12:22:47,117: DEBUG - 29397 To view the log of the operation 'Remove 'framaforms' after a failed restore from a backup archive', use the command 'yunohost log show 20211024-102239-remove_on_failed_restore-framaforms20211024-102239-remove_on_failed_restore-framaforms'
2021-10-24 12:22:47,508: DEBUG - 29789 The permission database has been resynchronized
2021-10-24 12:22:47,664: DEBUG - 29945 SSOwat configuration regenerated
2021-10-24 12:22:47,675: DEBUG - 29953 Permission 'framaforms.admin' deleted
2021-10-24 12:22:47,675: DEBUG - 29954 To view the log of the operation 'Delete permission 'framaforms'', use the command 'yunohost log show 20211024-102247-permission_delete-framaforms20211024-102247-permission_delete-framaforms'
2021-10-24 12:22:47,964: DEBUG - 30244 The permission database has been resynchronized
2021-10-24 12:22:48,120: DEBUG - 30400 SSOwat configuration regenerated
2021-10-24 12:22:48,129: DEBUG - 30408 Permission 'framaforms.main' deleted
2021-10-24 12:22:48,130: DEBUG - 30409 To view the log of the operation 'Delete permission 'framaforms'', use the command 'yunohost log show 20211024-102247-permission_delete-framaforms20211024-102247-permission_delete-framaforms'
2021-10-24 12:22:48,137: WARNING - 30417 The operation 'Restore 'framaforms' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211024-102233-backup_restore_app-framaforms' to get help
2021-10-24 12:22:48,262: DEBUG - 30543 The permission database has been resynchronized
2021-10-24 12:22:48,418: DEBUG - 30698 SSOwat configuration regenerated
2021-10-24 12:22:48,871: DEBUG - 31151 action [6244.1] executed in 30.953s
2021-10-24 12:22:48,871: WARNING - 31152 Nothing was restored
2021-10-24 12:22:48,916: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
2021-10-24 12:22:48,939: DEBUG - + ret_code=1
2021-10-24 12:22:48,939: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.'
2021-10-24 12:22:48,939: DEBUG - + exit 1
2021-10-24 12:22:48,940: WARNING - The app was restored to the way it was before the failed upgrade.
2021-10-24 12:22:50,791: ERROR - Impossible de mettre à jour framaforms : Une erreur s’est produite durant l’exécution du script de mise à niveau de l’application

Indeed, there was a typo in the upgrade script. It should be fixed in version ~ynh3

Note however that there’s basically no actual “visible” change for end users, the difference between ~ynh1 and ~ynh2 is basically just a cleanup of the yunohost packaging scripts

Thanks @Aleks

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.