[RESOLU] Comment transférer mon site WEB sur YUNOHOST

J’ai renommé en nouveautest en lieu et place de site.

Je lance le shell et j’obtiens la même réponse :

> sudo yunohost app install https://github.com/YunoHost-Apps/my_webapp_ynh/tree/fix-db -f
Packagers: option phpversion has 'choices' but has type 'string', use 'select' instead to remove this warning.
Installing my_webapp...
Provisionning system_user...
Provisionning install_dir...
Provisionning permissions...
Provisionning apt...
[+++.................] > Validating installation parameters...
You need to set a password to enable SFTP
Unable to install my_webapp: An error occurred inside the app installation script
The operation 'Install the 'my_webapp' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230816-170318-app_install-my_webapp' to get help
Here's an extract of the logs before the crash. It might help debugging the error:
DEBUG - + local psql_installed2=no
DEBUG - + [[ no != \n\o ]]
DEBUG - + ynh_exit_properly
DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
DEBUG - + source _common.sh
DEBUG - + source /usr/share/yunohost/helpers
DEBUG - +++ set +o
DEBUG - +++ grep xtrace
DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
DEBUG - + password=
DEBUG - + app_nb=2
DEBUG - ++ grep '^Port' /etc/ssh/sshd_config
DEBUG - ++ awk '{print $2}'
DEBUG - + ssh_port=22
INFO - [+++.................] > Validating installation parameters...
DEBUG - + '[' '' '!=' '' ']'
DEBUG - + ynh_die '--message=You need to set a password to enable SFTP'
DEBUG - + ynh_exit_properly
Removing the app after installation failure...
[++++++..............] > Removing NGINX web server configuration...
'/etc/nginx/conf.d/lcz.nohost.me.d/my_webapp__2.conf' wasn't deleted because it doesn't exist.
'/etc/nginx/conf.d/lcz.nohost.me.d/my_webapp__2.d' wasn't deleted because it doesn't exist.
[######++++..........] > Removing PHP-FPM configuration...
'/etc/php/7.4/fpm/pool.d/my_webapp__2.conf' wasn't deleted because it doesn't exist.
[####################] > Removal of my_webapp__2 completed
Deprovisionning apt...
Deprovisionning permissions...
Deprovisionning install_dir...
Deprovisionning system_user...
The operation 'Install the 'my_webapp' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230816-170318-app_install-my_webapp' to get help

Je relis ‘You need to set a password to enable SFTP’ mais ca je le fais…
Donc là je bloque…

Essai d’installer cette branche

sudo yunohost app upgrade joomla -u https://github.com/YunoHost-Apps/joomla_ynh/tree/Php7.4 -F --debug

Vérifie que tu as un backup fonctionnel avant de procéder.

Voici la réponse que je viens d’obtenir :

> sudo yunohost app upgrade joomla -u https://github.com/YunoHost-Apps/joomla_ynh/tree/Php7.4 -f --debug
123  initializing base actions map parser for cli
124  loading actions map
125  building parser...
131  building parser took 0.006s
usage: yunohost app upgrade [app ...] [-h] [-u URL] [-f FILE] [-F] [-b] [-c]
yunohost app upgrade: error: argument -f/--file: expected one argument

Désolé, F majuscule pour force

C’est bon la commande est passée.

Pour infovoici le résultat :

> sudo yunohost app upgrade joomla -u https://github.com/YunoHost-Apps/joomla_ynh/tree/Php7.4 -F --debug
121  initializing base actions map parser for cli
122  loading actions map
123  building parser...
129  building parser took 0.006s
131  acquiring lock...
141  lock has been acquired
153  loading python module yunohost.app took 0.011s
153  processing action [68711.1]: yunohost.app.upgrade with args={'app': ['joomla'], 'url': 'https://github.com/YunoHost-Apps/joomla_ynh/tree/Php7.4', 'file': None, 'force': True, 'no_safety_backup': False, 'continue_on_failure': False}
365  Now upgrading joomla...
409  initializing ldap interface
459  Checking default branch
884  Downloading...
1878 Done
2304 Checking requirements for joomla...
2326 Checking that required services are up and running...
3306 Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
3314 + source _common.sh
3315 ++ YNH_PHP_VERSION=7.4
3315 ++ pkg_dependencies='php7.4-xml php7.4-cli php7.4-posix php7.4-bz2 php7.4-zip php7.4-memcache php7.4-memcached php7.4-ldap php7.4-curl php7.4-sockets php7.4-mcrypt php7.4-mysql php7.4-gd php7.4-fileinfo php7.4-mbstring'
3316 + source /usr/share/yunohost/helpers
3316 +++ set +o
3316 +++ grep xtrace
3317 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
3317 ++ XTRACE_ENABLE='set -o xtrace'
3317 ++ set +x
3336 + ynh_script_progression '--message=Loading installation settings...'
3337 + set +o xtrace
3366 + set +o xtrace
3389 + echo '! Helper used in legacy mode !'
3390 + set +x
3391 + echo '[+...................] > Loading installation settings...'
3392 + set -o xtrace
3392 [+...................] > Loading installation settings...
3392 + app=joomla
3393 ++ ynh_app_setting_get --app=joomla --key=domain
3393 ++ local _globalapp=joomla
3393 ++ local legacy_args=ak
3393 ++ args_array=(['a']='app=' ['k']='key=')
3393 ++ local -A args_array
3394 ++ local app
3394 ++ local key
3394 ++ ynh_handle_getopts_args --app=joomla --key=domain
3394 ++ set +o xtrace
3423 ++ app=joomla
3424 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
3424 ++ ynh_app_setting get joomla domain
3424 ++ set +o xtrace
3500 + domain=monnaielibre.lcz.nohost.me
3500 ++ ynh_app_setting_get --app=joomla --key=path
3501 ++ local _globalapp=joomla
3501 ++ local legacy_args=ak
3501 ++ args_array=(['a']='app=' ['k']='key=')
3501 ++ local -A args_array
3502 ++ local app
3502 ++ local key
3502 ++ ynh_handle_getopts_args --app=joomla --key=path
3502 ++ set +o xtrace
3529 ++ app=joomla
3529 ++ [[ path =~ (unprotected|protected|skipped)_ ]]
3530 ++ ynh_app_setting get joomla path
3530 ++ set +o xtrace
3588 + path_url=/
3588 ++ ynh_app_setting_get --app=joomla --key=admin
3588 ++ local _globalapp=joomla
3588 ++ local legacy_args=ak
3589 ++ args_array=(['a']='app=' ['k']='key=')
3589 ++ local -A args_array
3589 ++ local app
3589 ++ local key
3589 ++ ynh_handle_getopts_args --app=joomla --key=admin
3589 ++ set +o xtrace
3617 ++ app=joomla
3617 ++ [[ admin =~ (unprotected|protected|skipped)_ ]]
3617 ++ ynh_app_setting get joomla admin
3618 ++ set +o xtrace
3676 + admin=ikm
3676 ++ ynh_app_setting_get --app=joomla --key=final_path
3676 ++ local _globalapp=joomla
3677 ++ local legacy_args=ak
3677 ++ args_array=(['a']='app=' ['k']='key=')
3677 ++ local -A args_array
3677 ++ local app
3677 ++ local key
3678 ++ ynh_handle_getopts_args --app=joomla --key=final_path
3678 ++ set +o xtrace
3705 ++ app=joomla
3705 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
3705 ++ ynh_app_setting get joomla final_path
3706 ++ set +o xtrace
3763 + final_path=/var/www/joomla
3763 ++ ynh_app_setting_get --app=joomla --key=db_name
3764 ++ local _globalapp=joomla
3764 ++ local legacy_args=ak
3764 ++ args_array=(['a']='app=' ['k']='key=')
3764 ++ local -A args_array
3764 ++ local app
3764 ++ local key
3765 ++ ynh_handle_getopts_args --app=joomla --key=db_name
3765 ++ set +o xtrace
3792 ++ app=joomla
3792 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
3793 ++ ynh_app_setting get joomla db_name
3793 ++ set +o xtrace
3850 + db_name=joomla
3850 + db_user=joomla
3851 ++ ynh_app_setting_get --app=joomla --key=mysqlpwd
3851 ++ local _globalapp=joomla
3851 ++ local legacy_args=ak
3851 ++ args_array=(['a']='app=' ['k']='key=')
3852 ++ local -A args_array
3852 ++ local app
3852 ++ local key
3852 ++ ynh_handle_getopts_args --app=joomla --key=mysqlpwd
3852 ++ set +o xtrace
3880 ++ app=joomla
3880 ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
3880 ++ ynh_app_setting get joomla mysqlpwd
3880 ++ set +o xtrace
3938 + db_pwd=doNQk1JM6DCX01hu5f9k55sw
3938 ++ ynh_app_setting_get --app=joomla --key=db_prefix
3939 ++ local _globalapp=joomla
3939 ++ local legacy_args=ak
3939 ++ args_array=(['a']='app=' ['k']='key=')
3939 ++ local -A args_array
3939 ++ local app
3940 ++ local key
3940 ++ ynh_handle_getopts_args --app=joomla --key=db_prefix
3940 ++ set +o xtrace
3967 ++ app=joomla
3967 ++ [[ db_prefix =~ (unprotected|protected|skipped)_ ]]
3968 ++ ynh_app_setting get joomla db_prefix
3968 ++ set +o xtrace
4025 + db_prefix=rlrs_
4025 ++ ynh_app_setting_get --app=joomla --key=secret
4026 ++ local _globalapp=joomla
4026 ++ local legacy_args=ak
4026 ++ args_array=(['a']='app=' ['k']='key=')
4026 ++ local -A args_array
4027 ++ local app
4027 ++ local key
4027 ++ ynh_handle_getopts_args --app=joomla --key=secret
4027 ++ set +o xtrace
4054 ++ app=joomla
4055 ++ [[ secret =~ (unprotected|protected|skipped)_ ]]
4055 ++ ynh_app_setting get joomla secret
4055 ++ set +o xtrace
4113 + secret=pi7JGU6MfNuXrl4M
4113 + ynh_script_progression '--message=Checking version...'
4113 + set +o xtrace
4142 + set +o xtrace
4152 + echo '! Helper used in legacy mode !'
4153 + set +x
4154 [#+..................] > Checking version...
4154 + echo '[#+..................] > Checking version...'
4155 + set -o xtrace
4155 ++ ynh_check_app_version_changed
4155 ++ local return_value=UPGRADE_PACKAGE
4156 ++ '[' UPGRADE_PACKAGE == UPGRADE_FULL ']'
4156 ++ '[' UPGRADE_PACKAGE == UPGRADE_FORCED ']'
4156 ++ '[' UPGRADE_PACKAGE == DOWNGRADE_FORCED ']'
4156 ++ echo UPGRADE_PACKAGE
4156 + upgrade_type=UPGRADE_PACKAGE
4157 + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...'
4157 + set +o xtrace
4185 + set +o xtrace
4196 + echo '! Helper used in legacy mode !'
4196 + set +x
4197 [##++................] > Backing up the app before upgrading (may take a while)...
4198 + echo '[##++................] > Backing up the app before upgrading (may take a while)...'
4198 + set -o xtrace
4198 + ynh_backup_before_upgrade
4199 + '[' '!' -e /etc/yunohost/apps/joomla/scripts/backup ']'
4199 + backup_number=1
4199 + local old_backup_number=2
4199 + local app_bck=joomla
4199 + NO_BACKUP_UPGRADE=0
4200 + '[' 0 -eq 0 ']'
4200 + ynh_backup_archive_exists joomla-pre-upgrade1
4200 + yunohost backup list --output-as json --quiet
4200 + jq -e --arg archive joomla-pre-upgrade1 '.archives | index($archive)'
4626 + backup_number=2
4626 + old_backup_number=1
4626 + BACKUP_CORE_ONLY=1
4626 + yunohost backup create --apps joomla --name joomla-pre-upgrade2 --debug
4790 122  initializing base actions map parser for cli
4791 123  loading actions map
4792 124  building parser...
4794 126  building parser took 0.002s
4796 128  acquiring lock...
4957 289  loading python module yunohost.backup took 0.150s
4957 289  processing action [69273.1]: yunohost.backup.create with args={'name': 'joomla-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['joomla'], 'dry_run': False}
5108 440  Collecting files to be backed up for joomla...
5200 531  Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_o6mgmv0o/scripts/backup"  7>&1']'
5211 542  + source ../settings/scripts/_common.sh
5212 544  ++ YNH_PHP_VERSION=8.1
5212 544  ++ pkg_dependencies='php8.1-xml php8.1-cli php8.1-posix php8.1-bz2 php8.1-zip php8.1-memcache php8.1-memcached php8.1-ldap php8.1-curl php8.1-sockets php8.1-mcrypt php8.1-mysql php8.1-gd php8.1-fileinfo php8.1-mbstring'
5213 544  + source /usr/share/yunohost/helpers
5213 545  +++ set +o
5214 545  +++ grep xtrace
5215 547  ++ readonly 'XTRACE_ENABLE=set -o xtrace'
5216 548  ++ XTRACE_ENABLE='set -o xtrace'
5216 548  ++ set +x
5238 570  + ynh_abort_if_errors
5238 570  + set -o errexit
5239 571  + set -o nounset
5239 571  + trap ynh_exit_properly EXIT
5240 571  + ynh_print_info '--message=Loading installation settings...'
5240 571  + local legacy_args=m
5240 571  + args_array=(['m']='message=')
5240 571  + local -A args_array
5241 572  + local message
5241 572  + ynh_handle_getopts_args '--message=Loading installation settings...'
5241 572  + set +o xtrace
5249 581  + echo 'Loading installation settings...'
5249 581  Loading installation settings...
5249 581  + app=joomla
5250 582  ++ ynh_app_setting_get --app=joomla --key=final_path
5250 582  ++ local _globalapp=joomla
5251 582  ++ local legacy_args=ak
5251 582  ++ args_array=(['a']='app=' ['k']='key=')
5251 583  ++ local -A args_array
5251 583  ++ local app
5252 583  ++ local key
5252 583  ++ ynh_handle_getopts_args --app=joomla --key=final_path
5252 583  ++ set +o xtrace
5278 610  ++ app=joomla
5278 610  ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
5278 610  ++ ynh_app_setting get joomla final_path
5279 610  ++ set +o xtrace
5335 667  + final_path=/var/www/joomla
5335 668  ++ ynh_app_setting_get --app=joomla --key=domain
5336 668  ++ local _globalapp=joomla
5336 668  ++ local legacy_args=ak
5336 668  ++ args_array=(['a']='app=' ['k']='key=')
5337 668  ++ local -A args_array
5337 669  ++ local app
5337 669  ++ local key
5337 669  ++ ynh_handle_getopts_args --app=joomla --key=domain
5338 669  ++ set +o xtrace
5363 695  ++ app=joomla
5364 696  ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
5364 696  ++ ynh_app_setting get joomla domain
5365 696  ++ set +o xtrace
5421 753  + domain=monnaielibre.lcz.nohost.me
5422 754  ++ ynh_app_setting_get --app=joomla --key=db_name
5422 754  ++ local _globalapp=joomla
5422 754  ++ local legacy_args=ak
5422 754  ++ args_array=(['a']='app=' ['k']='key=')
5423 755  ++ local -A args_array
5423 755  ++ local app
5423 755  ++ local key
5423 755  ++ ynh_handle_getopts_args --app=joomla --key=db_name
5424 755  ++ set +o xtrace
5449 781  ++ app=joomla
5450 781  ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
5450 782  ++ ynh_app_setting get joomla db_name
5450 782  ++ set +o xtrace
5507 839  + db_name=joomla
5508 840  ++ ynh_app_setting_get --app=joomla --key=phpversion
5508 840  ++ local _globalapp=joomla
5508 840  ++ local legacy_args=ak
5509 840  ++ args_array=(['a']='app=' ['k']='key=')
5509 841  ++ local -A args_array
5509 841  ++ local app
5510 841  ++ local key
5510 841  ++ ynh_handle_getopts_args --app=joomla --key=phpversion
5510 841  ++ set +o xtrace
5535 867  ++ app=joomla
5535 867  ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
5536 868  ++ ynh_app_setting get joomla phpversion
5536 868  ++ set +o xtrace
5596 928  + phpversion=8.1
5597 929  + ynh_print_info '--message=Declaring files to be backed up...'
5597 929  + local legacy_args=m
5597 929  + args_array=(['m']='message=')
5598 929  + local -A args_array
5598 929  + local message
5598 930  + ynh_handle_getopts_args '--message=Declaring files to be backed up...'
5598 930  + set +o xtrace
5608 938  + echo 'Declaring files to be backed up...'
5609 939  + ynh_backup --src_path=/var/www/joomla
5609 939  Declaring files to be backed up...
5609 939  + local legacy_args=sdbm
5609 939  + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
5609 940  + local -A args_array
5610 940  + local src_path
5610 940  + local dest_path
5610 940  + local is_big
5610 940  + local not_mandatory
5610 940  + ynh_handle_getopts_args --src_path=/var/www/joomla
5610 941  + set +o xtrace
5638 970  + dest_path=
5639 970  + is_big=0
5639 970  + not_mandatory=0
5639 971  + BACKUP_CORE_ONLY=1
5639 971  + test -n joomla
5640 971  ++ ynh_app_setting_get --app=joomla --key=do_not_backup_data
5640 971  ++ local _globalapp=joomla
5641 971  ++ local legacy_args=ak
5641 972  ++ args_array=(['a']='app=' ['k']='key=')
5641 972  ++ local -A args_array
5641 972  ++ local app
5641 972  ++ local key
5641 972  ++ ynh_handle_getopts_args --app=joomla --key=do_not_backup_data
5642 972  ++ set +o xtrace
5670 1002 ++ app=joomla
5671 1002 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
5671 1003 ++ ynh_app_setting get joomla do_not_backup_data
5671 1003 ++ set +o xtrace
5735 1067 + do_not_backup_data=
5735 1067 + '[' 0 -eq 1 ']'
5736 1067 + '[' '!' -e /var/www/joomla ']'
5736 1068 ++ realpath /var/www/joomla
5737 1069 + src_path=/var/www/joomla
5737 1069 + [[ -z '' ]]
5738 1069 + dest_path=var/www/joomla
5738 1070 + [[ -e var/www/joomla ]]
5738 1070 + local rel_dir=/apps/joomla/backup
5739 1070 + rel_dir=/apps/joomla/backup/
5739 1070 + dest_path=/apps/joomla/backup/var/www/joomla
5739 1070 + dest_path=apps/joomla/backup/var/www/joomla
5739 1071 ++ sed --regexp-extended 's/"/\"\"/g'
5740 1072 ++ echo /var/www/joomla
5741 1073 + local src=/var/www/joomla
5742 1074 ++ echo apps/joomla/backup/var/www/joomla
5743 1075 ++ sed --regexp-extended 's/"/\"\"/g'
5745 1077 + local dest=apps/joomla/backup/var/www/joomla
5745 1077 + echo '"/var/www/joomla","apps/joomla/backup/var/www/joomla"'
5745 1077 ++ dirname /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/var/www/joomla
5747 1079 + mkdir --parents /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/var/www
5749 1081 + ynh_backup --src_path=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5749 1081 + local legacy_args=sdbm
5750 1081 + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
5750 1082 + local -A args_array
5751 1082 + local src_path
5751 1082 + local dest_path
5751 1082 + local is_big
5751 1082 + local not_mandatory
5751 1083 + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5752 1083 + set +o xtrace
5782 1114 + dest_path=
5782 1114 + is_big=0
5782 1114 + not_mandatory=0
5783 1115 + BACKUP_CORE_ONLY=1
5785 1115 + test -n joomla
5785 1115 ++ ynh_app_setting_get --app=joomla --key=do_not_backup_data
5785 1115 ++ local _globalapp=joomla
5785 1116 ++ local legacy_args=ak
5786 1116 ++ args_array=(['a']='app=' ['k']='key=')
5786 1116 ++ local -A args_array
5786 1116 ++ local app
5786 1116 ++ local key
5786 1116 ++ ynh_handle_getopts_args --app=joomla --key=do_not_backup_data
5786 1117 ++ set +o xtrace
5814 1146 ++ app=joomla
5814 1146 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
5814 1146 ++ ynh_app_setting get joomla do_not_backup_data
5815 1146 ++ set +o xtrace
5871 1203 + do_not_backup_data=
5872 1204 + '[' 0 -eq 1 ']'
5872 1204 + '[' '!' -e /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf ']'
5872 1204 ++ realpath /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5873 1205 + src_path=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5873 1205 + [[ -z '' ]]
5874 1206 + dest_path=etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5874 1206 + [[ -e etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf ]]
5874 1206 + local rel_dir=/apps/joomla/backup
5875 1206 + rel_dir=/apps/joomla/backup/
5875 1206 + dest_path=/apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5875 1207 + dest_path=apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5875 1207 ++ sed --regexp-extended 's/"/\"\"/g'
5876 1207 ++ echo /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5876 1208 + local src=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5877 1209 ++ echo apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5877 1210 ++ sed --regexp-extended 's/"/\"\"/g'
5879 1211 + local dest=apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5880 1212 + echo '"/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf","apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf"'
5880 1212 ++ dirname /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
5881 1213 + mkdir --parents /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d
5883 1215 + ynh_backup --src_path=/etc/php/8.1/fpm/pool.d/joomla.conf
5883 1215 + local legacy_args=sdbm
5884 1216 + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
5884 1216 + local -A args_array
5884 1216 + local src_path
5884 1216 + local dest_path
5885 1217 + local is_big
5885 1217 + local not_mandatory
5885 1217 + ynh_handle_getopts_args --src_path=/etc/php/8.1/fpm/pool.d/joomla.conf
5885 1217 + set +o xtrace
5913 1245 + dest_path=
5914 1246 + is_big=0
5914 1246 + not_mandatory=0
5914 1246 + BACKUP_CORE_ONLY=1
5915 1246 + test -n joomla
5915 1247 ++ ynh_app_setting_get --app=joomla --key=do_not_backup_data
5916 1247 ++ local _globalapp=joomla
5916 1247 ++ local legacy_args=ak
5916 1247 ++ args_array=(['a']='app=' ['k']='key=')
5916 1247 ++ local -A args_array
5916 1247 ++ local app
5917 1247 ++ local key
5917 1248 ++ ynh_handle_getopts_args --app=joomla --key=do_not_backup_data
5917 1248 ++ set +o xtrace
5943 1275 ++ app=joomla
5944 1276 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
5944 1276 ++ ynh_app_setting get joomla do_not_backup_data
5944 1276 ++ set +o xtrace
6002 1334 + do_not_backup_data=
6002 1334 + '[' 0 -eq 1 ']'
6003 1334 + '[' '!' -e /etc/php/8.1/fpm/pool.d/joomla.conf ']'
6003 1335 ++ realpath /etc/php/8.1/fpm/pool.d/joomla.conf
6004 1336 + src_path=/etc/php/8.1/fpm/pool.d/joomla.conf
6004 1336 + [[ -z '' ]]
6004 1336 + dest_path=etc/php/8.1/fpm/pool.d/joomla.conf
6005 1336 + [[ -e etc/php/8.1/fpm/pool.d/joomla.conf ]]
6005 1337 + local rel_dir=/apps/joomla/backup
6006 1337 + rel_dir=/apps/joomla/backup/
6006 1337 + dest_path=/apps/joomla/backup/etc/php/8.1/fpm/pool.d/joomla.conf
6006 1337 + dest_path=apps/joomla/backup/etc/php/8.1/fpm/pool.d/joomla.conf
6006 1337 ++ echo /etc/php/8.1/fpm/pool.d/joomla.conf
6006 1338 ++ sed --regexp-extended 's/"/\"\"/g'
6007 1339 + local src=/etc/php/8.1/fpm/pool.d/joomla.conf
6008 1340 ++ echo apps/joomla/backup/etc/php/8.1/fpm/pool.d/joomla.conf
6008 1340 ++ sed --regexp-extended 's/"/\"\"/g'
6010 1342 + local dest=apps/joomla/backup/etc/php/8.1/fpm/pool.d/joomla.conf
6010 1342 + echo '"/etc/php/8.1/fpm/pool.d/joomla.conf","apps/joomla/backup/etc/php/8.1/fpm/pool.d/joomla.conf"'
6011 1343 ++ dirname /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/etc/php/8.1/fpm/pool.d/joomla.conf
6012 1344 + mkdir --parents /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/etc/php/8.1/fpm/pool.d
6014 1346 + ynh_backup --src_path=/etc/logrotate.d/joomla
6014 1346 + local legacy_args=sdbm
6014 1346 + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
6015 1347 + local -A args_array
6015 1347 + local src_path
6015 1347 + local dest_path
6015 1347 + local is_big
6015 1348 + local not_mandatory
6016 1348 + ynh_handle_getopts_args --src_path=/etc/logrotate.d/joomla
6016 1348 + set +o xtrace
6044 1376 + dest_path=
6044 1376 + is_big=0
6044 1376 + not_mandatory=0
6045 1377 + BACKUP_CORE_ONLY=1
6045 1377 + test -n joomla
6045 1377 ++ ynh_app_setting_get --app=joomla --key=do_not_backup_data
6046 1377 ++ local _globalapp=joomla
6046 1378 ++ local legacy_args=ak
6047 1378 ++ args_array=(['a']='app=' ['k']='key=')
6047 1378 ++ local -A args_array
6047 1378 ++ local app
6047 1378 ++ local key
6047 1378 ++ ynh_handle_getopts_args --app=joomla --key=do_not_backup_data
6047 1378 ++ set +o xtrace
6074 1406 ++ app=joomla
6074 1406 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
6075 1406 ++ ynh_app_setting get joomla do_not_backup_data
6075 1406 ++ set +o xtrace
6132 1464 + do_not_backup_data=
6133 1465 + '[' 0 -eq 1 ']'
6133 1465 + '[' '!' -e /etc/logrotate.d/joomla ']'
6133 1465 ++ realpath /etc/logrotate.d/joomla
6134 1466 + src_path=/etc/logrotate.d/joomla
6134 1466 + [[ -z '' ]]
6134 1466 + dest_path=etc/logrotate.d/joomla
6135 1467 + [[ -e etc/logrotate.d/joomla ]]
6135 1467 + local rel_dir=/apps/joomla/backup
6135 1467 + rel_dir=/apps/joomla/backup/
6136 1467 + dest_path=/apps/joomla/backup/etc/logrotate.d/joomla
6136 1467 + dest_path=apps/joomla/backup/etc/logrotate.d/joomla
6136 1468 ++ echo /etc/logrotate.d/joomla
6136 1468 ++ sed --regexp-extended 's/"/\"\"/g'
6137 1469 + local src=/etc/logrotate.d/joomla
6138 1470 ++ echo apps/joomla/backup/etc/logrotate.d/joomla
6138 1471 ++ sed --regexp-extended 's/"/\"\"/g'
6140 1473 + local dest=apps/joomla/backup/etc/logrotate.d/joomla
6141 1473 + echo '"/etc/logrotate.d/joomla","apps/joomla/backup/etc/logrotate.d/joomla"'
6141 1473 ++ dirname /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/etc/logrotate.d/joomla
6142 1475 + mkdir --parents /home/yunohost.backup/tmp/joomla-pre-upgrade2/apps/joomla/backup/etc/logrotate.d
6144 1476 + ynh_print_info '--message=Backing up the MySQL database...'
6145 1477 + local legacy_args=m
6145 1477 + args_array=(['m']='message=')
6145 1477 + local -A args_array
6145 1477 + local message
6146 1477 + ynh_handle_getopts_args '--message=Backing up the MySQL database...'
6146 1478 + set +o xtrace
6154 1486 Backing up the MySQL database...
6154 1486 + echo 'Backing up the MySQL database...'
6155 1486 + ynh_mysql_dump_db --database=joomla
6155 1487 + local legacy_args=d
6155 1487 + args_array=(['d']='database=')
6156 1487 + local -A args_array
6156 1487 + local database
6156 1487 + ynh_handle_getopts_args --database=joomla
6156 1487 + set +o xtrace
6163 1495 + mysqldump --single-transaction --skip-dump-date --routines joomla
7199 2531 + ynh_print_info '--message=Backup script completed for joomla. (YunoHost will then actually copy those files to the archive).'
7200 2532 + local legacy_args=m
7200 2532 + args_array=(['m']='message=')
7200 2532 + local -A args_array
7200 2532 + local message
7201 2532 + ynh_handle_getopts_args '--message=Backup script completed for joomla. (YunoHost will then actually copy those files to the archive).'
7201 2532 + set +o xtrace
7209 2541 + echo 'Backup script completed for joomla. (YunoHost will then actually copy those files to the archive).'
7209 2541 Backup script completed for joomla. (YunoHost will then actually copy those files to the archive).
7210 2541 + ynh_exit_properly
7210 2542 + local exit_code=0
7210 2542 + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
7210 2542 + '[' 0 -eq 0 ']'
7210 2542 + exit 0
8213 3545 Backup permission for joomla
8278 3609 initializing ldap interface
17649 12981 Creating a backup archive from the collected files...
17650 12981 The archive will contain about 658.8MB of data.
17650 12982 Creating the backup TAR archive...
92897 88229 TAR backup archive created
92898 88230 Backup created: joomla-pre-upgrade2
92900 88232 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20230817-180330-backup_create'
92909 88241 action [69273.1] executed in 87.951s
92909 name: joomla-pre-upgrade2
92909 results:
92910   apps:
92910     joomla: Success
92910   system:
92910 size: 690781106
93043 + '[' 0 -eq 0 ']'
93043 + ynh_backup_archive_exists joomla-pre-upgrade1
93044 + yunohost backup list --output-as json --quiet
93044 + jq -e --arg archive joomla-pre-upgrade1 '.archives | index($archive)'
93424 + yunohost backup delete joomla-pre-upgrade1
93907 + ynh_abort_if_errors
93907 + set -o errexit
93908 + set -o nounset
93908 + trap ynh_exit_properly EXIT
93908 + ynh_script_progression '--message=Backing up configuration file...'
93908 + set +o xtrace
93940 + set +o xtrace
93952 + echo '! Helper used in legacy mode !'
93953 + set +x
93955 + echo '[####+...............] > Backing up configuration file...'
93955 [####+...............] > Backing up configuration file...
93955 + set -o xtrace
93955 ++ ynh_smart_mktemp min_size=3
93956 ++ args_array=(['s']='min_size=')
93956 ++ declare -Ar args_array
93956 ++ local min_size
93957 ++ ynh_handle_getopts_args min_size=3
93957 ++ set +o xtrace
93964 ++ echo '! Helper used in legacy mode !'
93964 ++ set +x
93966 ++ min_size=min_size=3
93966 ++ min_size=3072
93966 ++ is_there_enough_space /tmp
93966 +++ df --output=avail /tmp
93967 +++ sed 1d
93969 ++ local free_space=448162524
93969 ++ test 448162524 -ge 3072
93969 ++ local tmpdir=/tmp
93970 +++ mktemp --directory --tmpdir=/tmp
93971 ++ echo /tmp/tmp.YENYVjI4Hs
93971 + tmpdir=/tmp/tmp.YENYVjI4Hs
93972 + cp -a /var/www/joomla/configuration.php /tmp/tmp.YENYVjI4Hs/configuration.php
93973 + ynh_script_progression '--message=Ensuring downward compatibility...'
93974 + set +o xtrace
94003 + set +o xtrace
94014 + echo '! Helper used in legacy mode !'
94014 + set +x
94016 + echo '[#####++.............] > Ensuring downward compatibility...'
94016 [#####++.............] > Ensuring downward compatibility...
94017 + set -o xtrace
94017 + '[' -z rlrs_ ']'
94017 + '[' -z pi7JGU6MfNuXrl4M ']'
94017 + ynh_script_progression '--message=Making sure dedicated system user exists...'
94017 + set +o xtrace
94046 + set +o xtrace
94057 + echo '! Helper used in legacy mode !'
94057 + set +x
94059 + echo '[#######+............] > Making sure dedicated system user exists...'
94059 + set -o xtrace
94060 [#######+............] > Making sure dedicated system user exists...
94060 + ynh_system_user_create --username=joomla --home_dir=/var/www/joomla
94060 + local legacy_args=uhs
94060 + args_array=(['u']='username=' ['h']='home_dir=' ['s']='use_shell' ['g']='groups=')
94060 + local -A args_array
94061 + local username
94061 + local home_dir
94061 + local use_shell
94061 + local groups
94061 + ynh_handle_getopts_args --username=joomla --home_dir=/var/www/joomla
94061 + set +o xtrace
94113 + use_shell=0
94114 + home_dir=/var/www/joomla
94114 + groups=
94114 + ynh_system_user_exists joomla
94115 + local legacy_args=u
94115 + args_array=(['u']='username=')
94115 + local -A args_array
94115 + local username
94115 + ynh_handle_getopts_args joomla
94116 + set +o xtrace
94121 + echo '! Helper used in legacy mode !'
94122 + set +x
94123 + getent passwd joomla
94127 + local group
94128 + '[' UPGRADE_PACKAGE == UPGRADE_APP ']'
94128 + chmod 750 /var/www/joomla
94128 + chmod -R o-rwx /var/www/joomla
94470 + chown -R joomla:www-data /var/www/joomla
94774 + ynh_script_progression '--message=Upgrading dependencies...'
94774 + set +o xtrace
94804 + set +o xtrace
94814 + echo '! Helper used in legacy mode !'
94815 + set +x
94816 [########++..........] > Upgrading dependencies...
94816 + echo '[########++..........] > Upgrading dependencies...'
94817 + set -o xtrace
94817 + ynh_install_app_dependencies php7.4-xml php7.4-cli php7.4-posix php7.4-bz2 php7.4-zip php7.4-memcache php7.4-memcached php7.4-ldap php7.4-curl php7.4-sockets php7.4-mcrypt php7.4-mysql php7.4-gd php7.4-fileinfo php7.4-mbstring
94817 + local 'dependencies=php7.4-xml php7.4-cli php7.4-posix php7.4-bz2 php7.4-zip php7.4-memcache php7.4-memcached php7.4-ldap php7.4-curl php7.4-sockets php7.4-mcrypt php7.4-mysql php7.4-gd php7.4-fileinfo php7.4-mbstring'
94817 ++ echo 'php7.4-xml php7.4-cli php7.4-posix php7.4-bz2 php7.4-zip php7.4-memcache php7.4-memcached php7.4-ldap php7.4-curl php7.4-sockets php7.4-mcrypt php7.4-mysql php7.4-gd php7.4-fileinfo php7.4-mbstring'
94818 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
94820 + dependencies='php7.4-xml, php7.4-cli, php7.4-posix, php7.4-bz2, php7.4-zip, php7.4-memcache, php7.4-memcached, php7.4-ldap, php7.4-curl, php7.4-sockets, php7.4-mcrypt, php7.4-mysql, php7.4-gd, php7.4-fileinfo, php7.4-mbstring'
94820 + local 'dependencies=php7.4-xml, php7.4-cli, php7.4-posix, php7.4-bz2, php7.4-zip, php7.4-memcache, php7.4-memcached, php7.4-ldap, php7.4-curl, php7.4-sockets, php7.4-mcrypt, php7.4-mysql, php7.4-gd, php7.4-fileinfo, php7.4-mbstring'
94820 ++ ynh_read_manifest --manifest_key=version
94820 ++ local legacy_args=mk
94821 ++ args_array=(['m']='manifest=' ['k']='manifest_key=')
94821 ++ local -A args_array
94821 ++ local manifest
94821 ++ local manifest_key
94821 ++ ynh_handle_getopts_args --manifest_key=version
94821 ++ set +o xtrace
94837 ++ '[' '!' -e '' ']'
94837 ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json ']'
94837 ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json
94838 ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json
94838 ++ grep -q '\.json$'
94839 ++ jq .version /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json --raw-output
94888 + local version=4.2.6~ynh2
94888 + '[' -z 4.2.6~ynh2 ']'
94888 + '[' 4.2.6~ynh2 == null ']'
94889 + local dep_app=joomla
94889 + [[ php7.4-xml, php7.4-cli, php7.4-posix, php7.4-bz2, php7.4-zip, php7.4-memcache, php7.4-memcached, php7.4-ldap, php7.4-curl, php7.4-sockets, php7.4-mcrypt, php7.4-mysql, php7.4-gd, php7.4-fileinfo, php7.4-mbstring =~ [<=>] ]]
94889 ++ echo php7.4-xml, php7.4-cli, php7.4-posix, php7.4-bz2, php7.4-zip, php7.4-memcache, php7.4-memcached, php7.4-ldap, php7.4-curl, php7.4-sockets, php7.4-mcrypt, php7.4-mysql, php7.4-gd, php7.4-fileinfo, php7.4-mbstring
94890 ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)'
94890 ++ sort -u
94891 + local specific_php_version=7.4
94892 + [[ -n 7.4 ]]
94892 ++ echo 7.4
94892 ++ wc -l
94894 + [[ 1 -eq 1 ]]
94894 + dependencies+=', php7.4, php7.4-fpm, php7.4-common'
94895 ++ ynh_app_setting_get --app=joomla --key=phpversion
94895 ++ local _globalapp=joomla
94895 ++ local legacy_args=ak
94895 ++ args_array=(['a']='app=' ['k']='key=')
94895 ++ local -A args_array
94895 ++ local app
94896 ++ local key
94896 ++ ynh_handle_getopts_args --app=joomla --key=phpversion
94896 ++ set +o xtrace
94923 ++ app=joomla
94923 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
94923 ++ ynh_app_setting get joomla phpversion
94924 ++ set +o xtrace
94981 + local old_phpversion=8.1
94982 + '[' -n 8.1 ']'
94982 + '[' 8.1 '!=' 7.4 ']'
94982 ++ ynh_app_setting_get --app=joomla --key=fpm_config_dir
94982 ++ local _globalapp=joomla
94982 ++ local legacy_args=ak
94983 ++ args_array=(['a']='app=' ['k']='key=')
94983 ++ local -A args_array
94983 ++ local app
94983 ++ local key
94983 ++ ynh_handle_getopts_args --app=joomla --key=fpm_config_dir
94983 ++ set +o xtrace
95014 ++ app=joomla
95014 ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
95015 ++ ynh_app_setting get joomla fpm_config_dir
95015 ++ set +o xtrace
95075 + local old_php_fpm_config_dir=/etc/php/8.1/fpm
95075 + local old_php_finalphpconf=/etc/php/8.1/fpm/pool.d/joomla.conf
95076 + [[ -f /etc/php/8.1/fpm/pool.d/joomla.conf ]]
95076 + ynh_backup_if_checksum_is_different --file=/etc/php/8.1/fpm/pool.d/joomla.conf
95076 + local legacy_args=f
95076 + args_array=(['f']='file=')
95077 + local -A args_array
95077 + local file
95077 + ynh_handle_getopts_args --file=/etc/php/8.1/fpm/pool.d/joomla.conf
95077 + set +o xtrace
95085 + local checksum_setting_name=checksum__etc_php_8.1_fpm_pool.d_joomla.conf
95086 ++ ynh_app_setting_get --app=joomla --key=checksum__etc_php_8.1_fpm_pool.d_joomla.conf
95086 ++ local _globalapp=joomla
95086 ++ local legacy_args=ak
95087 ++ args_array=(['a']='app=' ['k']='key=')
95087 ++ local -A args_array
95087 ++ local app
95087 ++ local key
95088 ++ ynh_handle_getopts_args --app=joomla --key=checksum__etc_php_8.1_fpm_pool.d_joomla.conf
95088 ++ set +o xtrace
95118 ++ app=joomla
95118 ++ [[ checksum__etc_php_8.1_fpm_pool.d_joomla.conf =~ (unprotected|protected|skipped)_ ]]
95118 ++ ynh_app_setting get joomla checksum__etc_php_8.1_fpm_pool.d_joomla.conf
95119 ++ set +o xtrace
95201 + local checksum_value=0678ec3518313330267f13bd992313ea
95202 + backup_file_checksum=
95202 + '[' -n 0678ec3518313330267f13bd992313ea ']'
95203 + '[' -e /etc/php/8.1/fpm/pool.d/joomla.conf ']'
95203 + echo '0678ec3518313330267f13bd992313ea /etc/php/8.1/fpm/pool.d/joomla.conf'
95203 + md5sum --check --status
95204 + ynh_remove_fpm_config
95205 ++ ynh_app_setting_get --app=joomla --key=fpm_config_dir
95205 ++ local _globalapp=joomla
95205 ++ local legacy_args=ak
95206 ++ args_array=(['a']='app=' ['k']='key=')
95206 ++ local -A args_array
95206 ++ local app
95206 ++ local key
95207 ++ ynh_handle_getopts_args --app=joomla --key=fpm_config_dir
95207 ++ set +o xtrace
95235 ++ app=joomla
95236 ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
95236 ++ ynh_app_setting get joomla fpm_config_dir
95236 ++ set +o xtrace
95294 + local fpm_config_dir=/etc/php/8.1/fpm
95294 ++ ynh_app_setting_get --app=joomla --key=fpm_service
95295 ++ local _globalapp=joomla
95295 ++ local legacy_args=ak
95295 ++ args_array=(['a']='app=' ['k']='key=')
95295 ++ local -A args_array
95295 ++ local app
95295 ++ local key
95296 ++ ynh_handle_getopts_args --app=joomla --key=fpm_service
95296 ++ set +o xtrace
95324 ++ app=joomla
95324 ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
95324 ++ ynh_app_setting get joomla fpm_service
95324 ++ set +o xtrace
95382 + local fpm_service=php8.1-fpm
95382 ++ ynh_app_setting_get --app=joomla --key=fpm_dedicated_service
95383 ++ local _globalapp=joomla
95383 ++ local legacy_args=ak
95383 ++ args_array=(['a']='app=' ['k']='key=')
95383 ++ local -A args_array
95383 ++ local app
95384 ++ local key
95384 ++ ynh_handle_getopts_args --app=joomla --key=fpm_dedicated_service
95384 ++ set +o xtrace
95411 ++ app=joomla
95412 ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
95412 ++ ynh_app_setting get joomla fpm_dedicated_service
95412 ++ set +o xtrace
95469 + local dedicated_service=0
95470 + dedicated_service=0
95470 ++ ynh_app_setting_get --app=joomla --key=phpversion
95470 ++ local _globalapp=joomla
95471 ++ local legacy_args=ak
95471 ++ args_array=(['a']='app=' ['k']='key=')
95471 ++ local -A args_array
95471 ++ local app
95471 ++ local key
95471 ++ ynh_handle_getopts_args --app=joomla --key=phpversion
95472 ++ set +o xtrace
95499 ++ app=joomla
95500 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
95500 ++ ynh_app_setting get joomla phpversion
95500 ++ set +o xtrace
95557 + local phpversion=8.1
95557 + phpversion=8.1
95557 + '[' -z /etc/php/8.1/fpm ']'
95558 + ynh_secure_remove --file=/etc/php/8.1/fpm/pool.d/joomla.conf
95558 + local legacy_args=f
95558 + args_array=(['f']='file=')
95558 + local -A args_array
95558 + local file
95559 + ynh_handle_getopts_args --file=/etc/php/8.1/fpm/pool.d/joomla.conf
95559 + set +o xtrace
95567 + set +o xtrace
95576 + '[' -e /etc/php/8.1/fpm/conf.d/20-joomla.ini ']'
95576 + '[' 0 -eq 1 ']'
95577 + ynh_package_is_installed --package=php8.1-fpm
95577 + local legacy_args=p
95577 + args_array=(['p']='package=')
95577 + local -A args_array
95577 + local package
95577 + ynh_handle_getopts_args --package=php8.1-fpm
95578 + set +o xtrace
95585 + ynh_wait_dpkg_free
95586 + local try
95586 + set +o xtrace
95704 + return 0
95705 + dpkg-query --show '--showformat=${Status}' php8.1-fpm
95705 + grep --count 'ok installed'
95718 + ynh_systemd_action --service_name=php8.1-fpm --action=reload
95719 + local legacy_args=nalpte
95719 + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
95719 + local -A args_array
95720 + local service_name
95720 + local action
95720 + local line_match
95720 + local length
95720 + local log_path
95720 + local timeout
95721 + ynh_handle_getopts_args --service_name=php8.1-fpm --action=reload
95721 + set +o xtrace
95796 + service_name=php8.1-fpm
95796 + action=reload
95796 + line_match=
95796 + length=20
95797 + log_path=/var/log/php8.1-fpm/php8.1-fpm.log
95797 + timeout=300
95797 + '[' reload == stop ']'
95797 + [[ -n '' ]]
95797 + '[' reload == reload ']'
95798 + action=reload-or-restart
95798 ++ date --utc --rfc-3339=seconds
95798 ++ cut -d+ -f1
95799 + local 'time_start=2023-08-17 18:05:01 UTC'
95799 + systemctl reload-or-restart php8.1-fpm
95809 + [[ -n '' ]]
95810 + '[' 8.1 '!=' 7.4 ']'
95810 + '[' -n '' ']'
95810 + ynh_app_setting_set --app=joomla --key=phpversion --value=7.4
95811 + local _globalapp=joomla
95811 + local legacy_args=akv
95811 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
95811 + local -A args_array
95811 + local app
95812 + local key
95812 + local value
95812 + ynh_handle_getopts_args --app=joomla --key=phpversion --value=7.4
95812 + set +o xtrace
95874 + app=joomla
95874 + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
95875 + ynh_app_setting set joomla phpversion 7.4
95875 + set +o xtrace
95940 + test -e /usr/bin/php7.4
95940 + update-alternatives --set php /usr/bin/php7.4
95942 ++ ynh_package_is_installed postgresql-13
95942 ++ local legacy_args=p
95943 ++ args_array=(['p']='package=')
95943 ++ local -A args_array
95943 ++ local package
95943 ++ ynh_handle_getopts_args postgresql-13
95943 ++ set +o xtrace
95950 ++ echo '! Helper used in legacy mode !'
95950 ++ set +x
95952 ++ ynh_wait_dpkg_free
95952 ++ local try
95952 ++ set +o xtrace
96062 ++ return 0
96062 ++ dpkg-query --show '--showformat=${Status}' postgresql-13
96063 ++ grep --count 'ok installed'
96076 ++ echo no
96076 + local psql_installed=no
96076 + [[ true == \t\r\u\e ]]
96077 + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
96077 + cat
96078 + ynh_package_install_from_equivs /tmp/joomla-ynh-deps.control
96078 + local controlfile=/tmp/joomla-ynh-deps.control
96079 ++ grep '^Package: ' /tmp/joomla-ynh-deps.control
96079 ++ cut '--delimiter= ' --fields=2
96081 + local pkgname=joomla-ynh-deps
96082 ++ grep '^Version: ' /tmp/joomla-ynh-deps.control
96082 ++ cut '--delimiter= ' --fields=2
96084 + local pkgversion=4.2.6~ynh2
96084 + [[ -z joomla-ynh-deps ]]
96084 + [[ -z 4.2.6~ynh2 ]]
96084 + ynh_package_update
96085 + ynh_apt update
96085 + ynh_wait_dpkg_free
96085 + local try
96085 + set +o xtrace
96217 + return 0
96218 + LC_ALL=C
96218 + DEBIAN_FRONTEND=noninteractive
96218 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
96351 Hit:1 http://forge.yunohost.org/debian bullseye InRelease
96357 Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
96360 Hit:3 http://ftp.debian.org/debian bullseye InRelease
96380 Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
96425 Hit:5 https://packages.sury.org/php bullseye InRelease
99837 Reading package lists...
99851 ++ mktemp --directory
99852 + local TMPDIR=/tmp/tmp.XZ5AhXqHoO
99852 + rm -f /usr/share/equivs/template/debian/compat
99853 + ynh_wait_dpkg_free
99853 + local try
99854 + set +o xtrace
99970 + return 0
99970 + cp /tmp/joomla-ynh-deps.control /tmp/tmp.XZ5AhXqHoO/control
99972 + cd /tmp/tmp.XZ5AhXqHoO
99972 + LC_ALL=C
99973 + equivs-build ./control
100157 dpkg-buildpackage: info: source package joomla-ynh-deps
100157 dpkg-buildpackage: info: source version 4.2.6~ynh2
100157 dpkg-buildpackage: info: source distribution unstable
100157 dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@lcz.nohost.me>
100204  dpkg-source --before-build .
100204 dpkg-buildpackage: info: host architecture amd64
100344  debian/rules clean
100346 dh clean
100454    dh_clean
100498  debian/rules binary
100500 dh binary
100592    dh_update_autotools_config
100631    dh_autoreconf
100687    create-stamp debian/debhelper-build-stamp
100687    dh_prep
100726    dh_install
100773    dh_installdocs
100826    dh_installchangelogs
100939    dh_perl
100989    dh_link
101036    dh_strip_nondeterminism
101117    dh_compress
101171    dh_fixperms
101224    dh_missing
101260    dh_installdeb
101306    dh_gencontrol
101461    dh_md5sums
101507    dh_builddeb
101543 dpkg-deb: building package 'joomla-ynh-deps' in '../joomla-ynh-deps_4.2.6~ynh2_all.deb'.
101608  dpkg-genbuildinfo --build=binary
102117  dpkg-genchanges --build=binary >../joomla-ynh-deps_4.2.6~ynh2_amd64.changes
102228 dpkg-genchanges: info: binary-only upload (no source code included)
102232  dpkg-source --after-build .
102373 dpkg-buildpackage: info: binary-only upload (no source included)
102378 
102378 The package has been created.
102378 Attention, the package has been created in the current directory,
102378 not in ".." as indicated by the message above!
102380 + LC_ALL=C
102380 + dpkg --force-depends --install ./joomla-ynh-deps_4.2.6~ynh2_all.deb
102380 + tee ./dpkg_log
103276 (Reading database ... 80366 files and directories currently installed.)
103279 Preparing to unpack .../joomla-ynh-deps_4.2.6~ynh2_all.deb ...
103514 Unpacking joomla-ynh-deps (4.2.6~ynh2) over (4.2.6~ynh1) ...
103903 dpkg: joomla-ynh-deps: dependency problems, but configuring anyway as you requested:
103904  joomla-ynh-deps depends on php7.4-bz2; however:
103904   Package php7.4-bz2 is not installed.
103904  joomla-ynh-deps depends on php7.4-memcache; however:
103904   Package php7.4-memcache is not installed.
103904  joomla-ynh-deps depends on php7.4-memcached; however:
103904   Package php7.4-memcached is not installed.
103904  joomla-ynh-deps depends on php7.4-mcrypt; however:
103904   Package php7.4-mcrypt is not installed.
103905 
103905 Setting up joomla-ynh-deps (4.2.6~ynh2) ...
104232 + ynh_package_install --fix-broken
104233 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
104233 + ynh_wait_dpkg_free
104234 + local try
104234 + set +o xtrace
104378 + return 0
104379 + LC_ALL=C
104379 + DEBIAN_FRONTEND=noninteractive
104379 + 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
104918 Reading package lists...
105096 Building dependency tree...
105097 Reading state information...
105238 Correcting dependencies... Done
105442 The following additional packages will be installed:
105442   php7.4-bz2 php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd
105443   php7.4-igbinary php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring
105443   php7.4-mcrypt php7.4-memcache php7.4-memcached php7.4-msgpack php7.4-mysql
105443   php7.4-opcache php7.4-readline php7.4-xml php7.4-zip
105444 Suggested packages:
105445   memcached
105604 The following NEW packages will be installed:
105604   php7.4-bz2 php7.4-igbinary php7.4-mcrypt php7.4-memcache php7.4-memcached
105604   php7.4-msgpack
105606 The following packages will be upgraded:
105606   php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd php7.4-intl
105606   php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache
105607   php7.4-readline php7.4-xml php7.4-zip
105960 14 upgraded, 6 newly installed, 0 to remove and 20 not upgraded.
105960 Need to get 4787 kB of archives.
105961 After this operation, 651 kB of additional disk space will be used.
105962 Get:1 https://packages.sury.org/php bullseye/main amd64 php7.4-json amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [19.4 kB]
106016 Get:2 https://packages.sury.org/php bullseye/main amd64 php7.4-opcache amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [198 kB]
106057 Get:3 https://packages.sury.org/php bullseye/main amd64 php7.4-readline amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [12.4 kB]
106076 Get:4 https://packages.sury.org/php bullseye/main amd64 php7.4-cli amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [1431 kB]
106149 Get:5 https://packages.sury.org/php bullseye/main amd64 php7.4-zip amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [21.4 kB]
106173 Get:6 https://packages.sury.org/php bullseye/main amd64 php7.4-xml amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [99.5 kB]
106192 Get:7 https://packages.sury.org/php bullseye/main amd64 php7.4-mysql amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [121 kB]
106203 Get:8 https://packages.sury.org/php bullseye/main amd64 php7.4-mbstring amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [398 kB]
106220 Get:9 https://packages.sury.org/php bullseye/main amd64 php7.4-ldap amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [29.7 kB]
106238 Get:10 https://packages.sury.org/php bullseye/main amd64 php7.4-intl amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [123 kB]
106248 Get:11 https://packages.sury.org/php bullseye/main amd64 php7.4-gd amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [28.0 kB]
106259 Get:12 https://packages.sury.org/php bullseye/main amd64 php7.4-fpm amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [1444 kB]
106292 Get:13 https://packages.sury.org/php bullseye/main amd64 php7.4-curl amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [31.1 kB]
106293 Get:14 https://packages.sury.org/php bullseye/main amd64 php7.4-common amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [648 kB]
106300 Get:15 https://packages.sury.org/php bullseye/main amd64 php7.4-igbinary amd64 3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca [34.6 kB]
106308 Get:16 https://packages.sury.org/php bullseye/main amd64 php7.4-mcrypt amd64 3:1.0.6-1+0~20230612.13+debian11~1.gbp3589bd [16.3 kB]
106318 Get:17 https://packages.sury.org/php bullseye/main amd64 php7.4-memcache amd64 1:4.0.5.2-1+0~20230716.5+debian11~1.gbpe9883d [47.6 kB]
106331 Get:18 https://packages.sury.org/php bullseye/main amd64 php7.4-msgpack amd64 1:2.1.2-2+0~20230617.7+debian11~1.gbp0da644 [29.0 kB]
106342 Get:19 https://packages.sury.org/php bullseye/main amd64 php7.4-memcached amd64 3.2.0++-1+0~20230622.54+debian11~1.gbp8f3995 [44.7 kB]
106360 Get:20 https://packages.sury.org/php bullseye/main amd64 php7.4-bz2 amd64 1:7.4.33-7+0~20230815.86+debian11~1.gbp091944 [10.4 kB]
107338 apt-listchanges: Reading changelogs...
107662 Fetched 4787 kB in 1s (6410 kB/s)
109982 (Reading database ... 80366 files and directories currently installed.)
109985 Preparing to unpack .../00-php7.4-json_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
110473 Unpacking php7.4-json (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
111226 Preparing to unpack .../01-php7.4-opcache_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
111642 Unpacking php7.4-opcache (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
112399 Preparing to unpack .../02-php7.4-readline_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
112790 Unpacking php7.4-readline (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
113506 Preparing to unpack .../03-php7.4-cli_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
113729 Unpacking php7.4-cli (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
114849 Preparing to unpack .../04-php7.4-zip_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
115332 Unpacking php7.4-zip (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
116066 Preparing to unpack .../05-php7.4-xml_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
117212 Unpacking php7.4-xml (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
117981 Preparing to unpack .../06-php7.4-mysql_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
118672 Unpacking php7.4-mysql (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
119498 Preparing to unpack .../07-php7.4-mbstring_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
119888 Unpacking php7.4-mbstring (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
120694 Preparing to unpack .../08-php7.4-ldap_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
121093 Unpacking php7.4-ldap (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
121834 Preparing to unpack .../09-php7.4-intl_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
122243 Unpacking php7.4-intl (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
123018 Preparing to unpack .../10-php7.4-gd_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
123410 Unpacking php7.4-gd (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
124812 Preparing to unpack .../11-php7.4-fpm_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
125080 Unpacking php7.4-fpm (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
126199 Preparing to unpack .../12-php7.4-curl_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
126616 Unpacking php7.4-curl (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
127371 Preparing to unpack .../13-php7.4-common_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
130382 Unpacking php7.4-common (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) over (1:7.4.33-6+0~20230609.83+debian11~1.gbp32abef) ...
131347 Selecting previously unselected package php7.4-igbinary.
131357 Preparing to unpack .../14-php7.4-igbinary_3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca_amd64.deb ...
131428 Unpacking php7.4-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca) ...
132084 Selecting previously unselected package php7.4-mcrypt.
132095 Preparing to unpack .../15-php7.4-mcrypt_3%3a1.0.6-1+0~20230612.13+debian11~1.gbp3589bd_amd64.deb ...
132166 Unpacking php7.4-mcrypt (3:1.0.6-1+0~20230612.13+debian11~1.gbp3589bd) ...
132790 Selecting previously unselected package php7.4-memcache.
132800 Preparing to unpack .../16-php7.4-memcache_1%3a4.0.5.2-1+0~20230716.5+debian11~1.gbpe9883d_amd64.deb ...
132872 Unpacking php7.4-memcache (1:4.0.5.2-1+0~20230716.5+debian11~1.gbpe9883d) ...
133560 Selecting previously unselected package php7.4-msgpack.
133571 Preparing to unpack .../17-php7.4-msgpack_1%3a2.1.2-2+0~20230617.7+debian11~1.gbp0da644_amd64.deb ...
133699 Unpacking php7.4-msgpack (1:2.1.2-2+0~20230617.7+debian11~1.gbp0da644) ...
134377 Selecting previously unselected package php7.4-memcached.
134388 Preparing to unpack .../18-php7.4-memcached_3.2.0++-1+0~20230622.54+debian11~1.gbp8f3995_amd64.deb ...
134670 Unpacking php7.4-memcached (3.2.0++-1+0~20230622.54+debian11~1.gbp8f3995) ...
135336 Selecting previously unselected package php7.4-bz2.
135347 Preparing to unpack .../19-php7.4-bz2_1%3a7.4.33-7+0~20230815.86+debian11~1.gbp091944_amd64.deb ...
135455 Unpacking php7.4-bz2 (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
135928 Setting up php7.4-common (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
147048 Setting up php7.4-curl (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
147894 Setting up php7.4-mysql (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
149996 Setting up php7.4-readline (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
150830 Setting up php7.4-mbstring (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
151664 Setting up php7.4-bz2 (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
152033 
152034 Creating config file /etc/php/7.4/mods-available/bz2.ini with new version
152934 Setting up php7.4-intl (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
153791 Setting up php7.4-zip (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
154637 Setting up php7.4-ldap (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
155483 Setting up php7.4-opcache (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
156306 Setting up php7.4-gd (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
157175 Setting up php7.4-json (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
158009 Setting up php7.4-xml (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
161987 Setting up php7.4-cli (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
166711 Setting up php7.4-msgpack (1:2.1.2-2+0~20230617.7+debian11~1.gbp0da644) ...
167302 Setting up php7.4-igbinary (3.2.14-1+0~20230618.45+debian11~1.gbpcc1dca) ...
168306 Setting up php7.4-mcrypt (3:1.0.6-1+0~20230612.13+debian11~1.gbp3589bd) ...
168931 Setting up php7.4-memcached (3.2.0++-1+0~20230622.54+debian11~1.gbp8f3995) ...
169546 Setting up php7.4-fpm (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
175289 Setting up php7.4-memcache (1:4.0.5.2-1+0~20230716.5+debian11~1.gbpe9883d) ...
175839 Processing triggers for man-db (2.9.4-2) ...
176564 Processing triggers for php7.4-cli (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
176700 Processing triggers for php7.4-fpm (1:7.4.33-7+0~20230815.86+debian11~1.gbp091944) ...
177293 + [[ -n /tmp/tmp.XZ5AhXqHoO ]]
177293 + rm --recursive --force /tmp/tmp.XZ5AhXqHoO
177294 + ynh_package_is_installed joomla-ynh-deps
177295 + local legacy_args=p
177295 + args_array=(['p']='package=')
177295 + local -A args_array
177295 + local package
177295 + ynh_handle_getopts_args joomla-ynh-deps
177296 + set +o xtrace
177302 + echo '! Helper used in legacy mode !'
177302 + set +x
177304 + ynh_wait_dpkg_free
177304 + local try
177304 + set +o xtrace
177435 + return 0
177435 + dpkg-query --show '--showformat=${Status}' joomla-ynh-deps
177436 + grep --count 'ok installed'
177449 + rm /tmp/joomla-ynh-deps.control
177451 ++ ynh_package_is_installed postgresql-13
177451 ++ local legacy_args=p
177452 ++ args_array=(['p']='package=')
177452 ++ local -A args_array
177452 ++ local package
177452 ++ ynh_handle_getopts_args postgresql-13
177452 ++ set +o xtrace
177459 ++ echo '! Helper used in legacy mode !'
177459 ++ set +x
177461 ++ ynh_wait_dpkg_free
177461 ++ local try
177461 ++ set +o xtrace
177595 ++ return 0
177595 ++ dpkg-query --show '--showformat=${Status}' postgresql-13
177596 ++ grep --count 'ok installed'
177609 ++ echo no
177609 + local psql_installed2=no
177610 + [[ no != \n\o ]]
177610 + ynh_script_progression '--message=Upgrading PHP-FPM configuration...'
177610 + set +o xtrace
177641 + set +o xtrace
177653 + echo '! Helper used in legacy mode !'
177653 + set +x
177654 [##########+.........] > Upgrading PHP-FPM configuration...
177655 + echo '[##########+.........] > Upgrading PHP-FPM configuration...'
177655 + set -o xtrace
177655 + ynh_add_fpm_config
177655 + local _globalphpversion=:
177656 + local legacy_args=vufpd
177656 + args_array=(['v']='phpversion=' ['u']='usage=' ['f']='footprint=' ['p']='package=' ['d']='dedicated_service')
177656 + local -A args_array
177656 + local phpversion
177656 + local usage
177656 + local footprint
177657 + local package
177657 + local dedicated_service
177657 + ynh_handle_getopts_args
177657 + set +o xtrace
177657 + package=
177658 + local autogenconf=false
177658 + usage=
177658 + footprint=
177658 + '[' -n '' ']'
177658 + '[' -n '' ']'
177659 + [[ -e /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/extra_php-fpm.conf ]]
177659 + dedicated_service=0
177659 + dpkg --compare-versions 1.0 lt 2
177659 + phpversion=7.4
177659 ++ ynh_app_setting_get --app=joomla --key=phpversion
177659 ++ local _globalapp=joomla
177659 ++ local legacy_args=ak
177660 ++ args_array=(['a']='app=' ['k']='key=')
177660 ++ local -A args_array
177660 ++ local app
177660 ++ local key
177660 ++ ynh_handle_getopts_args --app=joomla --key=phpversion
177660 ++ set +o xtrace
177687 ++ app=joomla
177687 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
177687 ++ ynh_app_setting get joomla phpversion
177688 ++ set +o xtrace
177745 + local old_phpversion=7.4
177746 + '[' -n 7.4 ']'
177746 + '[' 7.4 '!=' 7.4 ']'
177746 + '[' -n '' ']'
177746 + '[' 0 -eq 1 ']'
177746 + local fpm_service=php7.4-fpm
177746 + local fpm_config_dir=/etc/php/7.4/fpm
177747 + mkdir --parents /etc/php/7.4/fpm/pool.d
177747 + ynh_app_setting_set --app=joomla --key=fpm_config_dir --value=/etc/php/7.4/fpm
177747 + local _globalapp=joomla
177747 + local legacy_args=akv
177748 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
177748 + local -A args_array
177748 + local app
177748 + local key
177748 + local value
177748 + ynh_handle_getopts_args --app=joomla --key=fpm_config_dir --value=/etc/php/7.4/fpm
177749 + set +o xtrace
177807 + app=joomla
177807 + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
177807 + ynh_app_setting set joomla fpm_config_dir /etc/php/7.4/fpm
177807 + set +o xtrace
177866 + ynh_app_setting_set --app=joomla --key=fpm_service --value=php7.4-fpm
177867 + local _globalapp=joomla
177867 + local legacy_args=akv
177867 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
177867 + local -A args_array
177867 + local app
177867 + local key
177868 + local value
177868 + ynh_handle_getopts_args --app=joomla --key=fpm_service --value=php7.4-fpm
177868 + set +o xtrace
177928 + app=joomla
177928 + [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
177928 + ynh_app_setting set joomla fpm_service php7.4-fpm
177928 + set +o xtrace
177988 + ynh_app_setting_set --app=joomla --key=fpm_dedicated_service --value=0
177989 + local _globalapp=joomla
177989 + local legacy_args=akv
177989 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
177989 + local -A args_array
177989 + local app
177989 + local key
177990 + local value
177990 + ynh_handle_getopts_args --app=joomla --key=fpm_dedicated_service --value=0
177990 + set +o xtrace
178050 + app=joomla
178050 + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
178051 + ynh_app_setting set joomla fpm_dedicated_service 0
178051 + set +o xtrace
178110 + ynh_app_setting_set --app=joomla --key=phpversion --value=7.4
178110 + local _globalapp=joomla
178110 + local legacy_args=akv
178111 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
178111 + local -A args_array
178111 + local app
178111 + local key
178111 + local value
178111 + ynh_handle_getopts_args --app=joomla --key=phpversion --value=7.4
178112 + set +o xtrace
178171 + app=joomla
178172 + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
178172 + ynh_app_setting set joomla phpversion 7.4
178172 + set +o xtrace
178232 + '[' 0 -eq 1 ']'
178232 + '[' false == false ']'
178232 + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf
178232 + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf ']'
178232 + local finalphpconf=/etc/php/7.4/fpm/pool.d/joomla.conf
178233 + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf --destination=/etc/php/7.4/fpm/pool.d/joomla.conf
178233 + local legacy_args=tdv
178233 + args_array=(['t']='template=' ['d']='destination=')
178233 + local -A args_array
178233 + local template
178234 + local destination
178234 + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf --destination=/etc/php/7.4/fpm/pool.d/joomla.conf
178234 + set +o xtrace
178262 + local template_path
178262 + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf//var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf ']'
178263 + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf ']'
178263 + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf
178263 + ynh_backup_if_checksum_is_different --file=/etc/php/7.4/fpm/pool.d/joomla.conf
178263 + local legacy_args=f
178264 + args_array=(['f']='file=')
178264 + local -A args_array
178264 + local file
178264 + ynh_handle_getopts_args --file=/etc/php/7.4/fpm/pool.d/joomla.conf
178264 + set +o xtrace
178272 + local checksum_setting_name=checksum__etc_php_7.4_fpm_pool.d_joomla.conf
178272 ++ ynh_app_setting_get --app=joomla --key=checksum__etc_php_7.4_fpm_pool.d_joomla.conf
178273 ++ local _globalapp=joomla
178273 ++ local legacy_args=ak
178273 ++ args_array=(['a']='app=' ['k']='key=')
178273 ++ local -A args_array
178274 ++ local app
178274 ++ local key
178274 ++ ynh_handle_getopts_args --app=joomla --key=checksum__etc_php_7.4_fpm_pool.d_joomla.conf
178274 ++ set +o xtrace
178303 ++ app=joomla
178303 ++ [[ checksum__etc_php_7.4_fpm_pool.d_joomla.conf =~ (unprotected|protected|skipped)_ ]]
178303 ++ ynh_app_setting get joomla checksum__etc_php_7.4_fpm_pool.d_joomla.conf
178304 ++ set +o xtrace
178361 + local checksum_value=
178362 + backup_file_checksum=
178362 + '[' -n '' ']'
178362 + touch /etc/php/7.4/fpm/pool.d/joomla.conf
178363 + chown root:root /etc/php/7.4/fpm/pool.d/joomla.conf
178365 + chmod 640 /etc/php/7.4/fpm/pool.d/joomla.conf
178366 + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.conf /etc/php/7.4/fpm/pool.d/joomla.conf
178368 + _ynh_apply_default_permissions /etc/php/7.4/fpm/pool.d/joomla.conf
178368 + local target=/etc/php/7.4/fpm/pool.d/joomla.conf
178369 ++ ynh_read_manifest --manifest_key=requirements.yunohost
178369 ++ tr -d '<>= '
178369 ++ local legacy_args=mk
178370 ++ args_array=(['m']='manifest=' ['k']='manifest_key=')
178370 ++ local -A args_array
178370 ++ local manifest
178370 ++ local manifest_key
178371 ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost
178371 ++ set +o xtrace
178387 ++ '[' '!' -e '' ']'
178387 ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json ']'
178387 ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json
178388 ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json
178388 ++ grep -q '\.json$'
178389 ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json --raw-output
178438 + local ynh_requirement=11.0.9
178439 + dpkg --compare-versions 1.0 ge 2
178440 + '[' -z 11.0.9 ']'
178440 + '[' 11.0.9 == null ']'
178441 + dpkg --compare-versions 11.0.9 ge 4.2
178442 + chmod o-rwx /etc/php/7.4/fpm/pool.d/joomla.conf
178443 + chmod g-w /etc/php/7.4/fpm/pool.d/joomla.conf
178444 + chown -R root:root /etc/php/7.4/fpm/pool.d/joomla.conf
178446 + ynh_system_user_exists joomla
178447 + local legacy_args=u
178447 + args_array=(['u']='username=')
178447 + local -A args_array
178447 + local username
178447 + ynh_handle_getopts_args joomla
178447 + set +o xtrace
178454 + echo '! Helper used in legacy mode !'
178455 + set +x
178456 + getent passwd joomla
178458 + chown joomla:joomla /etc/php/7.4/fpm/pool.d/joomla.conf
178462 + echo /etc/php/7.4/fpm/pool.d/joomla.conf
178463 + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
178464 + chmod 400 /etc/php/7.4/fpm/pool.d/joomla.conf
178465 + chown root:root /etc/php/7.4/fpm/pool.d/joomla.conf
178467 + ynh_replace_vars --file=/etc/php/7.4/fpm/pool.d/joomla.conf
178467 + local legacy_args=f
178468 + args_array=(['f']='file=')
178468 + local -A args_array
178468 + local file
178468 + ynh_handle_getopts_args --file=/etc/php/7.4/fpm/pool.d/joomla.conf
178468 + set +o xtrace
178477 + test -n /
178477 + local path_url_slash_less=
178477 + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178478 + local legacy_args=mrf
178478 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178478 + local -A args_array
178478 + local match_string
178478 + local replace_string
178478 + local target_file
178479 + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178479 + set +o xtrace
178539 + set +o xtrace
178540 + sed --in-place $'s\001__PATH__/\001/\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178542 + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178542 + local legacy_args=mrf
178543 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178543 + local -A args_array
178543 + local match_string
178543 + local replace_string
178543 + local target_file
178543 + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178543 + set +o xtrace
178605 + set +o xtrace
178606 + sed --in-place $'s\001__PATH__\001/\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178608 + test -n joomla
178608 + ynh_replace_string --match_string=__NAME__ --replace_string=joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178608 + local legacy_args=mrf
178608 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178609 + local -A args_array
178609 + local match_string
178609 + local replace_string
178609 + local target_file
178609 + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178609 + set +o xtrace
178670 + set +o xtrace
178670 + sed --in-place $'s\001__NAME__\001joomla\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178673 + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178673 + local legacy_args=mrf
178673 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178673 + local -A args_array
178673 + local match_string
178674 + local replace_string
178674 + local target_file
178674 + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178674 + set +o xtrace
178735 + set +o xtrace
178736 + sed --in-place $'s\001__NAMETOCHANGE__\001joomla\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178738 + ynh_replace_string --match_string=__USER__ --replace_string=joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178738 + local legacy_args=mrf
178738 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178739 + local -A args_array
178739 + local match_string
178739 + local replace_string
178739 + local target_file
178739 + ynh_handle_getopts_args --match_string=__USER__ --replace_string=joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178739 + set +o xtrace
178801 + set +o xtrace
178801 + sed --in-place $'s\001__USER__\001joomla\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178803 + test -n /var/www/joomla
178803 + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178804 + local legacy_args=mrf
178804 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178804 + local -A args_array
178804 + local match_string
178804 + local replace_string
178804 + local target_file
178804 + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178805 + set +o xtrace
178866 + set +o xtrace
178866 + sed --in-place $'s\001__FINALPATH__\001/var/www/joomla\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178868 + ynh_replace_string --match_string=__INSTALL_DIR__ --replace_string=/var/www/joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178869 + local legacy_args=mrf
178869 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178869 + local -A args_array
178869 + local match_string
178869 + local replace_string
178870 + local target_file
178870 + ynh_handle_getopts_args --match_string=__INSTALL_DIR__ --replace_string=/var/www/joomla --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178870 + set +o xtrace
178932 + set +o xtrace
178932 + sed --in-place $'s\001__INSTALL_DIR__\001/var/www/joomla\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
178934 + dpkg --compare-versions 1.0 lt 2
178936 + test -n 7.4
178937 + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178937 + local legacy_args=mrf
178937 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
178937 + local -A args_array
178937 + local match_string
178937 + local replace_string
178938 + local target_file
178938 + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/php/7.4/fpm/pool.d/joomla.conf
178938 + set +o xtrace
179000 + set +o xtrace
179000 + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /etc/php/7.4/fpm/pool.d/joomla.conf
179002 + test -n ''
179003 ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.4/fpm/pool.d/joomla.conf
179004 ++ sort --unique
179004 ++ sed 's@__\([^.]*\)__@\L\1@g'
179006 + uniques_vars=()
179006 + local uniques_vars
179007 + local delimit=@
179007 + ynh_store_file_checksum --file=/etc/php/7.4/fpm/pool.d/joomla.conf
179007 + local legacy_args=f
179007 + args_array=(['f']='file=' ['u']='update_only')
179007 + local -A args_array
179008 + local file
179008 + local update_only
179008 + update_only=0
179008 + ynh_handle_getopts_args --file=/etc/php/7.4/fpm/pool.d/joomla.conf
179008 + set +o xtrace
179024 + local checksum_setting_name=checksum__etc_php_7.4_fpm_pool.d_joomla.conf
179024 + '[' 0 -eq 1 ']'
179025 ++ md5sum /etc/php/7.4/fpm/pool.d/joomla.conf
179025 ++ cut '--delimiter= ' --fields=1
179027 + ynh_app_setting_set --app=joomla --key=checksum__etc_php_7.4_fpm_pool.d_joomla.conf --value=db766a813c49eadaf64917a088a6dff1
179027 + local _globalapp=joomla
179028 + local legacy_args=akv
179028 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
179028 + local -A args_array
179028 + local app
179028 + local key
179028 + local value
179028 + ynh_handle_getopts_args --app=joomla --key=checksum__etc_php_7.4_fpm_pool.d_joomla.conf --value=db766a813c49eadaf64917a088a6dff1
179029 + set +o xtrace
179091 + app=joomla
179091 + [[ checksum__etc_php_7.4_fpm_pool.d_joomla.conf =~ (unprotected|protected|skipped)_ ]]
179092 + ynh_app_setting set joomla checksum__etc_php_7.4_fpm_pool.d_joomla.conf db766a813c49eadaf64917a088a6dff1
179092 + set +o xtrace
179151 + '[' 0 -eq 1 ']'
179152 + '[' -n '' ']'
179152 + unset backup_file_checksum
179152 + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/php-fpm.ini ']'
179152 + '[' 0 -eq 1 ']'
179153 + php-fpm7.4 --test
179229 + ynh_systemd_action --service_name=php7.4-fpm --action=reload
179229 + local legacy_args=nalpte
179229 + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
179229 + local -A args_array
179230 + local service_name
179230 + local action
179230 + local line_match
179230 + local length
179230 + local log_path
179230 + local timeout
179230 + ynh_handle_getopts_args --service_name=php7.4-fpm --action=reload
179231 + set +o xtrace
179311 + service_name=php7.4-fpm
179312 + action=reload
179312 + line_match=
179312 + length=20
179312 + log_path=/var/log/php7.4-fpm/php7.4-fpm.log
179312 + timeout=300
179313 + '[' reload == stop ']'
179313 + [[ -n '' ]]
179313 + '[' reload == reload ']'
179313 + action=reload-or-restart
179313 ++ date --utc --rfc-3339=seconds
179313 ++ cut -d+ -f1
179315 + local 'time_start=2023-08-17 18:06:24 UTC'
179315 + systemctl reload-or-restart php7.4-fpm
179324 + [[ -n '' ]]
179325 + ynh_script_progression '--message=Upgrading NGINX web server configuration...'
179325 + set +o xtrace
179360 + set +o xtrace
179374 + echo '! Helper used in legacy mode !'
179374 + set +x
179376 [###########+........] > Upgrading NGINX web server configuration...
179376 + echo '[###########+........] > Upgrading NGINX web server configuration...'
179376 + set -o xtrace
179377 + ynh_add_nginx_config
179377 + local finalnginxconf=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179377 + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179377 + local legacy_args=tdv
179377 + args_array=(['t']='template=' ['d']='destination=')
179377 + local -A args_array
179377 + local template
179377 + local destination
179377 + ynh_handle_getopts_args --template=nginx.conf --destination=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179378 + set +o xtrace
179409 + local template_path
179410 + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/nginx.conf ']'
179410 + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/nginx.conf
179410 + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179411 + local legacy_args=f
179411 + args_array=(['f']='file=')
179411 + local -A args_array
179411 + local file
179411 + ynh_handle_getopts_args --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179411 + set +o xtrace
179421 + local checksum_setting_name=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf
179422 ++ ynh_app_setting_get --app=joomla --key=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf
179422 ++ local _globalapp=joomla
179423 ++ local legacy_args=ak
179423 ++ args_array=(['a']='app=' ['k']='key=')
179423 ++ local -A args_array
179423 ++ local app
179423 ++ local key
179423 ++ ynh_handle_getopts_args --app=joomla --key=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf
179424 ++ set +o xtrace
179454 ++ app=joomla
179454 ++ [[ checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf =~ (unprotected|protected|skipped)_ ]]
179454 ++ ynh_app_setting get joomla checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf
179454 ++ set +o xtrace
179513 + local checksum_value=4ae07ecdeeca8116a20adad625d712e7
179513 + backup_file_checksum=
179513 + '[' -n 4ae07ecdeeca8116a20adad625d712e7 ']'
179513 + '[' -e /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf ']'
179514 + echo '4ae07ecdeeca8116a20adad625d712e7 /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf'
179514 + md5sum --check --status
179515 + touch /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179516 + chown root:root /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179518 + chmod 640 /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179519 + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/conf/nginx.conf /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179521 + _ynh_apply_default_permissions /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179521 + local target=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179522 ++ ynh_read_manifest --manifest_key=requirements.yunohost
179522 ++ tr -d '<>= '
179523 ++ local legacy_args=mk
179523 ++ args_array=(['m']='manifest=' ['k']='manifest_key=')
179523 ++ local -A args_array
179523 ++ local manifest
179524 ++ local manifest_key
179524 ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost
179524 ++ set +o xtrace
179541 ++ '[' '!' -e '' ']'
179541 ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json ']'
179541 ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json
179542 ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json
179542 ++ grep -q '\.json$'
179543 ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_m3dt35m1/manifest.json --raw-output
179592 + local ynh_requirement=11.0.9
179593 + dpkg --compare-versions 1.0 ge 2
179594 + '[' -z 11.0.9 ']'
179595 + '[' 11.0.9 == null ']'
179595 + dpkg --compare-versions 11.0.9 ge 4.2
179596 + chmod o-rwx /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179597 + chmod g-w /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179598 + chown -R root:root /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179600 + ynh_system_user_exists joomla
179601 + local legacy_args=u
179601 + args_array=(['u']='username=')
179601 + local -A args_array
179601 + local username
179601 + ynh_handle_getopts_args joomla
179601 + set +o xtrace
179608 + echo '! Helper used in legacy mode !'
179609 + set +x
179610 + getent passwd joomla
179612 + chown joomla:joomla /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179614 + echo /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179614 + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
179616 + chmod 400 /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179617 + chown root:root /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179619 + ynh_replace_vars --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179619 + local legacy_args=f
179620 + args_array=(['f']='file=')
179620 + local -A args_array
179620 + local file
179620 + ynh_handle_getopts_args --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179620 + set +o xtrace
179629 + test -n /
179630 + local path_url_slash_less=
179630 + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179630 + local legacy_args=mrf
179630 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
179630 + local -A args_array
179630 + local match_string
179631 + local replace_string
179631 + local target_file
179631 + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179631 + set +o xtrace
179695 + set +o xtrace
179695 + sed --in-place $'s\001__PATH__/\001/\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179697 + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179697 + local legacy_args=mrf
179698 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
179698 + local -A args_array
179698 + local match_string
179698 + local replace_string
179698 + local target_file
179698 + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179699 + set +o xtrace
179762 + set +o xtrace
179762 + sed --in-place $'s\001__PATH__\001/\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179764 + test -n joomla
179765 + ynh_replace_string --match_string=__NAME__ --replace_string=joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179765 + local legacy_args=mrf
179765 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
179765 + local -A args_array
179766 + local match_string
179766 + local replace_string
179766 + local target_file
179766 + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179766 + set +o xtrace
179830 + set +o xtrace
179830 + sed --in-place $'s\001__NAME__\001joomla\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179832 + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179833 + local legacy_args=mrf
179833 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
179833 + local -A args_array
179833 + local match_string
179833 + local replace_string
179833 + local target_file
179834 + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179834 + set +o xtrace
179898 + set +o xtrace
179898 + sed --in-place $'s\001__NAMETOCHANGE__\001joomla\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179900 + ynh_replace_string --match_string=__USER__ --replace_string=joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179900 + local legacy_args=mrf
179900 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
179901 + local -A args_array
179901 + local match_string
179901 + local replace_string
179901 + local target_file
179901 + ynh_handle_getopts_args --match_string=__USER__ --replace_string=joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179902 + set +o xtrace
179965 + set +o xtrace
179965 + sed --in-place $'s\001__USER__\001joomla\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179967 + test -n /var/www/joomla
179968 + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179968 + local legacy_args=mrf
179968 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
179968 + local -A args_array
179969 + local match_string
179969 + local replace_string
179969 + local target_file
179969 + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
179969 + set +o xtrace
180033 + set +o xtrace
180034 + sed --in-place $'s\001__FINALPATH__\001/var/www/joomla\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180036 + ynh_replace_string --match_string=__INSTALL_DIR__ --replace_string=/var/www/joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180036 + local legacy_args=mrf
180037 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
180037 + local -A args_array
180037 + local match_string
180037 + local replace_string
180037 + local target_file
180037 + ynh_handle_getopts_args --match_string=__INSTALL_DIR__ --replace_string=/var/www/joomla --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180038 + set +o xtrace
180102 + set +o xtrace
180102 + sed --in-place $'s\001__INSTALL_DIR__\001/var/www/joomla\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180104 + dpkg --compare-versions 1.0 lt 2
180106 + test -n 7.4
180106 + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180107 + local legacy_args=mrf
180107 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
180107 + local -A args_array
180107 + local match_string
180107 + local replace_string
180108 + local target_file
180108 + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180108 + set +o xtrace
180172 + set +o xtrace
180172 + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180174 + test -n ''
180175 ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180176 ++ sort --unique
180176 ++ sed 's@__\([^.]*\)__@\L\1@g'
180178 + uniques_vars=()
180179 + local uniques_vars
180179 + local delimit=@
180179 + ynh_store_file_checksum --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180179 + local legacy_args=f
180179 + args_array=(['f']='file=' ['u']='update_only')
180179 + local -A args_array
180180 + local file
180180 + local update_only
180180 + update_only=0
180180 + ynh_handle_getopts_args --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180180 + set +o xtrace
180197 + local checksum_setting_name=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf
180197 + '[' 0 -eq 1 ']'
180198 ++ md5sum /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180198 ++ cut '--delimiter= ' --fields=1
180200 + ynh_app_setting_set --app=joomla --key=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf --value=2a7aff8758936b6e3ad76bde72a47723
180200 + local _globalapp=joomla
180200 + local legacy_args=akv
180201 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
180201 + local -A args_array
180201 + local app
180201 + local key
180201 + local value
180201 + ynh_handle_getopts_args --app=joomla --key=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf --value=2a7aff8758936b6e3ad76bde72a47723
180202 + set +o xtrace
180266 + app=joomla
180266 + [[ checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf =~ (unprotected|protected|skipped)_ ]]
180266 + ynh_app_setting set joomla checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf 2a7aff8758936b6e3ad76bde72a47723
180267 + set +o xtrace
180326 + '[' 0 -eq 1 ']'
180326 + '[' -n '' ']'
180327 + unset backup_file_checksum
180327 + '[' / '!=' / ']'
180327 + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180327 + local legacy_args=mrf
180327 + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=')
180327 + local -A args_array
180328 + local match_string
180328 + local replace_string
180328 + local target_file
180328 + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180328 + set +o xtrace
180392 + set +o xtrace
180393 + sed --in-place 's^#root_path_onlyg' /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180394 + ynh_store_file_checksum --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180395 + local legacy_args=f
180395 + args_array=(['f']='file=' ['u']='update_only')
180395 + local -A args_array
180395 + local file
180396 + local update_only
180396 + update_only=0
180396 + ynh_handle_getopts_args --file=/etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180396 + set +o xtrace
180412 + local checksum_setting_name=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf
180413 + '[' 0 -eq 1 ']'
180413 ++ md5sum /etc/nginx/conf.d/monnaielibre.lcz.nohost.me.d/joomla.conf
180414 ++ cut '--delimiter= ' --fields=1
180416 + ynh_app_setting_set --app=joomla --key=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf --value=2a7aff8758936b6e3ad76bde72a47723
180416 + local _globalapp=joomla
180416 + local legacy_args=akv
180417 + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
180417 + local -A args_array
180417 + local app
180417 + local key
180417 + local value
180417 + ynh_handle_getopts_args --app=joomla --key=checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf --value=2a7aff8758936b6e3ad76bde72a47723
180418 + set +o xtrace
180481 + app=joomla
180481 + [[ checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf =~ (unprotected|protected|skipped)_ ]]
180482 + ynh_app_setting set joomla checksum__etc_nginx_conf.d_monnaielibre.lcz.nohost.me.d_joomla.conf 2a7aff8758936b6e3ad76bde72a47723
180482 + set +o xtrace
180541 + '[' 0 -eq 1 ']'
180542 + '[' -n '' ']'
180542 + unset backup_file_checksum
180542 + ynh_systemd_action --service_name=nginx --action=reload
180542 + local legacy_args=nalpte
180542 + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
180543 + local -A args_array
180543 + local service_name
180543 + local action
180543 + local line_match
180543 + local length
180543 + local log_path
180544 + local timeout
180544 + ynh_handle_getopts_args --service_name=nginx --action=reload
180544 + set +o xtrace
180625 + service_name=nginx
180625 + action=reload
180625 + line_match=
180625 + length=20
180626 + log_path=/var/log/nginx/nginx.log
180626 + timeout=300
180626 + '[' reload == stop ']'
180626 + [[ -n '' ]]
180626 + '[' reload == reload ']'
180627 + action=reload-or-restart
180627 ++ cut -d+ -f1
180627 ++ date --utc --rfc-3339=seconds
180628 + local 'time_start=2023-08-17 18:06:25 UTC'
180628 + systemctl reload-or-restart nginx
180721 + [[ -n '' ]]
180721 + ynh_script_progression '--message=Restoring configuration file...'
180722 + set +o xtrace
180756 + set +o xtrace
180769 + echo '! Helper used in legacy mode !'
180769 + set +x
180772 [############++......] > Restoring configuration file...
180772 + echo '[############++......] > Restoring configuration file...'
180773 + set -o xtrace
180773 + mv -f /tmp/tmp.YENYVjI4Hs/configuration.php /var/www/joomla/configuration.php
180774 + ynh_secure_remove --file=/tmp/tmp.YENYVjI4Hs
180775 + local legacy_args=f
180775 + args_array=(['f']='file=')
180775 + local -A args_array
180776 + local file
180776 + ynh_handle_getopts_args --file=/tmp/tmp.YENYVjI4Hs
180776 + set +o xtrace
180786 + set +o xtrace
180798 + chmod 400 /var/www/joomla/configuration.php
180800 + chown joomla:joomla /var/www/joomla/configuration.php
180802 + ynh_script_progression '--message=Upgrading logrotate configuration...'
180802 + set +o xtrace
180834 + set +o xtrace
180846 + echo '! Helper used in legacy mode !'
180846 + set +x
180848 [##############+.....] > Upgrading logrotate configuration...
180848 + echo '[##############+.....] > Upgrading logrotate configuration...'
180848 + set -o xtrace
180849 + mkdir -p /var/log/joomla
180850 + chmod 750 /var/log/joomla
180851 + chmod -R o-rwx /var/log/joomla
180902 + chown -R joomla:www-data /var/log/joomla
180904 + ynh_use_logrotate --non-append
180905 + all_args=('--non-append')
180906 + local all_args
180906 ++ seq 0 0
180909 + for I in $(seq 0 $(($# - 1)))
180909 + [[ --non-append == \-\-\n\o\n\-\a\p\p\e\n\d ]]
180910 + all_args[$I]=--nonappend
180910 + set -- --nonappend
180910 + local legacy_args=lnu
180911 + args_array=(['l']='logfile=' ['n']='nonappend' ['u']='specific_user=')
180911 + local -A args_array
180911 + local logfile
180911 + local nonappend
180912 + local specific_user
180912 + ynh_handle_getopts_args --nonappend
180912 + set +o xtrace
180940 + logfile=
180940 + nonappend=1
180940 + specific_user=
180940 + '[' 1 -gt 0 ']'
180941 ++ echo -
180941 + '[' - '!=' - ']'
180941 + local 'customtee=tee --append'
180941 + '[' 1 -eq 1 ']'
180941 + customtee=tee
180942 + '[' -n '' ']'
180942 + logfile='/var/log/joomla/*.log'
180942 + local su_directive=
180942 + [[ -n '' ]]
180942 + cat
180943 ++ dirname '/var/log/joomla/*.log'
180945 + mkdir --parents /var/log/joomla
180946 + cat joomla-logrotate
180947 + tee /etc/logrotate.d/joomla
180949 + ynh_script_progression '--message=Reloading NGINX web server...'
180949 + set +o xtrace
180982 + set +o xtrace
180994 + echo '! Helper used in legacy mode !'
180994 + set +x
180996 [###############++...] > Reloading NGINX web server...
180996 + echo '[###############++...] > Reloading NGINX web server...'
180996 + set -o xtrace
180997 + ynh_systemd_action --service_name=nginx --action=reload
180997 + local legacy_args=nalpte
180997 + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=')
180997 + local -A args_array
180997 + local service_name
180997 + local action
180998 + local line_match
180998 + local length
180998 + local log_path
180998 + local timeout
180998 + ynh_handle_getopts_args --service_name=nginx --action=reload
180998 + set +o xtrace
181081 + service_name=nginx
181082 + action=reload
181082 + line_match=
181082 + length=20
181082 + log_path=/var/log/nginx/nginx.log
181083 + timeout=300
181083 + '[' reload == stop ']'
181083 + [[ -n '' ]]
181083 + '[' reload == reload ']'
181083 + action=reload-or-restart
181083 ++ date --utc --rfc-3339=seconds
181084 ++ cut -d+ -f1
181085 + local 'time_start=2023-08-17 18:06:26 UTC'
181085 + systemctl reload-or-restart nginx
181162 + [[ -n '' ]]
181162 + ynh_script_progression '--message=Upgrade of joomla completed'
181162 + set +o xtrace
181196 + set +o xtrace
181209 + echo '! Helper used in legacy mode !'
181210 + set +x
181212 + echo '[#################+..] > Upgrade of joomla completed'
181212 [#################+..] > Upgrade of joomla completed
181212 + set -o xtrace
181212 + ynh_exit_properly
181213 + local exit_code=0
181213 + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
181213 + rm -rf /var/cache/yunohost/download/
181213 + '[' 0 -eq 0 ']'
181213 + exit 0
182217 Checking that required services are up and running...
183144 joomla upgraded
183151 To view the log of the operation 'Upgrade the 'joomla' app', use the command 'yunohost log show 20230817-180328-app_upgrade-joomla'
183230 The permission database has been resynchronized
183323 SSOwat configuration regenerated
183329 Upgrade complete
183330 action [68711.1] executed in 183.177s
183330 lock has been released

En conclusion, le site Joomla fonctionne correctement.
Le jour où j’aurais résolu mes problèmes de compatibilités pour passer en PHP 8.2 je taperais alors dans un shell la commande suivante :

sudo yunohost app upgrade joomla -u https://github.com/YunoHost-Apps/joomla_ynh/tree/Php8.2 -F --debug

n’est ce pas ?

Merci beaucoup pour votre aide précieuse.
Très belle soirée.

Non. Pour l’instant ne mets plus à jour joomla via la webadmin de yunohost parce que ça va passer en version 8.

Oui, bien compris.

Ce qui me surprend, c’est que je viens de faire une install sur YNH d’un Joomla, (et donc un joomla 4) et quand je regarde ses caractéristique il tourne en PHP 8…

Et quand je regarde les caractéristiques de mon site transférer de LWS (Joomla 3.10.x) il tourne bien avec la modif en PHP 7.4.

:point_right: cela indique que YNH gère bien les deux PHP en même temps.
Donc il doit être possible à l’image de ce que propose My webapp de paramétrer la version du PHP optimisé pour le site qu’on souhaite faire tourner.
Cela serait excellent d’avoir cette interface accessible pour un béotien comme moi.

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