Erreur lors de la mise à jour de Matomo

Bonjour,

Je poste car lors de ma dernière tentative de mise à jour de l’application Matomo, j’ai eu l’erreur ci dessous :

Warning: ERROR [2021-07-29 09:07:49] 28219  Uncaught exception: /var/www/matomo/                                                                                                                                  vendor/matomo/doctrine-cache-fork/lib/Doctrine/Common/Cache/FileCache.php(84): T                                                                                                                                  he directory "/var/www/matomo/tmp/cache/tracker/" does not exist and could not b                                                                                                                                  e created. [Query: , CLI mode: 1]
Warning:   [InvalidArgumentException]
Warning:   The directory "/var/www/matomo/tmp/cache/tracker/" does not exist and                                                                                                                                   could
Warning:    not be created.
Warning: [Error] Upgrade failed.

### Mon serveur YunoHost

Matériel: Viel ordinateur.
Version de YunoHost: 4.2.5.3
J’ai accès à mon serveur : En SSH, via la webadmin et en direct avec clavier/ecran.
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Logs :

ended_at: 2021-07-29 09:09:46.565610
env:
  BASH_XTRACEFD: '7'
  YNH_APP_CURRENT_VERSION: 4.3.1~ynh2
  YNH_APP_ID: matomo
  YNH_APP_INSTANCE_NAME: matomo
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 4.4.0~ynh1
  YNH_APP_UPGRADE_TYPE: UPGRADE_FULL
  YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/scripts
  YNH_INTERFACE: cli
  YNH_STDRETURN: /tmp/tmpck3lwhkn/stdreturn
error: An error occurred inside the app upgrade script
interface: cli
operation: app_upgrade
parent: null
related_to:
- - app
  - matomo
started_at: 2021-07-29 09:06:37.422361
success: false
yunohost_version: 4.2.6.1

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

2021-07-29 11:06:37,517: DEBUG - Executing command '/bin/bash -x "./upgrade"  7>&1'
2021-07-29 11:06:37,534: DEBUG - + source _common.sh
2021-07-29 11:06:37,535: DEBUG - ++ YNH_PHP_VERSION=7.3
2021-07-29 11:06:37,536: DEBUG - ++ extra_php_dependencies='php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:06:37,537: DEBUG - + source /usr/share/yunohost/helpers
2021-07-29 11:06:37,548: DEBUG - +++ set +o
2021-07-29 11:06:37,548: DEBUG - +++ grep xtrace
2021-07-29 11:06:37,569: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-07-29 11:06:37,570: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-07-29 11:06:37,999: DEBUG - + echo '[+...................] > Loading installation settings...'
2021-07-29 11:06:38,000: INFO - [+...................] > Loading installation settings...
2021-07-29 11:06:38,001: DEBUG - + app=matomo
2021-07-29 11:06:38,001: DEBUG - ++ ynh_app_setting_get --app=matomo --key=domain
2021-07-29 11:06:38,073: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:38,074: DEBUG - ++ ynh_app_setting get matomo domain
2021-07-29 11:06:38,223: DEBUG - + domain=stats.maindomain.tld
2021-07-29 11:06:38,224: DEBUG - ++ ynh_app_setting_get --app=matomo --key=path
2021-07-29 11:06:38,296: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:38,297: DEBUG - ++ ynh_app_setting get matomo path
2021-07-29 11:06:38,422: DEBUG - + path_url=/
2021-07-29 11:06:38,423: DEBUG - ++ ynh_app_setting_get --app=matomo --key=final_path
2021-07-29 11:06:38,497: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:38,497: DEBUG - ++ ynh_app_setting get matomo final_path
2021-07-29 11:06:38,623: DEBUG - + final_path=/var/www/matomo
2021-07-29 11:06:38,624: DEBUG - ++ ynh_app_setting_get --app=matomo --key=db_name
2021-07-29 11:06:38,694: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:38,695: DEBUG - ++ ynh_app_setting get matomo db_name
2021-07-29 11:06:38,821: DEBUG - + db_name=matomo
2021-07-29 11:06:38,822: DEBUG - ++ ynh_app_setting_get --app=matomo --key=phpversion
2021-07-29 11:06:38,892: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:38,893: DEBUG - ++ ynh_app_setting get matomo phpversion
2021-07-29 11:06:39,018: DEBUG - + phpversion=7.3
2021-07-29 11:06:39,019: DEBUG - + admin=
2021-07-29 11:06:39,019: DEBUG - ++ ynh_user_get_info --username= --key=mail
2021-07-29 11:06:39,093: DEBUG - ++ yunohost user info '' --output-as json --quiet
2021-07-29 11:06:39,094: DEBUG - ++ jq -r .mail
2021-07-29 11:06:40,384: DEBUG - + email=
2021-07-29 11:06:40,547: DEBUG - + echo '[#+..................] > Checking version...'
2021-07-29 11:06:40,548: INFO - [#+..................] > Checking version...
2021-07-29 11:06:40,549: DEBUG - ++ ynh_check_app_version_changed
2021-07-29 11:06:40,549: DEBUG - ++ local return_value=UPGRADE_FULL
2021-07-29 11:06:40,549: DEBUG - ++ '[' UPGRADE_FULL == UPGRADE_FULL ']'
2021-07-29 11:06:40,550: DEBUG - ++ return_value=UPGRADE_APP
2021-07-29 11:06:40,550: DEBUG - ++ echo UPGRADE_APP
2021-07-29 11:06:40,550: DEBUG - + upgrade_type=UPGRADE_APP
2021-07-29 11:06:40,720: DEBUG - + echo '[##+.................] > Ensuring downward compatibility...'
2021-07-29 11:06:40,721: DEBUG - + '[' -z matomo ']'
2021-07-29 11:06:40,721: DEBUG - + '[' -z /var/www/matomo ']'
2021-07-29 11:06:40,722: DEBUG - + '[' -z '' ']'
2021-07-29 11:06:40,722: DEBUG - + email=root@stats.maindomain.tld
2021-07-29 11:06:40,722: DEBUG - + ynh_legacy_permissions_exists
2021-07-29 11:06:40,722: DEBUG - + for permission in "skipped" "unprotected" "protected"
2021-07-29 11:06:40,722: DEBUG - + ynh_permission_exists --permission=legacy_skipped_uris
2021-07-29 11:06:40,724: INFO - [##+.................] > Ensuring downward compatibility...
2021-07-29 11:06:40,745: DEBUG - + yunohost user permission list matomo --output-as json --quiet
2021-07-29 11:06:40,745: DEBUG - + jq -e --arg perm matomo.legacy_skipped_uris '.permissions[$perm]'
2021-07-29 11:06:41,482: DEBUG - + for permission in "skipped" "unprotected" "protected"
2021-07-29 11:06:41,482: DEBUG - + ynh_permission_exists --permission=legacy_unprotected_uris
2021-07-29 11:06:41,506: DEBUG - + yunohost user permission list matomo --output-as json --quiet
2021-07-29 11:06:41,507: DEBUG - + jq -e --arg perm matomo.legacy_unprotected_uris '.permissions[$perm]'
2021-07-29 11:06:42,207: DEBUG - + for permission in "skipped" "unprotected" "protected"
2021-07-29 11:06:42,208: DEBUG - + ynh_permission_exists --permission=legacy_protected_uris
2021-07-29 11:06:42,232: DEBUG - + jq -e --arg perm matomo.legacy_protected_uris '.permissions[$perm]'
2021-07-29 11:06:42,232: DEBUG - + yunohost user permission list matomo --output-as json --quiet
2021-07-29 11:06:42,929: DEBUG - + return 1
2021-07-29 11:06:43,103: DEBUG - + echo '[###++...............] > Making sure dedicated system user exists...'
2021-07-29 11:06:43,104: INFO - [###++...............] > Making sure dedicated system user exists...
2021-07-29 11:06:43,105: DEBUG - + ynh_system_user_create --username=matomo --home_dir=/var/www/matomo
2021-07-29 11:06:43,247: DEBUG - + use_shell=0
2021-07-29 11:06:43,247: DEBUG - + home_dir=/var/www/matomo
2021-07-29 11:06:43,248: DEBUG - + groups=
2021-07-29 11:06:43,248: DEBUG - + ynh_system_user_exists matomo
2021-07-29 11:06:43,270: DEBUG - + getent passwd matomo
2021-07-29 11:06:43,473: DEBUG - + echo '[#####+++............] > Backing up Matomo before upgrading (may take a while)...'
2021-07-29 11:06:43,474: DEBUG - + ynh_backup_before_upgrade
2021-07-29 11:06:43,475: DEBUG - + '[' '!' -e /etc/yunohost/apps/matomo/scripts/backup ']'
2021-07-29 11:06:43,475: DEBUG - + backup_number=1
2021-07-29 11:06:43,475: DEBUG - + local old_backup_number=2
2021-07-29 11:06:43,475: DEBUG - + local app_bck=matomo
2021-07-29 11:06:43,476: DEBUG - + NO_BACKUP_UPGRADE=0
2021-07-29 11:06:43,476: DEBUG - + '[' 0 -eq 0 ']'
2021-07-29 11:06:43,476: DEBUG - + ynh_backup_archive_exists matomo-pre-upgrade1
2021-07-29 11:06:43,477: INFO - [#####+++............] > Backing up Matomo before upgrading (may take a while)...
2021-07-29 11:06:43,477: DEBUG - + jq -e --arg archive matomo-pre-upgrade1 '.archives | index($archive)'
2021-07-29 11:06:43,479: DEBUG - + yunohost backup list --output-as json --quiet
2021-07-29 11:06:44,166: DEBUG - + backup_number=2
2021-07-29 11:06:44,167: DEBUG - + old_backup_number=1
2021-07-29 11:06:44,167: DEBUG - + BACKUP_CORE_ONLY=1
2021-07-29 11:06:44,167: DEBUG - + yunohost backup create --apps matomo --name matomo-pre-upgrade2 --debug
2021-07-29 11:06:44,492: DEBUG - 243  initializing base actions map parser for cli
2021-07-29 11:06:44,494: DEBUG - 246  loading actions map namespace 'yunohost'
2021-07-29 11:06:44,499: DEBUG - 251  building parser...
2021-07-29 11:06:44,506: DEBUG - 258  building parser took 0.007s
2021-07-29 11:06:44,509: DEBUG - 260  acquiring lock...
2021-07-29 11:06:44,603: DEBUG - 355  loading python module yunohost.backup took 0.070s
2021-07-29 11:06:44,604: DEBUG - 355  processing action [27558.1]: yunohost.backup.create with args={'name': 'matomo-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['matomo'], 'dry_run': False}
2021-07-29 11:06:44,702: DEBUG - 454  Collecting files to be backed up for matomo...
2021-07-29 11:06:44,810: DEBUG - 562  Executing command '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_76v9l9c9/scripts/backup"  7>&1'
2021-07-29 11:06:44,844: DEBUG - 594  + source ../settings/scripts/_common.sh
2021-07-29 11:06:44,845: DEBUG - 595  ++ YNH_PHP_VERSION=7.3
2021-07-29 11:06:44,845: DEBUG - 596  ++ extra_php_dependencies='php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:06:44,845: DEBUG - 596  + source /usr/share/yunohost/helpers
2021-07-29 11:06:44,849: DEBUG - 600  +++ set +o
2021-07-29 11:06:44,855: DEBUG - 607  +++ grep xtrace
2021-07-29 11:06:44,875: DEBUG - 626  ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-07-29 11:06:44,876: DEBUG - 627  ++ XTRACE_ENABLE='set -o xtrace'
2021-07-29 11:06:44,941: DEBUG - 692  + ynh_abort_if_errors
2021-07-29 11:06:44,942: DEBUG - 692  + set -o errexit
2021-07-29 11:06:44,942: DEBUG - 692  + set -o nounset
2021-07-29 11:06:44,942: DEBUG - 693  + trap ynh_exit_properly EXIT
2021-07-29 11:06:44,943: DEBUG - 693  + ynh_print_info '--message=Loading installation settings...'
2021-07-29 11:06:44,963: DEBUG - 714  + echo 'Loading installation settings...'
2021-07-29 11:06:44,963: DEBUG - 715  + app=matomo
2021-07-29 11:06:44,963: DEBUG - 715  Loading installation settings...
2021-07-29 11:06:44,965: DEBUG - 716  ++ ynh_app_setting_get --app=matomo --key=final_path
2021-07-29 11:06:45,032: DEBUG - 783  ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:45,033: DEBUG - 784  ++ ynh_app_setting get matomo final_path
2021-07-29 11:06:45,165: DEBUG - 917  + final_path=/var/www/matomo
2021-07-29 11:06:45,166: DEBUG - 918  ++ ynh_app_setting_get --app=matomo --key=domain
2021-07-29 11:06:45,265: DEBUG - 1016 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:45,267: DEBUG - 1018 ++ ynh_app_setting get matomo domain
2021-07-29 11:06:45,392: DEBUG - 1143 + domain=stats.maindomain.tld
2021-07-29 11:06:45,393: DEBUG - 1145 ++ ynh_app_setting_get --app=matomo --key=db_name
2021-07-29 11:06:45,460: DEBUG - 1211 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:45,462: DEBUG - 1213 ++ ynh_app_setting get matomo db_name
2021-07-29 11:06:45,587: DEBUG - 1339 + db_name=matomo
2021-07-29 11:06:45,588: DEBUG - 1340 ++ ynh_app_setting_get --app=matomo --key=phpversion
2021-07-29 11:06:45,656: DEBUG - 1407 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:45,657: DEBUG - 1408 ++ ynh_app_setting get matomo phpversion
2021-07-29 11:06:45,782: DEBUG - 1533 + phpversion=7.3
2021-07-29 11:06:45,783: DEBUG - 1534 + ynh_print_info '--message=Declaring files to be backed up...'
2021-07-29 11:06:45,803: DEBUG - 1554 + echo 'Declaring files to be backed up...'
2021-07-29 11:06:45,803: DEBUG - 1555 + ynh_backup --src_path=/var/www/matomo
2021-07-29 11:06:45,810: DEBUG - 1561 Declaring files to be backed up...
2021-07-29 11:06:45,875: DEBUG - 1625 + dest_path=
2021-07-29 11:06:45,875: DEBUG - 1626 + is_big=0
2021-07-29 11:06:45,877: DEBUG - 1628 + not_mandatory=0
2021-07-29 11:06:45,877: DEBUG - 1628 + BACKUP_CORE_ONLY=1
2021-07-29 11:06:45,878: DEBUG - 1629 + test -n matomo
2021-07-29 11:06:45,879: DEBUG - 1630 ++ ynh_app_setting_get --app=matomo --key=do_not_backup_data
2021-07-29 11:06:45,949: DEBUG - 1699 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:45,949: DEBUG - 1700 ++ ynh_app_setting get matomo do_not_backup_data
2021-07-29 11:06:46,075: DEBUG - 1826 + do_not_backup_data=
2021-07-29 11:06:46,075: DEBUG - 1826 + '[' 0 -eq 1 ']'
2021-07-29 11:06:46,076: DEBUG - 1827 + '[' '!' -e /var/www/matomo ']'
2021-07-29 11:06:46,077: DEBUG - 1828 ++ realpath /var/www/matomo
2021-07-29 11:06:46,078: DEBUG - 1830 + src_path=/var/www/matomo
2021-07-29 11:06:46,079: DEBUG - 1831 + [[ -z '' ]]
2021-07-29 11:06:46,080: DEBUG - 1832 + dest_path=var/www/matomo
2021-07-29 11:06:46,081: DEBUG - 1833 + [[ -e var/www/matomo ]]
2021-07-29 11:06:46,082: DEBUG - 1834 + local rel_dir=/apps/matomo/backup
2021-07-29 11:06:46,083: DEBUG - 1835 + rel_dir=/apps/matomo/backup/
2021-07-29 11:06:46,084: DEBUG - 1836 + dest_path=/apps/matomo/backup/var/www/matomo
2021-07-29 11:06:46,085: DEBUG - 1837 + dest_path=apps/matomo/backup/var/www/matomo
2021-07-29 11:06:46,086: DEBUG - 1838 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:46,087: DEBUG - 1839 ++ echo /var/www/matomo
2021-07-29 11:06:46,088: DEBUG - 1840 + local src=/var/www/matomo
2021-07-29 11:06:46,089: DEBUG - 1841 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:46,091: DEBUG - 1843 ++ echo apps/matomo/backup/var/www/matomo
2021-07-29 11:06:46,095: DEBUG - 1846 + local dest=apps/matomo/backup/var/www/matomo
2021-07-29 11:06:46,095: DEBUG - 1846 + echo '"/var/www/matomo","apps/matomo/backup/var/www/matomo"'
2021-07-29 11:06:46,096: DEBUG - 1848 ++ dirname /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/var/www/matomo
2021-07-29 11:06:46,112: DEBUG - 1863 + mkdir --parents /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/var/www
2021-07-29 11:06:46,134: DEBUG - 1884 + ynh_backup --src_path=/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,206: DEBUG - 1957 + dest_path=
2021-07-29 11:06:46,207: DEBUG - 1957 + is_big=0
2021-07-29 11:06:46,207: DEBUG - 1957 + not_mandatory=0
2021-07-29 11:06:46,207: DEBUG - 1958 + BACKUP_CORE_ONLY=1
2021-07-29 11:06:46,207: DEBUG - 1958 + test -n matomo
2021-07-29 11:06:46,209: DEBUG - 1960 ++ ynh_app_setting_get --app=matomo --key=do_not_backup_data
2021-07-29 11:06:46,277: DEBUG - 2029 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:46,278: DEBUG - 2030 ++ ynh_app_setting get matomo do_not_backup_data
2021-07-29 11:06:46,405: DEBUG - 2156 + do_not_backup_data=
2021-07-29 11:06:46,406: DEBUG - 2158 + '[' 0 -eq 1 ']'
2021-07-29 11:06:46,407: DEBUG - 2159 + '[' '!' -e /etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf ']'
2021-07-29 11:06:46,408: DEBUG - 2160 ++ realpath /etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,409: DEBUG - 2161 + src_path=/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,410: DEBUG - 2161 + [[ -z '' ]]
2021-07-29 11:06:46,410: DEBUG - 2162 + dest_path=etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,410: DEBUG - 2162 + [[ -e etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf ]]
2021-07-29 11:06:46,411: DEBUG - 2162 + local rel_dir=/apps/matomo/backup
2021-07-29 11:06:46,411: DEBUG - 2162 + rel_dir=/apps/matomo/backup/
2021-07-29 11:06:46,411: DEBUG - 2163 + dest_path=/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,411: DEBUG - 2163 + dest_path=apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,413: DEBUG - 2165 ++ echo /etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,414: DEBUG - 2166 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:46,419: DEBUG - 2171 + local src=/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,422: DEBUG - 2173 ++ echo apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,422: DEBUG - 2173 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:46,426: DEBUG - 2177 + local dest=apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,427: DEBUG - 2178 + echo '"/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf","apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf"'
2021-07-29 11:06:46,428: DEBUG - 2179 ++ dirname /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:06:46,430: DEBUG - 2182 + mkdir --parents /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d
2021-07-29 11:06:46,434: DEBUG - 2186 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,505: DEBUG - 2256 + dest_path=
2021-07-29 11:06:46,506: DEBUG - 2257 + is_big=0
2021-07-29 11:06:46,506: DEBUG - 2257 + not_mandatory=0
2021-07-29 11:06:46,506: DEBUG - 2258 + BACKUP_CORE_ONLY=1
2021-07-29 11:06:46,507: DEBUG - 2258 + test -n matomo
2021-07-29 11:06:46,508: DEBUG - 2259 ++ ynh_app_setting_get --app=matomo --key=do_not_backup_data
2021-07-29 11:06:46,581: DEBUG - 2333 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:46,582: DEBUG - 2334 ++ ynh_app_setting get matomo do_not_backup_data
2021-07-29 11:06:46,709: DEBUG - 2461 + do_not_backup_data=
2021-07-29 11:06:46,710: DEBUG - 2461 + '[' 0 -eq 1 ']'
2021-07-29 11:06:46,710: DEBUG - 2461 + '[' '!' -e /etc/php/7.3/fpm/pool.d/matomo.conf ']'
2021-07-29 11:06:46,711: DEBUG - 2463 ++ realpath /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,714: DEBUG - 2466 + src_path=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,715: DEBUG - 2466 + [[ -z '' ]]
2021-07-29 11:06:46,715: DEBUG - 2466 + dest_path=etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,715: DEBUG - 2467 + [[ -e etc/php/7.3/fpm/pool.d/matomo.conf ]]
2021-07-29 11:06:46,716: DEBUG - 2467 + local rel_dir=/apps/matomo/backup
2021-07-29 11:06:46,716: DEBUG - 2468 + rel_dir=/apps/matomo/backup/
2021-07-29 11:06:46,716: DEBUG - 2468 + dest_path=/apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,717: DEBUG - 2468 + dest_path=apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,718: DEBUG - 2470 ++ echo /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,719: DEBUG - 2471 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:46,724: DEBUG - 2476 + local src=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,727: DEBUG - 2478 ++ echo apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,727: DEBUG - 2479 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:46,733: DEBUG - 2484 + local dest=apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,734: DEBUG - 2485 + echo '"/etc/php/7.3/fpm/pool.d/matomo.conf","apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf"'
2021-07-29 11:06:46,734: DEBUG - 2486 ++ dirname /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:06:46,737: DEBUG - 2489 + mkdir --parents /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/php/7.3/fpm/pool.d
2021-07-29 11:06:46,742: DEBUG - 2494 + ynh_backup --src_path=/etc/cron.d/matomo
2021-07-29 11:06:46,812: DEBUG - 2563 + dest_path=
2021-07-29 11:06:46,813: DEBUG - 2564 + is_big=0
2021-07-29 11:06:46,813: DEBUG - 2564 + not_mandatory=0
2021-07-29 11:06:46,813: DEBUG - 2565 + BACKUP_CORE_ONLY=1
2021-07-29 11:06:46,813: DEBUG - 2565 + test -n matomo
2021-07-29 11:06:46,814: DEBUG - 2566 ++ ynh_app_setting_get --app=matomo --key=do_not_backup_data
2021-07-29 11:06:46,889: DEBUG - 2640 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:06:46,889: DEBUG - 2641 ++ ynh_app_setting get matomo do_not_backup_data
2021-07-29 11:06:47,017: DEBUG - 2769 + do_not_backup_data=
2021-07-29 11:06:47,018: DEBUG - 2769 + '[' 0 -eq 1 ']'
2021-07-29 11:06:47,018: DEBUG - 2769 + '[' '!' -e /etc/cron.d/matomo ']'
2021-07-29 11:06:47,019: DEBUG - 2771 ++ realpath /etc/cron.d/matomo
2021-07-29 11:06:47,022: DEBUG - 2774 + src_path=/etc/cron.d/matomo
2021-07-29 11:06:47,023: DEBUG - 2774 + [[ -z '' ]]
2021-07-29 11:06:47,023: DEBUG - 2774 + dest_path=etc/cron.d/matomo
2021-07-29 11:06:47,023: DEBUG - 2774 + [[ -e etc/cron.d/matomo ]]
2021-07-29 11:06:47,024: DEBUG - 2775 + local rel_dir=/apps/matomo/backup
2021-07-29 11:06:47,024: DEBUG - 2776 + rel_dir=/apps/matomo/backup/
2021-07-29 11:06:47,024: DEBUG - 2776 + dest_path=/apps/matomo/backup/etc/cron.d/matomo
2021-07-29 11:06:47,025: DEBUG - 2776 + dest_path=apps/matomo/backup/etc/cron.d/matomo
2021-07-29 11:06:47,026: DEBUG - 2778 ++ echo /etc/cron.d/matomo
2021-07-29 11:06:47,027: DEBUG - 2779 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:47,032: DEBUG - 2784 + local src=/etc/cron.d/matomo
2021-07-29 11:06:47,035: DEBUG - 2786 ++ echo apps/matomo/backup/etc/cron.d/matomo
2021-07-29 11:06:47,035: DEBUG - 2786 ++ sed --regexp-extended 's/"/\"\"/g'
2021-07-29 11:06:47,039: DEBUG - 2791 + local dest=apps/matomo/backup/etc/cron.d/matomo
2021-07-29 11:06:47,040: DEBUG - 2791 + echo '"/etc/cron.d/matomo","apps/matomo/backup/etc/cron.d/matomo"'
2021-07-29 11:06:47,041: DEBUG - 2792 ++ dirname /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/cron.d/matomo
2021-07-29 11:06:47,043: DEBUG - 2794 + mkdir --parents /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/cron.d
2021-07-29 11:06:47,047: DEBUG - 2798 + ynh_print_info '--message=Backing up the MySQL database...'
2021-07-29 11:06:47,069: DEBUG - 2820 + echo 'Backing up the MySQL database...'
2021-07-29 11:06:47,070: DEBUG - 2821 + ynh_mysql_dump_db --database=matomo
2021-07-29 11:06:47,072: DEBUG - 2823 Backing up the MySQL database...
2021-07-29 11:06:47,096: DEBUG - 2848 + mysqldump --single-transaction --skip-dump-date matomo
2021-07-29 11:06:47,827: DEBUG - 3578 + ynh_print_info '--message=Backup script completed for Matomo. (YunoHost will then actually copy those files to the archive).'
2021-07-29 11:06:47,852: DEBUG - 3603 + echo 'Backup script completed for Matomo. (YunoHost will then actually copy those files to the archive).'
2021-07-29 11:06:47,854: DEBUG - 3604 + ynh_exit_properly
2021-07-29 11:06:47,854: DEBUG - 3605 + local exit_code=0
2021-07-29 11:06:47,854: DEBUG - 3605 + rm -rf /var/cache/yunohost/download/
2021-07-29 11:06:47,854: DEBUG - 3606 Backup script completed for Matomo. (YunoHost will then actually copy those files to the archive).
2021-07-29 11:06:47,870: DEBUG - 3621 + '[' 0 -eq 0 ']'
2021-07-29 11:06:47,872: DEBUG - 3623 + exit 0
2021-07-29 11:06:48,877: DEBUG - 4628 Backup permission for matomo
2021-07-29 11:06:49,021: DEBUG - 4772 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2021-07-29 11:06:51,482: DEBUG - 7233 Creating a backup archive from the collected files...
2021-07-29 11:06:51,483: DEBUG - 7234 The archive will contain about 201.4MiB of data.
2021-07-29 11:06:51,483: DEBUG - 7234 Creating the backup TAR archive...
2021-07-29 11:07:28,069: DEBUG - 43766 TAR backup archive created
2021-07-29 11:07:28,079: DEBUG - 43810 Backup created
2021-07-29 11:07:28,154: DEBUG - 43906 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20210729-090644-backup_create20210729-090644-backup_create'
2021-07-29 11:07:28,643: DEBUG - 44394 action [27558.1] executed in 44.038s
2021-07-29 11:07:28,644: DEBUG - name: matomo-pre-upgrade2
2021-07-29 11:07:28,644: DEBUG - results:
2021-07-29 11:07:28,644: DEBUG -   apps:
2021-07-29 11:07:28,644: DEBUG -     matomo: Success
2021-07-29 11:07:28,645: DEBUG -   system:
2021-07-29 11:07:28,645: DEBUG - size: 211175674
2021-07-29 11:07:28,851: DEBUG - + '[' 0 -eq 0 ']'
2021-07-29 11:07:28,852: DEBUG - + ynh_backup_archive_exists matomo-pre-upgrade1
2021-07-29 11:07:28,852: DEBUG - + yunohost backup list --output-as json --quiet
2021-07-29 11:07:28,853: DEBUG - + jq -e --arg archive matomo-pre-upgrade1 '.archives | index($archive)'
2021-07-29 11:07:32,122: DEBUG - + yunohost backup delete matomo-pre-upgrade1
2021-07-29 11:07:32,678: DEBUG - + ynh_abort_if_errors
2021-07-29 11:07:32,679: DEBUG - + set -o errexit
2021-07-29 11:07:32,679: DEBUG - + set -o nounset
2021-07-29 11:07:32,679: DEBUG - + trap ynh_exit_properly EXIT
2021-07-29 11:07:32,679: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']'
2021-07-29 11:07:32,922: DEBUG - + echo '[########++++........] > Upgrading source files...'
2021-07-29 11:07:32,922: INFO - [########++++........] > Upgrading source files...
2021-07-29 11:07:32,923: DEBUG - + [[ ! -f /var/www/matomo/config/config.ini.php ]]
2021-07-29 11:07:32,924: DEBUG - ++ mktemp -d
2021-07-29 11:07:33,003: DEBUG - + tmpdir=/tmp/tmp.DOYGwF6PSt
2021-07-29 11:07:33,004: DEBUG - + cp -a /var/www/matomo/config/config.ini.php /tmp/tmp.DOYGwF6PSt/config.ini.php
2021-07-29 11:07:33,110: DEBUG - + ynh_secure_remove --file=/var/www/matomo
2021-07-29 11:07:33,140: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-07-29 11:07:33,140: DEBUG - + '[' 1 -ge 2 ']'
2021-07-29 11:07:33,140: DEBUG - + [[ -z /var/www/matomo ]]
2021-07-29 11:07:33,141: DEBUG - + [[      /var/www     /home/yunohost.app =~ /var/www/matomo ]]
2021-07-29 11:07:33,141: DEBUG - + [[ /var/www/matomo =~ ^/[[:alnum:]]+$ ]]
2021-07-29 11:07:33,142: DEBUG - + [[ o = \/ ]]
2021-07-29 11:07:33,142: DEBUG - + '[' -e /var/www/matomo ']'
2021-07-29 11:07:33,142: DEBUG - + rm --recursive /var/www/matomo
2021-07-29 11:07:34,416: DEBUG - + ynh_setup_source --dest_dir=/var/www/matomo
2021-07-29 11:07:34,476: DEBUG - + source_id=app
2021-07-29 11:07:34,477: DEBUG - + keep=
2021-07-29 11:07:34,477: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,478: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,479: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,544: DEBUG - + local src_url=https://builds.matomo.org/matomo-4.4.0.tar.gz
2021-07-29 11:07:34,548: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,550: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,557: DEBUG - + local src_sum=3eea92155178a53410c35a6489995ff4deb9ece7182dc4a11e06f96ad3b707ba
2021-07-29 11:07:34,559: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,559: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,564: DEBUG - + local src_sumprg=sha256sum
2021-07-29 11:07:34,566: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,566: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,571: DEBUG - + local src_format=tar.gz
2021-07-29 11:07:34,573: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,574: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,578: DEBUG - + local src_extract=
2021-07-29 11:07:34,580: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,580: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,585: DEBUG - + local src_in_subdir=true
2021-07-29 11:07:34,587: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/conf/app.src
2021-07-29 11:07:34,588: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-29 11:07:34,592: DEBUG - + local src_filename=
2021-07-29 11:07:34,593: DEBUG - + src_sumprg=sha256sum
2021-07-29 11:07:34,593: DEBUG - + src_in_subdir=true
2021-07-29 11:07:34,593: DEBUG - + src_format=tar.gz
2021-07-29 11:07:34,594: DEBUG - ++ echo tar.gz
2021-07-29 11:07:34,595: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2021-07-29 11:07:34,615: DEBUG - + src_format=tar.gz
2021-07-29 11:07:34,616: DEBUG - + src_extract=true
2021-07-29 11:07:34,616: DEBUG - + '[' '' = '' ']'
2021-07-29 11:07:34,617: DEBUG - + src_filename=app.tar.gz
2021-07-29 11:07:34,618: DEBUG - + local local_src=/opt/yunohost-apps-src/matomo/app.tar.gz
2021-07-29 11:07:34,618: DEBUG - + mkdir -p /var/cache/yunohost/download/matomo/
2021-07-29 11:07:34,648: DEBUG - + src_filename=/var/cache/yunohost/download/matomo/app.tar.gz
2021-07-29 11:07:34,649: DEBUG - + test -e /opt/yunohost-apps-src/matomo/app.tar.gz
2021-07-29 11:07:34,661: DEBUG - + '[' -n https://builds.matomo.org/matomo-4.4.0.tar.gz ']'
2021-07-29 11:07:34,663: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/matomo/app.tar.gz https://builds.matomo.org/matomo-4.4.0.tar.gz
2021-07-29 11:07:41,132: DEBUG - + out='2021-07-29 11:07:41 URL:https://builds.matomo.org/matomo-4.4.0.tar.gz [15388929/15388929] -> "/var/cache/yunohost/download/matomo/app.tar.gz" [1]'
2021-07-29 11:07:41,134: DEBUG - + echo '3eea92155178a53410c35a6489995ff4deb9ece7182dc4a11e06f96ad3b707ba /var/cache/yunohost/download/matomo/app.tar.gz'
2021-07-29 11:07:41,135: DEBUG - + sha256sum --check --status
2021-07-29 11:07:41,319: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-07-29 11:07:41,321: DEBUG - + '[' -n '' ']'
2021-07-29 11:07:41,322: DEBUG - + mkdir --parents /var/www/matomo
2021-07-29 11:07:41,325: DEBUG - + '[' -n /var/www/matomo ']'
2021-07-29 11:07:41,325: DEBUG - + '[' /var/www/matomo == /var/www/matomo ']'
2021-07-29 11:07:41,326: DEBUG - + _ynh_apply_default_permissions /var/www/matomo
2021-07-29 11:07:41,326: DEBUG - + local target=/var/www/matomo
2021-07-29 11:07:41,327: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/manifest.json
2021-07-29 11:07:41,327: DEBUG - ++ tr -d '>= '
2021-07-29 11:07:41,350: DEBUG - + local ynh_requirement=4.2.4
2021-07-29 11:07:41,351: DEBUG - + '[' -z 4.2.4 ']'
2021-07-29 11:07:41,351: DEBUG - + '[' 4.2.4 == null ']'
2021-07-29 11:07:41,351: DEBUG - + dpkg --compare-versions 4.2.4 ge 4.2
2021-07-29 11:07:41,435: DEBUG - + chmod o-rwx /var/www/matomo
2021-07-29 11:07:41,449: DEBUG - + chmod g-w /var/www/matomo
2021-07-29 11:07:41,454: DEBUG - + chown -R root:root /var/www/matomo
2021-07-29 11:07:41,472: DEBUG - + ynh_system_user_exists matomo
2021-07-29 11:07:41,496: DEBUG - + getent passwd matomo
2021-07-29 11:07:41,511: DEBUG - + chown matomo:matomo /var/www/matomo
2021-07-29 11:07:41,522: DEBUG - + true
2021-07-29 11:07:41,523: DEBUG - + '[' tar.gz = zip ']'
2021-07-29 11:07:41,523: DEBUG - + local strip=
2021-07-29 11:07:41,523: DEBUG - + '[' true '!=' false ']'
2021-07-29 11:07:41,524: DEBUG - + '[' true == true ']'
2021-07-29 11:07:41,524: DEBUG - + local sub_dirs=1
2021-07-29 11:07:41,524: DEBUG - + strip='--strip-components 1'
2021-07-29 11:07:41,524: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2021-07-29 11:07:41,525: DEBUG - + tar --extract --file=/var/cache/yunohost/download/matomo/app.tar.gz --directory=/var/www/matomo --strip-components 1
2021-07-29 11:07:43,279: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/matomo/app.tar.gz
2021-07-29 11:07:43,302: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-07-29 11:07:43,303: DEBUG - + '[' 1 -ge 2 ']'
2021-07-29 11:07:43,303: DEBUG - + [[ -z /var/cache/yunohost/download/matomo/app.tar.gz ]]
2021-07-29 11:07:43,303: DEBUG - + [[      /var/www     /home/yunohost.app =~ /var/cache/yunohost/download/matomo/app\.tar\.gz ]]
2021-07-29 11:07:43,304: DEBUG - + [[ /var/cache/yunohost/download/matomo/app.tar.gz =~ ^/[[:alnum:]]+$ ]]
2021-07-29 11:07:43,304: DEBUG - + [[ z = \/ ]]
2021-07-29 11:07:43,304: DEBUG - + '[' -e /var/cache/yunohost/download/matomo/app.tar.gz ']'
2021-07-29 11:07:43,304: DEBUG - + rm --recursive /var/cache/yunohost/download/matomo/app.tar.gz
2021-07-29 11:07:43,311: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/sources/patches/ ']'
2021-07-29 11:07:43,312: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_21hu713z/sources/extra_files/app
2021-07-29 11:07:43,312: DEBUG - + '[' -n '' ']'
2021-07-29 11:07:43,312: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-07-29 11:07:43,315: DEBUG - + cp -a /tmp/tmp.DOYGwF6PSt/config.ini.php /var/www/matomo/config/config.ini.php
2021-07-29 11:07:43,319: DEBUG - + ynh_secure_remove --file=/tmp/tmp.DOYGwF6PSt
2021-07-29 11:07:43,341: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-07-29 11:07:43,342: DEBUG - + '[' 1 -ge 2 ']'
2021-07-29 11:07:43,342: DEBUG - + [[ -z /tmp/tmp.DOYGwF6PSt ]]
2021-07-29 11:07:43,342: DEBUG - + [[      /var/www     /home/yunohost.app =~ /tmp/tmp\.DOYGwF6PSt ]]
2021-07-29 11:07:43,343: DEBUG - + [[ /tmp/tmp.DOYGwF6PSt =~ ^/[[:alnum:]]+$ ]]
2021-07-29 11:07:43,343: DEBUG - + [[ t = \/ ]]
2021-07-29 11:07:43,343: DEBUG - + '[' -e /tmp/tmp.DOYGwF6PSt ']'
2021-07-29 11:07:43,343: DEBUG - + rm --recursive /tmp/tmp.DOYGwF6PSt
2021-07-29 11:07:43,345: DEBUG - + ynh_exec_as matomo php7.3 /var/www/matomo/console core:update -n
2021-07-29 11:07:43,346: DEBUG - + local user=matomo
2021-07-29 11:07:43,346: DEBUG - + shift 1
2021-07-29 11:07:43,346: DEBUG - ++ whoami
2021-07-29 11:07:43,413: DEBUG - + [[ matomo = root ]]
2021-07-29 11:07:43,414: DEBUG - + sudo -u matomo php7.3 /var/www/matomo/console core:update -n
2021-07-29 11:07:49,648: DEBUG - The directory "/var/www/matomo/tmp/cache/tracker/" does not exist and could not be created.
2021-07-29 11:07:49,649: DEBUG - 
2021-07-29 11:07:49,674: WARNING - ERROR [2021-07-29 09:07:49] 28219  Uncaught exception: /var/www/matomo/vendor/matomo/doctrine-cache-fork/lib/Doctrine/Common/Cache/FileCache.php(84): The directory "/var/www/matomo/tmp/cache/tracker/" does not exist and could not be created. [Query: , CLI mode: 1]
2021-07-29 11:07:49,826: DEBUG - 
2021-07-29 11:07:49,826: DEBUG - 
2021-07-29 11:07:49,826: DEBUG - 
2021-07-29 11:07:49,827: WARNING -   [InvalidArgumentException]
2021-07-29 11:07:49,827: WARNING -   The directory "/var/www/matomo/tmp/cache/tracker/" does not exist and could
2021-07-29 11:07:49,827: WARNING -    not be created.
2021-07-29 11:07:49,828: DEBUG - 
2021-07-29 11:07:49,828: DEBUG - 
2021-07-29 11:07:49,828: DEBUG - 
2021-07-29 11:07:50,008: DEBUG - + ynh_exit_properly
2021-07-29 11:07:50,008: DEBUG - + local exit_code=1
2021-07-29 11:07:50,008: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-07-29 11:07:50,011: DEBUG - + '[' 1 -eq 0 ']'
2021-07-29 11:07:50,011: DEBUG - + trap '' EXIT
2021-07-29 11:07:50,011: DEBUG - + set +o errexit
2021-07-29 11:07:50,012: DEBUG - + set +o nounset
2021-07-29 11:07:50,012: DEBUG - + sleep 0.5
2021-07-29 11:07:50,533: DEBUG - + type -t ynh_clean_setup
2021-07-29 11:07:50,534: DEBUG - + ynh_clean_setup
2021-07-29 11:07:50,534: DEBUG - + ynh_restore_upgradebackup
2021-07-29 11:07:50,534: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2021-07-29 11:07:50,558: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2021-07-29 11:07:50,558: DEBUG - + echo -e '[Error] Upgrade failed.'
2021-07-29 11:07:50,559: DEBUG - + local app_bck=matomo
2021-07-29 11:07:50,559: DEBUG - + NO_BACKUP_UPGRADE=0
2021-07-29 11:07:50,559: DEBUG - + '[' 0 -eq 0 ']'
2021-07-29 11:07:50,559: DEBUG - + ynh_backup_archive_exists matomo-pre-upgrade2
2021-07-29 11:07:50,560: WARNING - [Error] Upgrade failed.
2021-07-29 11:07:50,560: DEBUG - + jq -e --arg archive matomo-pre-upgrade2 '.archives | index($archive)'
2021-07-29 11:07:50,561: DEBUG - + yunohost backup list --output-as json --quiet
2021-07-29 11:07:51,095: DEBUG - + yunohost app remove matomo
2021-07-29 11:07:51,568: DEBUG - Removing matomo...
2021-07-29 11:07:52,212: DEBUG - [++..................] > Loading installation settings...
2021-07-29 11:07:52,971: DEBUG - [##++................] > Removing the MySQL database...
2021-07-29 11:08:03,244: DEBUG - [####++++............] > Removing Matomo main directory...
2021-07-29 11:08:04,047: DEBUG - [########+++.........] > Removing NGINX web server configuration...
2021-07-29 11:08:06,806: DEBUG - [###########++.......] > Removing PHP-FPM configuration...
2021-07-29 11:08:09,168: DEBUG - [#############++.....] > Removing the cron file...
2021-07-29 11:08:09,381: DEBUG - [###############++...] > Removing the dedicated system user...
2021-07-29 11:08:15,423: DEBUG - [####################] > Removal of Matomo completed
2021-07-29 11:08:16,429: DEBUG - matomo removed
2021-07-29 11:08:22,240: DEBUG - + yunohost backup restore matomo-pre-upgrade2 --apps matomo --force --debug
2021-07-29 11:08:22,568: DEBUG - 244  initializing base actions map parser for cli
2021-07-29 11:08:22,571: DEBUG - 248  loading actions map namespace 'yunohost'
2021-07-29 11:08:22,576: DEBUG - 252  building parser...
2021-07-29 11:08:22,584: DEBUG - 260  building parser took 0.007s
2021-07-29 11:08:22,586: DEBUG - 263  acquiring lock...
2021-07-29 11:08:22,681: DEBUG - 358  loading python module yunohost.backup took 0.071s
2021-07-29 11:08:22,681: DEBUG - 358  processing action [29459.1]: yunohost.backup.restore with args={'name': 'matomo-pre-upgrade2', 'system': None, 'apps': ['matomo'], 'force': True}
2021-07-29 11:08:22,693: DEBUG - 369  Preparing archive for restoration...
2021-07-29 11:08:22,693: DEBUG - 370  Extracting needed files from the archive…
2021-07-29 11:08:36,418: DEBUG - 14083 restoring from backup 'matomo-pre-upgrade2' created on 2021-07-29 09:06:44
2021-07-29 11:08:36,664: DEBUG - 14340 Restoring matomo...
2021-07-29 11:08:37,433: DEBUG - 15110 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2021-07-29 11:08:38,133: DEBUG - 15809 Permission 'matomo.main' updated
2021-07-29 11:08:38,358: DEBUG - 16035 To view the log of the operation 'Update url related to permission 'matomo'', use the command 'yunohost log show 20210729-090838-permission_url-matomo20210729-090838-permission_url-matomo'
2021-07-29 11:08:38,778: DEBUG - 16454 Permission 'matomo.main' created
2021-07-29 11:08:38,779: DEBUG - 16456 To view the log of the operation 'Create permission 'matomo'', use the command 'yunohost log show 20210729-090837-permission_create-matomo20210729-090837-permission_create-matomo'
2021-07-29 11:08:38,995: DEBUG - 16672 The permission database has been resynchronized
2021-07-29 11:08:39,297: DEBUG - 16973 SSOwat configuration regenerated
2021-07-29 11:08:39,346: DEBUG - 17022 Loading migration 0015_migrate_to_buster...
2021-07-29 11:08:39,352: DEBUG - 17027 Loading migration 0019_extend_permissions_features...
2021-07-29 11:08:39,354: DEBUG - 17031 Loading migration 0017_postgresql_9p6_to_11...
2021-07-29 11:08:39,355: DEBUG - 17032 Loading migration 0018_xtable_to_nftable...
2021-07-29 11:08:39,357: DEBUG - 17034 Loading migration 0016_php70_to_php73_pools...
2021-07-29 11:08:39,358: DEBUG - 17035 Loading migration 0020_ssh_sftp_permissions...
2021-07-29 11:08:39,428: DEBUG - 17104 Restoring the app 'matomo'…
2021-07-29 11:08:39,469: DEBUG - 17145 Executing command '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_m3wp5933/restore"  7>&1'
2021-07-29 11:08:39,511: DEBUG - 17186 + source ../settings/scripts/_common.sh
2021-07-29 11:08:39,512: DEBUG - 17188 ++ YNH_PHP_VERSION=7.3
2021-07-29 11:08:39,514: DEBUG - 17188 ++ extra_php_dependencies='php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:39,514: DEBUG - 17189 + source /usr/share/yunohost/helpers
2021-07-29 11:08:39,532: DEBUG - 17208 +++ set +o
2021-07-29 11:08:39,534: DEBUG - 17210 +++ grep xtrace
2021-07-29 11:08:39,562: DEBUG - 17237 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-07-29 11:08:39,563: DEBUG - 17238 ++ XTRACE_ENABLE='set -o xtrace'
2021-07-29 11:08:39,691: DEBUG - 17366 + ynh_abort_if_errors
2021-07-29 11:08:39,691: DEBUG - 17367 + set -o errexit
2021-07-29 11:08:39,692: DEBUG - 17367 + set -o nounset
2021-07-29 11:08:39,694: DEBUG - 17368 + trap ynh_exit_properly EXIT
2021-07-29 11:08:39,878: DEBUG - 17554 + echo '[+...................] > Loading settings...'
2021-07-29 11:08:39,880: DEBUG - 17557 [+...................] > Loading settings...
2021-07-29 11:08:39,881: DEBUG - 17557 + app=matomo
2021-07-29 11:08:39,883: DEBUG - 17560 ++ ynh_app_setting_get --app=matomo --key=domain
2021-07-29 11:08:39,959: DEBUG - 17635 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:08:39,961: DEBUG - 17637 ++ ynh_app_setting get matomo domain
2021-07-29 11:08:40,462: DEBUG - 18137 + domain=stats.maindomain.tld
2021-07-29 11:08:40,462: DEBUG - 18138 ++ ynh_app_setting_get --app=matomo --key=path
2021-07-29 11:08:40,537: DEBUG - 18213 ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:08:40,539: DEBUG - 18215 ++ ynh_app_setting get matomo path
2021-07-29 11:08:40,665: DEBUG - 18342 + path_url=/
2021-07-29 11:08:40,666: DEBUG - 18343 ++ ynh_app_setting_get --app=matomo --key=final_path
2021-07-29 11:08:40,739: DEBUG - 18415 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:08:40,740: DEBUG - 18416 ++ ynh_app_setting get matomo final_path
2021-07-29 11:08:40,864: DEBUG - 18541 + final_path=/var/www/matomo
2021-07-29 11:08:40,867: DEBUG - 18542 ++ ynh_app_setting_get --app=matomo --key=db_name
2021-07-29 11:08:40,938: DEBUG - 18614 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:08:40,939: DEBUG - 18615 ++ ynh_app_setting get matomo db_name
2021-07-29 11:08:41,065: DEBUG - 18740 + db_name=matomo
2021-07-29 11:08:41,066: DEBUG - 18740 + db_user=matomo
2021-07-29 11:08:41,066: DEBUG - 18741 ++ ynh_app_setting_get --app=matomo --key=phpversion
2021-07-29 11:08:41,138: DEBUG - 18814 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:08:41,139: DEBUG - 18816 ++ ynh_app_setting get matomo phpversion
2021-07-29 11:08:41,265: DEBUG - 18941 + phpversion=7.3
2021-07-29 11:08:41,426: DEBUG - 19102 + echo '[#++.................] > Validating restoration parameters...'
2021-07-29 11:08:41,427: DEBUG - 19103 + ynh_webpath_available --domain=stats.maindomain.tld --path_url=/
2021-07-29 11:08:41,430: DEBUG - 19105 [#++.................] > Validating restoration parameters...
2021-07-29 11:08:41,501: DEBUG - 19178 + yunohost domain url-available stats.maindomain.tld /
2021-07-29 11:08:43,782: DEBUG - 21458 False
2021-07-29 11:08:43,908: DEBUG - 21584 + test '!' -d /var/www/matomo
2021-07-29 11:08:44,080: DEBUG - 21753 + echo '[###+................] > Restoring the NGINX configuration...'
2021-07-29 11:08:44,081: DEBUG - 21754 + ynh_restore_file --origin_path=/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:08:44,081: DEBUG - 21755 [###+................] > Restoring the NGINX configuration...
2021-07-29 11:08:44,137: DEBUG - 21813 + origin_path=/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:08:44,137: DEBUG - 21814 + dest_path=/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:08:44,137: DEBUG - 21814 + not_mandatory=0
2021-07-29 11:08:44,138: DEBUG - 21814 + local archive_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:08:44,138: DEBUG - 21815 + '[' '!' -d /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf ']'
2021-07-29 11:08:44,138: DEBUG - 21815 + '[' '!' -f /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf ']'
2021-07-29 11:08:44,139: DEBUG - 21815 + [[ -e /etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf ]]
2021-07-29 11:08:44,164: DEBUG - 21840 ++ dirname /etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:08:44,176: DEBUG - 21852 + mkdir --parents /etc/nginx/conf.d/stats.maindomain.tld.d
2021-07-29 11:08:44,199: DEBUG - 21875 + mountpoint --quiet /home/yunohost.backup/tmp/matomo-pre-upgrade2
2021-07-29 11:08:44,293: DEBUG - 21969 + mv /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf /etc/nginx/conf.d/stats.maindomain.tld.d/matomo.conf
2021-07-29 11:08:44,472: DEBUG - 22148 + echo '[####++..............] > Recreating the dedicated system user...'
2021-07-29 11:08:44,476: DEBUG - 22150 [####++..............] > Recreating the dedicated system user...
2021-07-29 11:08:44,476: DEBUG - 22151 + ynh_system_user_create --username=matomo --home_dir=/var/www/matomo
2021-07-29 11:08:44,615: DEBUG - 22290 + use_shell=0
2021-07-29 11:08:44,616: DEBUG - 22290 + home_dir=/var/www/matomo
2021-07-29 11:08:44,616: DEBUG - 22291 + groups=
2021-07-29 11:08:44,616: DEBUG - 22291 + ynh_system_user_exists matomo
2021-07-29 11:08:44,636: DEBUG - 22312 + getent passwd matomo
2021-07-29 11:08:44,661: DEBUG - 22338 + '[' -n /var/www/matomo ']'
2021-07-29 11:08:44,662: DEBUG - 22338 + local 'user_home_dir=--home-dir /var/www/matomo'
2021-07-29 11:08:44,662: DEBUG - 22339 + '[' 0 -eq 1 ']'
2021-07-29 11:08:44,662: DEBUG - 22339 + local 'shell=--shell /usr/sbin/nologin'
2021-07-29 11:08:44,663: DEBUG - 22339 + useradd --home-dir /var/www/matomo --system --user-group matomo --shell /usr/sbin/nologin
2021-07-29 11:08:45,424: DEBUG - 23100 + echo '[######++++..........] > Restoring Matomo main directory...'
2021-07-29 11:08:45,425: DEBUG - 23101 + ynh_restore_file --origin_path=/var/www/matomo
2021-07-29 11:08:45,425: DEBUG - 23101 [######++++..........] > Restoring Matomo main directory...
2021-07-29 11:08:45,488: DEBUG - 23164 + origin_path=/var/www/matomo
2021-07-29 11:08:45,489: DEBUG - 23165 + dest_path=/var/www/matomo
2021-07-29 11:08:45,490: DEBUG - 23165 + not_mandatory=0
2021-07-29 11:08:45,490: DEBUG - 23166 + local archive_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/var/www/matomo
2021-07-29 11:08:45,491: DEBUG - 23166 + '[' '!' -d /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/var/www/matomo ']'
2021-07-29 11:08:45,491: DEBUG - 23166 + [[ -e /var/www/matomo ]]
2021-07-29 11:08:45,491: DEBUG - 23167 ++ dirname /var/www/matomo
2021-07-29 11:08:45,495: DEBUG - 23171 + mkdir --parents /var/www
2021-07-29 11:08:45,499: DEBUG - 23176 + mountpoint --quiet /home/yunohost.backup/tmp/matomo-pre-upgrade2
2021-07-29 11:08:45,505: DEBUG - 23181 + mv /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/var/www/matomo /var/www/matomo
2021-07-29 11:08:45,525: DEBUG - 23201 + chmod 750 /var/www/matomo
2021-07-29 11:08:45,549: DEBUG - 23224 + chmod -R o-rwx /var/www/matomo
2021-07-29 11:08:45,694: DEBUG - 23371 + chown -R matomo:www-data /var/www/matomo
2021-07-29 11:08:46,007: DEBUG - 23682 + echo '[##########+++.......] > Restoring PHP-FPM configuration...'
2021-07-29 11:08:46,011: DEBUG - 23684 [##########+++.......] > Restoring PHP-FPM configuration...
2021-07-29 11:08:46,012: DEBUG - 23685 + ynh_restore_file --origin_path=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:08:46,068: DEBUG - 23744 + origin_path=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:08:46,069: DEBUG - 23745 + dest_path=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:08:46,069: DEBUG - 23745 + not_mandatory=0
2021-07-29 11:08:46,069: DEBUG - 23746 + local archive_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:08:46,069: DEBUG - 23746 + '[' '!' -d /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf ']'
2021-07-29 11:08:46,070: DEBUG - 23746 + '[' '!' -f /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf ']'
2021-07-29 11:08:46,070: DEBUG - 23746 + [[ -e /etc/php/7.3/fpm/pool.d/matomo.conf ]]
2021-07-29 11:08:46,086: DEBUG - 23762 ++ dirname /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:08:46,093: DEBUG - 23769 + mkdir --parents /etc/php/7.3/fpm/pool.d
2021-07-29 11:08:46,097: DEBUG - 23773 + mountpoint --quiet /home/yunohost.backup/tmp/matomo-pre-upgrade2
2021-07-29 11:08:46,102: DEBUG - 23778 + mv /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/php/7.3/fpm/pool.d/matomo.conf /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:08:46,106: DEBUG - 23783 + ynh_add_fpm_config --usage=low --footprint=low '--package=php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:46,376: DEBUG - 24053 + package='php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:46,379: DEBUG - 24054 + use_template=1
2021-07-29 11:08:46,379: DEBUG - 24054 + usage=low
2021-07-29 11:08:46,380: DEBUG - 24054 + footprint=low
2021-07-29 11:08:46,380: DEBUG - 24054 + '[' -n low ']'
2021-07-29 11:08:46,380: DEBUG - 24055 + use_template=0
2021-07-29 11:08:46,380: DEBUG - 24055 + dedicated_service=0
2021-07-29 11:08:46,380: DEBUG - 24055 + phpversion=7.3
2021-07-29 11:08:46,381: DEBUG - 24058 ++ ynh_app_setting_get --app=matomo --key=phpversion
2021-07-29 11:08:46,457: DEBUG - 24134 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:08:46,458: DEBUG - 24135 ++ ynh_app_setting get matomo phpversion
2021-07-29 11:08:46,590: DEBUG - 24266 + local old_phpversion=7.3
2021-07-29 11:08:46,590: DEBUG - 24267 + '[' -n 7.3 ']'
2021-07-29 11:08:46,591: DEBUG - 24268 + '[' 7.3 '!=' 7.3 ']'
2021-07-29 11:08:46,592: DEBUG - 24269 + '[' 7.3 '!=' 7.3 ']'
2021-07-29 11:08:46,593: DEBUG - 24270 + '[' -n 'php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring' ']'
2021-07-29 11:08:46,594: DEBUG - 24271 + ynh_add_app_dependencies '--package=php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:46,632: DEBUG - 24306 + replace=0
2021-07-29 11:08:46,632: DEBUG - 24307 + local current_dependencies=
2021-07-29 11:08:46,633: DEBUG - 24307 + '[' 0 -eq 0 ']'
2021-07-29 11:08:46,633: DEBUG - 24307 + local dep_app=matomo
2021-07-29 11:08:46,633: DEBUG - 24308 + ynh_package_is_installed --package=matomo-ynh-deps
2021-07-29 11:08:46,652: DEBUG - 24328 + ynh_wait_dpkg_free
2021-07-29 11:08:47,088: DEBUG - 24764 + return 0
2021-07-29 11:08:47,089: DEBUG - 24766 + dpkg-query --show '--showformat=${Status}' matomo-ynh-deps
2021-07-29 11:08:47,091: DEBUG - 24767 + grep --count 'ok installed'
2021-07-29 11:08:47,257: DEBUG - 24934 ++ dpkg-query --show '--showformat=${Depends}' matomo-ynh-deps
2021-07-29 11:08:47,292: DEBUG - 24969 + current_dependencies='php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring '
2021-07-29 11:08:47,293: DEBUG - 24969 + current_dependencies='php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring '
2021-07-29 11:08:47,293: DEBUG - 24970 + ynh_install_app_dependencies 'php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:47,293: DEBUG - 24970 + local 'dependencies=php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:47,295: DEBUG - 24972 ++ echo 'php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring php7.3-curl php7.3-gd php7.3-cli php7.3-mysql php7.3-xml php7.3-mbstring'
2021-07-29 11:08:47,296: DEBUG - 24973 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2021-07-29 11:08:47,303: DEBUG - 24979 + dependencies='php7.3-curl,, php7.3-gd,, php7.3-cli,, php7.3-mysql,, php7.3-xml,, php7.3-mbstring, php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring'
2021-07-29 11:08:47,303: DEBUG - 24979 + local 'dependencies=php7.3-curl,, php7.3-gd,, php7.3-cli,, php7.3-mysql,, php7.3-xml,, php7.3-mbstring, php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring'
2021-07-29 11:08:47,304: DEBUG - 24980 + local manifest_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/manifest.json
2021-07-29 11:08:47,304: DEBUG - 24981 ++ jq -r .version /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/manifest.json
2021-07-29 11:08:47,365: DEBUG - 25041 + local version=4.3.1~ynh2
2021-07-29 11:08:47,366: DEBUG - 25042 + '[' -z 4.3.1~ynh2 ']'
2021-07-29 11:08:47,367: DEBUG - 25044 + '[' 4.3.1~ynh2 == null ']'
2021-07-29 11:08:47,368: DEBUG - 25045 + local dep_app=matomo
2021-07-29 11:08:47,369: DEBUG - 25046 + [[ php7.3-curl,, php7.3-gd,, php7.3-cli,, php7.3-mysql,, php7.3-xml,, php7.3-mbstring, php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring =~ [<=>] ]]
2021-07-29 11:08:47,370: DEBUG - 25047 + grep --quiet php
2021-07-29 11:08:47,372: DEBUG - 25048 + echo php7.3-curl,, php7.3-gd,, php7.3-cli,, php7.3-mysql,, php7.3-xml,, php7.3-mbstring, php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring
2021-07-29 11:08:47,374: DEBUG - 25050 + dpkg --list
2021-07-29 11:08:47,375: DEBUG - 25051 + grep --quiet --invert-match 7.0.33-0+deb9
2021-07-29 11:08:47,378: DEBUG - 25054 + grep php7.0
2021-07-29 11:08:47,443: DEBUG - 25120 + cat
2021-07-29 11:08:47,472: DEBUG - 25147 + ynh_package_install_from_equivs /tmp/matomo-ynh-deps.control
2021-07-29 11:08:47,473: DEBUG - 25148 + local controlfile=/tmp/matomo-ynh-deps.control
2021-07-29 11:08:47,475: DEBUG - 25152 ++ cut '--delimiter= ' --fields=2
2021-07-29 11:08:47,477: DEBUG - 25153 ++ grep '^Package: ' /tmp/matomo-ynh-deps.control
2021-07-29 11:08:47,491: DEBUG - 25167 + local pkgname=matomo-ynh-deps
2021-07-29 11:08:47,493: DEBUG - 25170 ++ grep '^Version: ' /tmp/matomo-ynh-deps.control
2021-07-29 11:08:47,495: DEBUG - 25171 ++ cut '--delimiter= ' --fields=2
2021-07-29 11:08:47,502: DEBUG - 25177 + local pkgversion=4.3.1~ynh2
2021-07-29 11:08:47,502: DEBUG - 25177 + [[ -z matomo-ynh-deps ]]
2021-07-29 11:08:47,502: DEBUG - 25178 + [[ -z 4.3.1~ynh2 ]]
2021-07-29 11:08:47,503: DEBUG - 25178 + ynh_package_update
2021-07-29 11:08:47,503: DEBUG - 25178 + ynh_apt update
2021-07-29 11:08:47,503: DEBUG - 25178 + ynh_wait_dpkg_free
2021-07-29 11:08:47,674: DEBUG - 25350 + return 0
2021-07-29 11:08:47,674: DEBUG - 25350 + LC_ALL=C
2021-07-29 11:08:47,675: DEBUG - 25350 + DEBIAN_FRONTEND=noninteractive
2021-07-29 11:08:47,675: DEBUG - 25351 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-07-29 11:08:48,481: DEBUG - 26157 Hit:1 http://ftp.fr.debian.org/debian buster InRelease
2021-07-29 11:08:48,483: DEBUG - 26159 Hit:2 http://ftp.fr.debian.org/debian buster-updates InRelease
2021-07-29 11:08:48,483: DEBUG - 26159 Hit:3 http://security.debian.org/debian-security buster/updates InRelease
2021-07-29 11:08:48,483: DEBUG - 26160 Hit:4 http://forge.yunohost.org/debian buster InRelease
2021-07-29 11:08:52,867: DEBUG - 30543 Reading package lists...
2021-07-29 11:08:53,685: DEBUG - 31361 ++ mktemp --directory
2021-07-29 11:08:53,688: DEBUG - 31364 + local TMPDIR=/tmp/tmp.PBCWWW92Pb
2021-07-29 11:08:53,688: DEBUG - 31365 + echo 10
2021-07-29 11:08:53,842: DEBUG - 31517 + ynh_wait_dpkg_free
2021-07-29 11:08:54,034: DEBUG - 31710 + return 0
2021-07-29 11:08:54,034: DEBUG - 31710 + cp /tmp/matomo-ynh-deps.control /tmp/tmp.PBCWWW92Pb/control
2021-07-29 11:08:54,039: DEBUG - 31715 + cd /tmp/tmp.PBCWWW92Pb
2021-07-29 11:08:54,040: DEBUG - 31717 + LC_ALL=C
2021-07-29 11:08:54,041: DEBUG - 31717 + equivs-build ./control
2021-07-29 11:08:57,802: DEBUG - 35478 + tee ./dpkg_log
2021-07-29 11:08:57,804: DEBUG - 35480 + LC_ALL=C
2021-07-29 11:08:57,804: DEBUG - 35480 + dpkg --force-depends --install ./matomo-ynh-deps_4.3.1~ynh2_all.deb
2021-07-29 11:09:07,911: DEBUG - 45587 (Reading database ... 91993 files and directories currently installed.)
2021-07-29 11:09:07,929: DEBUG - 45606 Preparing to unpack .../matomo-ynh-deps_4.3.1~ynh2_all.deb ...
2021-07-29 11:09:08,106: DEBUG - 45782 Unpacking matomo-ynh-deps (4.3.1~ynh2) over (4.3.1~ynh2) ...
2021-07-29 11:09:08,473: DEBUG - 46149 Setting up matomo-ynh-deps (4.3.1~ynh2) ...
2021-07-29 11:09:08,799: DEBUG - 46475 + ynh_package_install --fix-broken
2021-07-29 11:09:08,800: DEBUG - 46476 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-07-29 11:09:08,800: DEBUG - 46477 + ynh_wait_dpkg_free
2021-07-29 11:09:08,986: DEBUG - 46662 + return 0
2021-07-29 11:09:08,988: DEBUG - 46664 + LC_ALL=C
2021-07-29 11:09:08,989: DEBUG - 46665 + DEBIAN_FRONTEND=noninteractive
2021-07-29 11:09:08,989: DEBUG - 46665 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-07-29 11:09:10,274: DEBUG - 47950 Reading package lists...
2021-07-29 11:09:10,737: DEBUG - 48413 Building dependency tree...
2021-07-29 11:09:10,757: DEBUG - 48433 Reading state information...
2021-07-29 11:09:11,576: DEBUG - 49253 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2021-07-29 11:09:11,578: DEBUG - 49254 + [[ -n /tmp/tmp.PBCWWW92Pb ]]
2021-07-29 11:09:11,579: DEBUG - 49256 + rm --recursive --force /tmp/tmp.PBCWWW92Pb
2021-07-29 11:09:11,592: DEBUG - 49268 + ynh_package_is_installed matomo-ynh-deps
2021-07-29 11:09:11,666: DEBUG - 49342 + ynh_wait_dpkg_free
2021-07-29 11:09:11,877: DEBUG - 49554 + return 0
2021-07-29 11:09:11,879: DEBUG - 49555 + dpkg-query --show '--showformat=${Status}' matomo-ynh-deps
2021-07-29 11:09:11,881: DEBUG - 49557 + grep --count 'ok installed'
2021-07-29 11:09:11,925: DEBUG - 49601 + rm /tmp/matomo-ynh-deps.control
2021-07-29 11:09:11,928: DEBUG - 49604 + ynh_app_setting_set --app=matomo --key=apt_dependencies '--value=php7.3-curl,, php7.3-gd,, php7.3-cli,, php7.3-mysql,, php7.3-xml,, php7.3-mbstring, php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring'
2021-07-29 11:09:12,078: DEBUG - 49754 + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:12,079: DEBUG - 49756 + ynh_app_setting set matomo apt_dependencies 'php7.3-curl,, php7.3-gd,, php7.3-cli,, php7.3-mysql,, php7.3-xml,, php7.3-mbstring, php7.3-curl, php7.3-gd, php7.3-cli, php7.3-mysql, php7.3-xml, php7.3-mbstring'
2021-07-29 11:09:12,401: DEBUG - 50078 + '[' 0 -eq 1 ']'
2021-07-29 11:09:12,402: DEBUG - 50078 + local fpm_service=php7.3-fpm
2021-07-29 11:09:12,402: DEBUG - 50078 + local fpm_config_dir=/etc/php/7.3/fpm
2021-07-29 11:09:12,402: DEBUG - 50079 + mkdir --parents /etc/php/7.3/fpm/pool.d
2021-07-29 11:09:12,418: DEBUG - 50094 + ynh_app_setting_set --app=matomo --key=fpm_config_dir --value=/etc/php/7.3/fpm
2021-07-29 11:09:12,569: DEBUG - 50245 + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:12,570: DEBUG - 50246 + ynh_app_setting set matomo fpm_config_dir /etc/php/7.3/fpm
2021-07-29 11:09:12,698: DEBUG - 50375 + ynh_app_setting_set --app=matomo --key=fpm_service --value=php7.3-fpm
2021-07-29 11:09:12,847: DEBUG - 50523 + [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:12,849: DEBUG - 50525 + ynh_app_setting set matomo fpm_service php7.3-fpm
2021-07-29 11:09:12,977: DEBUG - 50653 + ynh_app_setting_set --app=matomo --key=fpm_dedicated_service --value=0
2021-07-29 11:09:13,129: DEBUG - 50805 + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:13,130: DEBUG - 50806 + ynh_app_setting set matomo fpm_dedicated_service 0
2021-07-29 11:09:13,258: DEBUG - 50935 + ynh_app_setting_set --app=matomo --key=phpversion --value=7.3
2021-07-29 11:09:13,407: DEBUG - 51083 + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:13,408: DEBUG - 51084 + ynh_app_setting set matomo phpversion 7.3
2021-07-29 11:09:13,537: DEBUG - 51213 + '[' 0 -eq 1 ']'
2021-07-29 11:09:13,537: DEBUG - 51214 + '[' 0 -eq 1 ']'
2021-07-29 11:09:13,538: DEBUG - 51215 + ynh_app_setting_set --app=matomo --key=fpm_footprint --value=low
2021-07-29 11:09:13,689: DEBUG - 51366 + [[ fpm_footprint =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:13,690: DEBUG - 51367 + ynh_app_setting set matomo fpm_footprint low
2021-07-29 11:09:13,822: DEBUG - 51497 + ynh_app_setting_set --app=matomo --key=fpm_usage --value=low
2021-07-29 11:09:13,972: DEBUG - 51648 + [[ fpm_usage =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:13,974: DEBUG - 51650 + ynh_app_setting set matomo fpm_usage low
2021-07-29 11:09:14,101: DEBUG - 51777 + ynh_get_scalable_phpfpm --usage=low --footprint=low
2021-07-29 11:09:14,200: DEBUG - 51876 + footprint=low
2021-07-29 11:09:14,200: DEBUG - 51876 + usage=low
2021-07-29 11:09:14,202: DEBUG - 51877 + print=0
2021-07-29 11:09:14,203: DEBUG - 51878 + '[' low = low ']'
2021-07-29 11:09:14,204: DEBUG - 51878 + footprint=20
2021-07-29 11:09:14,204: DEBUG - 51879 + '[' 20 -le 20 ']'
2021-07-29 11:09:14,204: DEBUG - 51879 + min_spare_servers_factor=8
2021-07-29 11:09:14,204: DEBUG - 51880 + '[' low = low ']'
2021-07-29 11:09:14,205: DEBUG - 51880 + php_pm=ondemand
2021-07-29 11:09:14,205: DEBUG - 51880 ++ ynh_get_ram --total --ignore_swap
2021-07-29 11:09:14,326: DEBUG - 52003 ++ ignore_swap=1
2021-07-29 11:09:14,327: DEBUG - 52003 ++ only_swap=0
2021-07-29 11:09:14,327: DEBUG - 52003 ++ free=0
2021-07-29 11:09:14,327: DEBUG - 52004 ++ total=1
2021-07-29 11:09:14,327: DEBUG - 52004 ++ '[' 0 -eq 1 ']'
2021-07-29 11:09:14,328: DEBUG - 52004 ++ '[' 0 -eq 1 ']'
2021-07-29 11:09:14,328: DEBUG - 52004 ++ '[' 1 -eq 1 ']'
2021-07-29 11:09:14,330: DEBUG - 52006 +++ vmstat --stats --unit M
2021-07-29 11:09:14,330: DEBUG - 52007 +++ grep 'total memory'
2021-07-29 11:09:14,334: DEBUG - 52010 +++ awk '{print $1}'
2021-07-29 11:09:14,577: DEBUG - 52252 ++ local total_ram=859
2021-07-29 11:09:14,580: DEBUG - 52256 +++ vmstat --stats --unit M
2021-07-29 11:09:14,581: DEBUG - 52257 +++ grep 'total swap'
2021-07-29 11:09:14,587: DEBUG - 52263 +++ awk '{print $1}'
2021-07-29 11:09:14,595: DEBUG - 52270 ++ local total_swap=893
2021-07-29 11:09:14,595: DEBUG - 52271 ++ local total_ram_swap=1752
2021-07-29 11:09:14,595: DEBUG - 52271 ++ local ram=1752
2021-07-29 11:09:14,595: DEBUG - 52271 ++ '[' 1 -eq 1 ']'
2021-07-29 11:09:14,596: DEBUG - 52271 ++ ram=859
2021-07-29 11:09:14,596: DEBUG - 52271 ++ echo 859
2021-07-29 11:09:14,597: DEBUG - 52272 + local max_ram=859
2021-07-29 11:09:14,597: DEBUG - 52272 + php_max_children=21
2021-07-29 11:09:14,597: DEBUG - 52272 + '[' ondemand = static ']'
2021-07-29 11:09:14,597: DEBUG - 52274 ++ at_least_one 21
2021-07-29 11:09:14,598: DEBUG - 52275 ++ '[' 21 -le 0 ']'
2021-07-29 11:09:14,598: DEBUG - 52275 ++ echo 21
2021-07-29 11:09:14,600: DEBUG - 52277 + php_max_children=21
2021-07-29 11:09:14,601: DEBUG - 52278 ++ nproc
2021-07-29 11:09:14,617: DEBUG - 52293 + local core_number=2
2021-07-29 11:09:14,620: DEBUG - 52297 + local max_proc=8
2021-07-29 11:09:14,622: DEBUG - 52298 + '[' 21 -gt 8 ']'
2021-07-29 11:09:14,623: DEBUG - 52299 + php_max_children=8
2021-07-29 11:09:14,623: DEBUG - 52300 ++ ynh_app_setting_get --app=matomo --key=php_forced_max_children
2021-07-29 11:09:14,696: DEBUG - 52372 ++ [[ php_forced_max_children =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:14,696: DEBUG - 52373 ++ ynh_app_setting get matomo php_forced_max_children
2021-07-29 11:09:14,823: DEBUG - 52498 + local php_forced_max_children=
2021-07-29 11:09:14,823: DEBUG - 52499 + '[' -n '' ']'
2021-07-29 11:09:14,823: DEBUG - 52499 + '[' ondemand = dynamic ']'
2021-07-29 11:09:14,823: DEBUG - 52499 + php_min_spare_servers=0
2021-07-29 11:09:14,824: DEBUG - 52500 + php_max_spare_servers=0
2021-07-29 11:09:14,824: DEBUG - 52500 + php_start_servers=0
2021-07-29 11:09:14,824: DEBUG - 52500 + '[' 0 -eq 1 ']'
2021-07-29 11:09:14,825: DEBUG - 52501 + local phpfpm_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.conf
2021-07-29 11:09:14,825: DEBUG - 52501 + echo '
2021-07-29 11:09:14,825: DEBUG - 52501 [__APP__]
2021-07-29 11:09:14,825: DEBUG - 52502
2021-07-29 11:09:14,826: DEBUG - 52502 user = __APP__
2021-07-29 11:09:14,826: DEBUG - 52502 group = __APP__
2021-07-29 11:09:14,826: DEBUG - 52502
2021-07-29 11:09:14,826: DEBUG - 52502 chdir = __FINALPATH__
2021-07-29 11:09:14,827: DEBUG - 52503
2021-07-29 11:09:14,827: DEBUG - 52503 listen = /var/run/php/php__PHPVERSION__-fpm-__APP__.sock
2021-07-29 11:09:14,827: DEBUG - 52503 listen.owner = www-data
2021-07-29 11:09:14,827: DEBUG - 52503 listen.group = www-data
2021-07-29 11:09:14,828: DEBUG - 52503
2021-07-29 11:09:14,828: DEBUG - 52504 pm = __PHP_PM__
2021-07-29 11:09:14,828: DEBUG - 52504 pm.max_children = __PHP_MAX_CHILDREN__
2021-07-29 11:09:14,829: DEBUG - 52504 pm.max_requests = 500
2021-07-29 11:09:14,829: DEBUG - 52504 request_terminate_timeout = 1d
2021-07-29 11:09:14,829: DEBUG - 52505 '
2021-07-29 11:09:14,829: DEBUG - 52505 + '[' ondemand = dynamic ']'
2021-07-29 11:09:14,830: DEBUG - 52505 + '[' ondemand = ondemand ']'
2021-07-29 11:09:14,830: DEBUG - 52505 + echo '
2021-07-29 11:09:14,830: DEBUG - 52505 pm.process_idle_timeout = 10s
2021-07-29 11:09:14,830: DEBUG - 52506 '
2021-07-29 11:09:14,830: DEBUG - 52506 + '[' -e /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/extra_php-fpm.conf ']'
2021-07-29 11:09:14,831: DEBUG - 52506 + cat /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/extra_php-fpm.conf
2021-07-29 11:09:14,875: DEBUG - 52547 + local finalphpconf=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:14,877: DEBUG - 52548 + ynh_add_config --template=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:14,950: DEBUG - 52627 + '[' -f /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf//home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.conf ']'
2021-07-29 11:09:14,951: DEBUG - 52627 + '[' -f /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.conf ']'
2021-07-29 11:09:14,951: DEBUG - 52627 + template_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.conf
2021-07-29 11:09:14,951: DEBUG - 52628 + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:14,974: DEBUG - 52651 + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_matomo.conf
2021-07-29 11:09:14,975: DEBUG - 52652 ++ ynh_app_setting_get --app=matomo --key=checksum__etc_php_7.3_fpm_pool.d_matomo.conf
2021-07-29 11:09:15,050: DEBUG - 52726 ++ [[ checksum__etc_php_7.3_fpm_pool.d_matomo.conf =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:15,051: DEBUG - 52727 ++ ynh_app_setting get matomo checksum__etc_php_7.3_fpm_pool.d_matomo.conf
2021-07-29 11:09:15,177: DEBUG - 52853 + local checksum_value=d67818cce0b848b44cedf4dd55a7616e
2021-07-29 11:09:15,177: DEBUG - 52853 + backup_file_checksum=
2021-07-29 11:09:15,178: DEBUG - 52854 + '[' -n d67818cce0b848b44cedf4dd55a7616e ']'
2021-07-29 11:09:15,178: DEBUG - 52854 + '[' -e /etc/php/7.3/fpm/pool.d/matomo.conf ']'
2021-07-29 11:09:15,178: DEBUG - 52855 + echo 'd67818cce0b848b44cedf4dd55a7616e /etc/php/7.3/fpm/pool.d/matomo.conf'
2021-07-29 11:09:15,180: DEBUG - 52857 + md5sum --check --status
2021-07-29 11:09:15,191: DEBUG - 52868 + touch /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,194: DEBUG - 52871 + chown root:root /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,206: DEBUG - 52883 + chmod 640 /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,210: DEBUG - 52887 + cp -f /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,215: DEBUG - 52891 + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,216: DEBUG - 52893 + local target=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,217: DEBUG - 52894 ++ tr -d '>= '
2021-07-29 11:09:15,219: DEBUG - 52896 ++ jq -r .requirements.yunohost /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/manifest.json
2021-07-29 11:09:15,297: DEBUG - 52973 + local ynh_requirement=4.2.4
2021-07-29 11:09:15,297: DEBUG - 52974 + '[' -z 4.2.4 ']'
2021-07-29 11:09:15,298: DEBUG - 52974 + '[' 4.2.4 == null ']'
2021-07-29 11:09:15,298: DEBUG - 52974 + dpkg --compare-versions 4.2.4 ge 4.2
2021-07-29 11:09:15,305: DEBUG - 52981 + chmod o-rwx /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,307: DEBUG - 52983 + chmod g-w /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,310: DEBUG - 52986 + chown -R root:root /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,314: DEBUG - 52990 + ynh_system_user_exists matomo
2021-07-29 11:09:15,339: DEBUG - 53016 + getent passwd matomo
2021-07-29 11:09:15,356: DEBUG - 53032 + chown matomo:matomo /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,366: DEBUG - 53043 + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,391: DEBUG - 53068 + test -n /
2021-07-29 11:09:15,392: DEBUG - 53068 + local path_url_slash_less=
2021-07-29 11:09:15,392: DEBUG - 53068 + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,547: DEBUG - 53223 + local delimit=@
2021-07-29 11:09:15,547: DEBUG - 53224 + match_string=__PATH__/
2021-07-29 11:09:15,548: DEBUG - 53224 + replace_string=/
2021-07-29 11:09:15,548: DEBUG - 53224 + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,553: DEBUG - 53230 + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,708: DEBUG - 53384 + local delimit=@
2021-07-29 11:09:15,708: DEBUG - 53385 + match_string=__PATH__
2021-07-29 11:09:15,709: DEBUG - 53385 + replace_string=/
2021-07-29 11:09:15,709: DEBUG - 53386 + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,714: DEBUG - 53390 + test -n matomo
2021-07-29 11:09:15,714: DEBUG - 53391 + ynh_replace_string --match_string=__NAME__ --replace_string=matomo --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,876: DEBUG - 53552 + local delimit=@
2021-07-29 11:09:15,877: DEBUG - 53552 + match_string=__NAME__
2021-07-29 11:09:15,877: DEBUG - 53553 + replace_string=matomo
2021-07-29 11:09:15,877: DEBUG - 53553 + sed --in-place s@__NAME__@matomo@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:15,882: DEBUG - 53558 + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=matomo --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,037: DEBUG - 53713 + local delimit=@
2021-07-29 11:09:16,038: DEBUG - 53714 + match_string=__NAMETOCHANGE__
2021-07-29 11:09:16,038: DEBUG - 53714 + replace_string=matomo
2021-07-29 11:09:16,038: DEBUG - 53714 + sed --in-place s@__NAMETOCHANGE__@matomo@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,045: DEBUG - 53718 + ynh_replace_string --match_string=__USER__ --replace_string=matomo --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,201: DEBUG - 53877 + local delimit=@
2021-07-29 11:09:16,201: DEBUG - 53877 + match_string=__USER__
2021-07-29 11:09:16,202: DEBUG - 53878 + replace_string=matomo
2021-07-29 11:09:16,202: DEBUG - 53878 + sed --in-place s@__USER__@matomo@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,206: DEBUG - 53883 + test -n /var/www/matomo
2021-07-29 11:09:16,207: DEBUG - 53883 + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/matomo --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,369: DEBUG - 54045 + local delimit=@
2021-07-29 11:09:16,370: DEBUG - 54047 + match_string=__FINALPATH__
2021-07-29 11:09:16,370: DEBUG - 54047 + replace_string=/var/www/matomo
2021-07-29 11:09:16,371: DEBUG - 54047 + sed --in-place s@__FINALPATH__@/var/www/matomo@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,376: DEBUG - 54052 + test -n 7.3
2021-07-29 11:09:16,377: DEBUG - 54053 + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,524: DEBUG - 54201 + local delimit=@
2021-07-29 11:09:16,525: DEBUG - 54202 + match_string=__PHPVERSION__
2021-07-29 11:09:16,525: DEBUG - 54202 + replace_string=7.3
2021-07-29 11:09:16,526: DEBUG - 54202 + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,532: DEBUG - 54208 + test -n ''
2021-07-29 11:09:16,532: DEBUG - 54209 + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-07-29 11:09:16,535: DEBUG - 54212 ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,537: DEBUG - 54213 ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-07-29 11:09:16,541: DEBUG - 54218 ++ sort --unique
2021-07-29 11:09:16,565: DEBUG - 54240 + local delimit=@
2021-07-29 11:09:16,565: DEBUG - 54240 + for one_var in "${uniques_vars[@]}"
2021-07-29 11:09:16,565: DEBUG - 54241 + [[ -v app ]]
2021-07-29 11:09:16,565: DEBUG - 54241 + match_string=__APP__
2021-07-29 11:09:16,566: DEBUG - 54243 + match_string=__APP__
2021-07-29 11:09:16,567: DEBUG - 54244 + replace_string=matomo
2021-07-29 11:09:16,569: DEBUG - 54245 + replace_string=matomo
2021-07-29 11:09:16,570: DEBUG - 54246 + replace_string=matomo
2021-07-29 11:09:16,571: DEBUG - 54247 + sed --in-place s@__APP__@matomo@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,572: DEBUG - 54249 + for one_var in "${uniques_vars[@]}"
2021-07-29 11:09:16,573: DEBUG - 54250 + [[ -v php_max_children ]]
2021-07-29 11:09:16,574: DEBUG - 54251 + match_string=__PHP_MAX_CHILDREN__
2021-07-29 11:09:16,575: DEBUG - 54252 + match_string=__PHP_MAX_CHILDREN__
2021-07-29 11:09:16,576: DEBUG - 54253 + replace_string=8
2021-07-29 11:09:16,577: DEBUG - 54254 + replace_string=8
2021-07-29 11:09:16,578: DEBUG - 54255 + replace_string=8
2021-07-29 11:09:16,579: DEBUG - 54256 + sed --in-place s@__PHP_MAX_CHILDREN__@8@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,580: DEBUG - 54257 + for one_var in "${uniques_vars[@]}"
2021-07-29 11:09:16,582: DEBUG - 54258 + [[ -v php_pm ]]
2021-07-29 11:09:16,583: DEBUG - 54259 + match_string=__PHP_PM__
2021-07-29 11:09:16,584: DEBUG - 54261 + match_string=__PHP_PM__
2021-07-29 11:09:16,585: DEBUG - 54262 + replace_string=ondemand
2021-07-29 11:09:16,586: DEBUG - 54263 + replace_string=ondemand
2021-07-29 11:09:16,587: DEBUG - 54264 + replace_string=ondemand
2021-07-29 11:09:16,588: DEBUG - 54265 + sed --in-place s@__PHP_PM__@ondemand@g /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,589: DEBUG - 54266 + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,607: DEBUG - 54284 + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_matomo.conf
2021-07-29 11:09:16,609: DEBUG - 54286 ++ md5sum /etc/php/7.3/fpm/pool.d/matomo.conf
2021-07-29 11:09:16,610: DEBUG - 54287 ++ cut '--delimiter= ' --fields=1
2021-07-29 11:09:16,631: DEBUG - 54307 + ynh_app_setting_set --app=matomo --key=checksum__etc_php_7.3_fpm_pool.d_matomo.conf --value=d67818cce0b848b44cedf4dd55a7616e
2021-07-29 11:09:16,796: DEBUG - 54473 + [[ checksum__etc_php_7.3_fpm_pool.d_matomo.conf =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:16,799: DEBUG - 54475 + ynh_app_setting set matomo checksum__etc_php_7.3_fpm_pool.d_matomo.conf d67818cce0b848b44cedf4dd55a7616e
2021-07-29 11:09:16,929: DEBUG - 54605 + '[' -n '' ']'
2021-07-29 11:09:16,929: DEBUG - 54605 + unset backup_file_checksum
2021-07-29 11:09:16,929: DEBUG - 54605 + '[' -e /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/settings/conf/php-fpm.ini ']'
2021-07-29 11:09:16,930: DEBUG - 54606 + '[' 0 -eq 1 ']'
2021-07-29 11:09:16,930: DEBUG - 54606 + php-fpm7.3 --test
2021-07-29 11:09:17,571: DEBUG - 55247 + ynh_systemd_action --service_name=php7.3-fpm --action=reload
2021-07-29 11:09:17,773: DEBUG - 55448 + service_name=php7.3-fpm
2021-07-29 11:09:17,773: DEBUG - 55449 + action=reload
2021-07-29 11:09:17,773: DEBUG - 55449 + line_match=
2021-07-29 11:09:17,774: DEBUG - 55450 + length=20
2021-07-29 11:09:17,774: DEBUG - 55450 + log_path=/var/log/php7.3-fpm/php7.3-fpm.log
2021-07-29 11:09:17,774: DEBUG - 55450 + timeout=300
2021-07-29 11:09:17,774: DEBUG - 55450 + '[' reload == stop ']'
2021-07-29 11:09:17,775: DEBUG - 55451 + [[ -n '' ]]
2021-07-29 11:09:17,775: DEBUG - 55451 + '[' reload == reload ']'
2021-07-29 11:09:17,775: DEBUG - 55451 + action=reload-or-restart
2021-07-29 11:09:17,775: DEBUG - 55451 + systemctl reload-or-restart php7.3-fpm
2021-07-29 11:09:17,950: DEBUG - 55625 + [[ -n '' ]]
2021-07-29 11:09:18,186: DEBUG - 55862 + echo '[#############++.....] > Restoring the MySQL database...'
2021-07-29 11:09:18,189: DEBUG - 55864 ++ ynh_app_setting_get --app=matomo --key=mysqlpwd
2021-07-29 11:09:18,190: DEBUG - 55865 [#############++.....] > Restoring the MySQL database...
2021-07-29 11:09:18,280: DEBUG - 55956 ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:18,281: DEBUG - 55956 ++ ynh_app_setting get matomo mysqlpwd
2021-07-29 11:09:18,462: DEBUG - 56138 + db_pwd=**********
2021-07-29 11:09:18,462: DEBUG - 56139 + ynh_mysql_setup_db --db_user=matomo --db_name=matomo --db_pwd=**********
2021-07-29 11:09:18,464: DEBUG - 56140 + db_pwd=
2021-07-29 11:09:18,637: DEBUG - 56313 ++ ynh_string_random
2021-07-29 11:09:18,640: DEBUG - 56317 ++ length=24
2021-07-29 11:09:18,642: DEBUG - 56319 ++ dd if=/dev/urandom bs=1 count=1000
2021-07-29 11:09:18,645: DEBUG - 56321 ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2021-07-29 11:09:18,646: DEBUG - 56323 ++ tr --complement --delete A-Za-z0-9
2021-07-29 11:09:18,684: DEBUG - 56360 + local new_db_pwd=**********
2021-07-29 11:09:18,684: DEBUG - 56361 + db_pwd=**********
2021-07-29 11:09:18,685: DEBUG - 56361 + ynh_mysql_create_db matomo matomo **********
2021-07-29 11:09:18,685: DEBUG - 56361 + local db=matomo
2021-07-29 11:09:18,685: DEBUG - 56362 + local 'sql=CREATE DATABASE matomo;'
2021-07-29 11:09:18,685: DEBUG - 56362 + [[ 3 -gt 1 ]]
2021-07-29 11:09:18,686: DEBUG - 56362 + sql+=' GRANT ALL PRIVILEGES ON matomo.* TO '\''matomo'\''@'\''localhost'\'''
2021-07-29 11:09:18,686: DEBUG - 56362 + [[ -n ********** ]]
2021-07-29 11:09:18,686: DEBUG - 56362 + sql+=' IDENTIFIED BY '\''**********'\'''
2021-07-29 11:09:18,686: DEBUG - 56363 + sql+=' WITH GRANT OPTION;'
2021-07-29 11:09:18,687: DEBUG - 56363 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE matomo; GRANT ALL PRIVILEGES ON matomo.* TO '\''matomo'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2021-07-29 11:09:18,734: DEBUG - 56410 + database=
2021-07-29 11:09:18,734: DEBUG - 56410 + '[' -n '' ']'
2021-07-29 11:09:18,735: DEBUG - 56410 + mysql -B ''
2021-07-29 11:09:19,230: DEBUG - 56905 + ynh_app_setting_set --app=matomo --key=mysqlpwd --value=**********
2021-07-29 11:09:19,405: DEBUG - 57081 + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2021-07-29 11:09:19,406: DEBUG - 57081 + ynh_app_setting set matomo mysqlpwd **********
2021-07-29 11:09:19,534: DEBUG - 57211 + ynh_mysql_connect_as --user=matomo --password=********** --database=matomo
2021-07-29 11:09:19,690: DEBUG - 57366 + database=matomo
2021-07-29 11:09:19,690: DEBUG - 57367 + mysql --user=matomo --password=********** --batch matomo
2021-07-29 11:09:37,456: DEBUG - 75129 + echo '[###############+....] > Restoring the cron file...'
2021-07-29 11:09:37,457: DEBUG - 75130 [###############+....] > Restoring the cron file...
2021-07-29 11:09:37,457: DEBUG - 75131 + ynh_restore_file --origin_path=/etc/cron.d/matomo
2021-07-29 11:09:37,520: DEBUG - 75194 + origin_path=/etc/cron.d/matomo
2021-07-29 11:09:37,520: DEBUG - 75195 + dest_path=/etc/cron.d/matomo
2021-07-29 11:09:37,521: DEBUG - 75195 + not_mandatory=0
2021-07-29 11:09:37,521: DEBUG - 75195 + local archive_path=/home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/cron.d/matomo
2021-07-29 11:09:37,521: DEBUG - 75196 + '[' '!' -d /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/cron.d/matomo ']'
2021-07-29 11:09:37,521: DEBUG - 75196 + '[' '!' -f /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/cron.d/matomo ']'
2021-07-29 11:09:37,522: DEBUG - 75196 + [[ -e /etc/cron.d/matomo ]]
2021-07-29 11:09:37,522: DEBUG - 75198 ++ dirname /etc/cron.d/matomo
2021-07-29 11:09:37,555: DEBUG - 75231 + mkdir --parents /etc/cron.d
2021-07-29 11:09:37,560: DEBUG - 75237 + mountpoint --quiet /home/yunohost.backup/tmp/matomo-pre-upgrade2
2021-07-29 11:09:37,623: DEBUG - 75299 + mv /home/yunohost.backup/tmp/matomo-pre-upgrade2/apps/matomo/backup/etc/cron.d/matomo /etc/cron.d/matomo
2021-07-29 11:09:37,819: DEBUG - 75495 + echo '[################++..] > Reloading NGINX web server and PHP-FPM...'
2021-07-29 11:09:37,820: DEBUG - 75496 [################++..] > Reloading NGINX web server and PHP-FPM...
2021-07-29 11:09:37,823: DEBUG - 75498 + ynh_systemd_action --service_name=php7.3-fpm --action=reload
2021-07-29 11:09:38,035: DEBUG - 75708 + service_name=php7.3-fpm
2021-07-29 11:09:38,035: DEBUG - 75709 + action=reload
2021-07-29 11:09:38,035: DEBUG - 75709 + line_match=
2021-07-29 11:09:38,035: DEBUG - 75710 + length=20
2021-07-29 11:09:38,036: DEBUG - 75710 + log_path=/var/log/php7.3-fpm/php7.3-fpm.log
2021-07-29 11:09:38,036: DEBUG - 75710 + timeout=300
2021-07-29 11:09:38,036: DEBUG - 75710 + '[' reload == stop ']'
2021-07-29 11:09:38,036: DEBUG - 75711 + [[ -n '' ]]
2021-07-29 11:09:38,036: DEBUG - 75711 + '[' reload == reload ']'
2021-07-29 11:09:38,038: DEBUG - 75711 + action=reload-or-restart
2021-07-29 11:09:38,038: DEBUG - 75711 + systemctl reload-or-restart php7.3-fpm
2021-07-29 11:09:38,076: DEBUG - 75748 + [[ -n '' ]]
2021-07-29 11:09:38,077: DEBUG - 75749 + ynh_systemd_action --service_name=nginx --action=reload
2021-07-29 11:09:38,356: DEBUG - 76033 + service_name=nginx
2021-07-29 11:09:38,357: DEBUG - 76033 + action=reload
2021-07-29 11:09:38,357: DEBUG - 76034 + line_match=
2021-07-29 11:09:38,358: DEBUG - 76034 + length=20
2021-07-29 11:09:38,358: DEBUG - 76034 + log_path=/var/log/nginx/nginx.log
2021-07-29 11:09:38,358: DEBUG - 76034 + timeout=300
2021-07-29 11:09:38,358: DEBUG - 76035 + '[' reload == stop ']'
2021-07-29 11:09:38,359: DEBUG - 76035 + [[ -n '' ]]
2021-07-29 11:09:38,359: DEBUG - 76035 + '[' reload == reload ']'
2021-07-29 11:09:38,359: DEBUG - 76035 + action=reload-or-restart
2021-07-29 11:09:38,359: DEBUG - 76036 + systemctl reload-or-restart nginx
2021-07-29 11:09:43,362: DEBUG - 81038 + [[ -n '' ]]
2021-07-29 11:09:43,542: DEBUG - 81219 + echo '[####################] > Restoration completed for Matomo'
2021-07-29 11:09:43,545: DEBUG - 81220 [####################] > Restoration completed for Matomo
2021-07-29 11:09:43,546: DEBUG - 81222 + ynh_exit_properly
2021-07-29 11:09:43,546: DEBUG - 81222 + local exit_code=0
2021-07-29 11:09:43,546: DEBUG - 81222 + rm -rf /var/cache/yunohost/download/
2021-07-29 11:09:43,547: DEBUG - 81224 + '[' 0 -eq 0 ']'
2021-07-29 11:09:43,547: DEBUG - 81224 + exit 0
2021-07-29 11:09:44,589: DEBUG - 82265 To view the log of the operation 'Restore 'matomo' from a backup archive', use the command 'yunohost log show 20210729-090836-backup_restore_app-matomo20210729-090836-backup_restore_app-matomo'
2021-07-29 11:09:44,900: DEBUG - 82576 The permission database has been resynchronized
2021-07-29 11:09:45,187: DEBUG - 82864 SSOwat configuration regenerated
2021-07-29 11:09:45,343: DEBUG - 83019 Restoration completed
2021-07-29 11:09:45,345: DEBUG - 83020 action [29459.1] executed in 82.662s
2021-07-29 11:09:45,346: DEBUG - apps:
2021-07-29 11:09:45,346: DEBUG -   matomo: Success
2021-07-29 11:09:45,346: DEBUG - system:
2021-07-29 11:09:45,484: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
2021-07-29 11:09:45,542: DEBUG - + ret_code=1
2021-07-29 11:09:45,543: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.'
2021-07-29 11:09:45,543: DEBUG - + exit 1
2021-07-29 11:09:45,543: WARNING - The app was restored to the way it was before the failed upgrade.
2021-07-29 11:09:46,564: ERROR - Could not upgrade matomo: An error occurred inside the app upgrade script

Je vous remercie par avance de l’aide que vous m’apporterez :slight_smile:

Cordialement,

same problem

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