Testing package https://github.com/YunoHost-Apps/digiwords_ynh on branch testing (commit 9874b3310b9dd129f663f6e778cf1012e369e547) Parsing check_process file { "test_serie": "default", "test_type": "PACKAGE_LINTER", "test_arg": "", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_INSTALL", "test_arg": "root", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_INSTALL", "test_arg": "subdir", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_INSTALL", "test_arg": "private", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_INSTALL", "test_arg": "multi", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_BACKUP_RESTORE", "test_arg": "", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_UPGRADE", "test_arg": "", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } { "test_serie": "default", "test_type": "TEST_UPGRADE", "test_arg": "fabe9c7bdb98a0569148a79546e2889c2823d79a", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": { "upgrade_name": "" } } { "test_serie": "default", "test_type": "TEST_CHANGE_URL", "test_arg": "", "preinstall_template": "", "preupgrade_template": "", "install_args": "domain=domain.tld&path=/path&# admin=john&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&", "extra": {} } Launching new LXC ynh-appci-buster-amd64-stable-test-1 ... Creating ynh-appci-buster-amd64-stable-test-1 Retrieving image: Unpack: 1% (19.57MB/s) Retrieving image: Unpack: 2% (20.91MB/s) Retrieving image: Unpack: 3% (22.04MB/s) Retrieving image: Unpack: 4% (21.73MB/s) Retrieving image: Unpack: 5% (22.25MB/s) Retrieving image: Unpack: 6% (20.91MB/s) Retrieving image: Unpack: 7% (21.38MB/s) Retrieving image: Unpack: 8% (21.48MB/s) Retrieving image: Unpack: 9% (21.35MB/s) Retrieving image: Unpack: 10% (21.34MB/s) Retrieving image: Unpack: 10% (20.43MB/s) Retrieving image: Unpack: 11% (20.63MB/s) Retrieving image: Unpack: 12% (21.23MB/s) Retrieving image: Unpack: 13% (21.36MB/s) Retrieving image: Unpack: 14% (21.33MB/s) Retrieving image: Unpack: 15% (21.47MB/s) Retrieving image: Unpack: 16% (21.81MB/s) Retrieving image: Unpack: 17% (21.38MB/s) Retrieving image: Unpack: 18% (21.59MB/s) Retrieving image: Unpack: 19% (21.59MB/s) Retrieving image: Unpack: 19% (21.46MB/s) Retrieving image: Unpack: 20% (21.15MB/s) Retrieving image: Unpack: 21% (21.07MB/s) Retrieving image: Unpack: 22% (21.31MB/s) Retrieving image: Unpack: 23% (21.67MB/s) Retrieving image: Unpack: 24% (22.09MB/s) Retrieving image: Unpack: 25% (22.49MB/s) Retrieving image: Unpack: 26% (22.74MB/s) Retrieving image: Unpack: 27% (23.03MB/s) Retrieving image: Unpack: 28% (23.15MB/s) Retrieving image: Unpack: 28% (23.49MB/s) Retrieving image: Unpack: 29% (23.15MB/s) Retrieving image: Unpack: 30% (22.60MB/s) Retrieving image: Unpack: 31% (22.11MB/s) Retrieving image: Unpack: 32% (22.04MB/s) Retrieving image: Unpack: 33% (21.84MB/s) Retrieving image: Unpack: 34% (21.81MB/s) Retrieving image: Unpack: 35% (21.83MB/s) Retrieving image: Unpack: 36% (21.65MB/s) Retrieving image: Unpack: 37% (21.69MB/s) Retrieving image: Unpack: 38% (21.65MB/s) Retrieving image: Unpack: 38% (21.73MB/s) Retrieving image: Unpack: 39% (21.69MB/s) Retrieving image: Unpack: 40% (21.72MB/s) Retrieving image: Unpack: 41% (21.69MB/s) Retrieving image: Unpack: 42% (21.69MB/s) Retrieving image: Unpack: 43% (21.69MB/s) Retrieving image: Unpack: 44% (21.94MB/s) Retrieving image: Unpack: 45% (22.15MB/s) Retrieving image: Unpack: 46% (22.38MB/s) Retrieving image: Unpack: 47% (22.59MB/s) Retrieving image: Unpack: 47% (22.74MB/s) Retrieving image: Unpack: 48% (22.92MB/s) Retrieving image: Unpack: 49% (23.10MB/s) Retrieving image: Unpack: 50% (23.13MB/s) Retrieving image: Unpack: 51% (23.12MB/s) Retrieving image: Unpack: 52% (23.16MB/s) Retrieving image: Unpack: 53% (22.93MB/s) Retrieving image: Unpack: 54% (22.93MB/s) Retrieving image: Unpack: 55% (22.77MB/s) Retrieving image: Unpack: 56% (22.78MB/s) Retrieving image: Unpack: 56% (22.90MB/s) Retrieving image: Unpack: 57% (22.79MB/s) Retrieving image: Unpack: 58% (22.62MB/s) Retrieving image: Unpack: 59% (22.24MB/s) Retrieving image: Unpack: 60% (22.24MB/s) Retrieving image: Unpack: 61% (22.28MB/s) Retrieving image: Unpack: 62% (22.50MB/s) Retrieving image: Unpack: 63% (22.68MB/s) Retrieving image: Unpack: 64% (22.89MB/s) Retrieving image: Unpack: 65% (23.08MB/s) Retrieving image: Unpack: 65% (23.29MB/s) Retrieving image: Unpack: 66% (23.48MB/s) Retrieving image: Unpack: 67% (23.64MB/s) Retrieving image: Unpack: 68% (23.81MB/s) Retrieving image: Unpack: 69% (23.90MB/s) Retrieving image: Unpack: 70% (24.00MB/s) Retrieving image: Unpack: 71% (24.19MB/s) Retrieving image: Unpack: 72% (24.33MB/s) Retrieving image: Unpack: 73% (24.50MB/s) Retrieving image: Unpack: 74% (24.66MB/s) Retrieving image: Unpack: 75% (24.82MB/s) Retrieving image: Unpack: 75% (24.98MB/s) Retrieving image: Unpack: 76% (25.09MB/s) Retrieving image: Unpack: 77% (25.26MB/s) Retrieving image: Unpack: 78% (25.40MB/s) Retrieving image: Unpack: 79% (25.57MB/s) Retrieving image: Unpack: 80% (25.71MB/s) Retrieving image: Unpack: 81% (25.86MB/s) Retrieving image: Unpack: 82% (25.98MB/s) Retrieving image: Unpack: 83% (26.11MB/s) Retrieving image: Unpack: 84% (26.21MB/s) Retrieving image: Unpack: 84% (26.19MB/s) Retrieving image: Unpack: 85% (26.18MB/s) Retrieving image: Unpack: 86% (26.30MB/s) Retrieving image: Unpack: 87% (26.45MB/s) Retrieving image: Unpack: 88% (26.61MB/s) Retrieving image: Unpack: 89% (26.76MB/s) Retrieving image: Unpack: 90% (26.92MB/s) Retrieving image: Unpack: 91% (27.09MB/s) Retrieving image: Unpack: 92% (27.27MB/s) Retrieving image: Unpack: 93% (27.43MB/s) Retrieving image: Unpack: 93% (27.59MB/s) Retrieving image: Unpack: 94% (27.64MB/s) Retrieving image: Unpack: 95% (27.61MB/s) Retrieving image: Unpack: 96% (27.54MB/s) Retrieving image: Unpack: 97% (27.47MB/s) Retrieving image: Unpack: 98% (27.34MB/s) Retrieving image: Unpack: 99% (27.04MB/s) Retrieving image: Unpack: 100% (26.91MB/s) Retrieving image: Unpack: 100% (26.91MB/s) Starting ynh-appci-buster-amd64-stable-test-1 Create witness files... Return code: 0 Working time: 0s (09:24:09)  > YunoHost versions yunohost: repo: stable version: 4.3.6.3 yunohost-admin: repo: testing version: 4.3.4.1 moulinette: repo: stable version: 4.3.3.1 ssowat: repo: stable version: 4.3.3.1 Return code: 0 Working time: 0s (09:24:13) {"yunohost": {"version": "4.3.6.3", "repo": "stable"}, "yunohost-admin": {"version": "4.3.4.1", "repo": "testing"}, "moulinette": {"version": "4.3.3.1", "repo": "stable"}, "ssowat": {"version": "4.3.3.1", "repo": "stable"}} Return code: 0 Working time: 0s (09:24:16) {"yunohost": {"version": "4.3.6.3", "repo": "stable"}, "yunohost-admin": {"version": "4.3.4.1", "repo": "testing"}, "moulinette": {"version": "4.3.3.1", "repo": "stable"}, "ssowat": {"version": "4.3.3.1", "repo": "stable"}} Return code: 0 Working time: 0s (09:24:20)  ============================================ [Test 1/9] Package linter ============================================  [YunoHost App Package Linter] App packaging documentation - https://yunohost.org/en/contribute/packaging_apps App package example - https://github.com/YunoHost/example_ynh Official helpers - https://yunohost.org/en/contribute/packaging_apps/helpers Experimental helpers - https://github.com/YunoHost-Apps/Experimental_helpers If you believe this linter returns false negative (warnings / errors which shouldn't happen), please report them on https://github.com/YunoHost/package_linter/issues Analyzing app /tmp/package_check.nIJVG5/app_folder ... ✔ manifest.json ✔ scripts/_common.sh ✔ scripts/install ✔ scripts/remove ✔ scripts/upgrade ✔ scripts/backup ✔ scripts/restore ⓘ General stuff, misc helper usage - READMEs are to be automatically generated using https://github.com/YunoHost/apps/tree/master/tools/README-generator. - You are encouraged to create a doc/DISCLAIMER.md file, which should contain any important information to be presented to the admin before installation. Check https://github.com/YunoHost/example_ynh/blob/master/doc/DISCLAIMER.md for more details (it should be somewhat equivalent to the old 'Known limitations' and 'Specific features' section). (It's not mandatory to create this file if you're absolutely sure there's no relevant info to show to the user) - If relevant for this app, screenshots can be added in a doc/screenshots/ folder. ✔ Configuration files ✔ Catalog infos =======  ☺ Not even a warning! Congratz and thank you for keeping this package up to date with good practices! This app qualifies for level 7! ♥ { "success": [ "App.qualify_for_level_7" ], "info": [ "App.doc_dir" ], "warning": [], "error": [], "critical": [] } --- SUCCESS --- Working time for this test: 4 seconds (09:24:24)  ============================================ [Test 2/9] Installation on the root ============================================  Loading snapshot snap0 ... Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" 222 DEBUG initializing base actions map parser for cli 224 DEBUG loading actions map namespace 'yunohost' 227 DEBUG building parser... 249 DEBUG building parser took 0.021s 251 DEBUG acquiring lock... 269 DEBUG lock has been acquired 296 DEBUG loading python module yunohost.app took 0.026s 296 DEBUG processing action [813.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 340 DEBUG Extracting... 360 DEBUG Done 362 DEBUG Checking required packages for digiwords... 372 DEBUG Checking that required services are up and running... 1417 DEBUG initializing ldap interface 1570 INFO Installing digiwords... 1626 DEBUG Nothing to update in LDAP 1628 DEBUG Permission 'digiwords.main' updated 1634 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-092547-permission_url-digiwords' 1659 DEBUG The permission database has been resynchronized 1674 DEBUG SSOwat configuration regenerated 1696 DEBUG Permission 'digiwords.main' created 1697 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-092547-permission_create-digiwords' 1733 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1750 DEBUG + source _common.sh 1751 DEBUG ++ pkg_dependencies=php-sqlite3 1751 DEBUG + source /usr/share/yunohost/helpers 1753 DEBUG +++ grep xtrace 1753 DEBUG +++ set +o 1757 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1758 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1758 DEBUG ++ set +x 1826 DEBUG + ynh_abort_if_errors 1827 DEBUG + set -o errexit 1828 DEBUG + set -o nounset 1830 DEBUG + trap ynh_exit_properly EXIT 1831 DEBUG + domain=sub.domain.tld 1832 DEBUG + path_url=/ 1834 DEBUG + is_public=1 1834 DEBUG + app=digiwords 1835 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1836 DEBUG + set +o xtrace 1985 DEBUG + set +o xtrace 2053 DEBUG + echo '! Helper used in legacy mode !' 2057 DEBUG + set +x 2064 DEBUG + echo '[++..................] > Validating installation parameters...' 2065 DEBUG + set -o xtrace 2067 DEBUG + final_path=/var/www/digiwords 2068 DEBUG + test '!' -e /var/www/digiwords 2071 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/ 2073 DEBUG + local legacy_args=adp 2076 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 2077 DEBUG + local -A args_array 2079 DEBUG + local app 2081 DEBUG + local domain 2083 DEBUG + local path_url 2085 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/ 2086 DEBUG + set +o xtrace 2088 INFO [++..................] > Validating installation parameters... 2246 DEBUG + yunohost app register-url digiwords sub.domain.tld / 3029 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 3030 DEBUG + set +o xtrace 3149 DEBUG + set +o xtrace 3185 DEBUG + echo '! Helper used in legacy mode !' 3186 DEBUG + set +x 3190 INFO [##++................] > Storing installation settings... 3191 DEBUG + echo '[##++................] > Storing installation settings...' 3192 DEBUG + set -o xtrace 3192 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 3192 DEBUG + local _globalapp=digiwords 3193 DEBUG + local legacy_args=akv 3193 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3193 DEBUG + local -A args_array 3194 DEBUG + local app 3194 DEBUG + local key 3194 DEBUG + local value 3195 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 3195 DEBUG + set +o xtrace 3359 DEBUG + app=digiwords 3360 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 3361 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 3361 DEBUG + set +o xtrace 3517 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/ 3517 DEBUG + local _globalapp=digiwords 3518 DEBUG + local legacy_args=akv 3518 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3519 DEBUG + local -A args_array 3519 DEBUG + local app 3519 DEBUG + local key 3520 DEBUG + local value 3520 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/ 3521 DEBUG + set +o xtrace 3703 DEBUG + app=digiwords 3703 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3703 DEBUG + ynh_app_setting set digiwords path / 3704 DEBUG + set +o xtrace 3797 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3798 DEBUG + set +o xtrace 3914 DEBUG + set +o xtrace 3938 DEBUG + echo '! Helper used in legacy mode !' 3939 DEBUG + set +x 3943 DEBUG + echo '[####++..............] > Installing dependencies...' 3943 DEBUG + set -o xtrace 3943 DEBUG + ynh_install_app_dependencies php-sqlite3 3944 DEBUG + local dependencies=php-sqlite3 3944 INFO [####++..............] > Installing dependencies... 3947 DEBUG ++ echo php-sqlite3 3948 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3954 DEBUG + dependencies=php-sqlite3 3955 DEBUG + local dependencies=php-sqlite3 3955 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/manifest.json 3956 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/manifest.json 3974 DEBUG + local version=0.3.3~ynh1 3975 DEBUG + '[' -z 0.3.3~ynh1 ']' 3975 DEBUG + '[' 0.3.3~ynh1 == null ']' 3975 DEBUG + local dep_app=digiwords 3976 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3980 DEBUG ++ echo php-sqlite3 3984 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3985 DEBUG ++ sort -u 3991 DEBUG + local specific_php_version= 3994 DEBUG + [[ '' != \7\.\3 ]] 3994 DEBUG + [[ -n '' ]] 3995 DEBUG + [[ true == \t\r\u\e ]] 3995 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3995 DEBUG + grep --quiet php 4001 DEBUG + dpkg --list 4002 DEBUG + grep php7.0 4002 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 4039 DEBUG + cat 4045 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 4046 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 4048 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 4049 DEBUG ++ cut '--delimiter= ' --fields=2 4057 DEBUG + local pkgname=digiwords-ynh-deps 4059 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 4059 DEBUG ++ cut '--delimiter= ' --fields=2 4064 DEBUG + local pkgversion=0.3.3~ynh1 4064 DEBUG + [[ -z digiwords-ynh-deps ]] 4065 DEBUG + [[ -z 0.3.3~ynh1 ]] 4066 DEBUG + ynh_package_update 4066 DEBUG + ynh_apt update 4066 DEBUG + ynh_wait_dpkg_free 4067 DEBUG + local try 4067 DEBUG + set +o xtrace 5658 DEBUG + return 0 5659 DEBUG + LC_ALL=C 5660 DEBUG + DEBIAN_FRONTEND=noninteractive 5666 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5780 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5781 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5788 DEBUG Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] 5817 DEBUG Get:4 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB] 6550 DEBUG Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [11.1 kB] 6566 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6587 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6847 DEBUG Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [328 kB] 6889 DEBUG Get:8 http://deb.debian.org/debian-security buster/updates/main Translation-en [177 kB] 7036 DEBUG Fetched 635 kB in 1s (498 kB/s) 8574 DEBUG Reading package lists... 8619 DEBUG ++ mktemp --directory 8622 DEBUG + local TMPDIR=/tmp/tmp.meizKP7cAW 8623 DEBUG + echo 10 8626 DEBUG + ynh_wait_dpkg_free 8627 DEBUG + local try 8629 DEBUG + set +o xtrace 10013 DEBUG + return 0 10015 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.meizKP7cAW/control 10018 DEBUG + cd /tmp/tmp.meizKP7cAW 10021 DEBUG + LC_ALL=C 10022 DEBUG + equivs-build ./control 12077 DEBUG + LC_ALL=C 12079 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 12080 DEBUG + tee ./dpkg_log 12170 DEBUG Selecting previously unselected package digiwords-ynh-deps. 12216 DEBUG (Reading database ... 42385 files and directories currently installed.) 12226 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 12237 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 12308 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 12311 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 12311 DEBUG  Package php-sqlite3 is not installed. 12312 DEBUG  12312 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 12377 DEBUG + ynh_package_install --fix-broken 12379 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 12379 DEBUG + ynh_wait_dpkg_free 12380 DEBUG + local try 12381 DEBUG + set +o xtrace 13828 DEBUG + return 0 13829 DEBUG + LC_ALL=C 13829 DEBUG + DEBIAN_FRONTEND=noninteractive 13829 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 14032 DEBUG Reading package lists... 14494 DEBUG Building dependency tree... 14495 DEBUG Reading state information... 14744 DEBUG Correcting dependencies... Done 15173 DEBUG The following additional packages will be installed: 15175 DEBUG  php-sqlite3 php7.3-sqlite3 15228 DEBUG The following NEW packages will be installed: 15229 DEBUG  php-sqlite3 php7.3-sqlite3 15305 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 15306 DEBUG Need to get 32.2 kB of archives. 15306 DEBUG After this operation, 139 kB of additional disk space will be used. 15307 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php7.3-sqlite3 amd64 7.3.31-1~deb10u1 [26.2 kB] 15321 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 php-sqlite3 all 2:7.3+69 [5996 B] 15922 DEBUG Fetched 32.2 kB in 0s (610 kB/s) 16119 DEBUG Selecting previously unselected package php7.3-sqlite3. 16176 DEBUG (Reading database ... 42389 files and directories currently installed.) 16183 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 16215 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 16334 DEBUG Selecting previously unselected package php-sqlite3. 16341 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 16351 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 16497 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 16528 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16769 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16867 DEBUG  16869 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 16979 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17264 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17494 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17610 DEBUG  17612 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 17727 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18040 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 18074 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 18802 DEBUG + [[ -n /tmp/tmp.meizKP7cAW ]] 18804 DEBUG + rm --recursive --force /tmp/tmp.meizKP7cAW 18809 DEBUG + ynh_package_is_installed digiwords-ynh-deps 18810 DEBUG + local legacy_args=p 18811 DEBUG + args_array=([p]=package=) 18811 DEBUG + local -A args_array 18812 DEBUG + local package 18812 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 18814 DEBUG + set +o xtrace 18821 DEBUG + echo '! Helper used in legacy mode !' 18821 DEBUG + set +x 18824 DEBUG + ynh_wait_dpkg_free 18825 DEBUG + local try 18825 DEBUG + set +o xtrace 20236 DEBUG + return 0 20237 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 20238 DEBUG + grep --count 'ok installed' 20260 DEBUG + rm /tmp/digiwords-ynh-deps.control 20266 DEBUG + [[ -n '' ]] 20267 DEBUG + grep --quiet php 20274 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 20275 DEBUG + local _globalapp=digiwords 20276 DEBUG + local legacy_args=akv 20277 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20279 DEBUG + local -A args_array 20280 DEBUG + local app 20282 DEBUG + local key 20284 DEBUG + local value 20285 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 20288 DEBUG + set +o xtrace 20430 DEBUG + app=digiwords 20433 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 20435 DEBUG + ynh_app_setting set digiwords phpversion 7.3 20436 DEBUG + set +o xtrace 20513 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 20515 DEBUG + set +o xtrace 20661 DEBUG + set +o xtrace 20692 DEBUG + echo '! Helper used in legacy mode !' 20693 DEBUG + set +x 20702 DEBUG + echo '[######++............] > Configuring system user...' 20703 DEBUG + set -o xtrace 20703 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 20707 DEBUG + local legacy_args=uhs 20708 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 20709 DEBUG + local -A args_array 20710 DEBUG + local username 20714 DEBUG + local home_dir 20716 DEBUG + local use_shell 20722 DEBUG + local groups 20725 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 20726 DEBUG + set +o xtrace 20728 INFO [######++............] > Configuring system user... 20860 DEBUG + use_shell=0 20861 DEBUG + home_dir=/var/www/digiwords 20864 DEBUG + groups= 20866 DEBUG + ynh_system_user_exists digiwords 20868 DEBUG + local legacy_args=u 20869 DEBUG + args_array=([u]=username=) 20870 DEBUG + local -A args_array 20871 DEBUG + local username 20872 DEBUG + ynh_handle_getopts_args digiwords 20872 DEBUG + set +o xtrace 20885 DEBUG + echo '! Helper used in legacy mode !' 20886 DEBUG + set +x 20893 DEBUG + getent passwd digiwords 20905 DEBUG + '[' -n /var/www/digiwords ']' 20908 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 20909 DEBUG + '[' 0 -eq 1 ']' 20909 DEBUG + local 'shell=--shell /usr/sbin/nologin' 20910 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 21052 DEBUG + local group 21053 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 21053 DEBUG + set +o xtrace 21211 DEBUG + set +o xtrace 21243 DEBUG + echo '! Helper used in legacy mode !' 21245 DEBUG + set +x 21253 DEBUG + echo '[########++..........] > Setting up source files...' 21254 DEBUG + set -o xtrace 21254 INFO [########++..........] > Setting up source files... 21257 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 21258 DEBUG + local _globalapp=digiwords 21258 DEBUG + local legacy_args=akv 21258 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21258 DEBUG + local -A args_array 21258 DEBUG + local app 21261 DEBUG + local key 21263 DEBUG + local value 21264 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 21264 DEBUG + set +o xtrace 21468 DEBUG + app=digiwords 21469 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 21471 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 21473 DEBUG + set +o xtrace 21558 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 21559 DEBUG + local legacy_args=dsk 21560 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 21561 DEBUG + local -A args_array 21561 DEBUG + local dest_dir 21562 DEBUG + local source_id 21563 DEBUG + local keep 21564 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 21565 DEBUG + set +o xtrace 21617 DEBUG + source_id=app 21618 DEBUG + keep= 21619 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21622 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21624 DEBUG ++ cut --delimiter== --fields=2- 21626 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 21628 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21629 DEBUG ++ cut --delimiter== --fields=2- 21635 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 21636 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21638 DEBUG ++ cut --delimiter== --fields=2- 21649 DEBUG + local src_sumprg=sha256sum 21653 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21660 DEBUG ++ cut --delimiter== --fields=2- 21670 DEBUG + local src_format=zip 21673 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21674 DEBUG ++ cut --delimiter== --fields=2- 21679 DEBUG + local src_extract=true 21682 DEBUG ++ cut --delimiter== --fields=2- 21683 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21696 DEBUG + local src_in_subdir=true 21702 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/app.src 21704 DEBUG ++ cut --delimiter== --fields=2- 21711 DEBUG + local src_filename= 21712 DEBUG + src_sumprg=sha256sum 21713 DEBUG + src_in_subdir=true 21723 DEBUG + src_format=zip 21724 DEBUG ++ echo zip 21726 DEBUG ++ tr '[:upper:]' '[:lower:]' 21730 DEBUG + src_format=zip 21731 DEBUG + src_extract=true 21732 DEBUG + '[' '' = '' ']' 21733 DEBUG + src_filename=app.zip 21735 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 21738 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 21740 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 21742 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 21744 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 21745 DEBUG + local out 21747 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 23423 DEBUG + out='2022-05-31 09:26:09 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T092608Z&X-Amz-Expires=300&X-Amz-Signature=bd31550c2d47e10155e2de55a437d534b6364023fbd82da6b5b1b615b2d1c196&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 23426 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 23428 DEBUG + sha256sum --check --status 23454 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 23458 DEBUG + '[' -n '' ']' 23461 DEBUG + mkdir --parents /var/www/digiwords 23463 DEBUG + '[' -n /var/www/digiwords ']' 23463 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 23464 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 23465 DEBUG + local target=/var/www/digiwords 23465 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/manifest.json 23467 DEBUG ++ tr -d '>= ' 23473 DEBUG + local ynh_requirement=4.3.0 23474 DEBUG + '[' -z 4.3.0 ']' 23474 DEBUG + '[' 4.3.0 == null ']' 23475 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 23478 DEBUG + chmod o-rwx /var/www/digiwords 23485 DEBUG + chmod g-w /var/www/digiwords 23490 DEBUG + chown -R root:root /var/www/digiwords 23498 DEBUG + ynh_system_user_exists digiwords 23499 DEBUG + local legacy_args=u 23500 DEBUG + args_array=([u]=username=) 23500 DEBUG + local -A args_array 23501 DEBUG + local username 23501 DEBUG + ynh_handle_getopts_args digiwords 23502 DEBUG + set +o xtrace 23521 DEBUG + echo '! Helper used in legacy mode !' 23522 DEBUG + set +x 23526 DEBUG + getent passwd digiwords 23535 DEBUG + chown digiwords:digiwords /var/www/digiwords 23547 DEBUG + echo /var/www/digiwords 23547 DEBUG + grep -q '^/etc/cron' 23557 DEBUG + true 23558 DEBUG + '[' zip = zip ']' 23559 DEBUG + true 23560 DEBUG ++ mktemp --directory 23562 DEBUG + local tmp_dir=/tmp/tmp.vubQRc6Iod 23564 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.vubQRc6Iod 23626 DEBUG + cp --archive /tmp/tmp.vubQRc6Iod/digiwords/. /var/www/digiwords 23638 DEBUG + ynh_secure_remove --file=/tmp/tmp.vubQRc6Iod 23640 DEBUG + local legacy_args=f 23642 DEBUG + args_array=([f]=file=) 23644 DEBUG + local -A args_array 23645 DEBUG + local file 23646 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.vubQRc6Iod 23647 DEBUG + set +o xtrace 23673 DEBUG + set +o xtrace 23717 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 23718 DEBUG + local legacy_args=f 23720 DEBUG + args_array=([f]=file=) 23721 DEBUG + local -A args_array 23722 DEBUG + local file 23723 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 23723 DEBUG + set +o xtrace 23754 DEBUG + set +o xtrace 23778 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/sources/patches/ ']' 23780 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/sources/extra_files/app 23783 DEBUG + '[' -n '' ']' 23784 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 23789 DEBUG + chmod 750 /var/www/digiwords 23792 DEBUG + chmod -R o-rwx /var/www/digiwords 23797 DEBUG + chown -R digiwords:www-data /var/www/digiwords 23807 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 23808 DEBUG + set +o xtrace 23936 DEBUG + set +o xtrace 23960 DEBUG + echo '! Helper used in legacy mode !' 23962 DEBUG + set +x 23966 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 23967 DEBUG + set -o xtrace 23968 INFO [##########++........] > Configuring NGINX web server... 23968 DEBUG + ynh_add_nginx_config 23968 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23969 DEBUG + '[' / '!=' / ']' 23969 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf 23970 DEBUG + local legacy_args=mrf 23970 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23971 DEBUG + local -A args_array 23972 DEBUG + local match_string 23973 DEBUG + local replace_string 23973 DEBUG + local target_file 23973 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf 23976 DEBUG + set +o xtrace 24125 DEBUG + set +o xtrace 24127 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf 24131 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24133 DEBUG + local legacy_args=tdv 24133 DEBUG + args_array=([t]=template= [d]=destination=) 24134 DEBUG + local -A args_array 24135 DEBUG + local template 24136 DEBUG + local destination 24136 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24137 DEBUG + set +o xtrace 24214 DEBUG + local template_path 24216 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf ']' 24218 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf ']' 24221 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf 24224 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24228 DEBUG + local legacy_args=f 24230 DEBUG + args_array=([f]=file=) 24232 DEBUG + local -A args_array 24236 DEBUG + local file 24237 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24238 DEBUG + set +o xtrace 24253 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24258 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24260 DEBUG ++ local _globalapp=digiwords 24262 DEBUG ++ local legacy_args=ak 24263 DEBUG ++ args_array=([a]=app= [k]=key=) 24265 DEBUG ++ local -A args_array 24266 DEBUG ++ local app 24268 DEBUG ++ local key 24269 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24271 DEBUG ++ set +o xtrace 24351 DEBUG ++ app=digiwords 24353 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 24357 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24360 DEBUG ++ set +o xtrace 24452 DEBUG + local checksum_value= 24453 DEBUG + backup_file_checksum= 24456 DEBUG + '[' -n '' ']' 24460 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24461 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24466 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24469 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24473 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24476 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24478 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/manifest.json 24480 DEBUG ++ tr -d '>= ' 24488 DEBUG + local ynh_requirement=4.3.0 24488 DEBUG + '[' -z 4.3.0 ']' 24489 DEBUG + '[' 4.3.0 == null ']' 24490 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 24499 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24511 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24514 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24519 DEBUG + ynh_system_user_exists digiwords 24524 DEBUG + local legacy_args=u 24525 DEBUG + args_array=([u]=username=) 24526 DEBUG + local -A args_array 24527 DEBUG + local username 24528 DEBUG + ynh_handle_getopts_args digiwords 24531 DEBUG + set +o xtrace 24537 DEBUG + echo '! Helper used in legacy mode !' 24538 DEBUG + set +x 24541 DEBUG + getent passwd digiwords 24544 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24548 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24549 DEBUG + grep -q '^/etc/cron' 24552 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24553 DEBUG + local legacy_args=f 24554 DEBUG + args_array=([f]=file=) 24555 DEBUG + local -A args_array 24559 DEBUG + local file 24561 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24562 DEBUG + set +o xtrace 24576 DEBUG + test -n / 24578 DEBUG + local path_url_slash_less= 24579 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24580 DEBUG + local legacy_args=mrf 24582 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24584 DEBUG + local -A args_array 24585 DEBUG + local match_string 24587 DEBUG + local replace_string 24590 DEBUG + local target_file 24592 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24595 DEBUG + set +o xtrace 24717 DEBUG + set +o xtrace 24719 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24723 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24726 DEBUG + local legacy_args=mrf 24727 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24728 DEBUG + local -A args_array 24729 DEBUG + local match_string 24730 DEBUG + local replace_string 24731 DEBUG + local target_file 24733 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24734 DEBUG + set +o xtrace 24869 DEBUG + set +o xtrace 24870 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24876 DEBUG + test -n digiwords 24876 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24877 DEBUG + local legacy_args=mrf 24877 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24877 DEBUG + local -A args_array 24878 DEBUG + local match_string 24879 DEBUG + local replace_string 24880 DEBUG + local target_file 24881 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24881 DEBUG + set +o xtrace 25022 DEBUG + set +o xtrace 25023 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25030 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25031 DEBUG + local legacy_args=mrf 25032 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25032 DEBUG + local -A args_array 25033 DEBUG + local match_string 25033 DEBUG + local replace_string 25034 DEBUG + local target_file 25035 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25035 DEBUG + set +o xtrace 25174 DEBUG + set +o xtrace 25175 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25180 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25183 DEBUG + local legacy_args=mrf 25184 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25185 DEBUG + local -A args_array 25185 DEBUG + local match_string 25186 DEBUG + local replace_string 25187 DEBUG + local target_file 25187 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25188 DEBUG + set +o xtrace 25332 DEBUG + set +o xtrace 25333 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25347 DEBUG + test -n /var/www/digiwords 25348 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25348 DEBUG + local legacy_args=mrf 25349 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25349 DEBUG + local -A args_array 25350 DEBUG + local match_string 25351 DEBUG + local replace_string 25353 DEBUG + local target_file 25353 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25354 DEBUG + set +o xtrace 25485 DEBUG + set +o xtrace 25486 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25491 DEBUG + test -n 7.3 25492 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25492 DEBUG + local legacy_args=mrf 25493 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25493 DEBUG + local -A args_array 25494 DEBUG + local match_string 25494 DEBUG + local replace_string 25495 DEBUG + local target_file 25496 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25496 DEBUG + set +o xtrace 25633 DEBUG + set +o xtrace 25634 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25642 DEBUG + test -n '' 25643 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 25644 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25644 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 25646 DEBUG ++ sort --unique 25687 DEBUG + local uniques_vars 25700 DEBUG + local delimit=@ 25711 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25723 DEBUG + local legacy_args=f 25728 DEBUG + args_array=([f]=file= [u]=update_only) 25731 DEBUG + local -A args_array 25734 DEBUG + local file 25747 DEBUG + local update_only 25757 DEBUG + update_only=0 25760 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25762 DEBUG + set +o xtrace 25763 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 25763 DEBUG + '[' 0 -eq 1 ']' 25763 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25767 DEBUG ++ cut '--delimiter= ' --fields=1 25780 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 25781 DEBUG + local _globalapp=digiwords 25782 DEBUG + local legacy_args=akv 25782 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25783 DEBUG + local -A args_array 25783 DEBUG + local app 25784 DEBUG + local key 25786 DEBUG + local value 25786 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 25787 DEBUG + set +o xtrace 25917 DEBUG + app=digiwords 25918 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 25919 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 9c307bf4206b43d766feb3b967a25374 25919 DEBUG + set +o xtrace 26001 DEBUG + '[' -n '' ']' 26003 DEBUG + unset backup_file_checksum 26004 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 26004 DEBUG + local legacy_args=nalpte 26005 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 26005 DEBUG + local -A args_array 26006 DEBUG + local service_name 26006 DEBUG + local action 26007 DEBUG + local line_match 26007 DEBUG + local length 26007 DEBUG + local log_path 26007 DEBUG + local timeout 26008 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 26008 DEBUG + set +o xtrace 26169 DEBUG + service_name=nginx 26171 DEBUG + action=reload 26172 DEBUG + line_match= 26173 DEBUG + length=20 26173 DEBUG + log_path=/var/log/nginx/nginx.log 26175 DEBUG + timeout=300 26175 DEBUG + '[' reload == stop ']' 26176 DEBUG + [[ -n '' ]] 26176 DEBUG + '[' reload == reload ']' 26177 DEBUG + action=reload-or-restart 26177 DEBUG + systemctl reload-or-restart nginx 26261 DEBUG + [[ -n '' ]] 26263 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 26263 DEBUG + set +o xtrace 26406 DEBUG + set +o xtrace 26434 DEBUG + echo '! Helper used in legacy mode !' 26435 DEBUG + set +x 26445 INFO [############++......] > Configuring PHP-FPM... 26455 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 26455 DEBUG + set -o xtrace 26456 DEBUG + ynh_add_fpm_config 26456 DEBUG + local legacy_args=vtufpd 26456 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 26457 DEBUG + local -A args_array 26457 DEBUG + local phpversion 26458 DEBUG + local use_template 26458 DEBUG + local usage 26458 DEBUG + local footprint 26458 DEBUG + local package 26459 DEBUG + local dedicated_service 26459 DEBUG + ynh_handle_getopts_args 26459 DEBUG + set +o xtrace 26461 DEBUG + package= 26461 DEBUG + use_template=1 26462 DEBUG + usage= 26462 DEBUG + footprint= 26465 DEBUG + '[' -n '' ']' 26466 DEBUG + '[' -n '' ']' 26466 DEBUG + dedicated_service=0 26467 DEBUG + phpversion=7.3 26467 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 26467 DEBUG ++ local _globalapp=digiwords 26468 DEBUG ++ local legacy_args=ak 26473 DEBUG ++ args_array=([a]=app= [k]=key=) 26479 DEBUG ++ local -A args_array 26480 DEBUG ++ local app 26480 DEBUG ++ local key 26480 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 26481 DEBUG ++ set +o xtrace 26560 DEBUG ++ app=digiwords 26562 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 26563 DEBUG ++ ynh_app_setting get digiwords phpversion 26564 DEBUG ++ set +o xtrace 26643 DEBUG + local old_phpversion=7.3 26647 DEBUG + '[' -n 7.3 ']' 26650 DEBUG + '[' 7.3 '!=' 7.3 ']' 26652 DEBUG + '[' -n '' ']' 26653 DEBUG + '[' 0 -eq 1 ']' 26656 DEBUG + local fpm_service=php7.3-fpm 26657 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 26658 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 26659 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 26662 DEBUG + local _globalapp=digiwords 26669 DEBUG + local legacy_args=akv 26670 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26670 DEBUG + local -A args_array 26671 DEBUG + local app 26673 DEBUG + local key 26686 DEBUG + local value 26686 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 26687 DEBUG + set +o xtrace 26834 DEBUG + app=digiwords 26836 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 26837 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 26839 DEBUG + set +o xtrace 26952 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 26953 DEBUG + local _globalapp=digiwords 26954 DEBUG + local legacy_args=akv 26957 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26958 DEBUG + local -A args_array 26959 DEBUG + local app 26960 DEBUG + local key 26960 DEBUG + local value 26961 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 26961 DEBUG + set +o xtrace 27117 DEBUG + app=digiwords 27117 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 27118 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 27118 DEBUG + set +o xtrace 27220 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 27221 DEBUG + local _globalapp=digiwords 27222 DEBUG + local legacy_args=akv 27224 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27225 DEBUG + local -A args_array 27227 DEBUG + local app 27229 DEBUG + local key 27230 DEBUG + local value 27231 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 27232 DEBUG + set +o xtrace 27374 DEBUG + app=digiwords 27375 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 27376 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 27377 DEBUG + set +o xtrace 27454 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 27455 DEBUG + local _globalapp=digiwords 27456 DEBUG + local legacy_args=akv 27457 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27457 DEBUG + local -A args_array 27459 DEBUG + local app 27461 DEBUG + local key 27463 DEBUG + local value 27463 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 27464 DEBUG + set +o xtrace 27595 DEBUG + app=digiwords 27596 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 27597 DEBUG + ynh_app_setting set digiwords phpversion 7.3 27598 DEBUG + set +o xtrace 27678 DEBUG + '[' 0 -eq 1 ']' 27679 DEBUG + '[' 1 -eq 1 ']' 27680 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf 27681 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf ']' 27681 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 27682 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 27683 DEBUG + local legacy_args=tdv 27684 DEBUG + args_array=([t]=template= [d]=destination=) 27685 DEBUG + local -A args_array 27685 DEBUG + local template 27686 DEBUG + local destination 27690 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 27690 DEBUG + set +o xtrace 27746 DEBUG + local template_path 27747 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf ']' 27748 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf ']' 27750 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf 27751 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27752 DEBUG + local legacy_args=f 27753 DEBUG + args_array=([f]=file=) 27754 DEBUG + local -A args_array 27754 DEBUG + local file 27755 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27756 DEBUG + set +o xtrace 27777 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 27779 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 27780 DEBUG ++ local _globalapp=digiwords 27781 DEBUG ++ local legacy_args=ak 27782 DEBUG ++ args_array=([a]=app= [k]=key=) 27782 DEBUG ++ local -A args_array 27783 DEBUG ++ local app 27784 DEBUG ++ local key 27784 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 27785 DEBUG ++ set +o xtrace 27842 DEBUG ++ app=digiwords 27844 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 27847 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 27848 DEBUG ++ set +o xtrace 27937 DEBUG + local checksum_value= 27939 DEBUG + backup_file_checksum= 27941 DEBUG + '[' -n '' ']' 27944 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 27946 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 27947 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 27951 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 27957 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 27959 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 27961 DEBUG ++ tr -d '>= ' 27964 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/manifest.json 27971 DEBUG + local ynh_requirement=4.3.0 27973 DEBUG + '[' -z 4.3.0 ']' 27975 DEBUG + '[' 4.3.0 == null ']' 27976 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 27978 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 27981 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 27983 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 27985 DEBUG + ynh_system_user_exists digiwords 27987 DEBUG + local legacy_args=u 27988 DEBUG + args_array=([u]=username=) 27989 DEBUG + local -A args_array 27990 DEBUG + local username 27992 DEBUG + ynh_handle_getopts_args digiwords 27994 DEBUG + set +o xtrace 28012 DEBUG + echo '! Helper used in legacy mode !' 28015 DEBUG + set +x 28019 DEBUG + getent passwd digiwords 28038 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 28039 DEBUG + grep -q '^/etc/cron' 28039 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 28039 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28040 DEBUG + local legacy_args=f 28040 DEBUG + args_array=([f]=file=) 28040 DEBUG + local -A args_array 28040 DEBUG + local file 28040 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28041 DEBUG + set +o xtrace 28061 DEBUG + test -n / 28062 DEBUG + local path_url_slash_less= 28063 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28065 DEBUG + local legacy_args=mrf 28066 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28071 DEBUG + local -A args_array 28074 DEBUG + local match_string 28076 DEBUG + local replace_string 28077 DEBUG + local target_file 28078 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28079 DEBUG + set +o xtrace 28194 DEBUG + set +o xtrace 28197 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28202 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28203 DEBUG + local legacy_args=mrf 28203 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28204 DEBUG + local -A args_array 28204 DEBUG + local match_string 28204 DEBUG + local replace_string 28205 DEBUG + local target_file 28206 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28206 DEBUG + set +o xtrace 28348 DEBUG + set +o xtrace 28351 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28357 DEBUG + test -n digiwords 28359 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28359 DEBUG + local legacy_args=mrf 28361 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28363 DEBUG + local -A args_array 28364 DEBUG + local match_string 28365 DEBUG + local replace_string 28367 DEBUG + local target_file 28369 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28370 DEBUG + set +o xtrace 28491 DEBUG + set +o xtrace 28493 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28496 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28498 DEBUG + local legacy_args=mrf 28499 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28501 DEBUG + local -A args_array 28502 DEBUG + local match_string 28503 DEBUG + local replace_string 28504 DEBUG + local target_file 28505 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28506 DEBUG + set +o xtrace 28682 DEBUG + set +o xtrace 28685 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28688 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28692 DEBUG + local legacy_args=mrf 28696 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28699 DEBUG + local -A args_array 28702 DEBUG + local match_string 28704 DEBUG + local replace_string 28706 DEBUG + local target_file 28707 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28708 DEBUG + set +o xtrace 28862 DEBUG + set +o xtrace 28863 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28866 DEBUG + test -n /var/www/digiwords 28868 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28869 DEBUG + local legacy_args=mrf 28870 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28872 DEBUG + local -A args_array 28873 DEBUG + local match_string 28875 DEBUG + local replace_string 28876 DEBUG + local target_file 28878 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28879 DEBUG + set +o xtrace 29027 DEBUG + set +o xtrace 29028 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29035 DEBUG + test -n 7.3 29036 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29037 DEBUG + local legacy_args=mrf 29037 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 29039 DEBUG + local -A args_array 29039 DEBUG + local match_string 29039 DEBUG + local replace_string 29040 DEBUG + local target_file 29040 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29041 DEBUG + set +o xtrace 29185 DEBUG + set +o xtrace 29187 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29192 DEBUG + test -n '' 29193 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 29194 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 29194 DEBUG ++ sort --unique 29197 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 29200 DEBUG + local uniques_vars 29201 DEBUG + local delimit=@ 29203 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29203 DEBUG + local legacy_args=f 29204 DEBUG + args_array=([f]=file= [u]=update_only) 29208 DEBUG + local -A args_array 29209 DEBUG + local file 29211 DEBUG + local update_only 29213 DEBUG + update_only=0 29215 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29218 DEBUG + set +o xtrace 29258 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 29259 DEBUG + '[' 0 -eq 1 ']' 29262 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 29266 DEBUG ++ cut '--delimiter= ' --fields=1 29272 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 29274 DEBUG + local _globalapp=digiwords 29276 DEBUG + local legacy_args=akv 29280 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 29282 DEBUG + local -A args_array 29283 DEBUG + local app 29284 DEBUG + local key 29289 DEBUG + local value 29292 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 29295 DEBUG + set +o xtrace 29446 DEBUG + app=digiwords 29449 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 29453 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 29454 DEBUG + set +o xtrace 29533 DEBUG + '[' -n '' ']' 29535 DEBUG + unset backup_file_checksum 29538 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_nt96gl3q/app_folder/conf/php-fpm.ini ']' 29540 DEBUG + '[' 0 -eq 1 ']' 29541 DEBUG + php-fpm7.3 --test 29630 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 29632 DEBUG + local legacy_args=nalpte 29634 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 29636 DEBUG + local -A args_array 29637 DEBUG + local service_name 29638 DEBUG + local action 29639 DEBUG + local line_match 29641 DEBUG + local length 29643 DEBUG + local log_path 29644 DEBUG + local timeout 29645 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 29647 DEBUG + set +o xtrace 29830 DEBUG + service_name=php7.3-fpm 29831 DEBUG + action=reload 29833 DEBUG + line_match= 29836 DEBUG + length=20 29839 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 29841 DEBUG + timeout=300 29842 DEBUG + '[' reload == stop ']' 29843 DEBUG + [[ -n '' ]] 29843 DEBUG + '[' reload == reload ']' 29844 DEBUG + action=reload-or-restart 29845 DEBUG + systemctl reload-or-restart php7.3-fpm 29883 DEBUG + [[ -n '' ]] 29889 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 29890 DEBUG + set +o xtrace 30050 DEBUG + set +o xtrace 30087 DEBUG + echo '! Helper used in legacy mode !' 30088 DEBUG + set +x 30097 INFO [##############++....] > Configuring permissions... 30102 DEBUG + echo '[##############++....] > Configuring permissions...' 30104 DEBUG + set -o xtrace 30105 DEBUG + '[' 1 -eq 1 ']' 30107 DEBUG + ynh_permission_update --permission=main --add=visitors 30110 DEBUG + local legacy_args=parltP 30112 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=) 30116 DEBUG + local -A args_array 30116 DEBUG + local permission 30118 DEBUG + local add 30119 DEBUG + local remove 30119 DEBUG + local label 30120 DEBUG + local show_tile 30121 DEBUG + local protected 30122 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors 30123 DEBUG + set +o xtrace 30301 DEBUG + add=visitors 30301 DEBUG + remove= 30303 DEBUG + label= 30303 DEBUG + show_tile= 30305 DEBUG + protected= 30306 DEBUG + [[ -n visitors ]] 30308 DEBUG + add=',add=['\''visitors'\'']' 30308 DEBUG + [[ -n '' ]] 30309 DEBUG + [[ -n '' ]] 30310 DEBUG + [[ -n '' ]] 30311 DEBUG + [[ -n '' ]] 30311 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''digiwords.main'\'' ,add=['\''visitors'\''] , force=True)' 30969 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 30972 DEBUG + set +o xtrace 31100 DEBUG + set +o xtrace 31129 DEBUG + echo '! Helper used in legacy mode !' 31130 DEBUG + set +x 31135 DEBUG + echo '[################++..] > Reloading NGINX web server...' 31137 DEBUG + set -o xtrace 31138 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 31139 DEBUG + local legacy_args=nalpte 31140 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 31140 DEBUG + local -A args_array 31141 DEBUG + local service_name 31142 DEBUG + local action 31143 DEBUG + local line_match 31144 DEBUG + local length 31144 DEBUG + local log_path 31146 DEBUG + local timeout 31149 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 31149 DEBUG + set +o xtrace 31149 INFO [################++..] > Reloading NGINX web server... 31348 DEBUG + service_name=nginx 31349 DEBUG + action=reload 31353 DEBUG + line_match= 31355 DEBUG + length=20 31358 DEBUG + log_path=/var/log/nginx/nginx.log 31364 DEBUG + timeout=300 31366 DEBUG + '[' reload == stop ']' 31367 DEBUG + [[ -n '' ]] 31368 DEBUG + '[' reload == reload ']' 31369 DEBUG + action=reload-or-restart 31369 DEBUG + systemctl reload-or-restart nginx 31450 DEBUG + [[ -n '' ]] 31452 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 31454 DEBUG + set +o xtrace 31669 DEBUG + set +o xtrace 31706 DEBUG + echo '! Helper used in legacy mode !' 31707 DEBUG + set +x 31710 DEBUG + echo '[####################] > Installation of digiwords completed' 31711 DEBUG + set -o xtrace 31712 DEBUG + ynh_exit_properly 31714 DEBUG + local exit_code=0 31715 DEBUG + rm -rf /var/cache/yunohost/download/ 31717 INFO [####################] > Installation of digiwords completed 31720 DEBUG + '[' 0 -eq 0 ']' 31721 DEBUG + exit 0 32724 DEBUG Checking that required services are up and running... 33771 SUCCESS Installation completed 33773 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-092547-app_install-digiwords' 33792 DEBUG action [813.1] executed in 33.496s 33792 DEBUG lock has been released Return code: 0 Working time: 35 seconds (09:26:20) Installation successful. Return code: 1 Working time: 0s (09:26:30)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:26:36) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:26:38) HTTP code: 200 Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Running curl sub.domain.tld/ Return code: 0 Working time: 0s (09:26:44) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:26:48) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Create a snapshot after app install (Creating snapshot snap_rootinstall ...) Failed to start the container ... restarting ... Working time: 1 minute, 22 seconds (09:28:10)  > Removing the app... Running yunohost app remove digiwords 183 DEBUG initializing base actions map parser for cli 186 DEBUG loading actions map namespace 'yunohost' 189 DEBUG building parser... 213 DEBUG building parser took 0.023s 215 DEBUG acquiring lock... 237 DEBUG lock has been acquired 258 DEBUG loading python module yunohost.app took 0.021s 259 DEBUG processing action [830.1]: yunohost.app.remove with args={'app': 'digiwords', 'purge': False} 287 INFO Removing digiwords... 409 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 419 DEBUG + source _common.sh 420 DEBUG ++ pkg_dependencies=php-sqlite3 421 DEBUG + source /usr/share/yunohost/helpers 422 DEBUG +++ set +o 423 DEBUG +++ grep xtrace 424 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 425 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 427 DEBUG ++ set +x 470 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 471 DEBUG + set +o xtrace 578 DEBUG + set +o xtrace 629 DEBUG + echo '! Helper used in legacy mode !' 630 DEBUG + set +x 637 DEBUG + echo '[++..................] > Loading installation settings...' 639 DEBUG + set -o xtrace 640 INFO [++..................] > Loading installation settings... 641 DEBUG + app=digiwords 642 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 643 DEBUG ++ local _globalapp=digiwords 643 DEBUG ++ local legacy_args=ak 644 DEBUG ++ args_array=([a]=app= [k]=key=) 645 DEBUG ++ local -A args_array 646 DEBUG ++ local app 646 DEBUG ++ local key 647 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 647 DEBUG ++ set +o xtrace 724 DEBUG ++ app=digiwords 725 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 725 DEBUG ++ ynh_app_setting get digiwords domain 725 DEBUG ++ set +o xtrace 833 DEBUG + domain=sub.domain.tld 834 DEBUG ++ ynh_app_setting_get --app=digiwords --key=port 835 DEBUG ++ local _globalapp=digiwords 837 DEBUG ++ local legacy_args=ak 838 DEBUG ++ args_array=([a]=app= [k]=key=) 839 DEBUG ++ local -A args_array 844 DEBUG ++ local app 845 DEBUG ++ local key 846 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=port 850 DEBUG ++ set +o xtrace 908 DEBUG ++ app=digiwords 909 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]] 909 DEBUG ++ ynh_app_setting get digiwords port 909 DEBUG ++ set +o xtrace 1004 DEBUG + port= 1005 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1006 DEBUG ++ local _globalapp=digiwords 1007 DEBUG ++ local legacy_args=ak 1008 DEBUG ++ args_array=([a]=app= [k]=key=) 1008 DEBUG ++ local -A args_array 1009 DEBUG ++ local app 1009 DEBUG ++ local key 1009 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1010 DEBUG ++ set +o xtrace 1078 DEBUG ++ app=digiwords 1079 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1079 DEBUG ++ ynh_app_setting get digiwords db_name 1080 DEBUG ++ set +o xtrace 1164 DEBUG + db_name= 1165 DEBUG + db_user= 1165 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1166 DEBUG ++ local _globalapp=digiwords 1167 DEBUG ++ local legacy_args=ak 1168 DEBUG ++ args_array=([a]=app= [k]=key=) 1169 DEBUG ++ local -A args_array 1169 DEBUG ++ local app 1170 DEBUG ++ local key 1171 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1172 DEBUG ++ set +o xtrace 1239 DEBUG ++ app=digiwords 1240 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1240 DEBUG ++ ynh_app_setting get digiwords final_path 1241 DEBUG ++ set +o xtrace 1321 DEBUG + final_path=/var/www/digiwords 1322 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1323 DEBUG ++ local _globalapp=digiwords 1324 DEBUG ++ local legacy_args=ak 1324 DEBUG ++ args_array=([a]=app= [k]=key=) 1325 DEBUG ++ local -A args_array 1325 DEBUG ++ local app 1326 DEBUG ++ local key 1326 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1327 DEBUG ++ set +o xtrace 1393 DEBUG ++ app=digiwords 1394 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1395 DEBUG ++ ynh_app_setting get digiwords datadir 1395 DEBUG ++ set +o xtrace 1483 DEBUG + datadir= 1484 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=1 1485 DEBUG + set +o xtrace 1615 DEBUG + set +o xtrace 1650 DEBUG + echo '! Helper used in legacy mode !' 1651 DEBUG + set +x 1652 INFO [##+++...............] > Removing app main directory... 1655 DEBUG + echo '[##+++...............] > Removing app main directory...' 1656 DEBUG + set -o xtrace 1657 DEBUG + ynh_secure_remove --file=/var/www/digiwords 1657 DEBUG + local legacy_args=f 1657 DEBUG + args_array=([f]=file=) 1658 DEBUG + local -A args_array 1658 DEBUG + local file 1659 DEBUG + ynh_handle_getopts_args --file=/var/www/digiwords 1659 DEBUG + set +o xtrace 1674 DEBUG + set +o xtrace 1700 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1 1702 DEBUG + set +o xtrace 1813 DEBUG + set +o xtrace 1843 DEBUG + echo '! Helper used in legacy mode !' 1844 DEBUG + set +x 1849 INFO [#####++.............] > Removing NGINX web server configuration... 1851 DEBUG + echo '[#####++.............] > Removing NGINX web server configuration...' 1855 DEBUG + set -o xtrace 1858 DEBUG + ynh_remove_nginx_config 1859 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1860 DEBUG + local legacy_args=f 1862 DEBUG + args_array=([f]=file=) 1865 DEBUG + local -A args_array 1866 DEBUG + local file 1867 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1867 DEBUG + set +o xtrace 1882 DEBUG + set +o xtrace 1911 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 1912 DEBUG + local legacy_args=nalpte 1913 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 1916 DEBUG + local -A args_array 1917 DEBUG + local service_name 1918 DEBUG + local action 1918 DEBUG + local line_match 1919 DEBUG + local length 1919 DEBUG + local log_path 1919 DEBUG + local timeout 1920 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 1921 DEBUG + set +o xtrace 2082 DEBUG + service_name=nginx 2084 DEBUG + action=reload 2086 DEBUG + line_match= 2087 DEBUG + length=20 2087 DEBUG + log_path=/var/log/nginx/nginx.log 2088 DEBUG + timeout=300 2089 DEBUG + '[' reload == stop ']' 2090 DEBUG + [[ -n '' ]] 2090 DEBUG + '[' reload == reload ']' 2091 DEBUG + action=reload-or-restart 2091 DEBUG + systemctl reload-or-restart nginx 2162 DEBUG + [[ -n '' ]] 2162 DEBUG + ynh_script_progression '--message=Removing PHP-FPM configuration...' --weight=1 2163 DEBUG + set +o xtrace 2296 DEBUG + set +o xtrace 2322 DEBUG + echo '! Helper used in legacy mode !' 2324 DEBUG + set +x 2339 INFO [#######+++..........] > Removing PHP-FPM configuration... 2340 DEBUG + echo '[#######+++..........] > Removing PHP-FPM configuration...' 2340 DEBUG + set -o xtrace 2341 DEBUG + ynh_remove_fpm_config 2342 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_config_dir 2344 DEBUG ++ local _globalapp=digiwords 2345 DEBUG ++ local legacy_args=ak 2346 DEBUG ++ args_array=([a]=app= [k]=key=) 2348 DEBUG ++ local -A args_array 2348 DEBUG ++ local app 2349 DEBUG ++ local key 2350 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir 2352 DEBUG ++ set +o xtrace 2408 DEBUG ++ app=digiwords 2409 DEBUG ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2411 DEBUG ++ ynh_app_setting get digiwords fpm_config_dir 2413 DEBUG ++ set +o xtrace 2503 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 2506 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_service 2509 DEBUG ++ local _globalapp=digiwords 2510 DEBUG ++ local legacy_args=ak 2512 DEBUG ++ args_array=([a]=app= [k]=key=) 2513 DEBUG ++ local -A args_array 2514 DEBUG ++ local app 2514 DEBUG ++ local key 2515 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_service 2515 DEBUG ++ set +o xtrace 2572 DEBUG ++ app=digiwords 2573 DEBUG ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2575 DEBUG ++ ynh_app_setting get digiwords fpm_service 2578 DEBUG ++ set +o xtrace 2651 DEBUG + local fpm_service=php7.3-fpm 2653 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_dedicated_service 2654 DEBUG ++ local _globalapp=digiwords 2655 DEBUG ++ local legacy_args=ak 2655 DEBUG ++ args_array=([a]=app= [k]=key=) 2656 DEBUG ++ local -A args_array 2657 DEBUG ++ local app 2658 DEBUG ++ local key 2659 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service 2661 DEBUG ++ set +o xtrace 2738 DEBUG ++ app=digiwords 2740 DEBUG ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2740 DEBUG ++ ynh_app_setting get digiwords fpm_dedicated_service 2740 DEBUG ++ set +o xtrace 2837 DEBUG + local dedicated_service=0 2838 DEBUG + dedicated_service=0 2839 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 2841 DEBUG ++ local _globalapp=digiwords 2843 DEBUG ++ local legacy_args=ak 2844 DEBUG ++ args_array=([a]=app= [k]=key=) 2845 DEBUG ++ local -A args_array 2846 DEBUG ++ local app 2848 DEBUG ++ local key 2852 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 2856 DEBUG ++ set +o xtrace 2915 DEBUG ++ app=digiwords 2923 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2923 DEBUG ++ ynh_app_setting get digiwords phpversion 2925 DEBUG ++ set +o xtrace 2991 DEBUG + local phpversion=7.3 2992 DEBUG + phpversion=7.3 2993 DEBUG + '[' -z /etc/php/7.3/fpm ']' 2995 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2996 DEBUG + local legacy_args=f 2998 DEBUG + args_array=([f]=file=) 2999 DEBUG + local -A args_array 3000 DEBUG + local file 3001 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 3003 DEBUG + set +o xtrace 3021 DEBUG + set +o xtrace 3043 DEBUG + '[' -e /etc/php/7.3/fpm/conf.d/20-digiwords.ini ']' 3044 DEBUG + '[' 0 -eq 1 ']' 3044 DEBUG + ynh_package_is_installed --package=php7.3-fpm 3045 DEBUG + local legacy_args=p 3045 DEBUG + args_array=([p]=package=) 3047 DEBUG + local -A args_array 3048 DEBUG + local package 3048 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 3049 DEBUG + set +o xtrace 3064 DEBUG + ynh_wait_dpkg_free 3065 DEBUG + local try 3067 DEBUG + set +o xtrace 4521 DEBUG + return 0 4523 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 4526 DEBUG + grep --count 'ok installed' 4556 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 4557 DEBUG + local legacy_args=nalpte 4557 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 4557 DEBUG + local -A args_array 4557 DEBUG + local service_name 4558 DEBUG + local action 4558 DEBUG + local line_match 4559 DEBUG + local length 4560 DEBUG + local log_path 4561 DEBUG + local timeout 4561 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 4562 DEBUG + set +o xtrace 4752 DEBUG + service_name=php7.3-fpm 4753 DEBUG + action=reload 4754 DEBUG + line_match= 4755 DEBUG + length=20 4756 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 4757 DEBUG + timeout=300 4757 DEBUG + '[' reload == stop ']' 4758 DEBUG + [[ -n '' ]] 4759 DEBUG + '[' reload == reload ']' 4760 DEBUG + action=reload-or-restart 4760 DEBUG + systemctl reload-or-restart php7.3-fpm 4794 DEBUG + [[ -n '' ]] 4795 DEBUG + '[' 7.3 '!=' 7.3 ']' 4797 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=1 4798 DEBUG + set +o xtrace 4943 DEBUG + set +o xtrace 4976 DEBUG + echo '! Helper used in legacy mode !' 4977 DEBUG + set +x 4983 DEBUG + echo '[##########++........] > Removing dependencies...' 4985 DEBUG + set -o xtrace 4989 INFO [##########++........] > Removing dependencies... 4992 DEBUG + ynh_remove_app_dependencies 4993 DEBUG + local dep_app=digiwords 4994 DEBUG + local current_dependencies= 4995 DEBUG + ynh_package_is_installed --package=digiwords-ynh-deps 4996 DEBUG + local legacy_args=p 4996 DEBUG + args_array=([p]=package=) 4997 DEBUG + local -A args_array 4998 DEBUG + local package 4999 DEBUG + ynh_handle_getopts_args --package=digiwords-ynh-deps 4999 DEBUG + set +o xtrace 5018 DEBUG + ynh_wait_dpkg_free 5019 DEBUG + local try 5020 DEBUG + set +o xtrace 6445 DEBUG + return 0 6445 DEBUG + grep --count 'ok installed' 6447 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 6468 DEBUG ++ dpkg-query --show '--showformat=${Depends}' digiwords-ynh-deps 6484 DEBUG + current_dependencies='php-sqlite3 ' 6484 DEBUG + current_dependencies='php-sqlite3 ' 6485 DEBUG + ynh_package_autopurge digiwords-ynh-deps 6485 DEBUG + ynh_apt autoremove --purge digiwords-ynh-deps 6485 DEBUG + ynh_wait_dpkg_free 6486 DEBUG + local try 6486 DEBUG + set +o xtrace 7861 DEBUG + return 0 7862 DEBUG + LC_ALL=C 7862 DEBUG + DEBIAN_FRONTEND=noninteractive 7863 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge digiwords-ynh-deps 7918 DEBUG Reading package lists... 8310 DEBUG Building dependency tree... 8312 DEBUG Reading state information... 8807 DEBUG The following packages will be REMOVED: 8809 DEBUG  digiwords-ynh-deps* php-sqlite3* php7.3-sqlite3* 9438 DEBUG 0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded. 9439 DEBUG After this operation, 148 kB disk space will be freed. 9527 DEBUG (Reading database ... 42402 files and directories currently installed.) 9531 DEBUG Removing digiwords-ynh-deps (0.3.3~ynh1) ... 9672 DEBUG Removing php-sqlite3 (2:7.3+69) ... 9805 DEBUG Removing php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10199 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 10858 DEBUG (Reading database ... 42384 files and directories currently installed.) 10863 DEBUG Purging configuration files for php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10946 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11045 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11229 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11314 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11848 DEBUG ++ echo php-sqlite3 11850 DEBUG ++ tr - ' ' 11852 DEBUG ++ sed s/php//g 11853 DEBUG ++ grep -o -E '\' 11857 DEBUG ++ sort 11859 DEBUG ++ uniq 11868 DEBUG + local specific_php_version= 11868 DEBUG + [[ '' != \7\.\3 ]] 11869 DEBUG + [[ -n '' ]] 11869 DEBUG + ynh_script_progression '--message=Removing various files...' --weight=1 11870 DEBUG + set +o xtrace 12024 DEBUG + set +o xtrace 12068 DEBUG + echo '! Helper used in legacy mode !' 12069 DEBUG + set +x 12080 DEBUG + echo '[############+++.....] > Removing various files...' 12083 DEBUG + set -o xtrace 12086 DEBUG + ynh_secure_remove --file=/var/log/digiwords 12088 DEBUG + local legacy_args=f 12089 DEBUG + args_array=([f]=file=) 12092 DEBUG + local -A args_array 12093 DEBUG + local file 12093 DEBUG + ynh_handle_getopts_args --file=/var/log/digiwords 12094 DEBUG + set +o xtrace 12094 INFO [############+++.....] > Removing various files... 12118 DEBUG + set +o xtrace 12148 DEBUG + echo ''\''/var/log/digiwords'\'' wasn'\''t deleted because it doesn'\''t exist.' 12149 DEBUG + set -o xtrace 12149 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1 12151 DEBUG + set +o xtrace 12152 INFO '/var/log/digiwords' wasn't deleted because it doesn't exist. 12271 DEBUG + set +o xtrace 12294 DEBUG + echo '! Helper used in legacy mode !' 12295 DEBUG + set +x 12303 DEBUG + echo '[###############++...] > Removing the dedicated system user...' 12304 DEBUG + set -o xtrace 12305 DEBUG + ynh_system_user_delete --username=digiwords 12305 DEBUG + local legacy_args=u 12305 DEBUG + args_array=([u]=username=) 12306 DEBUG + local -A args_array 12307 DEBUG + local username 12307 DEBUG + ynh_handle_getopts_args --username=digiwords 12308 DEBUG + set +o xtrace 12308 INFO [###############++...] > Removing the dedicated system user... 12330 DEBUG + ynh_system_user_exists digiwords 12331 DEBUG + local legacy_args=u 12331 DEBUG + args_array=([u]=username=) 12331 DEBUG + local -A args_array 12332 DEBUG + local username 12333 DEBUG + ynh_handle_getopts_args digiwords 12333 DEBUG + set +o xtrace 12347 DEBUG + echo '! Helper used in legacy mode !' 12350 DEBUG + set +x 12353 DEBUG + getent passwd digiwords 12357 DEBUG + deluser digiwords 12485 DEBUG Removing user `digiwords' ... 12487 DEBUG Warning: group `digiwords' has no more members. 12617 DEBUG Done. 12618 DEBUG + ynh_system_group_exists digiwords 12620 DEBUG + local legacy_args=g 12621 DEBUG + args_array=([g]=group=) 12622 DEBUG + local -A args_array 12624 DEBUG + local group 12626 DEBUG + ynh_handle_getopts_args digiwords 12628 DEBUG + set +o xtrace 12642 DEBUG + echo '! Helper used in legacy mode !' 12643 DEBUG + set +x 12646 DEBUG + getent group digiwords 12659 DEBUG + ynh_script_progression '--message=Removal of digiwords completed' --last 12660 DEBUG + set +o xtrace 12781 DEBUG + set +o xtrace 12805 DEBUG + echo '! Helper used in legacy mode !' 12809 DEBUG + set +x 12812 DEBUG + echo '[####################] > Removal of digiwords completed' 12814 DEBUG + set -o xtrace 12815 INFO [####################] > Removal of digiwords completed 13819 SUCCESS digiwords uninstalled 13920 DEBUG initializing ldap interface 13985 DEBUG Permission 'digiwords.main' deleted 13994 DEBUG To view the log of the operation 'Delete permission 'digiwords'', use the command 'yunohost log show 20220531-092831-permission_delete-digiwords' 14011 DEBUG The permission database has been resynchronized 14038 DEBUG SSOwat configuration regenerated 14058 DEBUG Checking that required services are up and running... 14911 DEBUG To view the log of the operation 'Remove the 'digiwords' app', use the command 'yunohost log show 20220531-092817-app_remove-digiwords' 14929 DEBUG action [830.1] executed in 14.670s 14930 DEBUG lock has been released Return code: 0 Working time: 16 seconds (09:28:32) Remove successful.  > Reinstalling after removal. Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" 173 DEBUG initializing base actions map parser for cli 176 DEBUG loading actions map namespace 'yunohost' 178 DEBUG building parser... 198 DEBUG building parser took 0.019s 200 DEBUG acquiring lock... 221 DEBUG lock has been acquired 241 DEBUG loading python module yunohost.app took 0.019s 241 DEBUG processing action [2576.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 282 DEBUG Extracting... 300 DEBUG Done 302 DEBUG Checking required packages for digiwords... 316 DEBUG Checking that required services are up and running... 1204 DEBUG initializing ldap interface 1356 INFO Installing digiwords... 1403 DEBUG Nothing to update in LDAP 1403 DEBUG Permission 'digiwords.main' updated 1411 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-092847-permission_url-digiwords' 1440 DEBUG The permission database has been resynchronized 1452 DEBUG SSOwat configuration regenerated 1470 DEBUG Permission 'digiwords.main' created 1471 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-092847-permission_create-digiwords' 1500 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1518 DEBUG + source _common.sh 1519 DEBUG ++ pkg_dependencies=php-sqlite3 1521 DEBUG + source /usr/share/yunohost/helpers 1523 DEBUG +++ set +o 1527 DEBUG +++ grep xtrace 1529 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1529 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1530 DEBUG ++ set +x 1580 DEBUG + ynh_abort_if_errors 1585 DEBUG + set -o errexit 1585 DEBUG + set -o nounset 1588 DEBUG + trap ynh_exit_properly EXIT 1589 DEBUG + domain=sub.domain.tld 1590 DEBUG + path_url=/ 1590 DEBUG + is_public=1 1590 DEBUG + app=digiwords 1591 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1591 DEBUG + set +o xtrace 1713 DEBUG + set +o xtrace 1788 DEBUG + echo '! Helper used in legacy mode !' 1789 DEBUG + set +x 1798 DEBUG + echo '[++..................] > Validating installation parameters...' 1800 DEBUG + set -o xtrace 1800 DEBUG + final_path=/var/www/digiwords 1801 DEBUG + test '!' -e /var/www/digiwords 1801 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/ 1801 DEBUG + local legacy_args=adp 1802 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 1802 DEBUG + local -A args_array 1802 DEBUG + local app 1803 DEBUG + local domain 1803 DEBUG + local path_url 1804 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/ 1804 DEBUG + set +o xtrace 1805 INFO [++..................] > Validating installation parameters... 1979 DEBUG + yunohost app register-url digiwords sub.domain.tld / 2639 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 2640 DEBUG + set +o xtrace 2772 DEBUG + set +o xtrace 2798 DEBUG + echo '! Helper used in legacy mode !' 2799 DEBUG + set +x 2805 INFO [##++................] > Storing installation settings... 2810 DEBUG + echo '[##++................] > Storing installation settings...' 2812 DEBUG + set -o xtrace 2812 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 2813 DEBUG + local _globalapp=digiwords 2813 DEBUG + local legacy_args=akv 2813 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 2814 DEBUG + local -A args_array 2815 DEBUG + local app 2816 DEBUG + local key 2816 DEBUG + local value 2817 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 2818 DEBUG + set +o xtrace 2997 DEBUG + app=digiwords 2998 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 3001 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 3002 DEBUG + set +o xtrace 3113 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/ 3114 DEBUG + local _globalapp=digiwords 3117 DEBUG + local legacy_args=akv 3120 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3123 DEBUG + local -A args_array 3125 DEBUG + local app 3125 DEBUG + local key 3126 DEBUG + local value 3127 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/ 3128 DEBUG + set +o xtrace 3293 DEBUG + app=digiwords 3296 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3298 DEBUG + ynh_app_setting set digiwords path / 3301 DEBUG + set +o xtrace 3380 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3381 DEBUG + set +o xtrace 3495 DEBUG + set +o xtrace 3520 DEBUG + echo '! Helper used in legacy mode !' 3520 DEBUG + set +x 3525 DEBUG + echo '[####++..............] > Installing dependencies...' 3525 INFO [####++..............] > Installing dependencies... 3525 DEBUG + set -o xtrace 3526 DEBUG + ynh_install_app_dependencies php-sqlite3 3526 DEBUG + local dependencies=php-sqlite3 3526 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3529 DEBUG ++ echo php-sqlite3 3542 DEBUG + dependencies=php-sqlite3 3543 DEBUG + local dependencies=php-sqlite3 3552 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/manifest.json 3556 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/manifest.json 3565 DEBUG + local version=0.3.3~ynh1 3566 DEBUG + '[' -z 0.3.3~ynh1 ']' 3568 DEBUG + '[' 0.3.3~ynh1 == null ']' 3569 DEBUG + local dep_app=digiwords 3569 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3578 DEBUG ++ echo php-sqlite3 3584 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3585 DEBUG ++ sort -u 3586 DEBUG + local specific_php_version= 3587 DEBUG + [[ '' != \7\.\3 ]] 3588 DEBUG + [[ -n '' ]] 3589 DEBUG + [[ true == \t\r\u\e ]] 3590 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3590 DEBUG + grep --quiet php 3591 DEBUG + dpkg --list 3593 DEBUG + grep php7.0 3594 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3617 DEBUG + cat 3623 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3624 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3625 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3626 DEBUG ++ cut '--delimiter= ' --fields=2 3631 DEBUG + local pkgname=digiwords-ynh-deps 3634 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3635 DEBUG ++ cut '--delimiter= ' --fields=2 3641 DEBUG + local pkgversion=0.3.3~ynh1 3643 DEBUG + [[ -z digiwords-ynh-deps ]] 3645 DEBUG + [[ -z 0.3.3~ynh1 ]] 3646 DEBUG + ynh_package_update 3648 DEBUG + ynh_apt update 3649 DEBUG + ynh_wait_dpkg_free 3650 DEBUG + local try 3651 DEBUG + set +o xtrace 5082 DEBUG + return 0 5082 DEBUG + LC_ALL=C 5084 DEBUG + DEBIAN_FRONTEND=noninteractive 5086 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5218 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5221 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5225 DEBUG Hit:3 http://deb.debian.org/debian buster-updates InRelease 5226 DEBUG Hit:4 http://deb.debian.org/debian-security buster/updates InRelease 7986 DEBUG Reading package lists... 8046 DEBUG ++ mktemp --directory 8050 DEBUG + local TMPDIR=/tmp/tmp.QYBGfljIaS 8052 DEBUG + echo 10 8054 DEBUG + ynh_wait_dpkg_free 8056 DEBUG + local try 8057 DEBUG + set +o xtrace 9485 DEBUG + return 0 9487 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.QYBGfljIaS/control 9490 DEBUG + cd /tmp/tmp.QYBGfljIaS 9492 DEBUG + LC_ALL=C 9494 DEBUG + equivs-build ./control 11512 DEBUG + LC_ALL=C 11513 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 11515 DEBUG + tee ./dpkg_log 11613 DEBUG Selecting previously unselected package digiwords-ynh-deps. 11656 DEBUG (Reading database ... 42385 files and directories currently installed.) 11668 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 11681 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 11748 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 11751 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 11752 DEBUG  Package php-sqlite3 is not installed. 11754 DEBUG  11755 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 11834 DEBUG + ynh_package_install --fix-broken 11836 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 11839 DEBUG + ynh_wait_dpkg_free 11842 DEBUG + local try 11845 DEBUG + set +o xtrace 13353 DEBUG + return 0 13354 DEBUG + LC_ALL=C 13357 DEBUG + DEBIAN_FRONTEND=noninteractive 13359 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13550 DEBUG Reading package lists... 13975 DEBUG Building dependency tree... 13979 DEBUG Reading state information... 14235 DEBUG Correcting dependencies... Done 14635 DEBUG The following additional packages will be installed: 14638 DEBUG  php-sqlite3 php7.3-sqlite3 14669 DEBUG The following NEW packages will be installed: 14672 DEBUG  php-sqlite3 php7.3-sqlite3 15194 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 15197 DEBUG Need to get 0 B/32.2 kB of archives. 15201 DEBUG After this operation, 139 kB of additional disk space will be used. 15362 DEBUG Selecting previously unselected package php7.3-sqlite3. 15408 DEBUG (Reading database ... 42389 files and directories currently installed.) 15412 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 15438 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15563 DEBUG Selecting previously unselected package php-sqlite3. 15572 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 15583 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 15716 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15748 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15955 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16057 DEBUG  16058 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 16158 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16381 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16597 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16686 DEBUG  16687 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 16796 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17025 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 17070 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 17730 DEBUG + [[ -n /tmp/tmp.QYBGfljIaS ]] 17730 DEBUG + rm --recursive --force /tmp/tmp.QYBGfljIaS 17735 DEBUG + ynh_package_is_installed digiwords-ynh-deps 17735 DEBUG + local legacy_args=p 17736 DEBUG + args_array=([p]=package=) 17736 DEBUG + local -A args_array 17737 DEBUG + local package 17738 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 17738 DEBUG + set +o xtrace 17761 DEBUG + echo '! Helper used in legacy mode !' 17766 DEBUG + set +x 17772 DEBUG + ynh_wait_dpkg_free 17776 DEBUG + local try 17777 DEBUG + set +o xtrace 19150 DEBUG + return 0 19151 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 19153 DEBUG + grep --count 'ok installed' 19170 DEBUG + rm /tmp/digiwords-ynh-deps.control 19173 DEBUG + [[ -n '' ]] 19174 DEBUG + grep --quiet php 19178 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 19180 DEBUG + local _globalapp=digiwords 19181 DEBUG + local legacy_args=akv 19181 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19182 DEBUG + local -A args_array 19183 DEBUG + local app 19184 DEBUG + local key 19185 DEBUG + local value 19186 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 19187 DEBUG + set +o xtrace 19316 DEBUG + app=digiwords 19317 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 19318 DEBUG + ynh_app_setting set digiwords phpversion 7.3 19319 DEBUG + set +o xtrace 19400 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 19402 DEBUG + set +o xtrace 19526 DEBUG + set +o xtrace 19554 DEBUG + echo '! Helper used in legacy mode !' 19556 DEBUG + set +x 19560 DEBUG + echo '[######++............] > Configuring system user...' 19562 DEBUG + set -o xtrace 19563 INFO [######++............] > Configuring system user... 19568 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 19569 DEBUG + local legacy_args=uhs 19570 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 19570 DEBUG + local -A args_array 19571 DEBUG + local username 19571 DEBUG + local home_dir 19572 DEBUG + local use_shell 19572 DEBUG + local groups 19573 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 19573 DEBUG + set +o xtrace 19686 DEBUG + use_shell=0 19686 DEBUG + home_dir=/var/www/digiwords 19687 DEBUG + groups= 19688 DEBUG + ynh_system_user_exists digiwords 19688 DEBUG + local legacy_args=u 19689 DEBUG + args_array=([u]=username=) 19689 DEBUG + local -A args_array 19690 DEBUG + local username 19690 DEBUG + ynh_handle_getopts_args digiwords 19691 DEBUG + set +o xtrace 19707 DEBUG + echo '! Helper used in legacy mode !' 19709 DEBUG + set +x 19715 DEBUG + getent passwd digiwords 19724 DEBUG + '[' -n /var/www/digiwords ']' 19725 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 19726 DEBUG + '[' 0 -eq 1 ']' 19726 DEBUG + local 'shell=--shell /usr/sbin/nologin' 19728 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 19837 DEBUG + local group 19838 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 19839 DEBUG + set +o xtrace 19956 DEBUG + set +o xtrace 19982 DEBUG + echo '! Helper used in legacy mode !' 19983 DEBUG + set +x 19989 DEBUG + echo '[########++..........] > Setting up source files...' 19991 INFO [########++..........] > Setting up source files... 19992 DEBUG + set -o xtrace 19996 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 19997 DEBUG + local _globalapp=digiwords 19997 DEBUG + local legacy_args=akv 19998 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19999 DEBUG + local -A args_array 20001 DEBUG + local app 20002 DEBUG + local key 20004 DEBUG + local value 20005 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 20006 DEBUG + set +o xtrace 20130 DEBUG + app=digiwords 20131 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 20132 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 20133 DEBUG + set +o xtrace 20214 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 20218 DEBUG + local legacy_args=dsk 20222 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 20224 DEBUG + local -A args_array 20228 DEBUG + local dest_dir 20229 DEBUG + local source_id 20230 DEBUG + local keep 20232 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 20234 DEBUG + set +o xtrace 20282 DEBUG + source_id=app 20283 DEBUG + keep= 20286 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20289 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20290 DEBUG ++ cut --delimiter== --fields=2- 20297 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 20299 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20300 DEBUG ++ cut --delimiter== --fields=2- 20305 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 20307 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20308 DEBUG ++ cut --delimiter== --fields=2- 20313 DEBUG + local src_sumprg=sha256sum 20316 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20319 DEBUG ++ cut --delimiter== --fields=2- 20324 DEBUG + local src_format=zip 20326 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20327 DEBUG ++ cut --delimiter== --fields=2- 20333 DEBUG + local src_extract=true 20335 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20337 DEBUG ++ cut --delimiter== --fields=2- 20341 DEBUG + local src_in_subdir=true 20344 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/app.src 20348 DEBUG ++ cut --delimiter== --fields=2- 20355 DEBUG + local src_filename= 20356 DEBUG + src_sumprg=sha256sum 20357 DEBUG + src_in_subdir=true 20358 DEBUG + src_format=zip 20358 DEBUG ++ echo zip 20360 DEBUG ++ tr '[:upper:]' '[:lower:]' 20365 DEBUG + src_format=zip 20367 DEBUG + src_extract=true 20368 DEBUG + '[' '' = '' ']' 20368 DEBUG + src_filename=app.zip 20368 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 20369 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 20372 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 20374 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 20375 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 20375 DEBUG + local out 20376 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 20778 DEBUG + out='2022-05-31 09:29:07 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T092907Z&X-Amz-Expires=300&X-Amz-Signature=1e1e8baf7f25366882ed59fcc9a4d0df881f3472bb96d89759847fcc6b721705&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 20779 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 20782 DEBUG + sha256sum --check --status 20816 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 20819 DEBUG + '[' -n '' ']' 20821 DEBUG + mkdir --parents /var/www/digiwords 20823 DEBUG + '[' -n /var/www/digiwords ']' 20824 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 20826 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 20827 DEBUG + local target=/var/www/digiwords 20828 DEBUG ++ tr -d '>= ' 20829 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/manifest.json 20835 DEBUG + local ynh_requirement=4.3.0 20836 DEBUG + '[' -z 4.3.0 ']' 20837 DEBUG + '[' 4.3.0 == null ']' 20838 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 20839 DEBUG + chmod o-rwx /var/www/digiwords 20844 DEBUG + chmod g-w /var/www/digiwords 20847 DEBUG + chown -R root:root /var/www/digiwords 20856 DEBUG + ynh_system_user_exists digiwords 20857 DEBUG + local legacy_args=u 20859 DEBUG + args_array=([u]=username=) 20861 DEBUG + local -A args_array 20862 DEBUG + local username 20863 DEBUG + ynh_handle_getopts_args digiwords 20865 DEBUG + set +o xtrace 20884 DEBUG + echo '! Helper used in legacy mode !' 20885 DEBUG + set +x 20888 DEBUG + getent passwd digiwords 20896 DEBUG + chown digiwords:digiwords /var/www/digiwords 20905 DEBUG + echo /var/www/digiwords 20906 DEBUG + grep -q '^/etc/cron' 20912 DEBUG + true 20913 DEBUG + '[' zip = zip ']' 20915 DEBUG + true 20916 DEBUG ++ mktemp --directory 20919 DEBUG + local tmp_dir=/tmp/tmp.zwlF2ehYwk 20924 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.zwlF2ehYwk 20976 DEBUG + cp --archive /tmp/tmp.zwlF2ehYwk/digiwords/. /var/www/digiwords 20992 DEBUG + ynh_secure_remove --file=/tmp/tmp.zwlF2ehYwk 20994 DEBUG + local legacy_args=f 20996 DEBUG + args_array=([f]=file=) 20998 DEBUG + local -A args_array 21002 DEBUG + local file 21007 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.zwlF2ehYwk 21009 DEBUG + set +o xtrace 21019 DEBUG + set +o xtrace 21040 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 21041 DEBUG + local legacy_args=f 21042 DEBUG + args_array=([f]=file=) 21043 DEBUG + local -A args_array 21046 DEBUG + local file 21048 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 21051 DEBUG + set +o xtrace 21066 DEBUG + set +o xtrace 21087 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/sources/patches/ ']' 21088 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/sources/extra_files/app 21088 DEBUG + '[' -n '' ']' 21089 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 21091 DEBUG + chmod 750 /var/www/digiwords 21094 DEBUG + chmod -R o-rwx /var/www/digiwords 21097 DEBUG + chown -R digiwords:www-data /var/www/digiwords 21102 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 21103 DEBUG + set +o xtrace 21232 DEBUG + set +o xtrace 21264 DEBUG + echo '! Helper used in legacy mode !' 21264 DEBUG + set +x 21269 INFO [##########++........] > Configuring NGINX web server... 21273 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 21275 DEBUG + set -o xtrace 21276 DEBUG + ynh_add_nginx_config 21276 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21277 DEBUG + '[' / '!=' / ']' 21278 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf 21278 DEBUG + local legacy_args=mrf 21279 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21279 DEBUG + local -A args_array 21280 DEBUG + local match_string 21282 DEBUG + local replace_string 21284 DEBUG + local target_file 21285 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf 21286 DEBUG + set +o xtrace 21437 DEBUG + set +o xtrace 21439 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf 21445 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21447 DEBUG + local legacy_args=tdv 21449 DEBUG + args_array=([t]=template= [d]=destination=) 21452 DEBUG + local -A args_array 21453 DEBUG + local template 21454 DEBUG + local destination 21456 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21457 DEBUG + set +o xtrace 21529 DEBUG + local template_path 21531 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf ']' 21532 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf ']' 21533 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf 21534 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21536 DEBUG + local legacy_args=f 21537 DEBUG + args_array=([f]=file=) 21538 DEBUG + local -A args_array 21540 DEBUG + local file 21542 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21545 DEBUG + set +o xtrace 21560 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21562 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21564 DEBUG ++ local _globalapp=digiwords 21565 DEBUG ++ local legacy_args=ak 21567 DEBUG ++ args_array=([a]=app= [k]=key=) 21568 DEBUG ++ local -A args_array 21570 DEBUG ++ local app 21571 DEBUG ++ local key 21573 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21574 DEBUG ++ set +o xtrace 21664 DEBUG ++ app=digiwords 21665 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 21666 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21666 DEBUG ++ set +o xtrace 21817 DEBUG + local checksum_value= 21819 DEBUG + backup_file_checksum= 21824 DEBUG + '[' -n '' ']' 21827 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21828 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21829 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21833 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21839 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21840 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21841 DEBUG ++ tr -d '>= ' 21848 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/manifest.json 21850 DEBUG + local ynh_requirement=4.3.0 21852 DEBUG + '[' -z 4.3.0 ']' 21855 DEBUG + '[' 4.3.0 == null ']' 21857 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 21858 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21861 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21865 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21868 DEBUG + ynh_system_user_exists digiwords 21870 DEBUG + local legacy_args=u 21872 DEBUG + args_array=([u]=username=) 21873 DEBUG + local -A args_array 21874 DEBUG + local username 21875 DEBUG + ynh_handle_getopts_args digiwords 21875 DEBUG + set +o xtrace 21886 DEBUG + echo '! Helper used in legacy mode !' 21887 DEBUG + set +x 21890 DEBUG + getent passwd digiwords 21895 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21898 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21901 DEBUG + grep -q '^/etc/cron' 21902 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21903 DEBUG + local legacy_args=f 21904 DEBUG + args_array=([f]=file=) 21905 DEBUG + local -A args_array 21906 DEBUG + local file 21907 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21909 DEBUG + set +o xtrace 21928 DEBUG + test -n / 21929 DEBUG + local path_url_slash_less= 21931 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21933 DEBUG + local legacy_args=mrf 21934 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21936 DEBUG + local -A args_array 21937 DEBUG + local match_string 21938 DEBUG + local replace_string 21941 DEBUG + local target_file 21942 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21943 DEBUG + set +o xtrace 22056 DEBUG + set +o xtrace 22057 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22059 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22061 DEBUG + local legacy_args=mrf 22062 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22064 DEBUG + local -A args_array 22067 DEBUG + local match_string 22069 DEBUG + local replace_string 22071 DEBUG + local target_file 22072 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22074 DEBUG + set +o xtrace 22194 DEBUG + set +o xtrace 22196 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22201 DEBUG + test -n digiwords 22202 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22203 DEBUG + local legacy_args=mrf 22205 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22206 DEBUG + local -A args_array 22207 DEBUG + local match_string 22208 DEBUG + local replace_string 22209 DEBUG + local target_file 22210 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22211 DEBUG + set +o xtrace 22348 DEBUG + set +o xtrace 22350 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22358 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22359 DEBUG + local legacy_args=mrf 22361 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22362 DEBUG + local -A args_array 22363 DEBUG + local match_string 22364 DEBUG + local replace_string 22365 DEBUG + local target_file 22366 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22368 DEBUG + set +o xtrace 22505 DEBUG + set +o xtrace 22507 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22513 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22518 DEBUG + local legacy_args=mrf 22519 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22519 DEBUG + local -A args_array 22520 DEBUG + local match_string 22520 DEBUG + local replace_string 22521 DEBUG + local target_file 22521 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22522 DEBUG + set +o xtrace 22650 DEBUG + set +o xtrace 22651 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22658 DEBUG + test -n /var/www/digiwords 22660 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22661 DEBUG + local legacy_args=mrf 22662 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22663 DEBUG + local -A args_array 22664 DEBUG + local match_string 22664 DEBUG + local replace_string 22665 DEBUG + local target_file 22666 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22668 DEBUG + set +o xtrace 22793 DEBUG + set +o xtrace 22794 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22798 DEBUG + test -n 7.3 22800 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22804 DEBUG + local legacy_args=mrf 22805 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22807 DEBUG + local -A args_array 22808 DEBUG + local match_string 22809 DEBUG + local replace_string 22810 DEBUG + local target_file 22811 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22813 DEBUG + set +o xtrace 22948 DEBUG + set +o xtrace 22949 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22956 DEBUG + test -n '' 22957 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 22960 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22961 DEBUG ++ sort --unique 22965 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 22970 DEBUG + local uniques_vars 22971 DEBUG + local delimit=@ 22972 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22973 DEBUG + local legacy_args=f 22973 DEBUG + args_array=([f]=file= [u]=update_only) 22973 DEBUG + local -A args_array 22974 DEBUG + local file 22974 DEBUG + local update_only 22974 DEBUG + update_only=0 22974 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22975 DEBUG + set +o xtrace 23015 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 23017 DEBUG + '[' 0 -eq 1 ']' 23018 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23019 DEBUG ++ cut '--delimiter= ' --fields=1 23026 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 23027 DEBUG + local _globalapp=digiwords 23029 DEBUG + local legacy_args=akv 23030 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 23032 DEBUG + local -A args_array 23033 DEBUG + local app 23034 DEBUG + local key 23035 DEBUG + local value 23036 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 23037 DEBUG + set +o xtrace 23179 DEBUG + app=digiwords 23180 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 23184 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 9c307bf4206b43d766feb3b967a25374 23186 DEBUG + set +o xtrace 23275 DEBUG + '[' -n '' ']' 23276 DEBUG + unset backup_file_checksum 23277 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 23280 DEBUG + local legacy_args=nalpte 23282 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 23283 DEBUG + local -A args_array 23284 DEBUG + local service_name 23285 DEBUG + local action 23286 DEBUG + local line_match 23287 DEBUG + local length 23288 DEBUG + local log_path 23288 DEBUG + local timeout 23290 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 23291 DEBUG + set +o xtrace 23484 DEBUG + service_name=nginx 23488 DEBUG + action=reload 23492 DEBUG + line_match= 23494 DEBUG + length=20 23496 DEBUG + log_path=/var/log/nginx/nginx.log 23500 DEBUG + timeout=300 23506 DEBUG + '[' reload == stop ']' 23513 DEBUG + [[ -n '' ]] 23517 DEBUG + '[' reload == reload ']' 23520 DEBUG + action=reload-or-restart 23520 DEBUG + systemctl reload-or-restart nginx 23608 DEBUG + [[ -n '' ]] 23621 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 23622 DEBUG + set +o xtrace 23775 DEBUG + set +o xtrace 23816 DEBUG + echo '! Helper used in legacy mode !' 23816 DEBUG + set +x 23821 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 23824 DEBUG + set -o xtrace 23824 DEBUG + ynh_add_fpm_config 23825 DEBUG + local legacy_args=vtufpd 23825 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 23826 DEBUG + local -A args_array 23827 DEBUG + local phpversion 23827 DEBUG + local use_template 23827 DEBUG + local usage 23828 DEBUG + local footprint 23828 DEBUG + local package 23829 DEBUG + local dedicated_service 23830 DEBUG + ynh_handle_getopts_args 23830 DEBUG + set +o xtrace 23835 DEBUG + package= 23835 DEBUG + use_template=1 23836 DEBUG + usage= 23837 DEBUG + footprint= 23837 DEBUG + '[' -n '' ']' 23838 DEBUG + '[' -n '' ']' 23838 DEBUG + dedicated_service=0 23839 DEBUG + phpversion=7.3 23839 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 23840 DEBUG ++ local _globalapp=digiwords 23841 DEBUG ++ local legacy_args=ak 23842 DEBUG ++ args_array=([a]=app= [k]=key=) 23843 DEBUG ++ local -A args_array 23844 DEBUG ++ local app 23845 DEBUG ++ local key 23846 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 23847 DEBUG ++ set +o xtrace 23847 INFO [############++......] > Configuring PHP-FPM... 23899 DEBUG ++ app=digiwords 23900 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 23901 DEBUG ++ ynh_app_setting get digiwords phpversion 23902 DEBUG ++ set +o xtrace 23988 DEBUG + local old_phpversion=7.3 23990 DEBUG + '[' -n 7.3 ']' 23992 DEBUG + '[' 7.3 '!=' 7.3 ']' 23993 DEBUG + '[' -n '' ']' 23996 DEBUG + '[' 0 -eq 1 ']' 23997 DEBUG + local fpm_service=php7.3-fpm 23998 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 23998 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 23999 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 23999 DEBUG + local _globalapp=digiwords 24000 DEBUG + local legacy_args=akv 24000 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24001 DEBUG + local -A args_array 24001 DEBUG + local app 24002 DEBUG + local key 24002 DEBUG + local value 24002 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 24003 DEBUG + set +o xtrace 24134 DEBUG + app=digiwords 24136 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 24138 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 24141 DEBUG + set +o xtrace 24213 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 24216 DEBUG + local _globalapp=digiwords 24219 DEBUG + local legacy_args=akv 24221 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24223 DEBUG + local -A args_array 24225 DEBUG + local app 24225 DEBUG + local key 24226 DEBUG + local value 24227 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 24228 DEBUG + set +o xtrace 24356 DEBUG + app=digiwords 24356 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 24356 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 24357 DEBUG + set +o xtrace 24440 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 24441 DEBUG + local _globalapp=digiwords 24444 DEBUG + local legacy_args=akv 24446 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24449 DEBUG + local -A args_array 24451 DEBUG + local app 24455 DEBUG + local key 24456 DEBUG + local value 24457 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 24458 DEBUG + set +o xtrace 24580 DEBUG + app=digiwords 24582 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 24583 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 24584 DEBUG + set +o xtrace 24661 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 24662 DEBUG + local _globalapp=digiwords 24663 DEBUG + local legacy_args=akv 24665 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24665 DEBUG + local -A args_array 24666 DEBUG + local app 24667 DEBUG + local key 24667 DEBUG + local value 24668 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 24668 DEBUG + set +o xtrace 24790 DEBUG + app=digiwords 24791 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 24793 DEBUG + ynh_app_setting set digiwords phpversion 7.3 24794 DEBUG + set +o xtrace 24876 DEBUG + '[' 0 -eq 1 ']' 24877 DEBUG + '[' 1 -eq 1 ']' 24878 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf 24878 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf ']' 24878 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 24879 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 24886 DEBUG + local legacy_args=tdv 24886 DEBUG + args_array=([t]=template= [d]=destination=) 24886 DEBUG + local -A args_array 24886 DEBUG + local template 24887 DEBUG + local destination 24887 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 24887 DEBUG + set +o xtrace 24952 DEBUG + local template_path 24953 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf ']' 24953 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf ']' 24954 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf 24954 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 24954 DEBUG + local legacy_args=f 24957 DEBUG + args_array=([f]=file=) 24958 DEBUG + local -A args_array 24958 DEBUG + local file 24958 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 24959 DEBUG + set +o xtrace 24974 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24975 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24975 DEBUG ++ local _globalapp=digiwords 24977 DEBUG ++ local legacy_args=ak 24977 DEBUG ++ args_array=([a]=app= [k]=key=) 24978 DEBUG ++ local -A args_array 24978 DEBUG ++ local app 24978 DEBUG ++ local key 24978 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24978 DEBUG ++ set +o xtrace 25042 DEBUG ++ app=digiwords 25044 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 25045 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 25047 DEBUG ++ set +o xtrace 25118 DEBUG + local checksum_value= 25120 DEBUG + backup_file_checksum= 25121 DEBUG + '[' -n '' ']' 25122 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 25124 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 25127 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 25130 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 25133 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 25135 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 25138 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/manifest.json 25142 DEBUG ++ tr -d '>= ' 25146 DEBUG + local ynh_requirement=4.3.0 25149 DEBUG + '[' -z 4.3.0 ']' 25152 DEBUG + '[' 4.3.0 == null ']' 25153 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 25153 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 25154 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 25155 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 25160 DEBUG + ynh_system_user_exists digiwords 25160 DEBUG + local legacy_args=u 25161 DEBUG + args_array=([u]=username=) 25162 DEBUG + local -A args_array 25162 DEBUG + local username 25163 DEBUG + ynh_handle_getopts_args digiwords 25163 DEBUG + set +o xtrace 25172 DEBUG + echo '! Helper used in legacy mode !' 25173 DEBUG + set +x 25175 DEBUG + getent passwd digiwords 25177 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 25182 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 25184 DEBUG + grep -q '^/etc/cron' 25188 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25189 DEBUG + local legacy_args=f 25191 DEBUG + args_array=([f]=file=) 25192 DEBUG + local -A args_array 25193 DEBUG + local file 25194 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25195 DEBUG + set +o xtrace 25207 DEBUG + test -n / 25210 DEBUG + local path_url_slash_less= 25213 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25215 DEBUG + local legacy_args=mrf 25216 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25218 DEBUG + local -A args_array 25219 DEBUG + local match_string 25219 DEBUG + local replace_string 25220 DEBUG + local target_file 25221 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25222 DEBUG + set +o xtrace 25337 DEBUG + set +o xtrace 25338 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25342 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25343 DEBUG + local legacy_args=mrf 25344 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25345 DEBUG + local -A args_array 25345 DEBUG + local match_string 25346 DEBUG + local replace_string 25347 DEBUG + local target_file 25347 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25348 DEBUG + set +o xtrace 25485 DEBUG + set +o xtrace 25486 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25494 DEBUG + test -n digiwords 25495 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25496 DEBUG + local legacy_args=mrf 25498 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25499 DEBUG + local -A args_array 25500 DEBUG + local match_string 25501 DEBUG + local replace_string 25502 DEBUG + local target_file 25503 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25503 DEBUG + set +o xtrace 25637 DEBUG + set +o xtrace 25638 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25646 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25648 DEBUG + local legacy_args=mrf 25650 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25651 DEBUG + local -A args_array 25652 DEBUG + local match_string 25653 DEBUG + local replace_string 25654 DEBUG + local target_file 25654 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25655 DEBUG + set +o xtrace 25800 DEBUG + set +o xtrace 25801 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25806 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25810 DEBUG + local legacy_args=mrf 25812 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25813 DEBUG + local -A args_array 25814 DEBUG + local match_string 25815 DEBUG + local replace_string 25816 DEBUG + local target_file 25817 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25818 DEBUG + set +o xtrace 25934 DEBUG + set +o xtrace 25936 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25940 DEBUG + test -n /var/www/digiwords 25942 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25943 DEBUG + local legacy_args=mrf 25944 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25946 DEBUG + local -A args_array 25947 DEBUG + local match_string 25948 DEBUG + local replace_string 25949 DEBUG + local target_file 25949 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25950 DEBUG + set +o xtrace 26073 DEBUG + set +o xtrace 26075 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26078 DEBUG + test -n 7.3 26081 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26082 DEBUG + local legacy_args=mrf 26082 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26083 DEBUG + local -A args_array 26084 DEBUG + local match_string 26084 DEBUG + local replace_string 26085 DEBUG + local target_file 26085 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26086 DEBUG + set +o xtrace 26209 DEBUG + set +o xtrace 26211 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26217 DEBUG + test -n '' 26219 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 26220 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 26221 DEBUG ++ sort --unique 26226 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 26230 DEBUG + local uniques_vars 26231 DEBUG + local delimit=@ 26232 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26232 DEBUG + local legacy_args=f 26233 DEBUG + args_array=([f]=file= [u]=update_only) 26233 DEBUG + local -A args_array 26234 DEBUG + local file 26235 DEBUG + local update_only 26236 DEBUG + update_only=0 26236 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26237 DEBUG + set +o xtrace 26260 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26261 DEBUG + '[' 0 -eq 1 ']' 26261 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 26263 DEBUG ++ cut '--delimiter= ' --fields=1 26266 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 26267 DEBUG + local _globalapp=digiwords 26268 DEBUG + local legacy_args=akv 26268 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26269 DEBUG + local -A args_array 26269 DEBUG + local app 26270 DEBUG + local key 26271 DEBUG + local value 26272 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 26272 DEBUG + set +o xtrace 26395 DEBUG + app=digiwords 26398 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 26400 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 26400 DEBUG + set +o xtrace 26485 DEBUG + '[' -n '' ']' 26487 DEBUG + unset backup_file_checksum 26488 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_6m7nhpu3/app_folder/conf/php-fpm.ini ']' 26488 DEBUG + '[' 0 -eq 1 ']' 26489 DEBUG + php-fpm7.3 --test 26578 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 26579 DEBUG + local legacy_args=nalpte 26579 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 26580 DEBUG + local -A args_array 26582 DEBUG + local service_name 26582 DEBUG + local action 26583 DEBUG + local line_match 26584 DEBUG + local length 26585 DEBUG + local log_path 26586 DEBUG + local timeout 26586 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 26587 DEBUG + set +o xtrace 26755 DEBUG + service_name=php7.3-fpm 26756 DEBUG + action=reload 26756 DEBUG + line_match= 26757 DEBUG + length=20 26757 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 26758 DEBUG + timeout=300 26758 DEBUG + '[' reload == stop ']' 26758 DEBUG + [[ -n '' ]] 26759 DEBUG + '[' reload == reload ']' 26759 DEBUG + action=reload-or-restart 26760 DEBUG + systemctl reload-or-restart php7.3-fpm 26786 DEBUG + [[ -n '' ]] 26788 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 26789 DEBUG + set +o xtrace 26931 DEBUG + set +o xtrace 26962 DEBUG + echo '! Helper used in legacy mode !' 26963 DEBUG + set +x 26969 DEBUG + echo '[##############++....] > Configuring permissions...' 26970 DEBUG + set -o xtrace 26971 DEBUG + '[' 1 -eq 1 ']' 26972 DEBUG + ynh_permission_update --permission=main --add=visitors 26972 DEBUG + local legacy_args=parltP 26973 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=) 26973 DEBUG + local -A args_array 26973 DEBUG + local permission 26974 DEBUG + local add 26976 DEBUG + local remove 26977 DEBUG + local label 26978 DEBUG + local show_tile 26979 DEBUG + local protected 26980 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors 26981 DEBUG + set +o xtrace 26982 INFO [##############++....] > Configuring permissions... 27176 DEBUG + add=visitors 27177 DEBUG + remove= 27179 DEBUG + label= 27182 DEBUG + show_tile= 27185 DEBUG + protected= 27187 DEBUG + [[ -n visitors ]] 27189 DEBUG + add=',add=['\''visitors'\'']' 27190 DEBUG + [[ -n '' ]] 27191 DEBUG + [[ -n '' ]] 27192 DEBUG + [[ -n '' ]] 27193 DEBUG + [[ -n '' ]] 27194 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''digiwords.main'\'' ,add=['\''visitors'\''] , force=True)' 27823 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 27825 DEBUG + set +o xtrace 27949 DEBUG + set +o xtrace 27976 DEBUG + echo '! Helper used in legacy mode !' 27976 DEBUG + set +x 27982 DEBUG + echo '[################++..] > Reloading NGINX web server...' 27983 INFO [################++..] > Reloading NGINX web server... 27987 DEBUG + set -o xtrace 27990 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 27991 DEBUG + local legacy_args=nalpte 27992 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 27993 DEBUG + local -A args_array 27994 DEBUG + local service_name 27995 DEBUG + local action 27996 DEBUG + local line_match 27998 DEBUG + local length 28003 DEBUG + local log_path 28005 DEBUG + local timeout 28007 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 28009 DEBUG + set +o xtrace 28195 DEBUG + service_name=nginx 28195 DEBUG + action=reload 28197 DEBUG + line_match= 28199 DEBUG + length=20 28201 DEBUG + log_path=/var/log/nginx/nginx.log 28202 DEBUG + timeout=300 28202 DEBUG + '[' reload == stop ']' 28203 DEBUG + [[ -n '' ]] 28204 DEBUG + '[' reload == reload ']' 28205 DEBUG + action=reload-or-restart 28205 DEBUG + systemctl reload-or-restart nginx 28298 DEBUG + [[ -n '' ]] 28299 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 28300 DEBUG + set +o xtrace 28438 DEBUG + set +o xtrace 28485 DEBUG + echo '! Helper used in legacy mode !' 28487 DEBUG + set +x 28490 DEBUG + echo '[####################] > Installation of digiwords completed' 28492 DEBUG + set -o xtrace 28494 DEBUG + ynh_exit_properly 28496 INFO [####################] > Installation of digiwords completed 28497 DEBUG + local exit_code=0 28498 DEBUG + rm -rf /var/cache/yunohost/download/ 28501 DEBUG + '[' 0 -eq 0 ']' 28502 DEBUG + exit 0 29506 DEBUG Checking that required services are up and running... 30254 SUCCESS Installation completed 30259 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-092847-app_install-digiwords' 30275 DEBUG action [2576.1] executed in 30.033s 30276 DEBUG lock has been released Return code: 0 Working time: 31 seconds (09:29:16) Installation successful. Return code: 1 Working time: 0s (09:29:26)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld Return code: 0 Working time: 0s (09:29:32) Return code: 0 Working time: 0s (09:29:35) HTTP code: Test URL: sub.domain.tld Real URL: HTTP code: Page title: Page extract: Running curl sub.domain.tld/ Return code: 0 Working time: 0s (09:29:41) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:29:44) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. --- SUCCESS --- Working time for this test: 5 minutes, 16 seconds (09:29:45)  ============================================ [Test 3/9] Installation in a sub path ============================================  Loading snapshot snap0 ... Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/path&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/path&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" 265 DEBUG initializing base actions map parser for cli 268 DEBUG loading actions map namespace 'yunohost' 273 DEBUG building parser... 301 DEBUG building parser took 0.028s 304 DEBUG acquiring lock... 341 DEBUG lock has been acquired 379 DEBUG loading python module yunohost.app took 0.038s 379 DEBUG processing action [813.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/path&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 438 DEBUG Extracting... 459 DEBUG Done 461 DEBUG Checking required packages for digiwords... 474 DEBUG Checking that required services are up and running... 1472 DEBUG initializing ldap interface 1618 INFO Installing digiwords... 1674 DEBUG Nothing to update in LDAP 1675 DEBUG Permission 'digiwords.main' updated 1684 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-093109-permission_url-digiwords' 1710 DEBUG The permission database has been resynchronized 1726 DEBUG SSOwat configuration regenerated 1750 DEBUG Permission 'digiwords.main' created 1751 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-093109-permission_create-digiwords' 1796 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1810 DEBUG + source _common.sh 1811 DEBUG ++ pkg_dependencies=php-sqlite3 1812 DEBUG + source /usr/share/yunohost/helpers 1813 DEBUG +++ set +o 1815 DEBUG +++ grep xtrace 1819 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1821 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1822 DEBUG ++ set +x 1880 DEBUG + ynh_abort_if_errors 1880 DEBUG + set -o errexit 1881 DEBUG + set -o nounset 1883 DEBUG + trap ynh_exit_properly EXIT 1884 DEBUG + domain=sub.domain.tld 1884 DEBUG + path_url=/path 1884 DEBUG + is_public=1 1885 DEBUG + app=digiwords 1886 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1886 DEBUG + set +o xtrace 1998 DEBUG + set +o xtrace 2060 DEBUG + echo '! Helper used in legacy mode !' 2061 DEBUG + set +x 2063 DEBUG + echo '[++..................] > Validating installation parameters...' 2077 DEBUG + set -o xtrace 2078 DEBUG + final_path=/var/www/digiwords 2078 DEBUG + test '!' -e /var/www/digiwords 2080 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/path 2081 DEBUG + local legacy_args=adp 2081 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 2082 DEBUG + local -A args_array 2082 DEBUG + local app 2082 DEBUG + local domain 2082 DEBUG + local path_url 2082 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/path 2082 DEBUG + set +o xtrace 2083 INFO [++..................] > Validating installation parameters... 2230 DEBUG + yunohost app register-url digiwords sub.domain.tld /path 2990 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 2990 DEBUG + set +o xtrace 3120 DEBUG + set +o xtrace 3145 DEBUG + echo '! Helper used in legacy mode !' 3146 DEBUG + set +x 3149 DEBUG + echo '[##++................] > Storing installation settings...' 3150 DEBUG + set -o xtrace 3150 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 3150 DEBUG + local _globalapp=digiwords 3150 DEBUG + local legacy_args=akv 3151 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3151 DEBUG + local -A args_array 3153 DEBUG + local app 3154 DEBUG + local key 3155 DEBUG + local value 3157 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 3158 DEBUG + set +o xtrace 3158 INFO [##++................] > Storing installation settings... 3329 DEBUG + app=digiwords 3330 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 3332 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 3332 DEBUG + set +o xtrace 3427 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/path 3428 DEBUG + local _globalapp=digiwords 3428 DEBUG + local legacy_args=akv 3429 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3430 DEBUG + local -A args_array 3431 DEBUG + local app 3431 DEBUG + local key 3433 DEBUG + local value 3434 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/path 3434 DEBUG + set +o xtrace 3545 DEBUG + app=digiwords 3546 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3548 DEBUG + ynh_app_setting set digiwords path /path 3550 DEBUG + set +o xtrace 3630 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3630 DEBUG + set +o xtrace 3747 DEBUG + set +o xtrace 3770 DEBUG + echo '! Helper used in legacy mode !' 3771 DEBUG + set +x 3775 INFO [####++..............] > Installing dependencies... 3776 DEBUG + echo '[####++..............] > Installing dependencies...' 3777 DEBUG + set -o xtrace 3778 DEBUG + ynh_install_app_dependencies php-sqlite3 3778 DEBUG + local dependencies=php-sqlite3 3782 DEBUG ++ echo php-sqlite3 3783 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3790 DEBUG + dependencies=php-sqlite3 3790 DEBUG + local dependencies=php-sqlite3 3791 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/manifest.json 3792 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/manifest.json 3805 DEBUG + local version=0.3.3~ynh1 3806 DEBUG + '[' -z 0.3.3~ynh1 ']' 3806 DEBUG + '[' 0.3.3~ynh1 == null ']' 3806 DEBUG + local dep_app=digiwords 3807 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3810 DEBUG ++ echo php-sqlite3 3811 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3813 DEBUG ++ sort -u 3822 DEBUG + local specific_php_version= 3823 DEBUG + [[ '' != \7\.\3 ]] 3823 DEBUG + [[ -n '' ]] 3823 DEBUG + [[ true == \t\r\u\e ]] 3824 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3824 DEBUG + grep --quiet php 3827 DEBUG + dpkg --list 3828 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3829 DEBUG + grep php7.0 3855 DEBUG + cat 3859 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3860 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3862 DEBUG ++ cut '--delimiter= ' --fields=2 3863 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3872 DEBUG + local pkgname=digiwords-ynh-deps 3874 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3876 DEBUG ++ cut '--delimiter= ' --fields=2 3882 DEBUG + local pkgversion=0.3.3~ynh1 3883 DEBUG + [[ -z digiwords-ynh-deps ]] 3883 DEBUG + [[ -z 0.3.3~ynh1 ]] 3884 DEBUG + ynh_package_update 3884 DEBUG + ynh_apt update 3884 DEBUG + ynh_wait_dpkg_free 3885 DEBUG + local try 3885 DEBUG + set +o xtrace 5303 DEBUG + return 0 5304 DEBUG + LC_ALL=C 5305 DEBUG + DEBIAN_FRONTEND=noninteractive 5306 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5432 DEBUG Hit:1 http://deb.debian.org/debian buster InRelease 5433 DEBUG Get:2 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] 5449 DEBUG Get:3 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB] 5470 DEBUG Hit:4 http://forge.yunohost.org/debian buster InRelease 5918 DEBUG Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [11.1 kB] 5933 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 5947 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6127 DEBUG Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [328 kB] 6174 DEBUG Get:8 http://deb.debian.org/debian-security buster/updates/main Translation-en [177 kB] 6326 DEBUG Fetched 635 kB in 1s (684 kB/s) 7685 DEBUG Reading package lists... 7747 DEBUG ++ mktemp --directory 7748 DEBUG + local TMPDIR=/tmp/tmp.SV7JXlOsWl 7749 DEBUG + echo 10 7750 DEBUG + ynh_wait_dpkg_free 7750 DEBUG + local try 7751 DEBUG + set +o xtrace 9157 DEBUG + return 0 9159 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.SV7JXlOsWl/control 9168 DEBUG + cd /tmp/tmp.SV7JXlOsWl 9171 DEBUG + LC_ALL=C 9173 DEBUG + equivs-build ./control 11223 DEBUG + tee ./dpkg_log 11225 DEBUG + LC_ALL=C 11227 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 11293 DEBUG Selecting previously unselected package digiwords-ynh-deps. 11339 DEBUG (Reading database ... 42385 files and directories currently installed.) 11344 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 11356 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 11438 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 11439 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 11440 DEBUG  Package php-sqlite3 is not installed. 11441 DEBUG  11443 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 11517 DEBUG + ynh_package_install --fix-broken 11518 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 11520 DEBUG + ynh_wait_dpkg_free 11524 DEBUG + local try 11525 DEBUG + set +o xtrace 12959 DEBUG + return 0 12961 DEBUG + LC_ALL=C 12962 DEBUG + DEBIAN_FRONTEND=noninteractive 12963 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13165 DEBUG Reading package lists... 13546 DEBUG Building dependency tree... 13548 DEBUG Reading state information... 13776 DEBUG Correcting dependencies... Done 14236 DEBUG The following additional packages will be installed: 14238 DEBUG  php-sqlite3 php7.3-sqlite3 14286 DEBUG The following NEW packages will be installed: 14288 DEBUG  php-sqlite3 php7.3-sqlite3 14352 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 14358 DEBUG Need to get 32.2 kB of archives. 14362 DEBUG After this operation, 139 kB of additional disk space will be used. 14363 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php7.3-sqlite3 amd64 7.3.31-1~deb10u1 [26.2 kB] 14366 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 php-sqlite3 all 2:7.3+69 [5996 B] 14898 DEBUG Fetched 32.2 kB in 0s (688 kB/s) 14992 DEBUG Selecting previously unselected package php7.3-sqlite3. 15036 DEBUG (Reading database ... 42389 files and directories currently installed.) 15042 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 15072 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15227 DEBUG Selecting previously unselected package php-sqlite3. 15238 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 15256 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 15405 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15436 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15682 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15785 DEBUG  15787 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 15909 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16174 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16409 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16521 DEBUG  16525 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 16637 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16889 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 16928 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 17709 DEBUG + [[ -n /tmp/tmp.SV7JXlOsWl ]] 17709 DEBUG + rm --recursive --force /tmp/tmp.SV7JXlOsWl 17710 DEBUG + ynh_package_is_installed digiwords-ynh-deps 17714 DEBUG + local legacy_args=p 17715 DEBUG + args_array=([p]=package=) 17715 DEBUG + local -A args_array 17716 DEBUG + local package 17717 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 17718 DEBUG + set +o xtrace 17728 DEBUG + echo '! Helper used in legacy mode !' 17728 DEBUG + set +x 17732 DEBUG + ynh_wait_dpkg_free 17732 DEBUG + local try 17738 DEBUG + set +o xtrace 19181 DEBUG + return 0 19183 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 19185 DEBUG + grep --count 'ok installed' 19210 DEBUG + rm /tmp/digiwords-ynh-deps.control 19216 DEBUG + [[ -n '' ]] 19225 DEBUG + grep --quiet php 19229 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 19230 DEBUG + local _globalapp=digiwords 19233 DEBUG + local legacy_args=akv 19235 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19237 DEBUG + local -A args_array 19239 DEBUG + local app 19239 DEBUG + local key 19240 DEBUG + local value 19241 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 19242 DEBUG + set +o xtrace 19378 DEBUG + app=digiwords 19383 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 19393 DEBUG + ynh_app_setting set digiwords phpversion 7.3 19395 DEBUG + set +o xtrace 19503 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 19503 DEBUG + set +o xtrace 19627 DEBUG + set +o xtrace 19657 DEBUG + echo '! Helper used in legacy mode !' 19658 DEBUG + set +x 19666 DEBUG + echo '[######++............] > Configuring system user...' 19667 INFO [######++............] > Configuring system user... 19671 DEBUG + set -o xtrace 19673 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 19674 DEBUG + local legacy_args=uhs 19677 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 19678 DEBUG + local -A args_array 19680 DEBUG + local username 19681 DEBUG + local home_dir 19683 DEBUG + local use_shell 19684 DEBUG + local groups 19685 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 19686 DEBUG + set +o xtrace 19837 DEBUG + use_shell=0 19840 DEBUG + home_dir=/var/www/digiwords 19842 DEBUG + groups= 19843 DEBUG + ynh_system_user_exists digiwords 19845 DEBUG + local legacy_args=u 19847 DEBUG + args_array=([u]=username=) 19847 DEBUG + local -A args_array 19848 DEBUG + local username 19848 DEBUG + ynh_handle_getopts_args digiwords 19848 DEBUG + set +o xtrace 19873 DEBUG + echo '! Helper used in legacy mode !' 19873 DEBUG + set +x 19874 DEBUG + getent passwd digiwords 19885 DEBUG + '[' -n /var/www/digiwords ']' 19886 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 19887 DEBUG + '[' 0 -eq 1 ']' 19888 DEBUG + local 'shell=--shell /usr/sbin/nologin' 19890 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 20025 DEBUG + local group 20026 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 20028 DEBUG + set +o xtrace 20140 DEBUG + set +o xtrace 20164 DEBUG + echo '! Helper used in legacy mode !' 20165 DEBUG + set +x 20170 DEBUG + echo '[########++..........] > Setting up source files...' 20172 DEBUG + set -o xtrace 20174 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 20175 DEBUG + local _globalapp=digiwords 20177 DEBUG + local legacy_args=akv 20179 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20180 DEBUG + local -A args_array 20181 DEBUG + local app 20182 DEBUG + local key 20184 DEBUG + local value 20186 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 20187 DEBUG + set +o xtrace 20188 INFO [########++..........] > Setting up source files... 20324 DEBUG + app=digiwords 20325 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 20327 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 20328 DEBUG + set +o xtrace 20428 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 20430 DEBUG + local legacy_args=dsk 20432 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 20434 DEBUG + local -A args_array 20436 DEBUG + local dest_dir 20438 DEBUG + local source_id 20439 DEBUG + local keep 20440 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 20441 DEBUG + set +o xtrace 20476 DEBUG + source_id=app 20478 DEBUG + keep= 20480 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20483 DEBUG ++ cut --delimiter== --fields=2- 20489 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20508 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 20508 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20509 DEBUG ++ cut --delimiter== --fields=2- 20513 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 20515 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20519 DEBUG ++ cut --delimiter== --fields=2- 20521 DEBUG + local src_sumprg=sha256sum 20531 DEBUG ++ cut --delimiter== --fields=2- 20531 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20536 DEBUG + local src_format=zip 20539 DEBUG ++ cut --delimiter== --fields=2- 20545 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20545 DEBUG + local src_extract=true 20545 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20547 DEBUG ++ cut --delimiter== --fields=2- 20551 DEBUG + local src_in_subdir=true 20553 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/app.src 20557 DEBUG ++ cut --delimiter== --fields=2- 20560 DEBUG + local src_filename= 20560 DEBUG + src_sumprg=sha256sum 20561 DEBUG + src_in_subdir=true 20561 DEBUG + src_format=zip 20567 DEBUG ++ echo zip 20568 DEBUG ++ tr '[:upper:]' '[:lower:]' 20573 DEBUG + src_format=zip 20574 DEBUG + src_extract=true 20574 DEBUG + '[' '' = '' ']' 20574 DEBUG + src_filename=app.zip 20574 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 20575 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 20577 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 20578 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 20580 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 20580 DEBUG + local out 20581 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 20997 DEBUG + out='2022-05-31 09:31:28 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T093128Z&X-Amz-Expires=300&X-Amz-Signature=b5073b1c416d556b5f0ce413697c4ca7735d344e30bff6b2ae739df2902090f4&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 20997 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 20998 DEBUG + sha256sum --check --status 21027 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 21030 DEBUG + '[' -n '' ']' 21030 DEBUG + mkdir --parents /var/www/digiwords 21034 DEBUG + '[' -n /var/www/digiwords ']' 21035 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 21035 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 21036 DEBUG + local target=/var/www/digiwords 21038 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/manifest.json 21039 DEBUG ++ tr -d '>= ' 21045 DEBUG + local ynh_requirement=4.3.0 21046 DEBUG + '[' -z 4.3.0 ']' 21046 DEBUG + '[' 4.3.0 == null ']' 21047 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 21052 DEBUG + chmod o-rwx /var/www/digiwords 21054 DEBUG + chmod g-w /var/www/digiwords 21056 DEBUG + chown -R root:root /var/www/digiwords 21069 DEBUG + ynh_system_user_exists digiwords 21072 DEBUG + local legacy_args=u 21075 DEBUG + args_array=([u]=username=) 21076 DEBUG + local -A args_array 21076 DEBUG + local username 21077 DEBUG + ynh_handle_getopts_args digiwords 21078 DEBUG + set +o xtrace 21094 DEBUG + echo '! Helper used in legacy mode !' 21095 DEBUG + set +x 21102 DEBUG + getent passwd digiwords 21113 DEBUG + chown digiwords:digiwords /var/www/digiwords 21126 DEBUG + echo /var/www/digiwords 21127 DEBUG + grep -q '^/etc/cron' 21131 DEBUG + true 21132 DEBUG + '[' zip = zip ']' 21134 DEBUG + true 21136 DEBUG ++ mktemp --directory 21137 DEBUG + local tmp_dir=/tmp/tmp.kTKrZ2G5Cr 21139 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.kTKrZ2G5Cr 21190 DEBUG + cp --archive /tmp/tmp.kTKrZ2G5Cr/digiwords/. /var/www/digiwords 21206 DEBUG + ynh_secure_remove --file=/tmp/tmp.kTKrZ2G5Cr 21206 DEBUG + local legacy_args=f 21207 DEBUG + args_array=([f]=file=) 21208 DEBUG + local -A args_array 21208 DEBUG + local file 21209 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.kTKrZ2G5Cr 21209 DEBUG + set +o xtrace 21230 DEBUG + set +o xtrace 21256 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 21257 DEBUG + local legacy_args=f 21258 DEBUG + args_array=([f]=file=) 21261 DEBUG + local -A args_array 21261 DEBUG + local file 21262 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 21263 DEBUG + set +o xtrace 21282 DEBUG + set +o xtrace 21303 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/sources/patches/ ']' 21304 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/sources/extra_files/app 21304 DEBUG + '[' -n '' ']' 21304 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 21306 DEBUG + chmod 750 /var/www/digiwords 21308 DEBUG + chmod -R o-rwx /var/www/digiwords 21313 DEBUG + chown -R digiwords:www-data /var/www/digiwords 21323 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 21324 DEBUG + set +o xtrace 21473 DEBUG + set +o xtrace 21509 DEBUG + echo '! Helper used in legacy mode !' 21510 DEBUG + set +x 21516 INFO [##########++........] > Configuring NGINX web server... 21517 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 21519 DEBUG + set -o xtrace 21519 DEBUG + ynh_add_nginx_config 21520 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21520 DEBUG + '[' /path '!=' / ']' 21522 DEBUG + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf 21523 DEBUG + local legacy_args=mrf 21523 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21524 DEBUG + local -A args_array 21526 DEBUG + local match_string 21527 DEBUG + local replace_string 21528 DEBUG + local target_file 21530 DEBUG + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf 21530 DEBUG + set +o xtrace 21673 DEBUG + set +o xtrace 21674 DEBUG + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf 21683 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21684 DEBUG + local legacy_args=tdv 21685 DEBUG + args_array=([t]=template= [d]=destination=) 21686 DEBUG + local -A args_array 21686 DEBUG + local template 21687 DEBUG + local destination 21687 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21688 DEBUG + set +o xtrace 21773 DEBUG + local template_path 21775 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf ']' 21776 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf ']' 21778 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf 21779 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21780 DEBUG + local legacy_args=f 21781 DEBUG + args_array=([f]=file=) 21782 DEBUG + local -A args_array 21783 DEBUG + local file 21784 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21785 DEBUG + set +o xtrace 21806 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21812 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21815 DEBUG ++ local _globalapp=digiwords 21818 DEBUG ++ local legacy_args=ak 21820 DEBUG ++ args_array=([a]=app= [k]=key=) 21821 DEBUG ++ local -A args_array 21822 DEBUG ++ local app 21823 DEBUG ++ local key 21823 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21824 DEBUG ++ set +o xtrace 21877 DEBUG ++ app=digiwords 21878 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 21880 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21881 DEBUG ++ set +o xtrace 21953 DEBUG + local checksum_value= 21954 DEBUG + backup_file_checksum= 21958 DEBUG + '[' -n '' ']' 21959 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21960 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21963 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21964 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21967 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21968 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21970 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/manifest.json 21973 DEBUG ++ tr -d '>= ' 21979 DEBUG + local ynh_requirement=4.3.0 21981 DEBUG + '[' -z 4.3.0 ']' 21982 DEBUG + '[' 4.3.0 == null ']' 21983 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 21986 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21989 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21990 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21995 DEBUG + ynh_system_user_exists digiwords 21997 DEBUG + local legacy_args=u 21998 DEBUG + args_array=([u]=username=) 22000 DEBUG + local -A args_array 22002 DEBUG + local username 22006 DEBUG + ynh_handle_getopts_args digiwords 22009 DEBUG + set +o xtrace 22020 DEBUG + echo '! Helper used in legacy mode !' 22021 DEBUG + set +x 22023 DEBUG + getent passwd digiwords 22026 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22029 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22031 DEBUG + grep -q '^/etc/cron' 22035 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22036 DEBUG + local legacy_args=f 22037 DEBUG + args_array=([f]=file=) 22038 DEBUG + local -A args_array 22040 DEBUG + local file 22040 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22041 DEBUG + set +o xtrace 22059 DEBUG + test -n /path 22060 DEBUG + local path_url_slash_less=/path 22061 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22062 DEBUG + local legacy_args=mrf 22063 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22064 DEBUG + local -A args_array 22067 DEBUG + local match_string 22068 DEBUG + local replace_string 22069 DEBUG + local target_file 22070 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22071 DEBUG + set +o xtrace 22212 DEBUG + set +o xtrace 22215 DEBUG + sed --in-place s@__PATH__/@/path/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22220 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/path --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22223 DEBUG + local legacy_args=mrf 22226 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22227 DEBUG + local -A args_array 22228 DEBUG + local match_string 22229 DEBUG + local replace_string 22230 DEBUG + local target_file 22230 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/path --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22231 DEBUG + set +o xtrace 22375 DEBUG + set +o xtrace 22376 DEBUG + sed --in-place s@__PATH__@/path@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22379 DEBUG + test -n digiwords 22381 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22382 DEBUG + local legacy_args=mrf 22383 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22384 DEBUG + local -A args_array 22385 DEBUG + local match_string 22387 DEBUG + local replace_string 22388 DEBUG + local target_file 22388 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22389 DEBUG + set +o xtrace 22515 DEBUG + set +o xtrace 22516 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22525 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22526 DEBUG + local legacy_args=mrf 22527 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22528 DEBUG + local -A args_array 22529 DEBUG + local match_string 22530 DEBUG + local replace_string 22531 DEBUG + local target_file 22532 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22533 DEBUG + set +o xtrace 22675 DEBUG + set +o xtrace 22676 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22683 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22685 DEBUG + local legacy_args=mrf 22687 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22688 DEBUG + local -A args_array 22690 DEBUG + local match_string 22695 DEBUG + local replace_string 22697 DEBUG + local target_file 22699 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22700 DEBUG + set +o xtrace 22856 DEBUG + set +o xtrace 22859 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22862 DEBUG + test -n /var/www/digiwords 22865 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22867 DEBUG + local legacy_args=mrf 22868 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22868 DEBUG + local -A args_array 22869 DEBUG + local match_string 22869 DEBUG + local replace_string 22870 DEBUG + local target_file 22870 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22871 DEBUG + set +o xtrace 22991 DEBUG + set +o xtrace 22992 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22995 DEBUG + test -n 7.3 22996 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22997 DEBUG + local legacy_args=mrf 22999 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23001 DEBUG + local -A args_array 23003 DEBUG + local match_string 23004 DEBUG + local replace_string 23005 DEBUG + local target_file 23007 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23009 DEBUG + set +o xtrace 23148 DEBUG + set +o xtrace 23150 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23153 DEBUG + test -n '' 23154 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 23161 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 23162 DEBUG ++ sort --unique 23164 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23175 DEBUG + local uniques_vars 23177 DEBUG + local delimit=@ 23178 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23179 DEBUG + local legacy_args=f 23181 DEBUG + args_array=([f]=file= [u]=update_only) 23182 DEBUG + local -A args_array 23183 DEBUG + local file 23184 DEBUG + local update_only 23185 DEBUG + update_only=0 23186 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23187 DEBUG + set +o xtrace 23223 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 23227 DEBUG + '[' 0 -eq 1 ']' 23234 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23236 DEBUG ++ cut '--delimiter= ' --fields=1 23242 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=2d274b9377dd09899018d334213d0b11 23244 DEBUG + local _globalapp=digiwords 23246 DEBUG + local legacy_args=akv 23248 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 23251 DEBUG + local -A args_array 23253 DEBUG + local app 23254 DEBUG + local key 23255 DEBUG + local value 23256 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=2d274b9377dd09899018d334213d0b11 23258 DEBUG + set +o xtrace 23382 DEBUG + app=digiwords 23386 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 23389 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 2d274b9377dd09899018d334213d0b11 23391 DEBUG + set +o xtrace 23455 DEBUG + '[' -n '' ']' 23458 DEBUG + unset backup_file_checksum 23461 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 23462 DEBUG + local legacy_args=nalpte 23463 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 23463 DEBUG + local -A args_array 23464 DEBUG + local service_name 23465 DEBUG + local action 23467 DEBUG + local line_match 23468 DEBUG + local length 23469 DEBUG + local log_path 23469 DEBUG + local timeout 23470 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 23472 DEBUG + set +o xtrace 23648 DEBUG + service_name=nginx 23650 DEBUG + action=reload 23653 DEBUG + line_match= 23655 DEBUG + length=20 23656 DEBUG + log_path=/var/log/nginx/nginx.log 23657 DEBUG + timeout=300 23659 DEBUG + '[' reload == stop ']' 23661 DEBUG + [[ -n '' ]] 23662 DEBUG + '[' reload == reload ']' 23663 DEBUG + action=reload-or-restart 23664 DEBUG + systemctl reload-or-restart nginx 23739 DEBUG + [[ -n '' ]] 23740 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 23741 DEBUG + set +o xtrace 23867 DEBUG + set +o xtrace 23896 DEBUG + echo '! Helper used in legacy mode !' 23897 DEBUG + set +x 23909 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 23909 DEBUG + set -o xtrace 23909 DEBUG + ynh_add_fpm_config 23910 DEBUG + local legacy_args=vtufpd 23911 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 23913 DEBUG + local -A args_array 23914 DEBUG + local phpversion 23916 DEBUG + local use_template 23922 DEBUG + local usage 23928 DEBUG + local footprint 23929 DEBUG + local package 23929 DEBUG + local dedicated_service 23930 DEBUG + ynh_handle_getopts_args 23932 DEBUG + set +o xtrace 23933 DEBUG + package= 23934 DEBUG + use_template=1 23937 DEBUG + usage= 23938 DEBUG + footprint= 23938 DEBUG + '[' -n '' ']' 23939 DEBUG + '[' -n '' ']' 23940 DEBUG + dedicated_service=0 23941 DEBUG + phpversion=7.3 23941 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 23942 DEBUG ++ local _globalapp=digiwords 23943 DEBUG ++ local legacy_args=ak 23943 DEBUG ++ args_array=([a]=app= [k]=key=) 23944 DEBUG ++ local -A args_array 23945 DEBUG ++ local app 23946 DEBUG ++ local key 23948 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 23949 INFO [############++......] > Configuring PHP-FPM... 23950 DEBUG ++ set +o xtrace 24002 DEBUG ++ app=digiwords 24003 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 24004 DEBUG ++ ynh_app_setting get digiwords phpversion 24006 DEBUG ++ set +o xtrace 24078 DEBUG + local old_phpversion=7.3 24079 DEBUG + '[' -n 7.3 ']' 24080 DEBUG + '[' 7.3 '!=' 7.3 ']' 24082 DEBUG + '[' -n '' ']' 24084 DEBUG + '[' 0 -eq 1 ']' 24085 DEBUG + local fpm_service=php7.3-fpm 24086 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 24086 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 24086 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 24087 DEBUG + local _globalapp=digiwords 24087 DEBUG + local legacy_args=akv 24087 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24088 DEBUG + local -A args_array 24088 DEBUG + local app 24089 DEBUG + local key 24089 DEBUG + local value 24090 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 24091 DEBUG + set +o xtrace 24207 DEBUG + app=digiwords 24209 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 24211 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 24213 DEBUG + set +o xtrace 24283 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 24285 DEBUG + local _globalapp=digiwords 24289 DEBUG + local legacy_args=akv 24292 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24294 DEBUG + local -A args_array 24295 DEBUG + local app 24296 DEBUG + local key 24296 DEBUG + local value 24296 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 24297 DEBUG + set +o xtrace 24425 DEBUG + app=digiwords 24426 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 24428 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 24430 DEBUG + set +o xtrace 24494 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 24495 DEBUG + local _globalapp=digiwords 24497 DEBUG + local legacy_args=akv 24498 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24500 DEBUG + local -A args_array 24501 DEBUG + local app 24501 DEBUG + local key 24502 DEBUG + local value 24503 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 24503 DEBUG + set +o xtrace 24614 DEBUG + app=digiwords 24615 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 24616 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 24616 DEBUG + set +o xtrace 24702 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 24703 DEBUG + local _globalapp=digiwords 24704 DEBUG + local legacy_args=akv 24706 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24708 DEBUG + local -A args_array 24711 DEBUG + local app 24713 DEBUG + local key 24714 DEBUG + local value 24716 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 24717 DEBUG + set +o xtrace 24826 DEBUG + app=digiwords 24829 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 24833 DEBUG + ynh_app_setting set digiwords phpversion 7.3 24837 DEBUG + set +o xtrace 24930 DEBUG + '[' 0 -eq 1 ']' 24933 DEBUG + '[' 1 -eq 1 ']' 24933 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf 24934 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf ']' 24934 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 24934 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 24935 DEBUG + local legacy_args=tdv 24935 DEBUG + args_array=([t]=template= [d]=destination=) 24936 DEBUG + local -A args_array 24936 DEBUG + local template 24936 DEBUG + local destination 24936 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 24937 DEBUG + set +o xtrace 25004 DEBUG + local template_path 25005 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf ']' 25006 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf ']' 25006 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf 25007 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25008 DEBUG + local legacy_args=f 25008 DEBUG + args_array=([f]=file=) 25010 DEBUG + local -A args_array 25011 DEBUG + local file 25011 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25011 DEBUG + set +o xtrace 25042 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 25045 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 25046 DEBUG ++ local _globalapp=digiwords 25047 DEBUG ++ local legacy_args=ak 25048 DEBUG ++ args_array=([a]=app= [k]=key=) 25049 DEBUG ++ local -A args_array 25050 DEBUG ++ local app 25050 DEBUG ++ local key 25052 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 25052 DEBUG ++ set +o xtrace 25120 DEBUG ++ app=digiwords 25121 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 25121 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 25122 DEBUG ++ set +o xtrace 25237 DEBUG + local checksum_value= 25238 DEBUG + backup_file_checksum= 25238 DEBUG + '[' -n '' ']' 25238 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 25242 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 25251 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 25251 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 25253 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 25254 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 25259 DEBUG ++ tr -d '>= ' 25261 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/manifest.json 25264 DEBUG + local ynh_requirement=4.3.0 25264 DEBUG + '[' -z 4.3.0 ']' 25265 DEBUG + '[' 4.3.0 == null ']' 25266 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 25270 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 25277 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 25282 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 25285 DEBUG + ynh_system_user_exists digiwords 25289 DEBUG + local legacy_args=u 25290 DEBUG + args_array=([u]=username=) 25291 DEBUG + local -A args_array 25291 DEBUG + local username 25292 DEBUG + ynh_handle_getopts_args digiwords 25293 DEBUG + set +o xtrace 25321 DEBUG + echo '! Helper used in legacy mode !' 25322 DEBUG + set +x 25329 DEBUG + getent passwd digiwords 25335 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 25341 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 25342 DEBUG + grep -q '^/etc/cron' 25352 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25353 DEBUG + local legacy_args=f 25354 DEBUG + args_array=([f]=file=) 25355 DEBUG + local -A args_array 25356 DEBUG + local file 25356 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25357 DEBUG + set +o xtrace 25371 DEBUG + test -n /path 25372 DEBUG + local path_url_slash_less=/path 25373 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25376 DEBUG + local legacy_args=mrf 25377 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25379 DEBUG + local -A args_array 25380 DEBUG + local match_string 25382 DEBUG + local replace_string 25383 DEBUG + local target_file 25384 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25386 DEBUG + set +o xtrace 25526 DEBUG + set +o xtrace 25527 DEBUG + sed --in-place s@__PATH__/@/path/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25531 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/path --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25532 DEBUG + local legacy_args=mrf 25534 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25535 DEBUG + local -A args_array 25536 DEBUG + local match_string 25537 DEBUG + local replace_string 25538 DEBUG + local target_file 25540 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/path --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25541 DEBUG + set +o xtrace 25671 DEBUG + set +o xtrace 25674 DEBUG + sed --in-place s@__PATH__@/path@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25678 DEBUG + test -n digiwords 25680 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25681 DEBUG + local legacy_args=mrf 25682 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25682 DEBUG + local -A args_array 25683 DEBUG + local match_string 25684 DEBUG + local replace_string 25684 DEBUG + local target_file 25685 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25686 DEBUG + set +o xtrace 25825 DEBUG + set +o xtrace 25826 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25830 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25832 DEBUG + local legacy_args=mrf 25835 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25836 DEBUG + local -A args_array 25837 DEBUG + local match_string 25838 DEBUG + local replace_string 25839 DEBUG + local target_file 25840 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25841 DEBUG + set +o xtrace 25958 DEBUG + set +o xtrace 25960 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25967 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25969 DEBUG + local legacy_args=mrf 25970 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25971 DEBUG + local -A args_array 25972 DEBUG + local match_string 25973 DEBUG + local replace_string 25974 DEBUG + local target_file 25975 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25976 DEBUG + set +o xtrace 26094 DEBUG + set +o xtrace 26095 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26100 DEBUG + test -n /var/www/digiwords 26102 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26103 DEBUG + local legacy_args=mrf 26104 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26106 DEBUG + local -A args_array 26107 DEBUG + local match_string 26108 DEBUG + local replace_string 26109 DEBUG + local target_file 26110 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26111 DEBUG + set +o xtrace 26243 DEBUG + set +o xtrace 26246 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26251 DEBUG + test -n 7.3 26252 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26254 DEBUG + local legacy_args=mrf 26255 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26256 DEBUG + local -A args_array 26256 DEBUG + local match_string 26258 DEBUG + local replace_string 26260 DEBUG + local target_file 26261 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26262 DEBUG + set +o xtrace 26425 DEBUG + set +o xtrace 26426 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26432 DEBUG + test -n '' 26434 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 26434 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 26435 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 26437 DEBUG ++ sort --unique 26443 DEBUG + local uniques_vars 26443 DEBUG + local delimit=@ 26444 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26445 DEBUG + local legacy_args=f 26445 DEBUG + args_array=([f]=file= [u]=update_only) 26446 DEBUG + local -A args_array 26447 DEBUG + local file 26448 DEBUG + local update_only 26448 DEBUG + update_only=0 26449 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26450 DEBUG + set +o xtrace 26480 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26481 DEBUG + '[' 0 -eq 1 ']' 26482 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 26483 DEBUG ++ cut '--delimiter= ' --fields=1 26488 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 26489 DEBUG + local _globalapp=digiwords 26489 DEBUG + local legacy_args=akv 26490 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26490 DEBUG + local -A args_array 26490 DEBUG + local app 26491 DEBUG + local key 26492 DEBUG + local value 26492 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 26493 DEBUG + set +o xtrace 26648 DEBUG + app=digiwords 26649 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 26650 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 26651 DEBUG + set +o xtrace 26743 DEBUG + '[' -n '' ']' 26744 DEBUG + unset backup_file_checksum 26744 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_rz8okjj4/app_folder/conf/php-fpm.ini ']' 26745 DEBUG + '[' 0 -eq 1 ']' 26745 DEBUG + php-fpm7.3 --test 26871 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 26875 DEBUG + local legacy_args=nalpte 26876 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 26877 DEBUG + local -A args_array 26878 DEBUG + local service_name 26878 DEBUG + local action 26878 DEBUG + local line_match 26880 DEBUG + local length 26883 DEBUG + local log_path 26883 DEBUG + local timeout 26883 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 26884 DEBUG + set +o xtrace 27088 DEBUG + service_name=php7.3-fpm 27089 DEBUG + action=reload 27090 DEBUG + line_match= 27090 DEBUG + length=20 27091 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 27091 DEBUG + timeout=300 27092 DEBUG + '[' reload == stop ']' 27092 DEBUG + [[ -n '' ]] 27092 DEBUG + '[' reload == reload ']' 27093 DEBUG + action=reload-or-restart 27094 DEBUG + systemctl reload-or-restart php7.3-fpm 27122 DEBUG + [[ -n '' ]] 27125 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 27125 DEBUG + set +o xtrace 27273 DEBUG + set +o xtrace 27306 DEBUG + echo '! Helper used in legacy mode !' 27307 DEBUG + set +x 27314 INFO [##############++....] > Configuring permissions... 27315 DEBUG + echo '[##############++....] > Configuring permissions...' 27319 DEBUG + set -o xtrace 27320 DEBUG + '[' 1 -eq 1 ']' 27321 DEBUG + ynh_permission_update --permission=main --add=visitors 27321 DEBUG + local legacy_args=parltP 27322 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=) 27323 DEBUG + local -A args_array 27323 DEBUG + local permission 27324 DEBUG + local add 27326 DEBUG + local remove 27326 DEBUG + local label 27327 DEBUG + local show_tile 27327 DEBUG + local protected 27328 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors 27328 DEBUG + set +o xtrace 27513 DEBUG + add=visitors 27514 DEBUG + remove= 27514 DEBUG + label= 27515 DEBUG + show_tile= 27515 DEBUG + protected= 27515 DEBUG + [[ -n visitors ]] 27515 DEBUG + add=',add=['\''visitors'\'']' 27516 DEBUG + [[ -n '' ]] 27516 DEBUG + [[ -n '' ]] 27517 DEBUG + [[ -n '' ]] 27517 DEBUG + [[ -n '' ]] 27518 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''digiwords.main'\'' ,add=['\''visitors'\''] , force=True)' 28090 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 28090 DEBUG + set +o xtrace 28209 DEBUG + set +o xtrace 28229 DEBUG + echo '! Helper used in legacy mode !' 28230 DEBUG + set +x 28233 DEBUG + echo '[################++..] > Reloading NGINX web server...' 28235 DEBUG + set -o xtrace 28236 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 28237 DEBUG + local legacy_args=nalpte 28237 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 28238 DEBUG + local -A args_array 28239 DEBUG + local service_name 28240 DEBUG + local action 28241 DEBUG + local line_match 28242 DEBUG + local length 28243 DEBUG + local log_path 28243 DEBUG + local timeout 28244 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 28245 DEBUG + set +o xtrace 28245 INFO [################++..] > Reloading NGINX web server... 28419 DEBUG + service_name=nginx 28421 DEBUG + action=reload 28422 DEBUG + line_match= 28424 DEBUG + length=20 28425 DEBUG + log_path=/var/log/nginx/nginx.log 28426 DEBUG + timeout=300 28427 DEBUG + '[' reload == stop ']' 28428 DEBUG + [[ -n '' ]] 28428 DEBUG + '[' reload == reload ']' 28429 DEBUG + action=reload-or-restart 28429 DEBUG + systemctl reload-or-restart nginx 28510 DEBUG + [[ -n '' ]] 28512 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 28512 DEBUG + set +o xtrace 28663 DEBUG + set +o xtrace 28711 DEBUG + echo '! Helper used in legacy mode !' 28712 DEBUG + set +x 28724 INFO [####################] > Installation of digiwords completed 28728 DEBUG + echo '[####################] > Installation of digiwords completed' 28730 DEBUG + set -o xtrace 28732 DEBUG + ynh_exit_properly 28733 DEBUG + local exit_code=0 28734 DEBUG + rm -rf /var/cache/yunohost/download/ 28734 DEBUG + '[' 0 -eq 0 ']' 28735 DEBUG + exit 0 29738 DEBUG Checking that required services are up and running... 30586 SUCCESS Installation completed 30590 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-093109-app_install-digiwords' 30613 DEBUG action [813.1] executed in 30.234s 30614 DEBUG lock has been released Return code: 0 Working time: 31 seconds (09:31:38) Installation successful. Return code: 1 Working time: 0s (09:31:49)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld/path Return code: 0 Working time: 0s (09:31:55) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:31:58) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/path Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Running curl sub.domain.tld/path/ Return code: 0 Working time: 0s (09:32:05) Return code: 0 Working time: 0s (09:32:08) HTTP code: Test URL: sub.domain.tld/path/ Real URL: HTTP code: Page title: Page extract: Test URL: sub.domain.tld/path/ Real URL: HTTP code: Page title: Page extract: Create a snapshot after app install (Creating snapshot snap_subdirinstall ...) Failed to start the container ... restarting ... Working time: 1 minute, 14 seconds (09:33:22)  > Removing the app... Running yunohost app remove digiwords 212 DEBUG initializing base actions map parser for cli 215 DEBUG loading actions map namespace 'yunohost' 219 DEBUG building parser... 240 DEBUG building parser took 0.021s 242 DEBUG acquiring lock... 259 DEBUG lock has been acquired 282 DEBUG loading python module yunohost.app took 0.022s 282 DEBUG processing action [830.1]: yunohost.app.remove with args={'app': 'digiwords', 'purge': False} 306 INFO Removing digiwords... 436 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 449 DEBUG + source _common.sh 450 DEBUG ++ pkg_dependencies=php-sqlite3 451 DEBUG + source /usr/share/yunohost/helpers 452 DEBUG +++ set +o 453 DEBUG +++ grep xtrace 458 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 459 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 460 DEBUG ++ set +x 502 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 503 DEBUG + set +o xtrace 640 DEBUG + set +o xtrace 690 DEBUG + echo '! Helper used in legacy mode !' 692 DEBUG + set +x 696 DEBUG + echo '[++..................] > Loading installation settings...' 697 INFO [++..................] > Loading installation settings... 698 DEBUG + set -o xtrace 699 DEBUG + app=digiwords 701 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 702 DEBUG ++ local _globalapp=digiwords 703 DEBUG ++ local legacy_args=ak 703 DEBUG ++ args_array=([a]=app= [k]=key=) 704 DEBUG ++ local -A args_array 705 DEBUG ++ local app 706 DEBUG ++ local key 707 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 707 DEBUG ++ set +o xtrace 798 DEBUG ++ app=digiwords 800 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 802 DEBUG ++ ynh_app_setting get digiwords domain 803 DEBUG ++ set +o xtrace 886 DEBUG + domain=sub.domain.tld 887 DEBUG ++ ynh_app_setting_get --app=digiwords --key=port 889 DEBUG ++ local _globalapp=digiwords 890 DEBUG ++ local legacy_args=ak 891 DEBUG ++ args_array=([a]=app= [k]=key=) 892 DEBUG ++ local -A args_array 893 DEBUG ++ local app 894 DEBUG ++ local key 895 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=port 896 DEBUG ++ set +o xtrace 953 DEBUG ++ app=digiwords 954 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]] 966 DEBUG ++ ynh_app_setting get digiwords port 966 DEBUG ++ set +o xtrace 1053 DEBUG + port= 1054 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1055 DEBUG ++ local _globalapp=digiwords 1055 DEBUG ++ local legacy_args=ak 1055 DEBUG ++ args_array=([a]=app= [k]=key=) 1055 DEBUG ++ local -A args_array 1056 DEBUG ++ local app 1056 DEBUG ++ local key 1056 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1057 DEBUG ++ set +o xtrace 1119 DEBUG ++ app=digiwords 1120 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1120 DEBUG ++ ynh_app_setting get digiwords db_name 1121 DEBUG ++ set +o xtrace 1203 DEBUG + db_name= 1204 DEBUG + db_user= 1206 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1210 DEBUG ++ local _globalapp=digiwords 1212 DEBUG ++ local legacy_args=ak 1214 DEBUG ++ args_array=([a]=app= [k]=key=) 1215 DEBUG ++ local -A args_array 1216 DEBUG ++ local app 1216 DEBUG ++ local key 1217 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1217 DEBUG ++ set +o xtrace 1286 DEBUG ++ app=digiwords 1286 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1287 DEBUG ++ ynh_app_setting get digiwords final_path 1287 DEBUG ++ set +o xtrace 1365 DEBUG + final_path=/var/www/digiwords 1367 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1370 DEBUG ++ local _globalapp=digiwords 1371 DEBUG ++ local legacy_args=ak 1372 DEBUG ++ args_array=([a]=app= [k]=key=) 1373 DEBUG ++ local -A args_array 1374 DEBUG ++ local app 1374 DEBUG ++ local key 1375 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1376 DEBUG ++ set +o xtrace 1437 DEBUG ++ app=digiwords 1438 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1439 DEBUG ++ ynh_app_setting get digiwords datadir 1439 DEBUG ++ set +o xtrace 1522 DEBUG + datadir= 1523 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=1 1523 DEBUG + set +o xtrace 1651 DEBUG + set +o xtrace 1674 DEBUG + echo '! Helper used in legacy mode !' 1674 DEBUG + set +x 1685 DEBUG + echo '[##+++...............] > Removing app main directory...' 1686 DEBUG + set -o xtrace 1687 INFO [##+++...............] > Removing app main directory... 1688 DEBUG + ynh_secure_remove --file=/var/www/digiwords 1689 DEBUG + local legacy_args=f 1690 DEBUG + args_array=([f]=file=) 1691 DEBUG + local -A args_array 1692 DEBUG + local file 1692 DEBUG + ynh_handle_getopts_args --file=/var/www/digiwords 1694 DEBUG + set +o xtrace 1725 DEBUG + set +o xtrace 1757 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1 1758 DEBUG + set +o xtrace 1862 DEBUG + set +o xtrace 1890 DEBUG + echo '! Helper used in legacy mode !' 1891 DEBUG + set +x 1894 INFO [#####++.............] > Removing NGINX web server configuration... 1896 DEBUG + echo '[#####++.............] > Removing NGINX web server configuration...' 1901 DEBUG + set -o xtrace 1903 DEBUG + ynh_remove_nginx_config 1904 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1905 DEBUG + local legacy_args=f 1906 DEBUG + args_array=([f]=file=) 1906 DEBUG + local -A args_array 1907 DEBUG + local file 1907 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1908 DEBUG + set +o xtrace 1916 DEBUG + set +o xtrace 1939 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 1940 DEBUG + local legacy_args=nalpte 1942 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 1943 DEBUG + local -A args_array 1945 DEBUG + local service_name 1948 DEBUG + local action 1951 DEBUG + local line_match 1954 DEBUG + local length 1955 DEBUG + local log_path 1956 DEBUG + local timeout 1958 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 1959 DEBUG + set +o xtrace 2128 DEBUG + service_name=nginx 2129 DEBUG + action=reload 2130 DEBUG + line_match= 2131 DEBUG + length=20 2131 DEBUG + log_path=/var/log/nginx/nginx.log 2132 DEBUG + timeout=300 2133 DEBUG + '[' reload == stop ']' 2134 DEBUG + [[ -n '' ]] 2135 DEBUG + '[' reload == reload ']' 2135 DEBUG + action=reload-or-restart 2136 DEBUG + systemctl reload-or-restart nginx 2249 DEBUG + [[ -n '' ]] 2250 DEBUG + ynh_script_progression '--message=Removing PHP-FPM configuration...' --weight=1 2251 DEBUG + set +o xtrace 2422 DEBUG + set +o xtrace 2470 DEBUG + echo '! Helper used in legacy mode !' 2470 DEBUG + set +x 2473 INFO [#######+++..........] > Removing PHP-FPM configuration... 2475 DEBUG + echo '[#######+++..........] > Removing PHP-FPM configuration...' 2479 DEBUG + set -o xtrace 2480 DEBUG + ynh_remove_fpm_config 2487 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_config_dir 2489 DEBUG ++ local _globalapp=digiwords 2489 DEBUG ++ local legacy_args=ak 2492 DEBUG ++ args_array=([a]=app= [k]=key=) 2493 DEBUG ++ local -A args_array 2498 DEBUG ++ local app 2499 DEBUG ++ local key 2501 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir 2502 DEBUG ++ set +o xtrace 2574 DEBUG ++ app=digiwords 2578 DEBUG ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2581 DEBUG ++ ynh_app_setting get digiwords fpm_config_dir 2583 DEBUG ++ set +o xtrace 2680 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 2686 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_service 2693 DEBUG ++ local _globalapp=digiwords 2694 DEBUG ++ local legacy_args=ak 2694 DEBUG ++ args_array=([a]=app= [k]=key=) 2695 DEBUG ++ local -A args_array 2696 DEBUG ++ local app 2696 DEBUG ++ local key 2697 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_service 2697 DEBUG ++ set +o xtrace 2786 DEBUG ++ app=digiwords 2786 DEBUG ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2787 DEBUG ++ ynh_app_setting get digiwords fpm_service 2790 DEBUG ++ set +o xtrace 2861 DEBUG + local fpm_service=php7.3-fpm 2863 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_dedicated_service 2865 DEBUG ++ local _globalapp=digiwords 2866 DEBUG ++ local legacy_args=ak 2867 DEBUG ++ args_array=([a]=app= [k]=key=) 2868 DEBUG ++ local -A args_array 2869 DEBUG ++ local app 2870 DEBUG ++ local key 2871 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service 2873 DEBUG ++ set +o xtrace 2949 DEBUG ++ app=digiwords 2950 DEBUG ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2952 DEBUG ++ ynh_app_setting get digiwords fpm_dedicated_service 2953 DEBUG ++ set +o xtrace 3047 DEBUG + local dedicated_service=0 3050 DEBUG + dedicated_service=0 3051 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 3052 DEBUG ++ local _globalapp=digiwords 3053 DEBUG ++ local legacy_args=ak 3055 DEBUG ++ args_array=([a]=app= [k]=key=) 3056 DEBUG ++ local -A args_array 3056 DEBUG ++ local app 3057 DEBUG ++ local key 3058 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 3059 DEBUG ++ set +o xtrace 3123 DEBUG ++ app=digiwords 3124 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 3126 DEBUG ++ ynh_app_setting get digiwords phpversion 3127 DEBUG ++ set +o xtrace 3222 DEBUG + local phpversion=7.3 3224 DEBUG + phpversion=7.3 3226 DEBUG + '[' -z /etc/php/7.3/fpm ']' 3229 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 3231 DEBUG + local legacy_args=f 3233 DEBUG + args_array=([f]=file=) 3234 DEBUG + local -A args_array 3236 DEBUG + local file 3238 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 3239 DEBUG + set +o xtrace 3246 DEBUG + set +o xtrace 3275 DEBUG + '[' -e /etc/php/7.3/fpm/conf.d/20-digiwords.ini ']' 3276 DEBUG + '[' 0 -eq 1 ']' 3278 DEBUG + ynh_package_is_installed --package=php7.3-fpm 3280 DEBUG + local legacy_args=p 3282 DEBUG + args_array=([p]=package=) 3284 DEBUG + local -A args_array 3285 DEBUG + local package 3287 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 3288 DEBUG + set +o xtrace 3302 DEBUG + ynh_wait_dpkg_free 3304 DEBUG + local try 3308 DEBUG + set +o xtrace 4865 DEBUG + return 0 4866 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 4868 DEBUG + grep --count 'ok installed' 4887 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 4889 DEBUG + local legacy_args=nalpte 4890 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 4890 DEBUG + local -A args_array 4891 DEBUG + local service_name 4892 DEBUG + local action 4892 DEBUG + local line_match 4893 DEBUG + local length 4893 DEBUG + local log_path 4893 DEBUG + local timeout 4894 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 4894 DEBUG + set +o xtrace 5090 DEBUG + service_name=php7.3-fpm 5092 DEBUG + action=reload 5092 DEBUG + line_match= 5094 DEBUG + length=20 5095 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 5096 DEBUG + timeout=300 5104 DEBUG + '[' reload == stop ']' 5104 DEBUG + [[ -n '' ]] 5105 DEBUG + '[' reload == reload ']' 5105 DEBUG + action=reload-or-restart 5105 DEBUG + systemctl reload-or-restart php7.3-fpm 5167 DEBUG + [[ -n '' ]] 5168 DEBUG + '[' 7.3 '!=' 7.3 ']' 5168 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=1 5169 DEBUG + set +o xtrace 5334 DEBUG + set +o xtrace 5360 DEBUG + echo '! Helper used in legacy mode !' 5361 DEBUG + set +x 5364 DEBUG + echo '[##########++........] > Removing dependencies...' 5365 DEBUG + set -o xtrace 5366 INFO [##########++........] > Removing dependencies... 5369 DEBUG + ynh_remove_app_dependencies 5370 DEBUG + local dep_app=digiwords 5371 DEBUG + local current_dependencies= 5371 DEBUG + ynh_package_is_installed --package=digiwords-ynh-deps 5372 DEBUG + local legacy_args=p 5373 DEBUG + args_array=([p]=package=) 5374 DEBUG + local -A args_array 5377 DEBUG + local package 5378 DEBUG + ynh_handle_getopts_args --package=digiwords-ynh-deps 5379 DEBUG + set +o xtrace 5400 DEBUG + ynh_wait_dpkg_free 5400 DEBUG + local try 5401 DEBUG + set +o xtrace 6887 DEBUG + return 0 6888 DEBUG + grep --count 'ok installed' 6890 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 6918 DEBUG ++ dpkg-query --show '--showformat=${Depends}' digiwords-ynh-deps 6950 DEBUG + current_dependencies='php-sqlite3 ' 6950 DEBUG + current_dependencies='php-sqlite3 ' 6951 DEBUG + ynh_package_autopurge digiwords-ynh-deps 6952 DEBUG + ynh_apt autoremove --purge digiwords-ynh-deps 6952 DEBUG + ynh_wait_dpkg_free 6952 DEBUG + local try 6953 DEBUG + set +o xtrace 8405 DEBUG + return 0 8405 DEBUG + LC_ALL=C 8406 DEBUG + DEBIAN_FRONTEND=noninteractive 8406 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge digiwords-ynh-deps 8452 DEBUG Reading package lists... 8931 DEBUG Building dependency tree... 8933 DEBUG Reading state information... 9505 DEBUG The following packages will be REMOVED: 9509 DEBUG  digiwords-ynh-deps* php-sqlite3* php7.3-sqlite3* 10105 DEBUG 0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded. 10106 DEBUG After this operation, 148 kB disk space will be freed. 10207 DEBUG (Reading database ... 42402 files and directories currently installed.) 10212 DEBUG Removing digiwords-ynh-deps (0.3.3~ynh1) ... 10332 DEBUG Removing php-sqlite3 (2:7.3+69) ... 10473 DEBUG Removing php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10885 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 11434 DEBUG (Reading database ... 42384 files and directories currently installed.) 11437 DEBUG Purging configuration files for php7.3-sqlite3 (7.3.31-1~deb10u1) ... 11496 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11591 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11768 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11864 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 12391 DEBUG ++ tr - ' ' 12394 DEBUG ++ uniq 12395 DEBUG ++ sort 12396 DEBUG ++ echo php-sqlite3 12396 DEBUG ++ sed s/php//g 12399 DEBUG ++ grep -o -E '\' 12406 DEBUG + local specific_php_version= 12406 DEBUG + [[ '' != \7\.\3 ]] 12407 DEBUG + [[ -n '' ]] 12407 DEBUG + ynh_script_progression '--message=Removing various files...' --weight=1 12407 DEBUG + set +o xtrace 12520 DEBUG + set +o xtrace 12549 DEBUG + echo '! Helper used in legacy mode !' 12550 DEBUG + set +x 12553 INFO [############+++.....] > Removing various files... 12554 DEBUG + echo '[############+++.....] > Removing various files...' 12554 DEBUG + set -o xtrace 12555 DEBUG + ynh_secure_remove --file=/var/log/digiwords 12555 DEBUG + local legacy_args=f 12556 DEBUG + args_array=([f]=file=) 12556 DEBUG + local -A args_array 12557 DEBUG + local file 12557 DEBUG + ynh_handle_getopts_args --file=/var/log/digiwords 12558 DEBUG + set +o xtrace 12571 DEBUG + set +o xtrace 12587 DEBUG + echo ''\''/var/log/digiwords'\'' wasn'\''t deleted because it doesn'\''t exist.' 12589 DEBUG + set -o xtrace 12591 INFO '/var/log/digiwords' wasn't deleted because it doesn't exist. 12592 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1 12593 DEBUG + set +o xtrace 12713 DEBUG + set +o xtrace 12741 DEBUG + echo '! Helper used in legacy mode !' 12743 DEBUG + set +x 12745 INFO [###############++...] > Removing the dedicated system user... 12747 DEBUG + echo '[###############++...] > Removing the dedicated system user...' 12747 DEBUG + set -o xtrace 12748 DEBUG + ynh_system_user_delete --username=digiwords 12749 DEBUG + local legacy_args=u 12750 DEBUG + args_array=([u]=username=) 12750 DEBUG + local -A args_array 12751 DEBUG + local username 12752 DEBUG + ynh_handle_getopts_args --username=digiwords 12754 DEBUG + set +o xtrace 12771 DEBUG + ynh_system_user_exists digiwords 12772 DEBUG + local legacy_args=u 12774 DEBUG + args_array=([u]=username=) 12774 DEBUG + local -A args_array 12775 DEBUG + local username 12776 DEBUG + ynh_handle_getopts_args digiwords 12776 DEBUG + set +o xtrace 12789 DEBUG + echo '! Helper used in legacy mode !' 12790 DEBUG + set +x 12794 DEBUG + getent passwd digiwords 12798 DEBUG + deluser digiwords 12951 DEBUG Removing user `digiwords' ... 12952 DEBUG Warning: group `digiwords' has no more members. 13083 DEBUG Done. 13086 DEBUG + ynh_system_group_exists digiwords 13087 DEBUG + local legacy_args=g 13089 DEBUG + args_array=([g]=group=) 13090 DEBUG + local -A args_array 13091 DEBUG + local group 13092 DEBUG + ynh_handle_getopts_args digiwords 13092 DEBUG + set +o xtrace 13100 DEBUG + echo '! Helper used in legacy mode !' 13101 DEBUG + set +x 13106 DEBUG + getent group digiwords 13117 DEBUG + ynh_script_progression '--message=Removal of digiwords completed' --last 13118 DEBUG + set +o xtrace 13233 DEBUG + set +o xtrace 13258 DEBUG + echo '! Helper used in legacy mode !' 13259 DEBUG + set +x 13264 DEBUG + echo '[####################] > Removal of digiwords completed' 13266 DEBUG + set -o xtrace 13268 INFO [####################] > Removal of digiwords completed 14273 SUCCESS digiwords uninstalled 14354 DEBUG initializing ldap interface 14414 DEBUG Permission 'digiwords.main' deleted 14418 DEBUG To view the log of the operation 'Delete permission 'digiwords'', use the command 'yunohost log show 20220531-093344-permission_delete-digiwords' 14429 DEBUG The permission database has been resynchronized 14445 DEBUG SSOwat configuration regenerated 14464 DEBUG Checking that required services are up and running... 15368 DEBUG To view the log of the operation 'Remove the 'digiwords' app', use the command 'yunohost log show 20220531-093330-app_remove-digiwords' 15382 DEBUG action [830.1] executed in 15.100s 15382 DEBUG lock has been released Return code: 0 Working time: 16 seconds (09:33:45) Remove successful.  > Reinstalling after removal. Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/path&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/path&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" 195 DEBUG initializing base actions map parser for cli 198 DEBUG loading actions map namespace 'yunohost' 200 DEBUG building parser... 222 DEBUG building parser took 0.022s 224 DEBUG acquiring lock... 247 DEBUG lock has been acquired 272 DEBUG loading python module yunohost.app took 0.025s 272 DEBUG processing action [2576.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/path&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 317 DEBUG Extracting... 335 DEBUG Done 337 DEBUG Checking required packages for digiwords... 353 DEBUG Checking that required services are up and running... 1426 DEBUG initializing ldap interface 1591 INFO Installing digiwords... 1662 DEBUG Nothing to update in LDAP 1663 DEBUG Permission 'digiwords.main' updated 1671 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-093401-permission_url-digiwords' 1699 DEBUG The permission database has been resynchronized 1729 DEBUG SSOwat configuration regenerated 1763 DEBUG Permission 'digiwords.main' created 1764 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-093401-permission_create-digiwords' 1797 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1814 DEBUG + source _common.sh 1816 DEBUG ++ pkg_dependencies=php-sqlite3 1819 DEBUG + source /usr/share/yunohost/helpers 1820 DEBUG +++ set +o 1821 DEBUG +++ grep xtrace 1826 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1827 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1828 DEBUG ++ set +x 1889 DEBUG + ynh_abort_if_errors 1891 DEBUG + set -o errexit 1892 DEBUG + set -o nounset 1892 DEBUG + trap ynh_exit_properly EXIT 1892 DEBUG + domain=sub.domain.tld 1893 DEBUG + path_url=/path 1893 DEBUG + is_public=1 1893 DEBUG + app=digiwords 1893 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1894 DEBUG + set +o xtrace 2045 DEBUG + set +o xtrace 2102 DEBUG + echo '! Helper used in legacy mode !' 2103 DEBUG + set +x 2109 DEBUG + echo '[++..................] > Validating installation parameters...' 2111 INFO [++..................] > Validating installation parameters... 2115 DEBUG + set -o xtrace 2115 DEBUG + final_path=/var/www/digiwords 2116 DEBUG + test '!' -e /var/www/digiwords 2116 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/path 2116 DEBUG + local legacy_args=adp 2117 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 2117 DEBUG + local -A args_array 2117 DEBUG + local app 2117 DEBUG + local domain 2118 DEBUG + local path_url 2119 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/path 2119 DEBUG + set +o xtrace 2254 DEBUG + yunohost app register-url digiwords sub.domain.tld /path 2991 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 2993 DEBUG + set +o xtrace 3109 DEBUG + set +o xtrace 3141 DEBUG + echo '! Helper used in legacy mode !' 3143 DEBUG + set +x 3146 DEBUG + echo '[##++................] > Storing installation settings...' 3147 DEBUG + set -o xtrace 3150 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 3151 DEBUG + local _globalapp=digiwords 3152 DEBUG + local legacy_args=akv 3153 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3153 DEBUG + local -A args_array 3154 DEBUG + local app 3155 DEBUG + local key 3156 DEBUG + local value 3156 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 3157 INFO [##++................] > Storing installation settings... 3158 DEBUG + set +o xtrace 3320 DEBUG + app=digiwords 3321 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 3323 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 3324 DEBUG + set +o xtrace 3406 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/path 3407 DEBUG + local _globalapp=digiwords 3409 DEBUG + local legacy_args=akv 3410 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3412 DEBUG + local -A args_array 3414 DEBUG + local app 3415 DEBUG + local key 3416 DEBUG + local value 3419 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/path 3419 DEBUG + set +o xtrace 3580 DEBUG + app=digiwords 3581 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3582 DEBUG + ynh_app_setting set digiwords path /path 3583 DEBUG + set +o xtrace 3685 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3686 DEBUG + set +o xtrace 3821 DEBUG + set +o xtrace 3853 DEBUG + echo '! Helper used in legacy mode !' 3854 DEBUG + set +x 3855 DEBUG + echo '[####++..............] > Installing dependencies...' 3856 DEBUG + set -o xtrace 3857 DEBUG + ynh_install_app_dependencies php-sqlite3 3857 DEBUG + local dependencies=php-sqlite3 3859 INFO [####++..............] > Installing dependencies... 3859 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3863 DEBUG ++ echo php-sqlite3 3868 DEBUG + dependencies=php-sqlite3 3874 DEBUG + local dependencies=php-sqlite3 3875 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/manifest.json 3876 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/manifest.json 3879 DEBUG + local version=0.3.3~ynh1 3879 DEBUG + '[' -z 0.3.3~ynh1 ']' 3880 DEBUG + '[' 0.3.3~ynh1 == null ']' 3880 DEBUG + local dep_app=digiwords 3881 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3883 DEBUG ++ echo php-sqlite3 3885 DEBUG ++ sort -u 3885 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3894 DEBUG + local specific_php_version= 3895 DEBUG + [[ '' != \7\.\3 ]] 3896 DEBUG + [[ -n '' ]] 3897 DEBUG + [[ true == \t\r\u\e ]] 3898 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3898 DEBUG + grep --quiet php 3900 DEBUG + dpkg --list 3901 DEBUG + grep php7.0 3902 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3926 DEBUG + cat 3931 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3932 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3933 DEBUG ++ cut '--delimiter= ' --fields=2 3934 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3940 DEBUG + local pkgname=digiwords-ynh-deps 3942 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3945 DEBUG ++ cut '--delimiter= ' --fields=2 3948 DEBUG + local pkgversion=0.3.3~ynh1 3948 DEBUG + [[ -z digiwords-ynh-deps ]] 3949 DEBUG + [[ -z 0.3.3~ynh1 ]] 3949 DEBUG + ynh_package_update 3950 DEBUG + ynh_apt update 3953 DEBUG + ynh_wait_dpkg_free 3954 DEBUG + local try 3954 DEBUG + set +o xtrace 5395 DEBUG + return 0 5396 DEBUG + LC_ALL=C 5397 DEBUG + DEBIAN_FRONTEND=noninteractive 5397 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5488 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5491 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5502 DEBUG Hit:3 http://deb.debian.org/debian buster-updates InRelease 5513 DEBUG Hit:4 http://deb.debian.org/debian-security buster/updates InRelease 7856 DEBUG Reading package lists... 7905 DEBUG ++ mktemp --directory 7916 DEBUG + local TMPDIR=/tmp/tmp.IxoghLjsOE 7916 DEBUG + echo 10 7919 DEBUG + ynh_wait_dpkg_free 7919 DEBUG + local try 7920 DEBUG + set +o xtrace 9405 DEBUG + return 0 9407 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.IxoghLjsOE/control 9416 DEBUG + cd /tmp/tmp.IxoghLjsOE 9417 DEBUG + LC_ALL=C 9419 DEBUG + equivs-build ./control 11554 DEBUG + LC_ALL=C 11555 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 11556 DEBUG + tee ./dpkg_log 11631 DEBUG Selecting previously unselected package digiwords-ynh-deps. 11674 DEBUG (Reading database ... 42385 files and directories currently installed.) 11676 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 11687 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 11759 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 11761 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 11764 DEBUG  Package php-sqlite3 is not installed. 11765 DEBUG  11767 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 11854 DEBUG + ynh_package_install --fix-broken 11856 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 11858 DEBUG + ynh_wait_dpkg_free 11859 DEBUG + local try 11863 DEBUG + set +o xtrace 13327 DEBUG + return 0 13331 DEBUG + LC_ALL=C 13333 DEBUG + DEBIAN_FRONTEND=noninteractive 13334 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13503 DEBUG Reading package lists... 13936 DEBUG Building dependency tree... 13939 DEBUG Reading state information... 14177 DEBUG Correcting dependencies... Done 14596 DEBUG The following additional packages will be installed: 14598 DEBUG  php-sqlite3 php7.3-sqlite3 14630 DEBUG The following NEW packages will be installed: 14632 DEBUG  php-sqlite3 php7.3-sqlite3 15217 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 15218 DEBUG Need to get 0 B/32.2 kB of archives. 15219 DEBUG After this operation, 139 kB of additional disk space will be used. 15390 DEBUG Selecting previously unselected package php7.3-sqlite3. 15437 DEBUG (Reading database ... 42389 files and directories currently installed.) 15443 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 15471 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15623 DEBUG Selecting previously unselected package php-sqlite3. 15632 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 15645 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 15801 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15829 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16042 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16145 DEBUG  16147 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 16256 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16557 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16779 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16896 DEBUG  16898 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 17004 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17270 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 17320 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 17978 DEBUG + [[ -n /tmp/tmp.IxoghLjsOE ]] 17979 DEBUG + rm --recursive --force /tmp/tmp.IxoghLjsOE 17989 DEBUG + ynh_package_is_installed digiwords-ynh-deps 17990 DEBUG + local legacy_args=p 17990 DEBUG + args_array=([p]=package=) 17990 DEBUG + local -A args_array 17991 DEBUG + local package 17991 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 17992 DEBUG + set +o xtrace 18015 DEBUG + echo '! Helper used in legacy mode !' 18019 DEBUG + set +x 18020 DEBUG + ynh_wait_dpkg_free 18020 DEBUG + local try 18024 DEBUG + set +o xtrace 19507 DEBUG + return 0 19511 DEBUG + grep --count 'ok installed' 19512 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 19547 DEBUG + rm /tmp/digiwords-ynh-deps.control 19551 DEBUG + [[ -n '' ]] 19551 DEBUG + grep --quiet php 19556 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 19558 DEBUG + local _globalapp=digiwords 19559 DEBUG + local legacy_args=akv 19560 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19561 DEBUG + local -A args_array 19561 DEBUG + local app 19562 DEBUG + local key 19562 DEBUG + local value 19563 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 19564 DEBUG + set +o xtrace 19738 DEBUG + app=digiwords 19739 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 19739 DEBUG + ynh_app_setting set digiwords phpversion 7.3 19739 DEBUG + set +o xtrace 19829 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 19830 DEBUG + set +o xtrace 19976 DEBUG + set +o xtrace 19997 DEBUG + echo '! Helper used in legacy mode !' 19999 DEBUG + set +x 20002 INFO [######++............] > Configuring system user... 20007 DEBUG + echo '[######++............] > Configuring system user...' 20008 DEBUG + set -o xtrace 20009 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 20011 DEBUG + local legacy_args=uhs 20012 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 20012 DEBUG + local -A args_array 20013 DEBUG + local username 20013 DEBUG + local home_dir 20014 DEBUG + local use_shell 20015 DEBUG + local groups 20015 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 20016 DEBUG + set +o xtrace 20186 DEBUG + use_shell=0 20188 DEBUG + home_dir=/var/www/digiwords 20191 DEBUG + groups= 20193 DEBUG + ynh_system_user_exists digiwords 20195 DEBUG + local legacy_args=u 20208 DEBUG + args_array=([u]=username=) 20210 DEBUG + local -A args_array 20212 DEBUG + local username 20214 DEBUG + ynh_handle_getopts_args digiwords 20215 DEBUG + set +o xtrace 20228 DEBUG + echo '! Helper used in legacy mode !' 20230 DEBUG + set +x 20235 DEBUG + getent passwd digiwords 20252 DEBUG + '[' -n /var/www/digiwords ']' 20254 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 20255 DEBUG + '[' 0 -eq 1 ']' 20256 DEBUG + local 'shell=--shell /usr/sbin/nologin' 20257 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 20407 DEBUG + local group 20409 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 20413 DEBUG + set +o xtrace 20565 DEBUG + set +o xtrace 20604 DEBUG + echo '! Helper used in legacy mode !' 20605 DEBUG + set +x 20610 INFO [########++..........] > Setting up source files... 20619 DEBUG + echo '[########++..........] > Setting up source files...' 20624 DEBUG + set -o xtrace 20628 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 20633 DEBUG + local _globalapp=digiwords 20636 DEBUG + local legacy_args=akv 20638 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20640 DEBUG + local -A args_array 20643 DEBUG + local app 20645 DEBUG + local key 20653 DEBUG + local value 20659 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 20663 DEBUG + set +o xtrace 20795 DEBUG + app=digiwords 20798 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 20799 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 20801 DEBUG + set +o xtrace 20892 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 20893 DEBUG + local legacy_args=dsk 20894 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 20895 DEBUG + local -A args_array 20895 DEBUG + local dest_dir 20895 DEBUG + local source_id 20896 DEBUG + local keep 20896 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 20896 DEBUG + set +o xtrace 20957 DEBUG + source_id=app 20959 DEBUG + keep= 20959 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 20960 DEBUG ++ cut --delimiter== --fields=2- 20962 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 20969 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 20972 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 20974 DEBUG ++ cut --delimiter== --fields=2- 20984 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 20988 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 20989 DEBUG ++ cut --delimiter== --fields=2- 20997 DEBUG + local src_sumprg=sha256sum 21000 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 21001 DEBUG ++ cut --delimiter== --fields=2- 21010 DEBUG + local src_format=zip 21013 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 21015 DEBUG ++ cut --delimiter== --fields=2- 21019 DEBUG + local src_extract=true 21021 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 21024 DEBUG ++ cut --delimiter== --fields=2- 21028 DEBUG + local src_in_subdir=true 21030 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/app.src 21030 DEBUG ++ cut --delimiter== --fields=2- 21037 DEBUG + local src_filename= 21037 DEBUG + src_sumprg=sha256sum 21039 DEBUG + src_in_subdir=true 21040 DEBUG + src_format=zip 21041 DEBUG ++ echo zip 21043 DEBUG ++ tr '[:upper:]' '[:lower:]' 21054 DEBUG + src_format=zip 21056 DEBUG + src_extract=true 21058 DEBUG + '[' '' = '' ']' 21059 DEBUG + src_filename=app.zip 21060 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 21060 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 21072 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 21073 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 21076 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 21077 DEBUG + local out 21078 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 21774 DEBUG + out='2022-05-31 09:34:21 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T093420Z&X-Amz-Expires=300&X-Amz-Signature=8cb9cbe9eb1361a1c09caa02950dbd9eb36cb3e962c00bcbfa3270353ae70b0f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 21776 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 21777 DEBUG + sha256sum --check --status 21800 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 21803 DEBUG + '[' -n '' ']' 21803 DEBUG + mkdir --parents /var/www/digiwords 21807 DEBUG + '[' -n /var/www/digiwords ']' 21808 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 21809 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 21810 DEBUG + local target=/var/www/digiwords 21813 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/manifest.json 21816 DEBUG ++ tr -d '>= ' 21824 DEBUG + local ynh_requirement=4.3.0 21825 DEBUG + '[' -z 4.3.0 ']' 21826 DEBUG + '[' 4.3.0 == null ']' 21826 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 21831 DEBUG + chmod o-rwx /var/www/digiwords 21834 DEBUG + chmod g-w /var/www/digiwords 21836 DEBUG + chown -R root:root /var/www/digiwords 21843 DEBUG + ynh_system_user_exists digiwords 21844 DEBUG + local legacy_args=u 21844 DEBUG + args_array=([u]=username=) 21844 DEBUG + local -A args_array 21845 DEBUG + local username 21845 DEBUG + ynh_handle_getopts_args digiwords 21845 DEBUG + set +o xtrace 21857 DEBUG + echo '! Helper used in legacy mode !' 21857 DEBUG + set +x 21861 DEBUG + getent passwd digiwords 21869 DEBUG + chown digiwords:digiwords /var/www/digiwords 21887 DEBUG + grep -q '^/etc/cron' 21887 DEBUG + echo /var/www/digiwords 21888 DEBUG + true 21888 DEBUG + '[' zip = zip ']' 21888 DEBUG + true 21889 DEBUG ++ mktemp --directory 21889 DEBUG + local tmp_dir=/tmp/tmp.Xnp4ASWeZv 21890 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.Xnp4ASWeZv 21949 DEBUG + cp --archive /tmp/tmp.Xnp4ASWeZv/digiwords/. /var/www/digiwords 21965 DEBUG + ynh_secure_remove --file=/tmp/tmp.Xnp4ASWeZv 21966 DEBUG + local legacy_args=f 21966 DEBUG + args_array=([f]=file=) 21967 DEBUG + local -A args_array 21968 DEBUG + local file 21968 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.Xnp4ASWeZv 21969 DEBUG + set +o xtrace 21988 DEBUG + set +o xtrace 22014 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 22015 DEBUG + local legacy_args=f 22016 DEBUG + args_array=([f]=file=) 22017 DEBUG + local -A args_array 22018 DEBUG + local file 22019 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 22020 DEBUG + set +o xtrace 22044 DEBUG + set +o xtrace 22072 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/sources/patches/ ']' 22072 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/sources/extra_files/app 22075 DEBUG + '[' -n '' ']' 22077 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 22079 DEBUG + chmod 750 /var/www/digiwords 22080 DEBUG + chmod -R o-rwx /var/www/digiwords 22082 DEBUG + chown -R digiwords:www-data /var/www/digiwords 22091 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 22092 DEBUG + set +o xtrace 22223 DEBUG + set +o xtrace 22248 DEBUG + echo '! Helper used in legacy mode !' 22249 DEBUG + set +x 22254 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 22258 DEBUG + set -o xtrace 22260 INFO [##########++........] > Configuring NGINX web server... 22262 DEBUG + ynh_add_nginx_config 22265 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22268 DEBUG + '[' /path '!=' / ']' 22270 DEBUG + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf 22271 DEBUG + local legacy_args=mrf 22273 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22274 DEBUG + local -A args_array 22275 DEBUG + local match_string 22276 DEBUG + local replace_string 22277 DEBUG + local target_file 22279 DEBUG + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf 22280 DEBUG + set +o xtrace 22453 DEBUG + set +o xtrace 22455 DEBUG + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf 22460 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22462 DEBUG + local legacy_args=tdv 22463 DEBUG + args_array=([t]=template= [d]=destination=) 22464 DEBUG + local -A args_array 22466 DEBUG + local template 22467 DEBUG + local destination 22469 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22471 DEBUG + set +o xtrace 22551 DEBUG + local template_path 22552 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf ']' 22553 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf ']' 22555 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf 22558 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22560 DEBUG + local legacy_args=f 22561 DEBUG + args_array=([f]=file=) 22563 DEBUG + local -A args_array 22564 DEBUG + local file 22564 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22565 DEBUG + set +o xtrace 22579 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 22580 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 22581 DEBUG ++ local _globalapp=digiwords 22583 DEBUG ++ local legacy_args=ak 22584 DEBUG ++ args_array=([a]=app= [k]=key=) 22586 DEBUG ++ local -A args_array 22587 DEBUG ++ local app 22589 DEBUG ++ local key 22590 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 22591 DEBUG ++ set +o xtrace 22646 DEBUG ++ app=digiwords 22647 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 22648 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 22649 DEBUG ++ set +o xtrace 22732 DEBUG + local checksum_value= 22733 DEBUG + backup_file_checksum= 22734 DEBUG + '[' -n '' ']' 22735 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22740 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22748 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22752 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22757 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22759 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22761 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/manifest.json 22764 DEBUG ++ tr -d '>= ' 22774 DEBUG + local ynh_requirement=4.3.0 22775 DEBUG + '[' -z 4.3.0 ']' 22775 DEBUG + '[' 4.3.0 == null ']' 22776 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 22782 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22786 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22790 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22795 DEBUG + ynh_system_user_exists digiwords 22797 DEBUG + local legacy_args=u 22798 DEBUG + args_array=([u]=username=) 22799 DEBUG + local -A args_array 22800 DEBUG + local username 22801 DEBUG + ynh_handle_getopts_args digiwords 22803 DEBUG + set +o xtrace 22821 DEBUG + echo '! Helper used in legacy mode !' 22824 DEBUG + set +x 22827 DEBUG + getent passwd digiwords 22831 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22837 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22839 DEBUG + grep -q '^/etc/cron' 22843 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22845 DEBUG + local legacy_args=f 22845 DEBUG + args_array=([f]=file=) 22845 DEBUG + local -A args_array 22846 DEBUG + local file 22847 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22847 DEBUG + set +o xtrace 22874 DEBUG + test -n /path 22875 DEBUG + local path_url_slash_less=/path 22876 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22877 DEBUG + local legacy_args=mrf 22879 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22880 DEBUG + local -A args_array 22881 DEBUG + local match_string 22883 DEBUG + local replace_string 22885 DEBUG + local target_file 22887 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22888 DEBUG + set +o xtrace 23030 DEBUG + set +o xtrace 23034 DEBUG + sed --in-place s@__PATH__/@/path/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23040 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/path --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23042 DEBUG + local legacy_args=mrf 23045 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23046 DEBUG + local -A args_array 23047 DEBUG + local match_string 23047 DEBUG + local replace_string 23049 DEBUG + local target_file 23050 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/path --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23051 DEBUG + set +o xtrace 23194 DEBUG + set +o xtrace 23195 DEBUG + sed --in-place s@__PATH__@/path@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23199 DEBUG + test -n digiwords 23203 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23203 DEBUG + local legacy_args=mrf 23204 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23204 DEBUG + local -A args_array 23205 DEBUG + local match_string 23205 DEBUG + local replace_string 23205 DEBUG + local target_file 23206 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23206 DEBUG + set +o xtrace 23380 DEBUG + set +o xtrace 23381 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23387 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23388 DEBUG + local legacy_args=mrf 23389 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23390 DEBUG + local -A args_array 23391 DEBUG + local match_string 23391 DEBUG + local replace_string 23392 DEBUG + local target_file 23392 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23393 DEBUG + set +o xtrace 23539 DEBUG + set +o xtrace 23541 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23547 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23548 DEBUG + local legacy_args=mrf 23549 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23550 DEBUG + local -A args_array 23554 DEBUG + local match_string 23554 DEBUG + local replace_string 23555 DEBUG + local target_file 23555 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23557 DEBUG + set +o xtrace 23752 DEBUG + set +o xtrace 23753 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23754 DEBUG + test -n /var/www/digiwords 23756 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23757 DEBUG + local legacy_args=mrf 23759 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23761 DEBUG + local -A args_array 23766 DEBUG + local match_string 23767 DEBUG + local replace_string 23768 DEBUG + local target_file 23768 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23769 DEBUG + set +o xtrace 23920 DEBUG + set +o xtrace 23921 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23928 DEBUG + test -n 7.3 23928 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23932 DEBUG + local legacy_args=mrf 23933 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23933 DEBUG + local -A args_array 23934 DEBUG + local match_string 23935 DEBUG + local replace_string 23936 DEBUG + local target_file 23937 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23938 DEBUG + set +o xtrace 24084 DEBUG + set +o xtrace 24087 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24096 DEBUG + test -n '' 24098 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 24100 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 24102 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24105 DEBUG ++ sort --unique 24109 DEBUG + local uniques_vars 24118 DEBUG + local delimit=@ 24118 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24120 DEBUG + local legacy_args=f 24122 DEBUG + args_array=([f]=file= [u]=update_only) 24123 DEBUG + local -A args_array 24125 DEBUG + local file 24127 DEBUG + local update_only 24128 DEBUG + update_only=0 24129 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24131 DEBUG + set +o xtrace 24145 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24147 DEBUG + '[' 0 -eq 1 ']' 24148 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24150 DEBUG ++ cut '--delimiter= ' --fields=1 24158 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=2d274b9377dd09899018d334213d0b11 24159 DEBUG + local _globalapp=digiwords 24160 DEBUG + local legacy_args=akv 24160 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24161 DEBUG + local -A args_array 24162 DEBUG + local app 24164 DEBUG + local key 24165 DEBUG + local value 24167 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=2d274b9377dd09899018d334213d0b11 24168 DEBUG + set +o xtrace 24292 DEBUG + app=digiwords 24293 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 24295 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 2d274b9377dd09899018d334213d0b11 24297 DEBUG + set +o xtrace 24383 DEBUG + '[' -n '' ']' 24385 DEBUG + unset backup_file_checksum 24387 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 24389 DEBUG + local legacy_args=nalpte 24392 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 24395 DEBUG + local -A args_array 24396 DEBUG + local service_name 24397 DEBUG + local action 24398 DEBUG + local line_match 24399 DEBUG + local length 24399 DEBUG + local log_path 24400 DEBUG + local timeout 24401 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 24402 DEBUG + set +o xtrace 24620 DEBUG + service_name=nginx 24625 DEBUG + action=reload 24628 DEBUG + line_match= 24629 DEBUG + length=20 24630 DEBUG + log_path=/var/log/nginx/nginx.log 24631 DEBUG + timeout=300 24631 DEBUG + '[' reload == stop ']' 24632 DEBUG + [[ -n '' ]] 24632 DEBUG + '[' reload == reload ']' 24633 DEBUG + action=reload-or-restart 24633 DEBUG + systemctl reload-or-restart nginx 24720 DEBUG + [[ -n '' ]] 24721 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 24723 DEBUG + set +o xtrace 24893 DEBUG + set +o xtrace 24949 DEBUG + echo '! Helper used in legacy mode !' 24952 DEBUG + set +x 24962 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 24963 DEBUG + set -o xtrace 24964 DEBUG + ynh_add_fpm_config 24966 DEBUG + local legacy_args=vtufpd 24967 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 24968 DEBUG + local -A args_array 24969 DEBUG + local phpversion 24970 DEBUG + local use_template 24971 DEBUG + local usage 24973 DEBUG + local footprint 24973 DEBUG + local package 24975 DEBUG + local dedicated_service 24976 DEBUG + ynh_handle_getopts_args 24976 DEBUG + set +o xtrace 24977 DEBUG + package= 24978 DEBUG + use_template=1 24979 DEBUG + usage= 24980 DEBUG + footprint= 24981 DEBUG + '[' -n '' ']' 24981 DEBUG + '[' -n '' ']' 24982 DEBUG + dedicated_service=0 24983 DEBUG + phpversion=7.3 24983 INFO [############++......] > Configuring PHP-FPM... 24983 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 24984 DEBUG ++ local _globalapp=digiwords 24984 DEBUG ++ local legacy_args=ak 24984 DEBUG ++ args_array=([a]=app= [k]=key=) 24985 DEBUG ++ local -A args_array 24985 DEBUG ++ local app 24985 DEBUG ++ local key 24986 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 24986 DEBUG ++ set +o xtrace 25046 DEBUG ++ app=digiwords 25047 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 25047 DEBUG ++ ynh_app_setting get digiwords phpversion 25048 DEBUG ++ set +o xtrace 25128 DEBUG + local old_phpversion=7.3 25130 DEBUG + '[' -n 7.3 ']' 25130 DEBUG + '[' 7.3 '!=' 7.3 ']' 25131 DEBUG + '[' -n '' ']' 25131 DEBUG + '[' 0 -eq 1 ']' 25131 DEBUG + local fpm_service=php7.3-fpm 25131 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 25131 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 25132 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 25132 DEBUG + local _globalapp=digiwords 25132 DEBUG + local legacy_args=akv 25133 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25133 DEBUG + local -A args_array 25133 DEBUG + local app 25133 DEBUG + local key 25133 DEBUG + local value 25133 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 25133 DEBUG + set +o xtrace 25329 DEBUG + app=digiwords 25331 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 25331 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 25332 DEBUG + set +o xtrace 25417 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 25418 DEBUG + local _globalapp=digiwords 25418 DEBUG + local legacy_args=akv 25419 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25419 DEBUG + local -A args_array 25420 DEBUG + local app 25420 DEBUG + local key 25420 DEBUG + local value 25421 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 25421 DEBUG + set +o xtrace 25555 DEBUG + app=digiwords 25555 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 25555 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 25556 DEBUG + set +o xtrace 25631 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 25631 DEBUG + local _globalapp=digiwords 25632 DEBUG + local legacy_args=akv 25632 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25633 DEBUG + local -A args_array 25633 DEBUG + local app 25633 DEBUG + local key 25633 DEBUG + local value 25634 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 25634 DEBUG + set +o xtrace 25819 DEBUG + app=digiwords 25820 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 25821 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 25821 DEBUG + set +o xtrace 25919 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 25922 DEBUG + local _globalapp=digiwords 25922 DEBUG + local legacy_args=akv 25923 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25923 DEBUG + local -A args_array 25923 DEBUG + local app 25924 DEBUG + local key 25924 DEBUG + local value 25924 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 25924 DEBUG + set +o xtrace 26070 DEBUG + app=digiwords 26071 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 26072 DEBUG + ynh_app_setting set digiwords phpversion 7.3 26072 DEBUG + set +o xtrace 26162 DEBUG + '[' 0 -eq 1 ']' 26163 DEBUG + '[' 1 -eq 1 ']' 26163 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf 26163 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf ']' 26164 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 26164 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 26165 DEBUG + local legacy_args=tdv 26165 DEBUG + args_array=([t]=template= [d]=destination=) 26165 DEBUG + local -A args_array 26166 DEBUG + local template 26166 DEBUG + local destination 26166 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 26166 DEBUG + set +o xtrace 26259 DEBUG + local template_path 26260 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf ']' 26261 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf ']' 26261 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf 26261 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26262 DEBUG + local legacy_args=f 26262 DEBUG + args_array=([f]=file=) 26263 DEBUG + local -A args_array 26263 DEBUG + local file 26264 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26264 DEBUG + set +o xtrace 26286 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26289 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26289 DEBUG ++ local _globalapp=digiwords 26290 DEBUG ++ local legacy_args=ak 26290 DEBUG ++ args_array=([a]=app= [k]=key=) 26290 DEBUG ++ local -A args_array 26291 DEBUG ++ local app 26291 DEBUG ++ local key 26292 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26293 DEBUG ++ set +o xtrace 26362 DEBUG ++ app=digiwords 26363 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 26364 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26365 DEBUG ++ set +o xtrace 26481 DEBUG + local checksum_value= 26482 DEBUG + backup_file_checksum= 26483 DEBUG + '[' -n '' ']' 26484 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 26485 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 26489 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 26493 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 26498 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 26499 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 26500 DEBUG ++ tr -d '>= ' 26501 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/manifest.json 26520 DEBUG + local ynh_requirement=4.3.0 26522 DEBUG + '[' -z 4.3.0 ']' 26524 DEBUG + '[' 4.3.0 == null ']' 26524 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 26530 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 26534 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 26537 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 26542 DEBUG + ynh_system_user_exists digiwords 26543 DEBUG + local legacy_args=u 26544 DEBUG + args_array=([u]=username=) 26544 DEBUG + local -A args_array 26545 DEBUG + local username 26546 DEBUG + ynh_handle_getopts_args digiwords 26546 DEBUG + set +o xtrace 26576 DEBUG + echo '! Helper used in legacy mode !' 26577 DEBUG + set +x 26582 DEBUG + getent passwd digiwords 26589 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 26597 DEBUG + grep -q '^/etc/cron' 26607 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 26610 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26611 DEBUG + local legacy_args=f 26612 DEBUG + args_array=([f]=file=) 26613 DEBUG + local -A args_array 26614 DEBUG + local file 26615 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26616 DEBUG + set +o xtrace 26646 DEBUG + test -n /path 26649 DEBUG + local path_url_slash_less=/path 26650 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26651 DEBUG + local legacy_args=mrf 26651 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26652 DEBUG + local -A args_array 26652 DEBUG + local match_string 26653 DEBUG + local replace_string 26653 DEBUG + local target_file 26654 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/path/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26654 DEBUG + set +o xtrace 26805 DEBUG + set +o xtrace 26806 DEBUG + sed --in-place s@__PATH__/@/path/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26813 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/path --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26815 DEBUG + local legacy_args=mrf 26816 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26816 DEBUG + local -A args_array 26817 DEBUG + local match_string 26817 DEBUG + local replace_string 26817 DEBUG + local target_file 26818 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/path --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26818 DEBUG + set +o xtrace 26942 DEBUG + set +o xtrace 26943 DEBUG + sed --in-place s@__PATH__@/path@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26946 DEBUG + test -n digiwords 26947 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26948 DEBUG + local legacy_args=mrf 26948 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26949 DEBUG + local -A args_array 26949 DEBUG + local match_string 26950 DEBUG + local replace_string 26950 DEBUG + local target_file 26951 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26952 DEBUG + set +o xtrace 27139 DEBUG + set +o xtrace 27140 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27145 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27146 DEBUG + local legacy_args=mrf 27146 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27146 DEBUG + local -A args_array 27147 DEBUG + local match_string 27147 DEBUG + local replace_string 27147 DEBUG + local target_file 27148 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27148 DEBUG + set +o xtrace 27313 DEBUG + set +o xtrace 27314 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27318 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27319 DEBUG + local legacy_args=mrf 27320 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27321 DEBUG + local -A args_array 27322 DEBUG + local match_string 27322 DEBUG + local replace_string 27323 DEBUG + local target_file 27324 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27325 DEBUG + set +o xtrace 27478 DEBUG + set +o xtrace 27479 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27484 DEBUG + test -n /var/www/digiwords 27485 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27487 DEBUG + local legacy_args=mrf 27487 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27488 DEBUG + local -A args_array 27489 DEBUG + local match_string 27489 DEBUG + local replace_string 27489 DEBUG + local target_file 27490 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27490 DEBUG + set +o xtrace 27647 DEBUG + set +o xtrace 27648 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27654 DEBUG + test -n 7.3 27655 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27655 DEBUG + local legacy_args=mrf 27656 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27657 DEBUG + local -A args_array 27657 DEBUG + local match_string 27658 DEBUG + local replace_string 27659 DEBUG + local target_file 27659 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27660 DEBUG + set +o xtrace 27821 DEBUG + set +o xtrace 27822 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27829 DEBUG + test -n '' 27830 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 27833 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 27834 DEBUG ++ sort --unique 27840 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 27846 DEBUG + local uniques_vars 27847 DEBUG + local delimit=@ 27848 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27848 DEBUG + local legacy_args=f 27849 DEBUG + args_array=([f]=file= [u]=update_only) 27849 DEBUG + local -A args_array 27849 DEBUG + local file 27850 DEBUG + local update_only 27850 DEBUG + update_only=0 27850 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27851 DEBUG + set +o xtrace 27899 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 27900 DEBUG + '[' 0 -eq 1 ']' 27901 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 27905 DEBUG ++ cut '--delimiter= ' --fields=1 27913 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 27913 DEBUG + local _globalapp=digiwords 27914 DEBUG + local legacy_args=akv 27914 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27914 DEBUG + local -A args_array 27915 DEBUG + local app 27915 DEBUG + local key 27915 DEBUG + local value 27916 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 27916 DEBUG + set +o xtrace 28075 DEBUG + app=digiwords 28075 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 28075 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 28076 DEBUG + set +o xtrace 28165 DEBUG + '[' -n '' ']' 28166 DEBUG + unset backup_file_checksum 28167 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_gqsc4tt4/app_folder/conf/php-fpm.ini ']' 28168 DEBUG + '[' 0 -eq 1 ']' 28168 DEBUG + php-fpm7.3 --test 28293 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 28293 DEBUG + local legacy_args=nalpte 28294 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 28295 DEBUG + local -A args_array 28295 DEBUG + local service_name 28296 DEBUG + local action 28297 DEBUG + local line_match 28297 DEBUG + local length 28298 DEBUG + local log_path 28303 DEBUG + local timeout 28304 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 28305 DEBUG + set +o xtrace 28499 DEBUG + service_name=php7.3-fpm 28500 DEBUG + action=reload 28500 DEBUG + line_match= 28500 DEBUG + length=20 28501 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 28501 DEBUG + timeout=300 28501 DEBUG + '[' reload == stop ']' 28502 DEBUG + [[ -n '' ]] 28502 DEBUG + '[' reload == reload ']' 28502 DEBUG + action=reload-or-restart 28503 DEBUG + systemctl reload-or-restart php7.3-fpm 28539 DEBUG + [[ -n '' ]] 28544 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 28545 DEBUG + set +o xtrace 28710 DEBUG + set +o xtrace 28736 DEBUG + echo '! Helper used in legacy mode !' 28737 DEBUG + set +x 28742 DEBUG + echo '[##############++....] > Configuring permissions...' 28744 DEBUG + set -o xtrace 28745 DEBUG + '[' 1 -eq 1 ']' 28746 DEBUG + ynh_permission_update --permission=main --add=visitors 28747 DEBUG + local legacy_args=parltP 28747 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=) 28748 DEBUG + local -A args_array 28751 DEBUG + local permission 28752 DEBUG + local add 28752 DEBUG + local remove 28756 DEBUG + local label 28757 DEBUG + local show_tile 28757 DEBUG + local protected 28758 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors 28758 DEBUG + set +o xtrace 28759 INFO [##############++....] > Configuring permissions... 28969 DEBUG + add=visitors 28970 DEBUG + remove= 28973 DEBUG + label= 28973 DEBUG + show_tile= 28974 DEBUG + protected= 28975 DEBUG + [[ -n visitors ]] 28976 DEBUG + add=',add=['\''visitors'\'']' 28976 DEBUG + [[ -n '' ]] 28977 DEBUG + [[ -n '' ]] 28980 DEBUG + [[ -n '' ]] 28981 DEBUG + [[ -n '' ]] 28981 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''digiwords.main'\'' ,add=['\''visitors'\''] , force=True)' 29595 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 29596 DEBUG + set +o xtrace 29727 DEBUG + set +o xtrace 29757 DEBUG + echo '! Helper used in legacy mode !' 29758 DEBUG + set +x 29765 DEBUG + echo '[################++..] > Reloading NGINX web server...' 29768 DEBUG + set -o xtrace 29769 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 29770 DEBUG + local legacy_args=nalpte 29770 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 29772 DEBUG + local -A args_array 29773 DEBUG + local service_name 29774 DEBUG + local action 29775 DEBUG + local line_match 29776 DEBUG + local length 29777 DEBUG + local log_path 29778 DEBUG + local timeout 29779 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 29779 DEBUG + set +o xtrace 29780 INFO [################++..] > Reloading NGINX web server... 29974 DEBUG + service_name=nginx 29975 DEBUG + action=reload 29976 DEBUG + line_match= 29977 DEBUG + length=20 29978 DEBUG + log_path=/var/log/nginx/nginx.log 29979 DEBUG + timeout=300 29980 DEBUG + '[' reload == stop ']' 29981 DEBUG + [[ -n '' ]] 29982 DEBUG + '[' reload == reload ']' 29982 DEBUG + action=reload-or-restart 29983 DEBUG + systemctl reload-or-restart nginx 30077 DEBUG + [[ -n '' ]] 30078 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 30079 DEBUG + set +o xtrace 30214 DEBUG + set +o xtrace 30245 DEBUG + echo '! Helper used in legacy mode !' 30247 DEBUG + set +x 30259 INFO [####################] > Installation of digiwords completed 30263 DEBUG + echo '[####################] > Installation of digiwords completed' 30264 DEBUG + set -o xtrace 30265 DEBUG + ynh_exit_properly 30267 DEBUG + local exit_code=0 30268 DEBUG + rm -rf /var/cache/yunohost/download/ 30269 DEBUG + '[' 0 -eq 0 ']' 30271 DEBUG + exit 0 31279 DEBUG Checking that required services are up and running... 32153 SUCCESS Installation completed 32155 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-093400-app_install-digiwords' 32182 DEBUG action [2576.1] executed in 31.909s 32183 DEBUG lock has been released Return code: 0 Working time: 33 seconds (09:34:31) Installation successful. Return code: 1 Working time: 0s (09:34:41)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld/path Return code: 0 Working time: 0s (09:34:47) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:34:50) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/path Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Running curl sub.domain.tld/path/ Return code: 0 Working time: 0s (09:34:56) Return code: 0 Working time: 0s (09:34:59) HTTP code: Test URL: sub.domain.tld/path/ Real URL: HTTP code: Page title: Page extract: Test URL: sub.domain.tld/path/ Real URL: HTTP code: Page title: Page extract: --- SUCCESS --- Working time for this test: 5 minutes, 10 seconds (09:35:00)  ============================================ [Test 4/9] Installation in private mode ============================================  Loading snapshot snap0 ... Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=0&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=0&# password=1Strong-Password&# port=666&admin=&" 185 DEBUG initializing base actions map parser for cli 188 DEBUG loading actions map namespace 'yunohost' 191 DEBUG building parser... 212 DEBUG building parser took 0.020s 214 DEBUG acquiring lock... 234 DEBUG lock has been acquired 262 DEBUG loading python module yunohost.app took 0.027s 263 DEBUG processing action [813.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=0&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 304 DEBUG Extracting... 322 DEBUG Done 324 DEBUG Checking required packages for digiwords... 335 DEBUG Checking that required services are up and running... 1280 DEBUG initializing ldap interface 1445 INFO Installing digiwords... 1488 DEBUG Nothing to update in LDAP 1489 DEBUG Permission 'digiwords.main' updated 1498 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-093616-permission_url-digiwords' 1527 DEBUG The permission database has been resynchronized 1544 DEBUG SSOwat configuration regenerated 1570 DEBUG Permission 'digiwords.main' created 1572 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-093616-permission_create-digiwords' 1599 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1616 DEBUG + source _common.sh 1618 DEBUG ++ pkg_dependencies=php-sqlite3 1619 DEBUG + source /usr/share/yunohost/helpers 1620 DEBUG +++ grep xtrace 1621 DEBUG +++ set +o 1623 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1624 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1625 DEBUG ++ set +x 1662 DEBUG + ynh_abort_if_errors 1664 DEBUG + set -o errexit 1665 DEBUG + set -o nounset 1666 DEBUG + trap ynh_exit_properly EXIT 1668 DEBUG + domain=sub.domain.tld 1668 DEBUG + path_url=/ 1669 DEBUG + is_public=0 1670 DEBUG + app=digiwords 1671 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1672 DEBUG + set +o xtrace 1773 DEBUG + set +o xtrace 1818 DEBUG + echo '! Helper used in legacy mode !' 1820 DEBUG + set +x 1825 INFO [++..................] > Validating installation parameters... 1826 DEBUG + echo '[++..................] > Validating installation parameters...' 1827 DEBUG + set -o xtrace 1828 DEBUG + final_path=/var/www/digiwords 1829 DEBUG + test '!' -e /var/www/digiwords 1830 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/ 1832 DEBUG + local legacy_args=adp 1832 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 1833 DEBUG + local -A args_array 1834 DEBUG + local app 1835 DEBUG + local domain 1835 DEBUG + local path_url 1835 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/ 1836 DEBUG + set +o xtrace 1949 DEBUG + yunohost app register-url digiwords sub.domain.tld / 2640 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 2640 DEBUG + set +o xtrace 2760 DEBUG + set +o xtrace 2783 DEBUG + echo '! Helper used in legacy mode !' 2785 DEBUG + set +x 2791 INFO [##++................] > Storing installation settings... 2793 DEBUG + echo '[##++................] > Storing installation settings...' 2795 DEBUG + set -o xtrace 2797 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 2799 DEBUG + local _globalapp=digiwords 2800 DEBUG + local legacy_args=akv 2801 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 2802 DEBUG + local -A args_array 2803 DEBUG + local app 2804 DEBUG + local key 2806 DEBUG + local value 2807 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 2808 DEBUG + set +o xtrace 2938 DEBUG + app=digiwords 2939 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 2941 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 2942 DEBUG + set +o xtrace 3023 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/ 3025 DEBUG + local _globalapp=digiwords 3026 DEBUG + local legacy_args=akv 3028 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3029 DEBUG + local -A args_array 3030 DEBUG + local app 3031 DEBUG + local key 3034 DEBUG + local value 3035 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/ 3036 DEBUG + set +o xtrace 3152 DEBUG + app=digiwords 3153 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3153 DEBUG + ynh_app_setting set digiwords path / 3154 DEBUG + set +o xtrace 3236 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3237 DEBUG + set +o xtrace 3360 DEBUG + set +o xtrace 3387 DEBUG + echo '! Helper used in legacy mode !' 3388 DEBUG + set +x 3391 DEBUG + echo '[####++..............] > Installing dependencies...' 3393 DEBUG + set -o xtrace 3394 DEBUG + ynh_install_app_dependencies php-sqlite3 3396 DEBUG + local dependencies=php-sqlite3 3397 INFO [####++..............] > Installing dependencies... 3397 DEBUG ++ echo php-sqlite3 3397 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3404 DEBUG + dependencies=php-sqlite3 3405 DEBUG + local dependencies=php-sqlite3 3407 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/manifest.json 3407 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/manifest.json 3415 DEBUG + local version=0.3.3~ynh1 3416 DEBUG + '[' -z 0.3.3~ynh1 ']' 3417 DEBUG + '[' 0.3.3~ynh1 == null ']' 3417 DEBUG + local dep_app=digiwords 3418 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3422 DEBUG ++ echo php-sqlite3 3423 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3423 DEBUG ++ sort -u 3430 DEBUG + local specific_php_version= 3431 DEBUG + [[ '' != \7\.\3 ]] 3431 DEBUG + [[ -n '' ]] 3432 DEBUG + [[ true == \t\r\u\e ]] 3433 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3433 DEBUG + grep --quiet php 3439 DEBUG + grep php7.0 3440 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3443 DEBUG + dpkg --list 3473 DEBUG + cat 3479 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3480 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3483 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3484 DEBUG ++ cut '--delimiter= ' --fields=2 3489 DEBUG + local pkgname=digiwords-ynh-deps 3493 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3494 DEBUG ++ cut '--delimiter= ' --fields=2 3500 DEBUG + local pkgversion=0.3.3~ynh1 3500 DEBUG + [[ -z digiwords-ynh-deps ]] 3501 DEBUG + [[ -z 0.3.3~ynh1 ]] 3501 DEBUG + ynh_package_update 3501 DEBUG + ynh_apt update 3502 DEBUG + ynh_wait_dpkg_free 3502 DEBUG + local try 3502 DEBUG + set +o xtrace 4865 DEBUG + return 0 4866 DEBUG + LC_ALL=C 4867 DEBUG + DEBIAN_FRONTEND=noninteractive 4868 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 4988 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 4989 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 4993 DEBUG Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] 5016 DEBUG Get:4 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB] 5712 DEBUG Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [11.1 kB] 5728 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 5751 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 5933 DEBUG Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [328 kB] 6029 DEBUG Get:8 http://deb.debian.org/debian-security buster/updates/main Translation-en [177 kB] 6164 DEBUG Fetched 635 kB in 1s (531 kB/s) 7532 DEBUG Reading package lists... 7576 DEBUG ++ mktemp --directory 7580 DEBUG + local TMPDIR=/tmp/tmp.WsmsVQwH83 7584 DEBUG + echo 10 7585 DEBUG + ynh_wait_dpkg_free 7587 DEBUG + local try 7589 DEBUG + set +o xtrace 8940 DEBUG + return 0 8941 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.WsmsVQwH83/control 8945 DEBUG + cd /tmp/tmp.WsmsVQwH83 8947 DEBUG + LC_ALL=C 8947 DEBUG + equivs-build ./control 11084 DEBUG + tee ./dpkg_log 11086 DEBUG + LC_ALL=C 11087 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 11163 DEBUG Selecting previously unselected package digiwords-ynh-deps. 11206 DEBUG (Reading database ... 42385 files and directories currently installed.) 11212 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 11227 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 11296 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 11297 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 11298 DEBUG  Package php-sqlite3 is not installed. 11299 DEBUG  11300 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 11368 DEBUG + ynh_package_install --fix-broken 11370 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 11372 DEBUG + ynh_wait_dpkg_free 11374 DEBUG + local try 11376 DEBUG + set +o xtrace 12746 DEBUG + return 0 12747 DEBUG + LC_ALL=C 12748 DEBUG + DEBIAN_FRONTEND=noninteractive 12749 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 12962 DEBUG Reading package lists... 13409 DEBUG Building dependency tree... 13412 DEBUG Reading state information... 13656 DEBUG Correcting dependencies... Done 14074 DEBUG The following additional packages will be installed: 14075 DEBUG  php-sqlite3 php7.3-sqlite3 14122 DEBUG The following NEW packages will be installed: 14123 DEBUG  php-sqlite3 php7.3-sqlite3 14198 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 14199 DEBUG Need to get 32.2 kB of archives. 14200 DEBUG After this operation, 139 kB of additional disk space will be used. 14202 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php7.3-sqlite3 amd64 7.3.31-1~deb10u1 [26.2 kB] 14216 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 php-sqlite3 all 2:7.3+69 [5996 B] 14792 DEBUG Fetched 32.2 kB in 0s (584 kB/s) 14985 DEBUG Selecting previously unselected package php7.3-sqlite3. 15021 DEBUG (Reading database ... 42389 files and directories currently installed.) 15025 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 15046 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15145 DEBUG Selecting previously unselected package php-sqlite3. 15151 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 15165 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 15288 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15319 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15517 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15601 DEBUG  15602 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 15694 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15936 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16158 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16248 DEBUG  16248 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 16353 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16583 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 16622 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 17298 DEBUG + [[ -n /tmp/tmp.WsmsVQwH83 ]] 17298 DEBUG + rm --recursive --force /tmp/tmp.WsmsVQwH83 17301 DEBUG + ynh_package_is_installed digiwords-ynh-deps 17303 DEBUG + local legacy_args=p 17303 DEBUG + args_array=([p]=package=) 17304 DEBUG + local -A args_array 17305 DEBUG + local package 17305 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 17306 DEBUG + set +o xtrace 17322 DEBUG + echo '! Helper used in legacy mode !' 17324 DEBUG + set +x 17328 DEBUG + ynh_wait_dpkg_free 17329 DEBUG + local try 17331 DEBUG + set +o xtrace 18697 DEBUG + return 0 18699 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 18700 DEBUG + grep --count 'ok installed' 18721 DEBUG + rm /tmp/digiwords-ynh-deps.control 18727 DEBUG + [[ -n '' ]] 18728 DEBUG + grep --quiet php 18737 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 18737 DEBUG + local _globalapp=digiwords 18738 DEBUG + local legacy_args=akv 18739 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 18739 DEBUG + local -A args_array 18740 DEBUG + local app 18740 DEBUG + local key 18740 DEBUG + local value 18741 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 18741 DEBUG + set +o xtrace 18861 DEBUG + app=digiwords 18863 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 18865 DEBUG + ynh_app_setting set digiwords phpversion 7.3 18867 DEBUG + set +o xtrace 18963 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 18964 DEBUG + set +o xtrace 19085 DEBUG + set +o xtrace 19118 DEBUG + echo '! Helper used in legacy mode !' 19119 DEBUG + set +x 19124 DEBUG + echo '[######++............] > Configuring system user...' 19126 DEBUG + set -o xtrace 19127 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 19128 DEBUG + local legacy_args=uhs 19128 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 19128 DEBUG + local -A args_array 19129 DEBUG + local username 19129 DEBUG + local home_dir 19131 DEBUG + local use_shell 19131 DEBUG + local groups 19132 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 19133 DEBUG + set +o xtrace 19134 INFO [######++............] > Configuring system user... 19267 DEBUG + use_shell=0 19270 DEBUG + home_dir=/var/www/digiwords 19274 DEBUG + groups= 19277 DEBUG + ynh_system_user_exists digiwords 19279 DEBUG + local legacy_args=u 19280 DEBUG + args_array=([u]=username=) 19281 DEBUG + local -A args_array 19281 DEBUG + local username 19282 DEBUG + ynh_handle_getopts_args digiwords 19283 DEBUG + set +o xtrace 19294 DEBUG + echo '! Helper used in legacy mode !' 19295 DEBUG + set +x 19301 DEBUG + getent passwd digiwords 19317 DEBUG + '[' -n /var/www/digiwords ']' 19319 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 19322 DEBUG + '[' 0 -eq 1 ']' 19324 DEBUG + local 'shell=--shell /usr/sbin/nologin' 19326 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 19436 DEBUG + local group 19437 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 19439 DEBUG + set +o xtrace 19548 DEBUG + set +o xtrace 19571 DEBUG + echo '! Helper used in legacy mode !' 19573 DEBUG + set +x 19579 DEBUG + echo '[########++..........] > Setting up source files...' 19580 DEBUG + set -o xtrace 19582 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 19583 DEBUG + local _globalapp=digiwords 19584 DEBUG + local legacy_args=akv 19585 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19587 DEBUG + local -A args_array 19588 DEBUG + local app 19588 DEBUG + local key 19589 DEBUG + local value 19589 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 19590 DEBUG + set +o xtrace 19590 INFO [########++..........] > Setting up source files... 19724 DEBUG + app=digiwords 19727 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 19729 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 19732 DEBUG + set +o xtrace 19805 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 19806 DEBUG + local legacy_args=dsk 19807 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 19808 DEBUG + local -A args_array 19809 DEBUG + local dest_dir 19811 DEBUG + local source_id 19812 DEBUG + local keep 19813 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 19814 DEBUG + set +o xtrace 19856 DEBUG + source_id=app 19857 DEBUG + keep= 19862 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19864 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19865 DEBUG ++ cut --delimiter== --fields=2- 19871 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 19874 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19875 DEBUG ++ cut --delimiter== --fields=2- 19883 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 19886 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19889 DEBUG ++ cut --delimiter== --fields=2- 19896 DEBUG + local src_sumprg=sha256sum 19900 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19901 DEBUG ++ cut --delimiter== --fields=2- 19912 DEBUG + local src_format=zip 19915 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19916 DEBUG ++ cut --delimiter== --fields=2- 19925 DEBUG + local src_extract=true 19929 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19933 DEBUG ++ cut --delimiter== --fields=2- 19937 DEBUG + local src_in_subdir=true 19941 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/app.src 19943 DEBUG ++ cut --delimiter== --fields=2- 19948 DEBUG + local src_filename= 19950 DEBUG + src_sumprg=sha256sum 19951 DEBUG + src_in_subdir=true 19951 DEBUG + src_format=zip 19954 DEBUG ++ echo zip 19956 DEBUG ++ tr '[:upper:]' '[:lower:]' 19961 DEBUG + src_format=zip 19962 DEBUG + src_extract=true 19963 DEBUG + '[' '' = '' ']' 19964 DEBUG + src_filename=app.zip 19965 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 19966 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 19968 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 19969 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 19970 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 19971 DEBUG + local out 19972 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 20396 DEBUG + out='2022-05-31 09:36:35 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T093635Z&X-Amz-Expires=300&X-Amz-Signature=f2bca964937856669be1999db0bfc537f967bf0793bcb2f4c129615220114d07&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 20399 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 20400 DEBUG + sha256sum --check --status 20439 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 20443 DEBUG + '[' -n '' ']' 20443 DEBUG + mkdir --parents /var/www/digiwords 20451 DEBUG + '[' -n /var/www/digiwords ']' 20451 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 20452 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 20452 DEBUG + local target=/var/www/digiwords 20452 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/manifest.json 20453 DEBUG ++ tr -d '>= ' 20460 DEBUG + local ynh_requirement=4.3.0 20460 DEBUG + '[' -z 4.3.0 ']' 20461 DEBUG + '[' 4.3.0 == null ']' 20461 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 20464 DEBUG + chmod o-rwx /var/www/digiwords 20467 DEBUG + chmod g-w /var/www/digiwords 20472 DEBUG + chown -R root:root /var/www/digiwords 20485 DEBUG + ynh_system_user_exists digiwords 20486 DEBUG + local legacy_args=u 20486 DEBUG + args_array=([u]=username=) 20491 DEBUG + local -A args_array 20492 DEBUG + local username 20492 DEBUG + ynh_handle_getopts_args digiwords 20492 DEBUG + set +o xtrace 20505 DEBUG + echo '! Helper used in legacy mode !' 20507 DEBUG + set +x 20516 DEBUG + getent passwd digiwords 20523 DEBUG + chown digiwords:digiwords /var/www/digiwords 20541 DEBUG + grep -q '^/etc/cron' 20541 DEBUG + echo /var/www/digiwords 20546 DEBUG + true 20547 DEBUG + '[' zip = zip ']' 20547 DEBUG + true 20547 DEBUG ++ mktemp --directory 20554 DEBUG + local tmp_dir=/tmp/tmp.XIh1GFNLxQ 20557 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.XIh1GFNLxQ 20604 DEBUG + cp --archive /tmp/tmp.XIh1GFNLxQ/digiwords/. /var/www/digiwords 20622 DEBUG + ynh_secure_remove --file=/tmp/tmp.XIh1GFNLxQ 20623 DEBUG + local legacy_args=f 20623 DEBUG + args_array=([f]=file=) 20624 DEBUG + local -A args_array 20624 DEBUG + local file 20625 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.XIh1GFNLxQ 20625 DEBUG + set +o xtrace 20647 DEBUG + set +o xtrace 20669 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 20670 DEBUG + local legacy_args=f 20671 DEBUG + args_array=([f]=file=) 20672 DEBUG + local -A args_array 20673 DEBUG + local file 20673 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 20674 DEBUG + set +o xtrace 20699 DEBUG + set +o xtrace 20725 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/sources/patches/ ']' 20725 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/sources/extra_files/app 20727 DEBUG + '[' -n '' ']' 20729 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 20732 DEBUG + chmod 750 /var/www/digiwords 20735 DEBUG + chmod -R o-rwx /var/www/digiwords 20739 DEBUG + chown -R digiwords:www-data /var/www/digiwords 20745 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 20747 DEBUG + set +o xtrace 20870 DEBUG + set +o xtrace 20896 DEBUG + echo '! Helper used in legacy mode !' 20897 DEBUG + set +x 20903 INFO [##########++........] > Configuring NGINX web server... 20904 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 20904 DEBUG + set -o xtrace 20905 DEBUG + ynh_add_nginx_config 20905 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20905 DEBUG + '[' / '!=' / ']' 20906 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf 20906 DEBUG + local legacy_args=mrf 20907 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 20907 DEBUG + local -A args_array 20907 DEBUG + local match_string 20907 DEBUG + local replace_string 20908 DEBUG + local target_file 20908 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf 20908 DEBUG + set +o xtrace 21068 DEBUG + set +o xtrace 21069 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf 21074 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21076 DEBUG + local legacy_args=tdv 21077 DEBUG + args_array=([t]=template= [d]=destination=) 21078 DEBUG + local -A args_array 21079 DEBUG + local template 21080 DEBUG + local destination 21081 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21082 DEBUG + set +o xtrace 21160 DEBUG + local template_path 21161 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf ']' 21162 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf ']' 21163 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf 21164 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21165 DEBUG + local legacy_args=f 21166 DEBUG + args_array=([f]=file=) 21167 DEBUG + local -A args_array 21168 DEBUG + local file 21169 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21171 DEBUG + set +o xtrace 21191 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21192 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21193 DEBUG ++ local _globalapp=digiwords 21195 DEBUG ++ local legacy_args=ak 21196 DEBUG ++ args_array=([a]=app= [k]=key=) 21196 DEBUG ++ local -A args_array 21197 DEBUG ++ local app 21198 DEBUG ++ local key 21198 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21199 DEBUG ++ set +o xtrace 21261 DEBUG ++ app=digiwords 21264 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 21269 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21272 DEBUG ++ set +o xtrace 21351 DEBUG + local checksum_value= 21355 DEBUG + backup_file_checksum= 21356 DEBUG + '[' -n '' ']' 21357 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21358 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21360 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21363 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21365 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21366 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21368 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/manifest.json 21369 DEBUG ++ tr -d '>= ' 21374 DEBUG + local ynh_requirement=4.3.0 21375 DEBUG + '[' -z 4.3.0 ']' 21375 DEBUG + '[' 4.3.0 == null ']' 21376 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 21379 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21387 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21390 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21396 DEBUG + ynh_system_user_exists digiwords 21397 DEBUG + local legacy_args=u 21397 DEBUG + args_array=([u]=username=) 21398 DEBUG + local -A args_array 21398 DEBUG + local username 21400 DEBUG + ynh_handle_getopts_args digiwords 21401 DEBUG + set +o xtrace 21416 DEBUG + echo '! Helper used in legacy mode !' 21418 DEBUG + set +x 21429 DEBUG + getent passwd digiwords 21432 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21439 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21441 DEBUG + grep -q '^/etc/cron' 21443 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21443 DEBUG + local legacy_args=f 21444 DEBUG + args_array=([f]=file=) 21444 DEBUG + local -A args_array 21445 DEBUG + local file 21445 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21446 DEBUG + set +o xtrace 21462 DEBUG + test -n / 21463 DEBUG + local path_url_slash_less= 21467 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21469 DEBUG + local legacy_args=mrf 21471 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21472 DEBUG + local -A args_array 21473 DEBUG + local match_string 21473 DEBUG + local replace_string 21474 DEBUG + local target_file 21475 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21475 DEBUG + set +o xtrace 21594 DEBUG + set +o xtrace 21596 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21601 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21603 DEBUG + local legacy_args=mrf 21605 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21607 DEBUG + local -A args_array 21609 DEBUG + local match_string 21611 DEBUG + local replace_string 21612 DEBUG + local target_file 21613 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21614 DEBUG + set +o xtrace 21756 DEBUG + set +o xtrace 21757 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21761 DEBUG + test -n digiwords 21762 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21763 DEBUG + local legacy_args=mrf 21764 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21765 DEBUG + local -A args_array 21765 DEBUG + local match_string 21766 DEBUG + local replace_string 21766 DEBUG + local target_file 21767 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21767 DEBUG + set +o xtrace 21916 DEBUG + set +o xtrace 21917 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21920 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21923 DEBUG + local legacy_args=mrf 21925 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21928 DEBUG + local -A args_array 21931 DEBUG + local match_string 21933 DEBUG + local replace_string 21935 DEBUG + local target_file 21936 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21937 DEBUG + set +o xtrace 22119 DEBUG + set +o xtrace 22121 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22130 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22132 DEBUG + local legacy_args=mrf 22134 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22136 DEBUG + local -A args_array 22137 DEBUG + local match_string 22138 DEBUG + local replace_string 22139 DEBUG + local target_file 22141 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22143 DEBUG + set +o xtrace 22310 DEBUG + set +o xtrace 22311 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22320 DEBUG + test -n /var/www/digiwords 22322 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22324 DEBUG + local legacy_args=mrf 22325 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22326 DEBUG + local -A args_array 22326 DEBUG + local match_string 22327 DEBUG + local replace_string 22328 DEBUG + local target_file 22328 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22328 DEBUG + set +o xtrace 22449 DEBUG + set +o xtrace 22450 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22456 DEBUG + test -n 7.3 22456 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22457 DEBUG + local legacy_args=mrf 22457 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22458 DEBUG + local -A args_array 22458 DEBUG + local match_string 22458 DEBUG + local replace_string 22459 DEBUG + local target_file 22460 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22460 DEBUG + set +o xtrace 22631 DEBUG + set +o xtrace 22632 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22637 DEBUG + test -n '' 22638 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 22640 DEBUG ++ sort --unique 22641 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22642 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 22649 DEBUG + local uniques_vars 22649 DEBUG + local delimit=@ 22649 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22650 DEBUG + local legacy_args=f 22651 DEBUG + args_array=([f]=file= [u]=update_only) 22651 DEBUG + local -A args_array 22652 DEBUG + local file 22653 DEBUG + local update_only 22653 DEBUG + update_only=0 22653 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22654 DEBUG + set +o xtrace 22706 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 22708 DEBUG + '[' 0 -eq 1 ']' 22711 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22715 DEBUG ++ cut '--delimiter= ' --fields=1 22722 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 22724 DEBUG + local _globalapp=digiwords 22726 DEBUG + local legacy_args=akv 22726 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 22729 DEBUG + local -A args_array 22732 DEBUG + local app 22736 DEBUG + local key 22739 DEBUG + local value 22740 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 22741 DEBUG + set +o xtrace 22900 DEBUG + app=digiwords 22902 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 22903 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 9c307bf4206b43d766feb3b967a25374 22905 DEBUG + set +o xtrace 23024 DEBUG + '[' -n '' ']' 23025 DEBUG + unset backup_file_checksum 23027 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 23029 DEBUG + local legacy_args=nalpte 23031 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 23037 DEBUG + local -A args_array 23038 DEBUG + local service_name 23039 DEBUG + local action 23040 DEBUG + local line_match 23041 DEBUG + local length 23042 DEBUG + local log_path 23043 DEBUG + local timeout 23044 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 23046 DEBUG + set +o xtrace 23253 DEBUG + service_name=nginx 23255 DEBUG + action=reload 23255 DEBUG + line_match= 23256 DEBUG + length=20 23257 DEBUG + log_path=/var/log/nginx/nginx.log 23259 DEBUG + timeout=300 23260 DEBUG + '[' reload == stop ']' 23261 DEBUG + [[ -n '' ]] 23262 DEBUG + '[' reload == reload ']' 23263 DEBUG + action=reload-or-restart 23264 DEBUG + systemctl reload-or-restart nginx 23339 DEBUG + [[ -n '' ]] 23344 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 23345 DEBUG + set +o xtrace 23528 DEBUG + set +o xtrace 23553 DEBUG + echo '! Helper used in legacy mode !' 23554 DEBUG + set +x 23556 INFO [############++......] > Configuring PHP-FPM... 23560 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 23561 DEBUG + set -o xtrace 23562 DEBUG + ynh_add_fpm_config 23563 DEBUG + local legacy_args=vtufpd 23565 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 23566 DEBUG + local -A args_array 23567 DEBUG + local phpversion 23568 DEBUG + local use_template 23569 DEBUG + local usage 23570 DEBUG + local footprint 23571 DEBUG + local package 23572 DEBUG + local dedicated_service 23573 DEBUG + ynh_handle_getopts_args 23574 DEBUG + set +o xtrace 23575 DEBUG + package= 23576 DEBUG + use_template=1 23579 DEBUG + usage= 23580 DEBUG + footprint= 23580 DEBUG + '[' -n '' ']' 23580 DEBUG + '[' -n '' ']' 23581 DEBUG + dedicated_service=0 23583 DEBUG + phpversion=7.3 23583 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 23584 DEBUG ++ local _globalapp=digiwords 23585 DEBUG ++ local legacy_args=ak 23585 DEBUG ++ args_array=([a]=app= [k]=key=) 23586 DEBUG ++ local -A args_array 23587 DEBUG ++ local app 23588 DEBUG ++ local key 23588 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 23589 DEBUG ++ set +o xtrace 23664 DEBUG ++ app=digiwords 23666 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 23668 DEBUG ++ ynh_app_setting get digiwords phpversion 23668 DEBUG ++ set +o xtrace 23737 DEBUG + local old_phpversion=7.3 23738 DEBUG + '[' -n 7.3 ']' 23739 DEBUG + '[' 7.3 '!=' 7.3 ']' 23739 DEBUG + '[' -n '' ']' 23739 DEBUG + '[' 0 -eq 1 ']' 23740 DEBUG + local fpm_service=php7.3-fpm 23741 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 23741 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 23749 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 23749 DEBUG + local _globalapp=digiwords 23750 DEBUG + local legacy_args=akv 23750 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 23751 DEBUG + local -A args_array 23751 DEBUG + local app 23751 DEBUG + local key 23751 DEBUG + local value 23752 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 23752 DEBUG + set +o xtrace 23885 DEBUG + app=digiwords 23888 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 23890 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 23892 DEBUG + set +o xtrace 24002 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 24003 DEBUG + local _globalapp=digiwords 24003 DEBUG + local legacy_args=akv 24004 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24004 DEBUG + local -A args_array 24005 DEBUG + local app 24005 DEBUG + local key 24006 DEBUG + local value 24006 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 24007 DEBUG + set +o xtrace 24210 DEBUG + app=digiwords 24212 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 24214 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 24215 DEBUG + set +o xtrace 24291 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 24294 DEBUG + local _globalapp=digiwords 24295 DEBUG + local legacy_args=akv 24297 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24299 DEBUG + local -A args_array 24301 DEBUG + local app 24302 DEBUG + local key 24303 DEBUG + local value 24304 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 24305 DEBUG + set +o xtrace 24443 DEBUG + app=digiwords 24447 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 24450 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 24452 DEBUG + set +o xtrace 24528 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 24529 DEBUG + local _globalapp=digiwords 24529 DEBUG + local legacy_args=akv 24531 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24532 DEBUG + local -A args_array 24534 DEBUG + local app 24541 DEBUG + local key 24543 DEBUG + local value 24544 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 24544 DEBUG + set +o xtrace 24665 DEBUG + app=digiwords 24666 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 24668 DEBUG + ynh_app_setting set digiwords phpversion 7.3 24670 DEBUG + set +o xtrace 24744 DEBUG + '[' 0 -eq 1 ']' 24746 DEBUG + '[' 1 -eq 1 ']' 24747 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf 24749 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf ']' 24751 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 24754 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 24755 DEBUG + local legacy_args=tdv 24757 DEBUG + args_array=([t]=template= [d]=destination=) 24759 DEBUG + local -A args_array 24760 DEBUG + local template 24760 DEBUG + local destination 24761 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 24762 DEBUG + set +o xtrace 24824 DEBUG + local template_path 24825 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf ']' 24826 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf ']' 24827 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf 24828 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 24829 DEBUG + local legacy_args=f 24830 DEBUG + args_array=([f]=file=) 24831 DEBUG + local -A args_array 24832 DEBUG + local file 24832 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 24834 DEBUG + set +o xtrace 24850 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24851 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24852 DEBUG ++ local _globalapp=digiwords 24852 DEBUG ++ local legacy_args=ak 24853 DEBUG ++ args_array=([a]=app= [k]=key=) 24853 DEBUG ++ local -A args_array 24854 DEBUG ++ local app 24856 DEBUG ++ local key 24856 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24857 DEBUG ++ set +o xtrace 24927 DEBUG ++ app=digiwords 24928 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 24929 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 24930 DEBUG ++ set +o xtrace 25011 DEBUG + local checksum_value= 25011 DEBUG + backup_file_checksum= 25012 DEBUG + '[' -n '' ']' 25013 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 25013 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 25016 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 25018 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 25021 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 25023 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 25023 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/manifest.json 25024 DEBUG ++ tr -d '>= ' 25031 DEBUG + local ynh_requirement=4.3.0 25031 DEBUG + '[' -z 4.3.0 ']' 25031 DEBUG + '[' 4.3.0 == null ']' 25032 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 25038 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 25041 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 25044 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 25049 DEBUG + ynh_system_user_exists digiwords 25051 DEBUG + local legacy_args=u 25052 DEBUG + args_array=([u]=username=) 25053 DEBUG + local -A args_array 25053 DEBUG + local username 25054 DEBUG + ynh_handle_getopts_args digiwords 25055 DEBUG + set +o xtrace 25068 DEBUG + echo '! Helper used in legacy mode !' 25068 DEBUG + set +x 25072 DEBUG + getent passwd digiwords 25077 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 25083 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 25083 DEBUG + grep -q '^/etc/cron' 25087 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25088 DEBUG + local legacy_args=f 25088 DEBUG + args_array=([f]=file=) 25089 DEBUG + local -A args_array 25089 DEBUG + local file 25090 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25091 DEBUG + set +o xtrace 25116 DEBUG + test -n / 25117 DEBUG + local path_url_slash_less= 25118 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25119 DEBUG + local legacy_args=mrf 25120 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25121 DEBUG + local -A args_array 25122 DEBUG + local match_string 25123 DEBUG + local replace_string 25123 DEBUG + local target_file 25124 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25124 DEBUG + set +o xtrace 25274 DEBUG + set +o xtrace 25276 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25281 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25283 DEBUG + local legacy_args=mrf 25284 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25285 DEBUG + local -A args_array 25286 DEBUG + local match_string 25287 DEBUG + local replace_string 25287 DEBUG + local target_file 25288 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25289 DEBUG + set +o xtrace 25434 DEBUG + set +o xtrace 25435 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25443 DEBUG + test -n digiwords 25444 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25445 DEBUG + local legacy_args=mrf 25446 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25446 DEBUG + local -A args_array 25448 DEBUG + local match_string 25448 DEBUG + local replace_string 25449 DEBUG + local target_file 25449 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25451 DEBUG + set +o xtrace 25577 DEBUG + set +o xtrace 25578 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25583 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25585 DEBUG + local legacy_args=mrf 25585 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25586 DEBUG + local -A args_array 25587 DEBUG + local match_string 25587 DEBUG + local replace_string 25588 DEBUG + local target_file 25588 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25588 DEBUG + set +o xtrace 25729 DEBUG + set +o xtrace 25731 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25734 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25736 DEBUG + local legacy_args=mrf 25738 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25739 DEBUG + local -A args_array 25740 DEBUG + local match_string 25740 DEBUG + local replace_string 25741 DEBUG + local target_file 25742 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25742 DEBUG + set +o xtrace 25887 DEBUG + set +o xtrace 25887 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 25888 DEBUG + test -n /var/www/digiwords 25889 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25890 DEBUG + local legacy_args=mrf 25890 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25892 DEBUG + local -A args_array 25893 DEBUG + local match_string 25894 DEBUG + local replace_string 25894 DEBUG + local target_file 25895 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 25895 DEBUG + set +o xtrace 26027 DEBUG + set +o xtrace 26028 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26034 DEBUG + test -n 7.3 26037 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26038 DEBUG + local legacy_args=mrf 26038 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26039 DEBUG + local -A args_array 26039 DEBUG + local match_string 26040 DEBUG + local replace_string 26040 DEBUG + local target_file 26041 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26041 DEBUG + set +o xtrace 26175 DEBUG + set +o xtrace 26175 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 26180 DEBUG + test -n '' 26181 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 26184 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 26185 DEBUG ++ sort --unique 26187 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 26195 DEBUG + local uniques_vars 26195 DEBUG + local delimit=@ 26196 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26197 DEBUG + local legacy_args=f 26198 DEBUG + args_array=([f]=file= [u]=update_only) 26199 DEBUG + local -A args_array 26200 DEBUG + local file 26201 DEBUG + local update_only 26202 DEBUG + update_only=0 26203 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26204 DEBUG + set +o xtrace 26235 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26236 DEBUG + '[' 0 -eq 1 ']' 26239 DEBUG ++ cut '--delimiter= ' --fields=1 26242 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 26244 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 26245 DEBUG + local _globalapp=digiwords 26246 DEBUG + local legacy_args=akv 26247 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26247 DEBUG + local -A args_array 26248 DEBUG + local app 26248 DEBUG + local key 26249 DEBUG + local value 26250 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 26250 DEBUG + set +o xtrace 26379 DEBUG + app=digiwords 26383 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 26385 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 26386 DEBUG + set +o xtrace 26477 DEBUG + '[' -n '' ']' 26478 DEBUG + unset backup_file_checksum 26479 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_e14gnoul/app_folder/conf/php-fpm.ini ']' 26481 DEBUG + '[' 0 -eq 1 ']' 26482 DEBUG + php-fpm7.3 --test 26587 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 26589 DEBUG + local legacy_args=nalpte 26593 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 26596 DEBUG + local -A args_array 26597 DEBUG + local service_name 26598 DEBUG + local action 26599 DEBUG + local line_match 26600 DEBUG + local length 26601 DEBUG + local log_path 26602 DEBUG + local timeout 26603 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 26604 DEBUG + set +o xtrace 26762 DEBUG + service_name=php7.3-fpm 26764 DEBUG + action=reload 26766 DEBUG + line_match= 26769 DEBUG + length=20 26771 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 26773 DEBUG + timeout=300 26774 DEBUG + '[' reload == stop ']' 26775 DEBUG + [[ -n '' ]] 26776 DEBUG + '[' reload == reload ']' 26777 DEBUG + action=reload-or-restart 26778 DEBUG + systemctl reload-or-restart php7.3-fpm 26809 DEBUG + [[ -n '' ]] 26812 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 26814 DEBUG + set +o xtrace 26956 DEBUG + set +o xtrace 26987 DEBUG + echo '! Helper used in legacy mode !' 26988 DEBUG + set +x 26992 DEBUG + echo '[##############++....] > Configuring permissions...' 26994 DEBUG + set -o xtrace 26996 DEBUG + '[' 0 -eq 1 ']' 26999 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 27000 DEBUG + set +o xtrace 27001 INFO [##############++....] > Configuring permissions... 27135 DEBUG + set +o xtrace 27167 DEBUG + echo '! Helper used in legacy mode !' 27169 DEBUG + set +x 27173 DEBUG + echo '[################++..] > Reloading NGINX web server...' 27175 DEBUG + set -o xtrace 27184 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 27185 INFO [################++..] > Reloading NGINX web server... 27185 DEBUG + local legacy_args=nalpte 27186 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 27186 DEBUG + local -A args_array 27187 DEBUG + local service_name 27187 DEBUG + local action 27187 DEBUG + local line_match 27187 DEBUG + local length 27188 DEBUG + local log_path 27188 DEBUG + local timeout 27194 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 27196 DEBUG + set +o xtrace 27376 DEBUG + service_name=nginx 27377 DEBUG + action=reload 27377 DEBUG + line_match= 27377 DEBUG + length=20 27378 DEBUG + log_path=/var/log/nginx/nginx.log 27378 DEBUG + timeout=300 27379 DEBUG + '[' reload == stop ']' 27379 DEBUG + [[ -n '' ]] 27379 DEBUG + '[' reload == reload ']' 27380 DEBUG + action=reload-or-restart 27380 DEBUG + systemctl reload-or-restart nginx 27465 DEBUG + [[ -n '' ]] 27466 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 27467 DEBUG + set +o xtrace 27593 DEBUG + set +o xtrace 27617 DEBUG + echo '! Helper used in legacy mode !' 27617 DEBUG + set +x 27621 INFO [####################] > Installation of digiwords completed 27623 DEBUG + echo '[####################] > Installation of digiwords completed' 27625 DEBUG + set -o xtrace 27630 DEBUG + ynh_exit_properly 27632 DEBUG + local exit_code=0 27634 DEBUG + rm -rf /var/cache/yunohost/download/ 27636 DEBUG + '[' 0 -eq 0 ']' 27638 DEBUG + exit 0 28641 DEBUG Checking that required services are up and running... 29533 SUCCESS Installation completed 29535 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-093616-app_install-digiwords' 29550 DEBUG action [813.1] executed in 29.286s 29550 DEBUG lock has been released Return code: 0 Working time: 30 seconds (09:36:44) Installation successful. Return code: 1 Working time: 0s (09:36:55)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld 200;https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zdWIuZG9tYWluLnRsZC8= Return code: 0 Working time: 0s (09:37:00) YunoHost Portal
Please log in to access to this content
Return code: 0 Working time: 0s (09:37:03) HTTP code: 200 Yunohost Please log in to access to this content Username ____________________ Password ____________________ Log in The connection attempt fall on the YunoHost portal. Test URL: sub.domain.tld Real URL: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zdWIuZG9tYWluLnRsZC8= HTTP code: 200 Page title: YunoHost Portal Page extract: Yunohost Please log in to access to this content Username ____________________ Password ____________________ Log in Running curl sub.domain.tld/ Return code: 0 Working time: 0s (09:37:09) Return code: 0 Working time: 0s (09:37:11) HTTP code: Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract:  > Removing the app... Running yunohost app remove digiwords 183 DEBUG initializing base actions map parser for cli 186 DEBUG loading actions map namespace 'yunohost' 190 DEBUG building parser... 215 DEBUG building parser took 0.025s 217 DEBUG acquiring lock... 241 DEBUG lock has been acquired 263 DEBUG loading python module yunohost.app took 0.021s 263 DEBUG processing action [5023.1]: yunohost.app.remove with args={'app': 'digiwords', 'purge': False} 294 INFO Removing digiwords... 441 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 453 DEBUG + source _common.sh 455 DEBUG ++ pkg_dependencies=php-sqlite3 455 DEBUG + source /usr/share/yunohost/helpers 457 DEBUG +++ set +o 458 DEBUG +++ grep xtrace 461 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 462 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 462 DEBUG ++ set +x 509 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 510 DEBUG + set +o xtrace 618 DEBUG + set +o xtrace 669 DEBUG + echo '! Helper used in legacy mode !' 671 DEBUG + set +x 675 DEBUG + echo '[++..................] > Loading installation settings...' 677 DEBUG + set -o xtrace 680 INFO [++..................] > Loading installation settings... 683 DEBUG + app=digiwords 684 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 684 DEBUG ++ local _globalapp=digiwords 685 DEBUG ++ local legacy_args=ak 687 DEBUG ++ args_array=([a]=app= [k]=key=) 687 DEBUG ++ local -A args_array 688 DEBUG ++ local app 688 DEBUG ++ local key 689 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 690 DEBUG ++ set +o xtrace 743 DEBUG ++ app=digiwords 743 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 745 DEBUG ++ ynh_app_setting get digiwords domain 748 DEBUG ++ set +o xtrace 814 DEBUG + domain=sub.domain.tld 816 DEBUG ++ ynh_app_setting_get --app=digiwords --key=port 821 DEBUG ++ local _globalapp=digiwords 825 DEBUG ++ local legacy_args=ak 827 DEBUG ++ args_array=([a]=app= [k]=key=) 828 DEBUG ++ local -A args_array 830 DEBUG ++ local app 832 DEBUG ++ local key 833 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=port 833 DEBUG ++ set +o xtrace 876 DEBUG ++ app=digiwords 877 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]] 881 DEBUG ++ ynh_app_setting get digiwords port 883 DEBUG ++ set +o xtrace 954 DEBUG + port= 955 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 956 DEBUG ++ local _globalapp=digiwords 957 DEBUG ++ local legacy_args=ak 959 DEBUG ++ args_array=([a]=app= [k]=key=) 960 DEBUG ++ local -A args_array 963 DEBUG ++ local app 964 DEBUG ++ local key 968 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 969 DEBUG ++ set +o xtrace 1021 DEBUG ++ app=digiwords 1023 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1024 DEBUG ++ ynh_app_setting get digiwords db_name 1027 DEBUG ++ set +o xtrace 1112 DEBUG + db_name= 1114 DEBUG + db_user= 1117 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1120 DEBUG ++ local _globalapp=digiwords 1122 DEBUG ++ local legacy_args=ak 1125 DEBUG ++ args_array=([a]=app= [k]=key=) 1126 DEBUG ++ local -A args_array 1127 DEBUG ++ local app 1127 DEBUG ++ local key 1128 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1128 DEBUG ++ set +o xtrace 1179 DEBUG ++ app=digiwords 1180 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1182 DEBUG ++ ynh_app_setting get digiwords final_path 1185 DEBUG ++ set +o xtrace 1261 DEBUG + final_path=/var/www/digiwords 1262 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1264 DEBUG ++ local _globalapp=digiwords 1265 DEBUG ++ local legacy_args=ak 1266 DEBUG ++ args_array=([a]=app= [k]=key=) 1268 DEBUG ++ local -A args_array 1269 DEBUG ++ local app 1269 DEBUG ++ local key 1270 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1270 DEBUG ++ set +o xtrace 1325 DEBUG ++ app=digiwords 1326 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1327 DEBUG ++ ynh_app_setting get digiwords datadir 1329 DEBUG ++ set +o xtrace 1401 DEBUG + datadir= 1404 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=1 1407 DEBUG + set +o xtrace 1518 DEBUG + set +o xtrace 1546 DEBUG + echo '! Helper used in legacy mode !' 1548 DEBUG + set +x 1553 DEBUG + echo '[##+++...............] > Removing app main directory...' 1554 INFO [##+++...............] > Removing app main directory... 1555 DEBUG + set -o xtrace 1556 DEBUG + ynh_secure_remove --file=/var/www/digiwords 1556 DEBUG + local legacy_args=f 1557 DEBUG + args_array=([f]=file=) 1557 DEBUG + local -A args_array 1560 DEBUG + local file 1561 DEBUG + ynh_handle_getopts_args --file=/var/www/digiwords 1561 DEBUG + set +o xtrace 1577 DEBUG + set +o xtrace 1605 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1 1606 DEBUG + set +o xtrace 1742 DEBUG + set +o xtrace 1772 DEBUG + echo '! Helper used in legacy mode !' 1772 DEBUG + set +x 1778 INFO [#####++.............] > Removing NGINX web server configuration... 1780 DEBUG + echo '[#####++.............] > Removing NGINX web server configuration...' 1781 DEBUG + set -o xtrace 1782 DEBUG + ynh_remove_nginx_config 1782 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1785 DEBUG + local legacy_args=f 1786 DEBUG + args_array=([f]=file=) 1786 DEBUG + local -A args_array 1787 DEBUG + local file 1787 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1788 DEBUG + set +o xtrace 1803 DEBUG + set +o xtrace 1826 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 1828 DEBUG + local legacy_args=nalpte 1828 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 1829 DEBUG + local -A args_array 1829 DEBUG + local service_name 1830 DEBUG + local action 1830 DEBUG + local line_match 1831 DEBUG + local length 1831 DEBUG + local log_path 1831 DEBUG + local timeout 1832 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 1832 DEBUG + set +o xtrace 1991 DEBUG + service_name=nginx 1992 DEBUG + action=reload 1994 DEBUG + line_match= 1995 DEBUG + length=20 1997 DEBUG + log_path=/var/log/nginx/nginx.log 1998 DEBUG + timeout=300 1999 DEBUG + '[' reload == stop ']' 2001 DEBUG + [[ -n '' ]] 2001 DEBUG + '[' reload == reload ']' 2002 DEBUG + action=reload-or-restart 2003 DEBUG + systemctl reload-or-restart nginx 2075 DEBUG + [[ -n '' ]] 2076 DEBUG + ynh_script_progression '--message=Removing PHP-FPM configuration...' --weight=1 2079 DEBUG + set +o xtrace 2210 DEBUG + set +o xtrace 2234 DEBUG + echo '! Helper used in legacy mode !' 2236 DEBUG + set +x 2238 DEBUG + echo '[#######+++..........] > Removing PHP-FPM configuration...' 2240 DEBUG + set -o xtrace 2253 DEBUG + ynh_remove_fpm_config 2254 INFO [#######+++..........] > Removing PHP-FPM configuration... 2254 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_config_dir 2255 DEBUG ++ local _globalapp=digiwords 2255 DEBUG ++ local legacy_args=ak 2256 DEBUG ++ args_array=([a]=app= [k]=key=) 2256 DEBUG ++ local -A args_array 2257 DEBUG ++ local app 2257 DEBUG ++ local key 2258 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir 2259 DEBUG ++ set +o xtrace 2317 DEBUG ++ app=digiwords 2318 DEBUG ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2320 DEBUG ++ ynh_app_setting get digiwords fpm_config_dir 2323 DEBUG ++ set +o xtrace 2404 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 2406 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_service 2407 DEBUG ++ local _globalapp=digiwords 2409 DEBUG ++ local legacy_args=ak 2410 DEBUG ++ args_array=([a]=app= [k]=key=) 2411 DEBUG ++ local -A args_array 2411 DEBUG ++ local app 2412 DEBUG ++ local key 2413 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_service 2414 DEBUG ++ set +o xtrace 2476 DEBUG ++ app=digiwords 2477 DEBUG ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2479 DEBUG ++ ynh_app_setting get digiwords fpm_service 2480 DEBUG ++ set +o xtrace 2550 DEBUG + local fpm_service=php7.3-fpm 2553 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_dedicated_service 2555 DEBUG ++ local _globalapp=digiwords 2557 DEBUG ++ local legacy_args=ak 2559 DEBUG ++ args_array=([a]=app= [k]=key=) 2560 DEBUG ++ local -A args_array 2560 DEBUG ++ local app 2561 DEBUG ++ local key 2561 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service 2563 DEBUG ++ set +o xtrace 2618 DEBUG ++ app=digiwords 2620 DEBUG ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2621 DEBUG ++ ynh_app_setting get digiwords fpm_dedicated_service 2622 DEBUG ++ set +o xtrace 2702 DEBUG + local dedicated_service=0 2703 DEBUG + dedicated_service=0 2705 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 2706 DEBUG ++ local _globalapp=digiwords 2708 DEBUG ++ local legacy_args=ak 2709 DEBUG ++ args_array=([a]=app= [k]=key=) 2710 DEBUG ++ local -A args_array 2710 DEBUG ++ local app 2710 DEBUG ++ local key 2711 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 2711 DEBUG ++ set +o xtrace 2765 DEBUG ++ app=digiwords 2766 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2768 DEBUG ++ ynh_app_setting get digiwords phpversion 2770 DEBUG ++ set +o xtrace 2848 DEBUG + local phpversion=7.3 2849 DEBUG + phpversion=7.3 2850 DEBUG + '[' -z /etc/php/7.3/fpm ']' 2851 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2852 DEBUG + local legacy_args=f 2853 DEBUG + args_array=([f]=file=) 2853 DEBUG + local -A args_array 2854 DEBUG + local file 2854 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2854 DEBUG + set +o xtrace 2874 DEBUG + set +o xtrace 2902 DEBUG + '[' -e /etc/php/7.3/fpm/conf.d/20-digiwords.ini ']' 2904 DEBUG + '[' 0 -eq 1 ']' 2905 DEBUG + ynh_package_is_installed --package=php7.3-fpm 2906 DEBUG + local legacy_args=p 2906 DEBUG + args_array=([p]=package=) 2907 DEBUG + local -A args_array 2908 DEBUG + local package 2908 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 2910 DEBUG + set +o xtrace 2927 DEBUG + ynh_wait_dpkg_free 2928 DEBUG + local try 2929 DEBUG + set +o xtrace 4304 DEBUG + return 0 4304 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 4305 DEBUG + grep --count 'ok installed' 4329 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 4329 DEBUG + local legacy_args=nalpte 4330 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 4330 DEBUG + local -A args_array 4330 DEBUG + local service_name 4331 DEBUG + local action 4331 DEBUG + local line_match 4331 DEBUG + local length 4332 DEBUG + local log_path 4332 DEBUG + local timeout 4332 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 4333 DEBUG + set +o xtrace 4482 DEBUG + service_name=php7.3-fpm 4483 DEBUG + action=reload 4484 DEBUG + line_match= 4484 DEBUG + length=20 4484 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 4485 DEBUG + timeout=300 4485 DEBUG + '[' reload == stop ']' 4485 DEBUG + [[ -n '' ]] 4486 DEBUG + '[' reload == reload ']' 4486 DEBUG + action=reload-or-restart 4486 DEBUG + systemctl reload-or-restart php7.3-fpm 4509 DEBUG + [[ -n '' ]] 4509 DEBUG + '[' 7.3 '!=' 7.3 ']' 4510 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=1 4511 DEBUG + set +o xtrace 4641 DEBUG + set +o xtrace 4666 DEBUG + echo '! Helper used in legacy mode !' 4667 DEBUG + set +x 4669 DEBUG + echo '[##########++........] > Removing dependencies...' 4670 DEBUG + set -o xtrace 4672 DEBUG + ynh_remove_app_dependencies 4673 DEBUG + local dep_app=digiwords 4673 DEBUG + local current_dependencies= 4673 DEBUG + ynh_package_is_installed --package=digiwords-ynh-deps 4674 INFO [##########++........] > Removing dependencies... 4676 DEBUG + local legacy_args=p 4677 DEBUG + args_array=([p]=package=) 4677 DEBUG + local -A args_array 4678 DEBUG + local package 4685 DEBUG + ynh_handle_getopts_args --package=digiwords-ynh-deps 4685 DEBUG + set +o xtrace 4699 DEBUG + ynh_wait_dpkg_free 4702 DEBUG + local try 4702 DEBUG + set +o xtrace 6058 DEBUG + return 0 6059 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 6060 DEBUG + grep --count 'ok installed' 6079 DEBUG ++ dpkg-query --show '--showformat=${Depends}' digiwords-ynh-deps 6097 DEBUG + current_dependencies='php-sqlite3 ' 6098 DEBUG + current_dependencies='php-sqlite3 ' 6100 DEBUG + ynh_package_autopurge digiwords-ynh-deps 6101 DEBUG + ynh_apt autoremove --purge digiwords-ynh-deps 6102 DEBUG + ynh_wait_dpkg_free 6104 DEBUG + local try 6105 DEBUG + set +o xtrace 7449 DEBUG + return 0 7450 DEBUG + LC_ALL=C 7452 DEBUG + DEBIAN_FRONTEND=noninteractive 7452 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge digiwords-ynh-deps 7494 DEBUG Reading package lists... 7840 DEBUG Building dependency tree... 7841 DEBUG Reading state information... 8270 DEBUG The following packages will be REMOVED: 8273 DEBUG  digiwords-ynh-deps* php-sqlite3* php7.3-sqlite3* 8756 DEBUG 0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded. 8757 DEBUG After this operation, 148 kB disk space will be freed. 8827 DEBUG (Reading database ... 42402 files and directories currently installed.) 8833 DEBUG Removing digiwords-ynh-deps (0.3.3~ynh1) ... 8967 DEBUG Removing php-sqlite3 (2:7.3+69) ... 9088 DEBUG Removing php7.3-sqlite3 (7.3.31-1~deb10u1) ... 9489 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 10043 DEBUG (Reading database ... 42384 files and directories currently installed.) 10050 DEBUG Purging configuration files for php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10126 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 10207 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 10399 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 10483 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 10968 DEBUG ++ echo php-sqlite3 10969 DEBUG ++ sed s/php//g 10970 DEBUG ++ sort 10971 DEBUG ++ tr - ' ' 10972 DEBUG ++ grep -o -E '\' 10973 DEBUG ++ uniq 10982 DEBUG + local specific_php_version= 10983 DEBUG + [[ '' != \7\.\3 ]] 10984 DEBUG + [[ -n '' ]] 10985 DEBUG + ynh_script_progression '--message=Removing various files...' --weight=1 10985 DEBUG + set +o xtrace 11111 DEBUG + set +o xtrace 11142 DEBUG + echo '! Helper used in legacy mode !' 11143 DEBUG + set +x 11148 DEBUG + echo '[############+++.....] > Removing various files...' 11149 DEBUG + set -o xtrace 11151 INFO [############+++.....] > Removing various files... 11153 DEBUG + ynh_secure_remove --file=/var/log/digiwords 11155 DEBUG + local legacy_args=f 11156 DEBUG + args_array=([f]=file=) 11157 DEBUG + local -A args_array 11157 DEBUG + local file 11158 DEBUG + ynh_handle_getopts_args --file=/var/log/digiwords 11159 DEBUG + set +o xtrace 11177 DEBUG + set +o xtrace 11202 DEBUG + echo ''\''/var/log/digiwords'\'' wasn'\''t deleted because it doesn'\''t exist.' 11205 DEBUG + set -o xtrace 11206 INFO '/var/log/digiwords' wasn't deleted because it doesn't exist. 11207 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1 11209 DEBUG + set +o xtrace 11326 DEBUG + set +o xtrace 11352 DEBUG + echo '! Helper used in legacy mode !' 11355 DEBUG + set +x 11359 INFO [###############++...] > Removing the dedicated system user... 11361 DEBUG + echo '[###############++...] > Removing the dedicated system user...' 11361 DEBUG + set -o xtrace 11363 DEBUG + ynh_system_user_delete --username=digiwords 11365 DEBUG + local legacy_args=u 11367 DEBUG + args_array=([u]=username=) 11367 DEBUG + local -A args_array 11368 DEBUG + local username 11369 DEBUG + ynh_handle_getopts_args --username=digiwords 11369 DEBUG + set +o xtrace 11386 DEBUG + ynh_system_user_exists digiwords 11388 DEBUG + local legacy_args=u 11390 DEBUG + args_array=([u]=username=) 11391 DEBUG + local -A args_array 11392 DEBUG + local username 11393 DEBUG + ynh_handle_getopts_args digiwords 11394 DEBUG + set +o xtrace 11406 DEBUG + echo '! Helper used in legacy mode !' 11406 DEBUG + set +x 11411 DEBUG + getent passwd digiwords 11414 DEBUG + deluser digiwords 11559 DEBUG Removing user `digiwords' ... 11559 DEBUG Warning: group `digiwords' has no more members. 11674 DEBUG Done. 11677 DEBUG + ynh_system_group_exists digiwords 11679 DEBUG + local legacy_args=g 11680 DEBUG + args_array=([g]=group=) 11680 DEBUG + local -A args_array 11681 DEBUG + local group 11681 DEBUG + ynh_handle_getopts_args digiwords 11681 DEBUG + set +o xtrace 11690 DEBUG + echo '! Helper used in legacy mode !' 11691 DEBUG + set +x 11693 DEBUG + getent group digiwords 11701 DEBUG + ynh_script_progression '--message=Removal of digiwords completed' --last 11702 DEBUG + set +o xtrace 11827 DEBUG + set +o xtrace 11858 DEBUG + echo '! Helper used in legacy mode !' 11859 DEBUG + set +x 11863 DEBUG + echo '[####################] > Removal of digiwords completed' 11865 DEBUG + set -o xtrace 11867 INFO [####################] > Removal of digiwords completed 12872 SUCCESS digiwords uninstalled 12959 DEBUG initializing ldap interface 13005 DEBUG Permission 'digiwords.main' deleted 13010 DEBUG To view the log of the operation 'Delete permission 'digiwords'', use the command 'yunohost log show 20220531-093731-permission_delete-digiwords' 13028 DEBUG The permission database has been resynchronized 13047 DEBUG SSOwat configuration regenerated 13070 DEBUG Checking that required services are up and running... 13872 DEBUG To view the log of the operation 'Remove the 'digiwords' app', use the command 'yunohost log show 20220531-093718-app_remove-digiwords' 13887 DEBUG action [5023.1] executed in 13.623s 13887 DEBUG lock has been released Return code: 0 Working time: 15 seconds (09:37:32) Remove successful.  > Reinstalling after removal. Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=0&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=0&# password=1Strong-Password&# port=666&admin=&" 206 DEBUG initializing base actions map parser for cli 208 DEBUG loading actions map namespace 'yunohost' 212 DEBUG building parser... 231 DEBUG building parser took 0.019s 233 DEBUG acquiring lock... 252 DEBUG lock has been acquired 270 DEBUG loading python module yunohost.app took 0.017s 270 DEBUG processing action [6770.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=0&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 308 DEBUG Extracting... 329 DEBUG Done 333 DEBUG Checking required packages for digiwords... 345 DEBUG Checking that required services are up and running... 1170 DEBUG initializing ldap interface 1326 INFO Installing digiwords... 1381 DEBUG Nothing to update in LDAP 1382 DEBUG Permission 'digiwords.main' updated 1393 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-093746-permission_url-digiwords' 1416 DEBUG The permission database has been resynchronized 1437 DEBUG SSOwat configuration regenerated 1455 DEBUG Permission 'digiwords.main' created 1456 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-093746-permission_create-digiwords' 1488 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1504 DEBUG + source _common.sh 1506 DEBUG ++ pkg_dependencies=php-sqlite3 1506 DEBUG + source /usr/share/yunohost/helpers 1510 DEBUG +++ grep xtrace 1510 DEBUG +++ set +o 1512 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1512 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1513 DEBUG ++ set +x 1556 DEBUG + ynh_abort_if_errors 1556 DEBUG + set -o errexit 1557 DEBUG + set -o nounset 1558 DEBUG + trap ynh_exit_properly EXIT 1558 DEBUG + domain=sub.domain.tld 1558 DEBUG + path_url=/ 1559 DEBUG + is_public=0 1560 DEBUG + app=digiwords 1561 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1562 DEBUG + set +o xtrace 1672 DEBUG + set +o xtrace 1727 DEBUG + echo '! Helper used in legacy mode !' 1728 DEBUG + set +x 1739 DEBUG + echo '[++..................] > Validating installation parameters...' 1742 DEBUG + set -o xtrace 1743 DEBUG + final_path=/var/www/digiwords 1744 DEBUG + test '!' -e /var/www/digiwords 1746 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/ 1747 DEBUG + local legacy_args=adp 1747 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 1749 DEBUG + local -A args_array 1750 DEBUG + local app 1751 DEBUG + local domain 1752 DEBUG + local path_url 1753 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/ 1753 DEBUG + set +o xtrace 1754 INFO [++..................] > Validating installation parameters... 1878 DEBUG + yunohost app register-url digiwords sub.domain.tld / 2595 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 2595 DEBUG + set +o xtrace 2722 DEBUG + set +o xtrace 2751 DEBUG + echo '! Helper used in legacy mode !' 2752 DEBUG + set +x 2756 INFO [##++................] > Storing installation settings... 2758 DEBUG + echo '[##++................] > Storing installation settings...' 2762 DEBUG + set -o xtrace 2763 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 2765 DEBUG + local _globalapp=digiwords 2766 DEBUG + local legacy_args=akv 2766 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 2767 DEBUG + local -A args_array 2769 DEBUG + local app 2770 DEBUG + local key 2771 DEBUG + local value 2773 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 2775 DEBUG + set +o xtrace 2894 DEBUG + app=digiwords 2894 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 2895 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 2895 DEBUG + set +o xtrace 2985 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/ 2985 DEBUG + local _globalapp=digiwords 2985 DEBUG + local legacy_args=akv 2986 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 2986 DEBUG + local -A args_array 2986 DEBUG + local app 2986 DEBUG + local key 2986 DEBUG + local value 2986 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/ 2986 DEBUG + set +o xtrace 3145 DEBUG + app=digiwords 3145 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3146 DEBUG + ynh_app_setting set digiwords path / 3146 DEBUG + set +o xtrace 3239 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3240 DEBUG + set +o xtrace 3364 DEBUG + set +o xtrace 3385 DEBUG + echo '! Helper used in legacy mode !' 3387 DEBUG + set +x 3390 DEBUG + echo '[####++..............] > Installing dependencies...' 3390 DEBUG + set -o xtrace 3391 DEBUG + ynh_install_app_dependencies php-sqlite3 3391 DEBUG + local dependencies=php-sqlite3 3391 INFO [####++..............] > Installing dependencies... 3394 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3394 DEBUG ++ echo php-sqlite3 3399 DEBUG + dependencies=php-sqlite3 3400 DEBUG + local dependencies=php-sqlite3 3401 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/manifest.json 3401 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/manifest.json 3413 DEBUG + local version=0.3.3~ynh1 3414 DEBUG + '[' -z 0.3.3~ynh1 ']' 3414 DEBUG + '[' 0.3.3~ynh1 == null ']' 3415 DEBUG + local dep_app=digiwords 3416 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3417 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3418 DEBUG ++ sort -u 3419 DEBUG ++ echo php-sqlite3 3422 DEBUG + local specific_php_version= 3423 DEBUG + [[ '' != \7\.\3 ]] 3424 DEBUG + [[ -n '' ]] 3425 DEBUG + [[ true == \t\r\u\e ]] 3426 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3428 DEBUG + grep --quiet php 3430 DEBUG + grep php7.0 3435 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3435 DEBUG + dpkg --list 3459 DEBUG + cat 3463 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3466 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3467 DEBUG ++ cut '--delimiter= ' --fields=2 3469 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3473 DEBUG + local pkgname=digiwords-ynh-deps 3476 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3476 DEBUG ++ cut '--delimiter= ' --fields=2 3481 DEBUG + local pkgversion=0.3.3~ynh1 3483 DEBUG + [[ -z digiwords-ynh-deps ]] 3483 DEBUG + [[ -z 0.3.3~ynh1 ]] 3483 DEBUG + ynh_package_update 3483 DEBUG + ynh_apt update 3483 DEBUG + ynh_wait_dpkg_free 3484 DEBUG + local try 3484 DEBUG + set +o xtrace 4925 DEBUG + return 0 4925 DEBUG + LC_ALL=C 4926 DEBUG + DEBIAN_FRONTEND=noninteractive 4926 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5035 DEBUG Hit:1 http://deb.debian.org/debian buster InRelease 5036 DEBUG Hit:2 http://deb.debian.org/debian buster-updates InRelease 5041 DEBUG Hit:3 http://deb.debian.org/debian-security buster/updates InRelease 10015 DEBUG Hit:4 http://forge.yunohost.org/debian buster InRelease 11706 DEBUG Reading package lists... 11750 DEBUG ++ mktemp --directory 11757 DEBUG + local TMPDIR=/tmp/tmp.VITCe2rYVj 11757 DEBUG + echo 10 11758 DEBUG + ynh_wait_dpkg_free 11758 DEBUG + local try 11759 DEBUG + set +o xtrace 13162 DEBUG + return 0 13162 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.VITCe2rYVj/control 13168 DEBUG + cd /tmp/tmp.VITCe2rYVj 13169 DEBUG + LC_ALL=C 13170 DEBUG + equivs-build ./control 15293 DEBUG + tee ./dpkg_log 15294 DEBUG + LC_ALL=C 15295 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 15364 DEBUG Selecting previously unselected package digiwords-ynh-deps. 15406 DEBUG (Reading database ... 42385 files and directories currently installed.) 15413 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 15430 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 15507 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 15507 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 15508 DEBUG  Package php-sqlite3 is not installed. 15509 DEBUG  15510 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 15586 DEBUG + ynh_package_install --fix-broken 15587 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 15588 DEBUG + ynh_wait_dpkg_free 15589 DEBUG + local try 15590 DEBUG + set +o xtrace 17087 DEBUG + return 0 17087 DEBUG + LC_ALL=C 17090 DEBUG + DEBIAN_FRONTEND=noninteractive 17091 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 17262 DEBUG Reading package lists... 17634 DEBUG Building dependency tree... 17636 DEBUG Reading state information... 17876 DEBUG Correcting dependencies... Done 18294 DEBUG The following additional packages will be installed: 18294 DEBUG  php-sqlite3 php7.3-sqlite3 18323 DEBUG The following NEW packages will be installed: 18324 DEBUG  php-sqlite3 php7.3-sqlite3 18836 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 18837 DEBUG Need to get 0 B/32.2 kB of archives. 18838 DEBUG After this operation, 139 kB of additional disk space will be used. 19007 DEBUG Selecting previously unselected package php7.3-sqlite3. 19040 DEBUG (Reading database ... 42389 files and directories currently installed.) 19044 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 19067 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 19175 DEBUG Selecting previously unselected package php-sqlite3. 19176 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 19188 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 19318 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 19357 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 19595 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 19699 DEBUG  19700 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 19797 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 20062 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 20252 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 20332 DEBUG  20332 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 20421 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 20648 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 20687 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 21294 DEBUG + [[ -n /tmp/tmp.VITCe2rYVj ]] 21295 DEBUG + rm --recursive --force /tmp/tmp.VITCe2rYVj 21300 DEBUG + ynh_package_is_installed digiwords-ynh-deps 21300 DEBUG + local legacy_args=p 21301 DEBUG + args_array=([p]=package=) 21301 DEBUG + local -A args_array 21302 DEBUG + local package 21302 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 21303 DEBUG + set +o xtrace 21314 DEBUG + echo '! Helper used in legacy mode !' 21315 DEBUG + set +x 21319 DEBUG + ynh_wait_dpkg_free 21320 DEBUG + local try 21320 DEBUG + set +o xtrace 22698 DEBUG + return 0 22698 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 22699 DEBUG + grep --count 'ok installed' 22718 DEBUG + rm /tmp/digiwords-ynh-deps.control 22721 DEBUG + [[ -n '' ]] 22722 DEBUG + grep --quiet php 22725 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 22726 DEBUG + local _globalapp=digiwords 22726 DEBUG + local legacy_args=akv 22726 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 22727 DEBUG + local -A args_array 22727 DEBUG + local app 22727 DEBUG + local key 22728 DEBUG + local value 22728 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 22728 DEBUG + set +o xtrace 22884 DEBUG + app=digiwords 22885 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 22886 DEBUG + ynh_app_setting set digiwords phpversion 7.3 22887 DEBUG + set +o xtrace 22993 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 22993 DEBUG + set +o xtrace 23098 DEBUG + set +o xtrace 23120 DEBUG + echo '! Helper used in legacy mode !' 23120 DEBUG + set +x 23126 DEBUG + echo '[######++............] > Configuring system user...' 23127 INFO [######++............] > Configuring system user... 23127 DEBUG + set -o xtrace 23128 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 23136 DEBUG + local legacy_args=uhs 23136 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 23137 DEBUG + local -A args_array 23137 DEBUG + local username 23137 DEBUG + local home_dir 23137 DEBUG + local use_shell 23138 DEBUG + local groups 23138 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 23138 DEBUG + set +o xtrace 23263 DEBUG + use_shell=0 23266 DEBUG + home_dir=/var/www/digiwords 23269 DEBUG + groups= 23270 DEBUG + ynh_system_user_exists digiwords 23271 DEBUG + local legacy_args=u 23272 DEBUG + args_array=([u]=username=) 23277 DEBUG + local -A args_array 23278 DEBUG + local username 23278 DEBUG + ynh_handle_getopts_args digiwords 23279 DEBUG + set +o xtrace 23285 DEBUG + echo '! Helper used in legacy mode !' 23287 DEBUG + set +x 23289 DEBUG + getent passwd digiwords 23299 DEBUG + '[' -n /var/www/digiwords ']' 23299 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 23301 DEBUG + '[' 0 -eq 1 ']' 23302 DEBUG + local 'shell=--shell /usr/sbin/nologin' 23303 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 23438 DEBUG + local group 23439 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 23439 DEBUG + set +o xtrace 23563 DEBUG + set +o xtrace 23592 DEBUG + echo '! Helper used in legacy mode !' 23592 DEBUG + set +x 23598 INFO [########++..........] > Setting up source files... 23599 DEBUG + echo '[########++..........] > Setting up source files...' 23603 DEBUG + set -o xtrace 23604 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 23605 DEBUG + local _globalapp=digiwords 23605 DEBUG + local legacy_args=akv 23606 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 23608 DEBUG + local -A args_array 23608 DEBUG + local app 23609 DEBUG + local key 23610 DEBUG + local value 23610 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 23611 DEBUG + set +o xtrace 23745 DEBUG + app=digiwords 23746 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 23747 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 23747 DEBUG + set +o xtrace 23825 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 23826 DEBUG + local legacy_args=dsk 23827 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 23828 DEBUG + local -A args_array 23828 DEBUG + local dest_dir 23829 DEBUG + local source_id 23829 DEBUG + local keep 23840 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 23840 DEBUG + set +o xtrace 23916 DEBUG + source_id=app 23917 DEBUG + keep= 23918 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23918 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23920 DEBUG ++ cut --delimiter== --fields=2- 23925 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 23925 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23926 DEBUG ++ cut --delimiter== --fields=2- 23931 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 23932 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23933 DEBUG ++ cut --delimiter== --fields=2- 23937 DEBUG + local src_sumprg=sha256sum 23939 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23940 DEBUG ++ cut --delimiter== --fields=2- 23945 DEBUG + local src_format=zip 23946 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23947 DEBUG ++ cut --delimiter== --fields=2- 23953 DEBUG + local src_extract=true 23954 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23955 DEBUG ++ cut --delimiter== --fields=2- 23961 DEBUG + local src_in_subdir=true 23963 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/app.src 23964 DEBUG ++ cut --delimiter== --fields=2- 23970 DEBUG + local src_filename= 23971 DEBUG + src_sumprg=sha256sum 23972 DEBUG + src_in_subdir=true 23972 DEBUG + src_format=zip 23974 DEBUG ++ echo zip 23976 DEBUG ++ tr '[:upper:]' '[:lower:]' 23981 DEBUG + src_format=zip 23982 DEBUG + src_extract=true 23982 DEBUG + '[' '' = '' ']' 23983 DEBUG + src_filename=app.zip 23984 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 23985 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 23987 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 23988 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 23989 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 23989 DEBUG + local out 23990 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 24261 DEBUG + out='2022-05-31 09:38:09 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T093635Z&X-Amz-Expires=300&X-Amz-Signature=f2bca964937856669be1999db0bfc537f967bf0793bcb2f4c129615220114d07&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 24262 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 24263 DEBUG + sha256sum --check --status 24290 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 24295 DEBUG + '[' -n '' ']' 24296 DEBUG + mkdir --parents /var/www/digiwords 24298 DEBUG + '[' -n /var/www/digiwords ']' 24299 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 24300 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 24301 DEBUG + local target=/var/www/digiwords 24302 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/manifest.json 24302 DEBUG ++ tr -d '>= ' 24305 DEBUG + local ynh_requirement=4.3.0 24306 DEBUG + '[' -z 4.3.0 ']' 24307 DEBUG + '[' 4.3.0 == null ']' 24308 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 24308 DEBUG + chmod o-rwx /var/www/digiwords 24310 DEBUG + chmod g-w /var/www/digiwords 24313 DEBUG + chown -R root:root /var/www/digiwords 24320 DEBUG + ynh_system_user_exists digiwords 24322 DEBUG + local legacy_args=u 24323 DEBUG + args_array=([u]=username=) 24324 DEBUG + local -A args_array 24325 DEBUG + local username 24326 DEBUG + ynh_handle_getopts_args digiwords 24327 DEBUG + set +o xtrace 24338 DEBUG + echo '! Helper used in legacy mode !' 24338 DEBUG + set +x 24342 DEBUG + getent passwd digiwords 24348 DEBUG + chown digiwords:digiwords /var/www/digiwords 24357 DEBUG + echo /var/www/digiwords 24359 DEBUG + grep -q '^/etc/cron' 24363 DEBUG + true 24364 DEBUG + '[' zip = zip ']' 24365 DEBUG + true 24366 DEBUG ++ mktemp --directory 24368 DEBUG + local tmp_dir=/tmp/tmp.4ieoSvtdli 24369 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.4ieoSvtdli 24412 DEBUG + cp --archive /tmp/tmp.4ieoSvtdli/digiwords/. /var/www/digiwords 24427 DEBUG + ynh_secure_remove --file=/tmp/tmp.4ieoSvtdli 24428 DEBUG + local legacy_args=f 24429 DEBUG + args_array=([f]=file=) 24429 DEBUG + local -A args_array 24430 DEBUG + local file 24431 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.4ieoSvtdli 24431 DEBUG + set +o xtrace 24446 DEBUG + set +o xtrace 24477 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 24478 DEBUG + local legacy_args=f 24478 DEBUG + args_array=([f]=file=) 24479 DEBUG + local -A args_array 24480 DEBUG + local file 24481 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 24482 DEBUG + set +o xtrace 24498 DEBUG + set +o xtrace 24522 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/sources/patches/ ']' 24523 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/sources/extra_files/app 24523 DEBUG + '[' -n '' ']' 24524 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 24527 DEBUG + chmod 750 /var/www/digiwords 24532 DEBUG + chmod -R o-rwx /var/www/digiwords 24536 DEBUG + chown -R digiwords:www-data /var/www/digiwords 24544 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 24545 DEBUG + set +o xtrace 24676 DEBUG + set +o xtrace 24707 DEBUG + echo '! Helper used in legacy mode !' 24708 DEBUG + set +x 24715 INFO [##########++........] > Configuring NGINX web server... 24716 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 24717 DEBUG + set -o xtrace 24717 DEBUG + ynh_add_nginx_config 24718 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24718 DEBUG + '[' / '!=' / ']' 24720 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf 24722 DEBUG + local legacy_args=mrf 24723 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24724 DEBUG + local -A args_array 24726 DEBUG + local match_string 24728 DEBUG + local replace_string 24730 DEBUG + local target_file 24731 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf 24734 DEBUG + set +o xtrace 24883 DEBUG + set +o xtrace 24884 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf 24891 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24895 DEBUG + local legacy_args=tdv 24896 DEBUG + args_array=([t]=template= [d]=destination=) 24897 DEBUG + local -A args_array 24898 DEBUG + local template 24898 DEBUG + local destination 24899 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24899 DEBUG + set +o xtrace 24961 DEBUG + local template_path 24962 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf ']' 24963 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf ']' 24963 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf 24963 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24964 DEBUG + local legacy_args=f 24964 DEBUG + args_array=([f]=file=) 24965 DEBUG + local -A args_array 24966 DEBUG + local file 24966 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24966 DEBUG + set +o xtrace 24990 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24997 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24998 DEBUG ++ local _globalapp=digiwords 24999 DEBUG ++ local legacy_args=ak 25003 DEBUG ++ args_array=([a]=app= [k]=key=) 25004 DEBUG ++ local -A args_array 25005 DEBUG ++ local app 25007 DEBUG ++ local key 25008 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 25009 DEBUG ++ set +o xtrace 25068 DEBUG ++ app=digiwords 25070 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 25070 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 25071 DEBUG ++ set +o xtrace 25163 DEBUG + local checksum_value= 25163 DEBUG + backup_file_checksum= 25164 DEBUG + '[' -n '' ']' 25164 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25168 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25172 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25176 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25180 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25180 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25182 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/manifest.json 25183 DEBUG ++ tr -d '>= ' 25191 DEBUG + local ynh_requirement=4.3.0 25192 DEBUG + '[' -z 4.3.0 ']' 25192 DEBUG + '[' 4.3.0 == null ']' 25194 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 25200 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25204 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25207 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25212 DEBUG + ynh_system_user_exists digiwords 25212 DEBUG + local legacy_args=u 25217 DEBUG + args_array=([u]=username=) 25219 DEBUG + local -A args_array 25223 DEBUG + local username 25223 DEBUG + ynh_handle_getopts_args digiwords 25223 DEBUG + set +o xtrace 25238 DEBUG + echo '! Helper used in legacy mode !' 25238 DEBUG + set +x 25244 DEBUG + getent passwd digiwords 25247 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25251 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25252 DEBUG + grep -q '^/etc/cron' 25258 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25258 DEBUG + local legacy_args=f 25258 DEBUG + args_array=([f]=file=) 25259 DEBUG + local -A args_array 25259 DEBUG + local file 25259 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25260 DEBUG + set +o xtrace 25281 DEBUG + test -n / 25283 DEBUG + local path_url_slash_less= 25284 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25285 DEBUG + local legacy_args=mrf 25286 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25287 DEBUG + local -A args_array 25287 DEBUG + local match_string 25288 DEBUG + local replace_string 25288 DEBUG + local target_file 25289 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25290 DEBUG + set +o xtrace 25478 DEBUG + set +o xtrace 25480 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25487 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25488 DEBUG + local legacy_args=mrf 25489 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25490 DEBUG + local -A args_array 25490 DEBUG + local match_string 25491 DEBUG + local replace_string 25491 DEBUG + local target_file 25492 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25492 DEBUG + set +o xtrace 25639 DEBUG + set +o xtrace 25641 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25646 DEBUG + test -n digiwords 25647 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25648 DEBUG + local legacy_args=mrf 25649 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25651 DEBUG + local -A args_array 25651 DEBUG + local match_string 25653 DEBUG + local replace_string 25654 DEBUG + local target_file 25654 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25655 DEBUG + set +o xtrace 25807 DEBUG + set +o xtrace 25808 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25811 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25812 DEBUG + local legacy_args=mrf 25813 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25814 DEBUG + local -A args_array 25814 DEBUG + local match_string 25815 DEBUG + local replace_string 25815 DEBUG + local target_file 25816 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25816 DEBUG + set +o xtrace 25945 DEBUG + set +o xtrace 25946 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25949 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25950 DEBUG + local legacy_args=mrf 25950 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 25951 DEBUG + local -A args_array 25951 DEBUG + local match_string 25952 DEBUG + local replace_string 25952 DEBUG + local target_file 25953 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 25954 DEBUG + set +o xtrace 26097 DEBUG + set +o xtrace 26098 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26103 DEBUG + test -n /var/www/digiwords 26103 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26104 DEBUG + local legacy_args=mrf 26106 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26107 DEBUG + local -A args_array 26109 DEBUG + local match_string 26109 DEBUG + local replace_string 26110 DEBUG + local target_file 26110 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26111 DEBUG + set +o xtrace 26240 DEBUG + set +o xtrace 26242 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26246 DEBUG + test -n 7.3 26247 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26247 DEBUG + local legacy_args=mrf 26247 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26247 DEBUG + local -A args_array 26248 DEBUG + local match_string 26248 DEBUG + local replace_string 26249 DEBUG + local target_file 26249 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26250 DEBUG + set +o xtrace 26403 DEBUG + set +o xtrace 26405 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26409 DEBUG + test -n '' 26410 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 26413 DEBUG ++ sort --unique 26414 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26416 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 26424 DEBUG + local uniques_vars 26426 DEBUG + local delimit=@ 26427 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26428 DEBUG + local legacy_args=f 26430 DEBUG + args_array=([f]=file= [u]=update_only) 26431 DEBUG + local -A args_array 26432 DEBUG + local file 26433 DEBUG + local update_only 26434 DEBUG + update_only=0 26434 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26435 DEBUG + set +o xtrace 26474 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 26474 DEBUG + '[' 0 -eq 1 ']' 26477 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 26479 DEBUG ++ cut '--delimiter= ' --fields=1 26486 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 26486 DEBUG + local _globalapp=digiwords 26486 DEBUG + local legacy_args=akv 26487 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26487 DEBUG + local -A args_array 26487 DEBUG + local app 26487 DEBUG + local key 26487 DEBUG + local value 26489 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 26489 DEBUG + set +o xtrace 26615 DEBUG + app=digiwords 26616 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 26616 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 9c307bf4206b43d766feb3b967a25374 26617 DEBUG + set +o xtrace 26695 DEBUG + '[' -n '' ']' 26695 DEBUG + unset backup_file_checksum 26696 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 26696 DEBUG + local legacy_args=nalpte 26698 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 26699 DEBUG + local -A args_array 26699 DEBUG + local service_name 26700 DEBUG + local action 26700 DEBUG + local line_match 26700 DEBUG + local length 26700 DEBUG + local log_path 26701 DEBUG + local timeout 26701 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 26701 DEBUG + set +o xtrace 26879 DEBUG + service_name=nginx 26880 DEBUG + action=reload 26881 DEBUG + line_match= 26881 DEBUG + length=20 26882 DEBUG + log_path=/var/log/nginx/nginx.log 26883 DEBUG + timeout=300 26884 DEBUG + '[' reload == stop ']' 26884 DEBUG + [[ -n '' ]] 26886 DEBUG + '[' reload == reload ']' 26886 DEBUG + action=reload-or-restart 26887 DEBUG + systemctl reload-or-restart nginx 26963 DEBUG + [[ -n '' ]] 26964 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 26964 DEBUG + set +o xtrace 27103 DEBUG + set +o xtrace 27136 DEBUG + echo '! Helper used in legacy mode !' 27138 DEBUG + set +x 27142 INFO [############++......] > Configuring PHP-FPM... 27146 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 27147 DEBUG + set -o xtrace 27148 DEBUG + ynh_add_fpm_config 27149 DEBUG + local legacy_args=vtufpd 27149 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 27150 DEBUG + local -A args_array 27151 DEBUG + local phpversion 27151 DEBUG + local use_template 27152 DEBUG + local usage 27152 DEBUG + local footprint 27153 DEBUG + local package 27153 DEBUG + local dedicated_service 27154 DEBUG + ynh_handle_getopts_args 27154 DEBUG + set +o xtrace 27155 DEBUG + package= 27155 DEBUG + use_template=1 27156 DEBUG + usage= 27156 DEBUG + footprint= 27157 DEBUG + '[' -n '' ']' 27158 DEBUG + '[' -n '' ']' 27158 DEBUG + dedicated_service=0 27159 DEBUG + phpversion=7.3 27159 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 27159 DEBUG ++ local _globalapp=digiwords 27159 DEBUG ++ local legacy_args=ak 27160 DEBUG ++ args_array=([a]=app= [k]=key=) 27160 DEBUG ++ local -A args_array 27161 DEBUG ++ local app 27161 DEBUG ++ local key 27162 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 27162 DEBUG ++ set +o xtrace 27214 DEBUG ++ app=digiwords 27215 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 27215 DEBUG ++ ynh_app_setting get digiwords phpversion 27216 DEBUG ++ set +o xtrace 27288 DEBUG + local old_phpversion=7.3 27290 DEBUG + '[' -n 7.3 ']' 27291 DEBUG + '[' 7.3 '!=' 7.3 ']' 27292 DEBUG + '[' -n '' ']' 27294 DEBUG + '[' 0 -eq 1 ']' 27295 DEBUG + local fpm_service=php7.3-fpm 27296 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 27296 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 27297 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 27298 DEBUG + local _globalapp=digiwords 27299 DEBUG + local legacy_args=akv 27300 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27301 DEBUG + local -A args_array 27302 DEBUG + local app 27302 DEBUG + local key 27303 DEBUG + local value 27304 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 27305 DEBUG + set +o xtrace 27427 DEBUG + app=digiwords 27429 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 27432 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 27435 DEBUG + set +o xtrace 27508 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 27510 DEBUG + local _globalapp=digiwords 27512 DEBUG + local legacy_args=akv 27513 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27514 DEBUG + local -A args_array 27516 DEBUG + local app 27517 DEBUG + local key 27518 DEBUG + local value 27519 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 27520 DEBUG + set +o xtrace 27637 DEBUG + app=digiwords 27638 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 27639 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 27640 DEBUG + set +o xtrace 27717 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 27718 DEBUG + local _globalapp=digiwords 27718 DEBUG + local legacy_args=akv 27718 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27719 DEBUG + local -A args_array 27719 DEBUG + local app 27719 DEBUG + local key 27719 DEBUG + local value 27719 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 27720 DEBUG + set +o xtrace 27847 DEBUG + app=digiwords 27854 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 27856 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 27857 DEBUG + set +o xtrace 27938 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 27939 DEBUG + local _globalapp=digiwords 27940 DEBUG + local legacy_args=akv 27940 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 27941 DEBUG + local -A args_array 27942 DEBUG + local app 27942 DEBUG + local key 27943 DEBUG + local value 27943 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 27943 DEBUG + set +o xtrace 28067 DEBUG + app=digiwords 28067 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 28068 DEBUG + ynh_app_setting set digiwords phpversion 7.3 28069 DEBUG + set +o xtrace 28148 DEBUG + '[' 0 -eq 1 ']' 28150 DEBUG + '[' 1 -eq 1 ']' 28154 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf 28157 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf ']' 28158 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 28158 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 28159 DEBUG + local legacy_args=tdv 28160 DEBUG + args_array=([t]=template= [d]=destination=) 28161 DEBUG + local -A args_array 28161 DEBUG + local template 28162 DEBUG + local destination 28163 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 28164 DEBUG + set +o xtrace 28224 DEBUG + local template_path 28226 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf ']' 28229 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf ']' 28231 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf 28233 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28235 DEBUG + local legacy_args=f 28236 DEBUG + args_array=([f]=file=) 28237 DEBUG + local -A args_array 28238 DEBUG + local file 28239 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28241 DEBUG + set +o xtrace 28260 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 28262 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 28264 DEBUG ++ local _globalapp=digiwords 28266 DEBUG ++ local legacy_args=ak 28267 DEBUG ++ args_array=([a]=app= [k]=key=) 28267 DEBUG ++ local -A args_array 28268 DEBUG ++ local app 28269 DEBUG ++ local key 28269 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 28270 DEBUG ++ set +o xtrace 28332 DEBUG ++ app=digiwords 28334 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 28336 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 28340 DEBUG ++ set +o xtrace 28408 DEBUG + local checksum_value= 28409 DEBUG + backup_file_checksum= 28410 DEBUG + '[' -n '' ']' 28411 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 28414 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 28416 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 28419 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 28422 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 28422 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 28423 DEBUG ++ tr -d '>= ' 28423 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/manifest.json 28430 DEBUG + local ynh_requirement=4.3.0 28430 DEBUG + '[' -z 4.3.0 ']' 28431 DEBUG + '[' 4.3.0 == null ']' 28431 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 28437 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 28442 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 28446 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 28452 DEBUG + ynh_system_user_exists digiwords 28452 DEBUG + local legacy_args=u 28453 DEBUG + args_array=([u]=username=) 28454 DEBUG + local -A args_array 28455 DEBUG + local username 28459 DEBUG + ynh_handle_getopts_args digiwords 28462 DEBUG + set +o xtrace 28478 DEBUG + echo '! Helper used in legacy mode !' 28480 DEBUG + set +x 28483 DEBUG + getent passwd digiwords 28486 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 28492 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 28492 DEBUG + grep -q '^/etc/cron' 28499 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28499 DEBUG + local legacy_args=f 28500 DEBUG + args_array=([f]=file=) 28501 DEBUG + local -A args_array 28503 DEBUG + local file 28505 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28508 DEBUG + set +o xtrace 28525 DEBUG + test -n / 28525 DEBUG + local path_url_slash_less= 28527 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28531 DEBUG + local legacy_args=mrf 28533 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28535 DEBUG + local -A args_array 28536 DEBUG + local match_string 28536 DEBUG + local replace_string 28537 DEBUG + local target_file 28538 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28538 DEBUG + set +o xtrace 28676 DEBUG + set +o xtrace 28679 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28684 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28686 DEBUG + local legacy_args=mrf 28689 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28691 DEBUG + local -A args_array 28694 DEBUG + local match_string 28695 DEBUG + local replace_string 28696 DEBUG + local target_file 28697 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28698 DEBUG + set +o xtrace 28831 DEBUG + set +o xtrace 28832 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 28838 DEBUG + test -n digiwords 28839 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28839 DEBUG + local legacy_args=mrf 28840 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 28841 DEBUG + local -A args_array 28842 DEBUG + local match_string 28842 DEBUG + local replace_string 28843 DEBUG + local target_file 28843 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 28845 DEBUG + set +o xtrace 29023 DEBUG + set +o xtrace 29025 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29031 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29032 DEBUG + local legacy_args=mrf 29034 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 29035 DEBUG + local -A args_array 29035 DEBUG + local match_string 29035 DEBUG + local replace_string 29036 DEBUG + local target_file 29036 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29036 DEBUG + set +o xtrace 29189 DEBUG + set +o xtrace 29192 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29195 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29198 DEBUG + local legacy_args=mrf 29199 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 29200 DEBUG + local -A args_array 29201 DEBUG + local match_string 29202 DEBUG + local replace_string 29202 DEBUG + local target_file 29203 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29204 DEBUG + set +o xtrace 29330 DEBUG + set +o xtrace 29331 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29338 DEBUG + test -n /var/www/digiwords 29339 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29341 DEBUG + local legacy_args=mrf 29342 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 29343 DEBUG + local -A args_array 29343 DEBUG + local match_string 29344 DEBUG + local replace_string 29345 DEBUG + local target_file 29346 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29346 DEBUG + set +o xtrace 29461 DEBUG + set +o xtrace 29462 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29466 DEBUG + test -n 7.3 29467 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29469 DEBUG + local legacy_args=mrf 29471 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 29471 DEBUG + local -A args_array 29472 DEBUG + local match_string 29473 DEBUG + local replace_string 29474 DEBUG + local target_file 29475 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29476 DEBUG + set +o xtrace 29593 DEBUG + set +o xtrace 29594 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 29602 DEBUG + test -n '' 29602 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 29606 DEBUG ++ sort --unique 29607 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 29609 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 29617 DEBUG + local uniques_vars 29618 DEBUG + local delimit=@ 29618 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29620 DEBUG + local legacy_args=f 29620 DEBUG + args_array=([f]=file= [u]=update_only) 29620 DEBUG + local -A args_array 29621 DEBUG + local file 29621 DEBUG + local update_only 29621 DEBUG + update_only=0 29621 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 29623 DEBUG + set +o xtrace 29657 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 29657 DEBUG + '[' 0 -eq 1 ']' 29661 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 29664 DEBUG ++ cut '--delimiter= ' --fields=1 29668 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 29669 DEBUG + local _globalapp=digiwords 29670 DEBUG + local legacy_args=akv 29670 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 29671 DEBUG + local -A args_array 29671 DEBUG + local app 29672 DEBUG + local key 29673 DEBUG + local value 29674 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 29674 DEBUG + set +o xtrace 29796 DEBUG + app=digiwords 29796 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 29796 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 29797 DEBUG + set +o xtrace 29872 DEBUG + '[' -n '' ']' 29872 DEBUG + unset backup_file_checksum 29873 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_df2pbgf8/app_folder/conf/php-fpm.ini ']' 29873 DEBUG + '[' 0 -eq 1 ']' 29874 DEBUG + php-fpm7.3 --test 29968 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 29969 DEBUG + local legacy_args=nalpte 29969 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 29970 DEBUG + local -A args_array 29970 DEBUG + local service_name 29971 DEBUG + local action 29971 DEBUG + local line_match 29971 DEBUG + local length 29972 DEBUG + local log_path 29972 DEBUG + local timeout 29972 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 29972 DEBUG + set +o xtrace 30135 DEBUG + service_name=php7.3-fpm 30135 DEBUG + action=reload 30136 DEBUG + line_match= 30136 DEBUG + length=20 30136 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 30136 DEBUG + timeout=300 30137 DEBUG + '[' reload == stop ']' 30138 DEBUG + [[ -n '' ]] 30138 DEBUG + '[' reload == reload ']' 30139 DEBUG + action=reload-or-restart 30139 DEBUG + systemctl reload-or-restart php7.3-fpm 30183 DEBUG + [[ -n '' ]] 30186 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 30187 DEBUG + set +o xtrace 30329 DEBUG + set +o xtrace 30365 DEBUG + echo '! Helper used in legacy mode !' 30367 DEBUG + set +x 30371 INFO [##############++....] > Configuring permissions... 30372 DEBUG + echo '[##############++....] > Configuring permissions...' 30375 DEBUG + set -o xtrace 30376 DEBUG + '[' 0 -eq 1 ']' 30377 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 30378 DEBUG + set +o xtrace 30533 DEBUG + set +o xtrace 30559 DEBUG + echo '! Helper used in legacy mode !' 30561 DEBUG + set +x 30567 DEBUG + echo '[################++..] > Reloading NGINX web server...' 30569 DEBUG + set -o xtrace 30569 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 30570 DEBUG + local legacy_args=nalpte 30571 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 30572 DEBUG + local -A args_array 30573 DEBUG + local service_name 30574 DEBUG + local action 30574 DEBUG + local line_match 30576 DEBUG + local length 30576 DEBUG + local log_path 30576 DEBUG + local timeout 30577 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 30577 DEBUG + set +o xtrace 30578 INFO [################++..] > Reloading NGINX web server... 30758 DEBUG + service_name=nginx 30759 DEBUG + action=reload 30759 DEBUG + line_match= 30760 DEBUG + length=20 30760 DEBUG + log_path=/var/log/nginx/nginx.log 30760 DEBUG + timeout=300 30760 DEBUG + '[' reload == stop ']' 30761 DEBUG + [[ -n '' ]] 30761 DEBUG + '[' reload == reload ']' 30762 DEBUG + action=reload-or-restart 30762 DEBUG + systemctl reload-or-restart nginx 30847 DEBUG + [[ -n '' ]] 30849 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 30849 DEBUG + set +o xtrace 30966 DEBUG + set +o xtrace 30995 DEBUG + echo '! Helper used in legacy mode !' 30996 DEBUG + set +x 31003 DEBUG + echo '[####################] > Installation of digiwords completed' 31004 INFO [####################] > Installation of digiwords completed 31004 DEBUG + set -o xtrace 31005 DEBUG + ynh_exit_properly 31014 DEBUG + local exit_code=0 31015 DEBUG + rm -rf /var/cache/yunohost/download/ 31016 DEBUG + '[' 0 -eq 0 ']' 31016 DEBUG + exit 0 32020 DEBUG Checking that required services are up and running... 32849 SUCCESS Installation completed 32851 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-093746-app_install-digiwords' 32863 DEBUG action [6770.1] executed in 32.593s 32864 DEBUG lock has been released Return code: 0 Working time: 34 seconds (09:38:18) Installation successful. Return code: 1 Working time: 0s (09:38:28)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld Return code: 0 Working time: 0s (09:38:33) Return code: 0 Working time: 0s (09:38:36) HTTP code: Test URL: sub.domain.tld Real URL: HTTP code: Page title: Page extract: Running curl sub.domain.tld/ Return code: 0 Working time: 0s (09:38:42) YunoHost Portal
Please log in to access to this content
Return code: 0 Working time: 0s (09:38:45) HTTP code: Yunohost Please log in to access to this content Username ____________________ Password ____________________ Log in The connection attempt fall on the YunoHost portal. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: YunoHost Portal Page extract: Yunohost Please log in to access to this content Username ____________________ Password ____________________ Log in --- SUCCESS --- Working time for this test: 3 minutes, 40 seconds (09:38:45)  ============================================ [Test 5/9] Multi-instance installations ============================================  Loading snapshot snap0 ...  > First installation: path=sub.domain.tld/ (Reusing existing snapshot snap_rootinstall) Loading snapshot snap_rootinstall ...  > Second installation: path=domain.tld/ Running: yunohost app install --force /app_folder -a "domain=domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" 171 DEBUG initializing base actions map parser for cli 173 DEBUG loading actions map namespace 'yunohost' 176 DEBUG building parser... 195 DEBUG building parser took 0.018s 197 DEBUG acquiring lock... 219 DEBUG lock has been acquired 254 DEBUG loading python module yunohost.app took 0.035s 255 DEBUG processing action [861.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 310 DEBUG Extracting... 333 DEBUG Done 336 DEBUG Checking required packages for digiwords... 350 DEBUG Checking that required services are up and running... 1312 DEBUG initializing ldap interface 1495 INFO Installing digiwords... 1566 DEBUG Nothing to update in LDAP 1567 DEBUG Permission 'digiwords__2.main' updated 1591 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords__2'', use the command 'yunohost log show 20220531-094059-permission_url-digiwords__2' 1647 DEBUG The permission database has been resynchronized 1687 DEBUG SSOwat configuration regenerated 1722 DEBUG Permission 'digiwords__2.main' created 1723 DEBUG To view the log of the operation 'Create permission 'digiwords__2'', use the command 'yunohost log show 20220531-094059-permission_create-digiwords__2' 1750 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1765 DEBUG + source _common.sh 1766 DEBUG ++ pkg_dependencies=php-sqlite3 1766 DEBUG + source /usr/share/yunohost/helpers 1768 DEBUG +++ set +o 1769 DEBUG +++ grep xtrace 1778 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1778 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1779 DEBUG ++ set +x 1821 DEBUG + ynh_abort_if_errors 1822 DEBUG + set -o errexit 1823 DEBUG + set -o nounset 1824 DEBUG + trap ynh_exit_properly EXIT 1824 DEBUG + domain=domain.tld 1826 DEBUG + path_url=/ 1826 DEBUG + is_public=1 1827 DEBUG + app=digiwords__2 1828 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1829 DEBUG + set +o xtrace 1960 DEBUG + set +o xtrace 2019 DEBUG + echo '! Helper used in legacy mode !' 2023 DEBUG + set +x 2026 INFO [++..................] > Validating installation parameters... 2032 DEBUG + echo '[++..................] > Validating installation parameters...' 2036 DEBUG + set -o xtrace 2037 DEBUG + final_path=/var/www/digiwords__2 2038 DEBUG + test '!' -e /var/www/digiwords__2 2038 DEBUG + ynh_webpath_register --app=digiwords__2 --domain=domain.tld --path_url=/ 2039 DEBUG + local legacy_args=adp 2040 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 2040 DEBUG + local -A args_array 2042 DEBUG + local app 2043 DEBUG + local domain 2044 DEBUG + local path_url 2046 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --domain=domain.tld --path_url=/ 2047 DEBUG + set +o xtrace 2188 DEBUG + yunohost app register-url digiwords__2 domain.tld / 3100 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 3102 DEBUG + set +o xtrace 3229 DEBUG + set +o xtrace 3258 DEBUG + echo '! Helper used in legacy mode !' 3260 DEBUG + set +x 3267 INFO [##++................] > Storing installation settings... 3268 DEBUG + echo '[##++................] > Storing installation settings...' 3270 DEBUG + set -o xtrace 3271 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=domain --value=domain.tld 3272 DEBUG + local _globalapp=digiwords__2 3272 DEBUG + local legacy_args=akv 3273 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3273 DEBUG + local -A args_array 3274 DEBUG + local app 3274 DEBUG + local key 3275 DEBUG + local value 3275 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=domain --value=domain.tld 3276 DEBUG + set +o xtrace 3419 DEBUG + app=digiwords__2 3420 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 3421 DEBUG + ynh_app_setting set digiwords__2 domain domain.tld 3421 DEBUG + set +o xtrace 3501 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=path --value=/ 3503 DEBUG + local _globalapp=digiwords__2 3507 DEBUG + local legacy_args=akv 3510 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3511 DEBUG + local -A args_array 3512 DEBUG + local app 3512 DEBUG + local key 3513 DEBUG + local value 3514 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=path --value=/ 3515 DEBUG + set +o xtrace 3637 DEBUG + app=digiwords__2 3638 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3639 DEBUG + ynh_app_setting set digiwords__2 path / 3640 DEBUG + set +o xtrace 3723 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3725 DEBUG + set +o xtrace 3869 DEBUG + set +o xtrace 3892 DEBUG + echo '! Helper used in legacy mode !' 3894 DEBUG + set +x 3902 DEBUG + echo '[####++..............] > Installing dependencies...' 3903 DEBUG + set -o xtrace 3903 DEBUG + ynh_install_app_dependencies php-sqlite3 3904 DEBUG + local dependencies=php-sqlite3 3904 INFO [####++..............] > Installing dependencies... 3906 DEBUG ++ echo php-sqlite3 3906 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3913 DEBUG + dependencies=php-sqlite3 3914 DEBUG + local dependencies=php-sqlite3 3915 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/manifest.json 3916 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/manifest.json 3925 DEBUG + local version=0.3.3~ynh1 3932 DEBUG + '[' -z 0.3.3~ynh1 ']' 3934 DEBUG + '[' 0.3.3~ynh1 == null ']' 3935 DEBUG + local dep_app=digiwords--2 3936 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3937 DEBUG ++ echo php-sqlite3 3939 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3939 DEBUG ++ sort -u 3943 DEBUG + local specific_php_version= 3944 DEBUG + [[ '' != \7\.\3 ]] 3957 DEBUG + [[ -n '' ]] 3960 DEBUG + [[ true == \t\r\u\e ]] 3962 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3965 DEBUG + grep --quiet php 3968 DEBUG + dpkg --list 3970 DEBUG + grep php7.0 3971 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3986 DEBUG + cat 3992 DEBUG + ynh_package_install_from_equivs /tmp/digiwords--2-ynh-deps.control 3993 DEBUG + local controlfile=/tmp/digiwords--2-ynh-deps.control 3997 DEBUG ++ grep '^Package: ' /tmp/digiwords--2-ynh-deps.control 4002 DEBUG ++ cut '--delimiter= ' --fields=2 4009 DEBUG + local pkgname=digiwords--2-ynh-deps 4011 DEBUG ++ grep '^Version: ' /tmp/digiwords--2-ynh-deps.control 4016 DEBUG ++ cut '--delimiter= ' --fields=2 4019 DEBUG + local pkgversion=0.3.3~ynh1 4020 DEBUG + [[ -z digiwords--2-ynh-deps ]] 4021 DEBUG + [[ -z 0.3.3~ynh1 ]] 4022 DEBUG + ynh_package_update 4023 DEBUG + ynh_apt update 4025 DEBUG + ynh_wait_dpkg_free 4027 DEBUG + local try 4028 DEBUG + set +o xtrace 5534 DEBUG + return 0 5536 DEBUG + LC_ALL=C 5537 DEBUG + DEBIAN_FRONTEND=noninteractive 5538 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5696 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5699 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5712 DEBUG Hit:3 http://deb.debian.org/debian buster-updates InRelease 5723 DEBUG Hit:4 http://deb.debian.org/debian-security buster/updates InRelease 8418 DEBUG Reading package lists... 8479 DEBUG ++ mktemp --directory 8482 DEBUG + local TMPDIR=/tmp/tmp.rcG3bUbi2s 8483 DEBUG + echo 10 8486 DEBUG + ynh_wait_dpkg_free 8487 DEBUG + local try 8487 DEBUG + set +o xtrace 9892 DEBUG + return 0 9893 DEBUG + cp /tmp/digiwords--2-ynh-deps.control /tmp/tmp.rcG3bUbi2s/control 9902 DEBUG + cd /tmp/tmp.rcG3bUbi2s 9903 DEBUG + LC_ALL=C 9903 DEBUG + equivs-build ./control 12026 DEBUG + LC_ALL=C 12027 DEBUG + tee ./dpkg_log 12027 DEBUG + dpkg --force-depends --install ./digiwords--2-ynh-deps_0.3.3~ynh1_all.deb 12111 DEBUG Selecting previously unselected package digiwords--2-ynh-deps. 12158 DEBUG (Reading database ... 42403 files and directories currently installed.) 12165 DEBUG Preparing to unpack .../digiwords--2-ynh-deps_0.3.3~ynh1_all.deb ... 12178 DEBUG Unpacking digiwords--2-ynh-deps (0.3.3~ynh1) ... 12244 DEBUG Setting up digiwords--2-ynh-deps (0.3.3~ynh1) ... 12321 DEBUG + ynh_package_install --fix-broken 12322 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 12324 DEBUG + ynh_wait_dpkg_free 12325 DEBUG + local try 12327 DEBUG + set +o xtrace 13681 DEBUG + return 0 13684 DEBUG + LC_ALL=C 13685 DEBUG + DEBIAN_FRONTEND=noninteractive 13686 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13870 DEBUG Reading package lists... 14260 DEBUG Building dependency tree... 14262 DEBUG Reading state information... 14742 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 14743 DEBUG + [[ -n /tmp/tmp.rcG3bUbi2s ]] 14744 DEBUG + rm --recursive --force /tmp/tmp.rcG3bUbi2s 14746 DEBUG + ynh_package_is_installed digiwords--2-ynh-deps 14747 DEBUG + local legacy_args=p 14748 DEBUG + args_array=([p]=package=) 14750 DEBUG + local -A args_array 14752 DEBUG + local package 14754 DEBUG + ynh_handle_getopts_args digiwords--2-ynh-deps 14755 DEBUG + set +o xtrace 14764 DEBUG + echo '! Helper used in legacy mode !' 14766 DEBUG + set +x 14768 DEBUG + ynh_wait_dpkg_free 14770 DEBUG + local try 14774 DEBUG + set +o xtrace 16132 DEBUG + return 0 16136 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords--2-ynh-deps 16142 DEBUG + grep --count 'ok installed' 16157 DEBUG + rm /tmp/digiwords--2-ynh-deps.control 16164 DEBUG + [[ -n '' ]] 16167 DEBUG + grep --quiet php 16168 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=phpversion --value=7.3 16169 DEBUG + local _globalapp=digiwords__2 16170 DEBUG + local legacy_args=akv 16170 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 16170 DEBUG + local -A args_array 16170 DEBUG + local app 16171 DEBUG + local key 16171 DEBUG + local value 16171 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=phpversion --value=7.3 16172 DEBUG + set +o xtrace 16297 DEBUG + app=digiwords__2 16298 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 16299 DEBUG + ynh_app_setting set digiwords__2 phpversion 7.3 16299 DEBUG + set +o xtrace 16383 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 16384 DEBUG + set +o xtrace 16493 DEBUG + set +o xtrace 16522 DEBUG + echo '! Helper used in legacy mode !' 16523 DEBUG + set +x 16533 DEBUG + echo '[######++............] > Configuring system user...' 16534 DEBUG + set -o xtrace 16535 DEBUG + ynh_system_user_create --username=digiwords__2 --home_dir=/var/www/digiwords__2 16535 DEBUG + local legacy_args=uhs 16535 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 16536 DEBUG + local -A args_array 16536 DEBUG + local username 16540 DEBUG + local home_dir 16541 DEBUG + local use_shell 16541 DEBUG + local groups 16544 DEBUG + ynh_handle_getopts_args --username=digiwords__2 --home_dir=/var/www/digiwords__2 16545 DEBUG + set +o xtrace 16546 INFO [######++............] > Configuring system user... 16666 DEBUG + use_shell=0 16667 DEBUG + home_dir=/var/www/digiwords__2 16670 DEBUG + groups= 16673 DEBUG + ynh_system_user_exists digiwords__2 16674 DEBUG + local legacy_args=u 16675 DEBUG + args_array=([u]=username=) 16676 DEBUG + local -A args_array 16677 DEBUG + local username 16678 DEBUG + ynh_handle_getopts_args digiwords__2 16679 DEBUG + set +o xtrace 16690 DEBUG + echo '! Helper used in legacy mode !' 16691 DEBUG + set +x 16691 DEBUG + getent passwd digiwords__2 16700 DEBUG + '[' -n /var/www/digiwords__2 ']' 16701 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords__2' 16703 DEBUG + '[' 0 -eq 1 ']' 16707 DEBUG + local 'shell=--shell /usr/sbin/nologin' 16713 DEBUG + useradd --home-dir /var/www/digiwords__2 --system --user-group digiwords__2 --shell /usr/sbin/nologin 16824 DEBUG + local group 16825 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 16826 DEBUG + set +o xtrace 16978 DEBUG + set +o xtrace 17008 DEBUG + echo '! Helper used in legacy mode !' 17010 DEBUG + set +x 17015 DEBUG + echo '[########++..........] > Setting up source files...' 17016 DEBUG + set -o xtrace 17017 INFO [########++..........] > Setting up source files... 17019 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=final_path --value=/var/www/digiwords__2 17019 DEBUG + local _globalapp=digiwords__2 17020 DEBUG + local legacy_args=akv 17021 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 17021 DEBUG + local -A args_array 17022 DEBUG + local app 17023 DEBUG + local key 17023 DEBUG + local value 17023 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=final_path --value=/var/www/digiwords__2 17024 DEBUG + set +o xtrace 17186 DEBUG + app=digiwords__2 17188 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 17188 DEBUG + ynh_app_setting set digiwords__2 final_path /var/www/digiwords__2 17190 DEBUG + set +o xtrace 17276 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords__2 17278 DEBUG + local legacy_args=dsk 17279 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 17280 DEBUG + local -A args_array 17281 DEBUG + local dest_dir 17282 DEBUG + local source_id 17283 DEBUG + local keep 17284 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords__2 17285 DEBUG + set +o xtrace 17331 DEBUG + source_id=app 17332 DEBUG + keep= 17332 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17335 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17337 DEBUG ++ cut --delimiter== --fields=2- 17341 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 17344 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17345 DEBUG ++ cut --delimiter== --fields=2- 17350 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 17353 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17354 DEBUG ++ cut --delimiter== --fields=2- 17359 DEBUG + local src_sumprg=sha256sum 17362 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17364 DEBUG ++ cut --delimiter== --fields=2- 17372 DEBUG + local src_format=zip 17375 DEBUG ++ cut --delimiter== --fields=2- 17375 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17380 DEBUG + local src_extract=true 17383 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17383 DEBUG ++ cut --delimiter== --fields=2- 17391 DEBUG + local src_in_subdir=true 17394 DEBUG ++ cut --delimiter== --fields=2- 17395 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/app.src 17401 DEBUG + local src_filename= 17401 DEBUG + src_sumprg=sha256sum 17402 DEBUG + src_in_subdir=true 17402 DEBUG + src_format=zip 17403 DEBUG ++ tr '[:upper:]' '[:lower:]' 17403 DEBUG ++ echo zip 17407 DEBUG + src_format=zip 17409 DEBUG + src_extract=true 17410 DEBUG + '[' '' = '' ']' 17411 DEBUG + src_filename=app.zip 17411 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 17412 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 17412 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 17413 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 17414 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 17414 DEBUG + local out 17420 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 17874 DEBUG + out='2022-05-31 09:41:16 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T094116Z&X-Amz-Expires=300&X-Amz-Signature=8935b2cac997c621fc2d773d47ae198c9712ae97bd8b512d40b2d47cb36643fc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 17876 DEBUG + sha256sum --check --status 17877 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 17906 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 17918 DEBUG + '[' -n '' ']' 17920 DEBUG + mkdir --parents /var/www/digiwords__2 17921 DEBUG + '[' -n /var/www/digiwords__2 ']' 17923 DEBUG + '[' /var/www/digiwords__2 == /var/www/digiwords__2 ']' 17924 DEBUG + _ynh_apply_default_permissions /var/www/digiwords__2 17925 DEBUG + local target=/var/www/digiwords__2 17927 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/manifest.json 17928 DEBUG ++ tr -d '>= ' 17934 DEBUG + local ynh_requirement=4.3.0 17936 DEBUG + '[' -z 4.3.0 ']' 17937 DEBUG + '[' 4.3.0 == null ']' 17939 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 17940 DEBUG + chmod o-rwx /var/www/digiwords__2 17942 DEBUG + chmod g-w /var/www/digiwords__2 17944 DEBUG + chown -R root:root /var/www/digiwords__2 17957 DEBUG + ynh_system_user_exists digiwords__2 17958 DEBUG + local legacy_args=u 17959 DEBUG + args_array=([u]=username=) 17964 DEBUG + local -A args_array 17965 DEBUG + local username 17966 DEBUG + ynh_handle_getopts_args digiwords__2 17967 DEBUG + set +o xtrace 17992 DEBUG + echo '! Helper used in legacy mode !' 17994 DEBUG + set +x 18002 DEBUG + getent passwd digiwords__2 18010 DEBUG + chown digiwords__2:digiwords__2 /var/www/digiwords__2 18020 DEBUG + grep -q '^/etc/cron' 18026 DEBUG + echo /var/www/digiwords__2 18029 DEBUG + true 18030 DEBUG + '[' zip = zip ']' 18031 DEBUG + true 18032 DEBUG ++ mktemp --directory 18033 DEBUG + local tmp_dir=/tmp/tmp.aH2THrJjPI 18034 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.aH2THrJjPI 18084 DEBUG + cp --archive /tmp/tmp.aH2THrJjPI/digiwords/. /var/www/digiwords__2 18099 DEBUG + ynh_secure_remove --file=/tmp/tmp.aH2THrJjPI 18100 DEBUG + local legacy_args=f 18101 DEBUG + args_array=([f]=file=) 18103 DEBUG + local -A args_array 18104 DEBUG + local file 18104 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.aH2THrJjPI 18104 DEBUG + set +o xtrace 18120 DEBUG + set +o xtrace 18146 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 18148 DEBUG + local legacy_args=f 18149 DEBUG + args_array=([f]=file=) 18151 DEBUG + local -A args_array 18152 DEBUG + local file 18153 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 18154 DEBUG + set +o xtrace 18168 DEBUG + set +o xtrace 18189 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/sources/patches/ ']' 18194 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/sources/extra_files/app 18195 DEBUG + '[' -n '' ']' 18196 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 18198 DEBUG + chmod 750 /var/www/digiwords__2 18201 DEBUG + chmod -R o-rwx /var/www/digiwords__2 18207 DEBUG + chown -R digiwords__2:www-data /var/www/digiwords__2 18213 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 18214 DEBUG + set +o xtrace 18351 DEBUG + set +o xtrace 18378 DEBUG + echo '! Helper used in legacy mode !' 18379 DEBUG + set +x 18385 INFO [##########++........] > Configuring NGINX web server... 18389 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 18390 DEBUG + set -o xtrace 18391 DEBUG + ynh_add_nginx_config 18392 DEBUG + local finalnginxconf=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18393 DEBUG + '[' / '!=' / ']' 18394 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf 18394 DEBUG + local legacy_args=mrf 18395 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 18396 DEBUG + local -A args_array 18398 DEBUG + local match_string 18399 DEBUG + local replace_string 18399 DEBUG + local target_file 18400 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf 18401 DEBUG + set +o xtrace 18540 DEBUG + set +o xtrace 18541 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf 18543 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18545 DEBUG + local legacy_args=tdv 18546 DEBUG + args_array=([t]=template= [d]=destination=) 18547 DEBUG + local -A args_array 18547 DEBUG + local template 18548 DEBUG + local destination 18548 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18548 DEBUG + set +o xtrace 18611 DEBUG + local template_path 18613 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf ']' 18614 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf ']' 18618 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf 18619 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18620 DEBUG + local legacy_args=f 18621 DEBUG + args_array=([f]=file=) 18622 DEBUG + local -A args_array 18623 DEBUG + local file 18623 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18624 DEBUG + set +o xtrace 18635 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf 18640 DEBUG ++ ynh_app_setting_get --app=digiwords__2 --key=checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf 18641 DEBUG ++ local _globalapp=digiwords__2 18642 DEBUG ++ local legacy_args=ak 18643 DEBUG ++ args_array=([a]=app= [k]=key=) 18646 DEBUG ++ local -A args_array 18647 DEBUG ++ local app 18649 DEBUG ++ local key 18650 DEBUG ++ ynh_handle_getopts_args --app=digiwords__2 --key=checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf 18651 DEBUG ++ set +o xtrace 18714 DEBUG ++ app=digiwords__2 18715 DEBUG ++ [[ checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf =~ (unprotected|protected|skipped)_ ]] 18716 DEBUG ++ ynh_app_setting get digiwords__2 checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf 18718 DEBUG ++ set +o xtrace 18791 DEBUG + local checksum_value= 18792 DEBUG + backup_file_checksum= 18795 DEBUG + '[' -n '' ']' 18796 DEBUG + touch /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18798 DEBUG + chown root:root /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18799 DEBUG + chmod 640 /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18802 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/nginx.conf /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18805 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18807 DEBUG + local target=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18809 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/manifest.json 18811 DEBUG ++ tr -d '>= ' 18817 DEBUG + local ynh_requirement=4.3.0 18819 DEBUG + '[' -z 4.3.0 ']' 18819 DEBUG + '[' 4.3.0 == null ']' 18820 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 18825 DEBUG + chmod o-rwx /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18828 DEBUG + chmod g-w /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18832 DEBUG + chown -R root:root /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18835 DEBUG + ynh_system_user_exists digiwords__2 18838 DEBUG + local legacy_args=u 18839 DEBUG + args_array=([u]=username=) 18840 DEBUG + local -A args_array 18841 DEBUG + local username 18841 DEBUG + ynh_handle_getopts_args digiwords__2 18842 DEBUG + set +o xtrace 18850 DEBUG + echo '! Helper used in legacy mode !' 18852 DEBUG + set +x 18855 DEBUG + getent passwd digiwords__2 18861 DEBUG + chown digiwords__2:digiwords__2 /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18868 DEBUG + echo /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18872 DEBUG + grep -q '^/etc/cron' 18872 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18874 DEBUG + local legacy_args=f 18875 DEBUG + args_array=([f]=file=) 18876 DEBUG + local -A args_array 18877 DEBUG + local file 18879 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18880 DEBUG + set +o xtrace 18894 DEBUG + test -n / 18895 DEBUG + local path_url_slash_less= 18896 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18899 DEBUG + local legacy_args=mrf 18901 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 18903 DEBUG + local -A args_array 18905 DEBUG + local match_string 18906 DEBUG + local replace_string 18907 DEBUG + local target_file 18907 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 18908 DEBUG + set +o xtrace 19059 DEBUG + set +o xtrace 19061 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19066 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19067 DEBUG + local legacy_args=mrf 19069 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 19072 DEBUG + local -A args_array 19076 DEBUG + local match_string 19078 DEBUG + local replace_string 19080 DEBUG + local target_file 19081 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19082 DEBUG + set +o xtrace 19228 DEBUG + set +o xtrace 19230 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19238 DEBUG + test -n digiwords__2 19240 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19241 DEBUG + local legacy_args=mrf 19242 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 19243 DEBUG + local -A args_array 19245 DEBUG + local match_string 19246 DEBUG + local replace_string 19247 DEBUG + local target_file 19248 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19249 DEBUG + set +o xtrace 19391 DEBUG + set +o xtrace 19393 DEBUG + sed --in-place s@__NAME__@digiwords__2@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19397 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19400 DEBUG + local legacy_args=mrf 19402 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 19403 DEBUG + local -A args_array 19404 DEBUG + local match_string 19404 DEBUG + local replace_string 19405 DEBUG + local target_file 19406 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19407 DEBUG + set +o xtrace 19548 DEBUG + set +o xtrace 19550 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords__2@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19556 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19557 DEBUG + local legacy_args=mrf 19558 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 19559 DEBUG + local -A args_array 19563 DEBUG + local match_string 19564 DEBUG + local replace_string 19565 DEBUG + local target_file 19566 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19566 DEBUG + set +o xtrace 19702 DEBUG + set +o xtrace 19704 DEBUG + sed --in-place s@__USER__@digiwords__2@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19709 DEBUG + test -n /var/www/digiwords__2 19710 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19711 DEBUG + local legacy_args=mrf 19712 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 19713 DEBUG + local -A args_array 19714 DEBUG + local match_string 19715 DEBUG + local replace_string 19716 DEBUG + local target_file 19716 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords__2 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19716 DEBUG + set +o xtrace 19858 DEBUG + set +o xtrace 19859 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords__2@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19866 DEBUG + test -n 7.3 19867 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19867 DEBUG + local legacy_args=mrf 19868 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 19869 DEBUG + local -A args_array 19871 DEBUG + local match_string 19871 DEBUG + local replace_string 19871 DEBUG + local target_file 19872 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19872 DEBUG + set +o xtrace 19989 DEBUG + set +o xtrace 19991 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19996 DEBUG + test -n '' 19997 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 19998 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 19999 DEBUG ++ sort --unique 20000 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 20005 DEBUG + local uniques_vars 20008 DEBUG + local delimit=@ 20009 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 20010 DEBUG + local legacy_args=f 20011 DEBUG + args_array=([f]=file= [u]=update_only) 20012 DEBUG + local -A args_array 20013 DEBUG + local file 20014 DEBUG + local update_only 20015 DEBUG + update_only=0 20015 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 20016 DEBUG + set +o xtrace 20043 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf 20044 DEBUG + '[' 0 -eq 1 ']' 20047 DEBUG ++ md5sum /etc/nginx/conf.d/domain.tld.d/digiwords__2.conf 20049 DEBUG ++ cut '--delimiter= ' --fields=1 20055 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf --value=471a0d69f6de9177f324730c5515f9cf 20057 DEBUG + local _globalapp=digiwords__2 20058 DEBUG + local legacy_args=akv 20060 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20061 DEBUG + local -A args_array 20063 DEBUG + local app 20065 DEBUG + local key 20066 DEBUG + local value 20068 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf --value=471a0d69f6de9177f324730c5515f9cf 20070 DEBUG + set +o xtrace 20191 DEBUG + app=digiwords__2 20194 DEBUG + [[ checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf =~ (unprotected|protected|skipped)_ ]] 20197 DEBUG + ynh_app_setting set digiwords__2 checksum__etc_nginx_conf.d_domain.tld.d_digiwords__2.conf 471a0d69f6de9177f324730c5515f9cf 20199 DEBUG + set +o xtrace 20291 DEBUG + '[' -n '' ']' 20293 DEBUG + unset backup_file_checksum 20295 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 20296 DEBUG + local legacy_args=nalpte 20297 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 20299 DEBUG + local -A args_array 20301 DEBUG + local service_name 20303 DEBUG + local action 20306 DEBUG + local line_match 20306 DEBUG + local length 20307 DEBUG + local log_path 20307 DEBUG + local timeout 20308 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 20308 DEBUG + set +o xtrace 20470 DEBUG + service_name=nginx 20471 DEBUG + action=reload 20471 DEBUG + line_match= 20472 DEBUG + length=20 20472 DEBUG + log_path=/var/log/nginx/nginx.log 20473 DEBUG + timeout=300 20473 DEBUG + '[' reload == stop ']' 20474 DEBUG + [[ -n '' ]] 20474 DEBUG + '[' reload == reload ']' 20475 DEBUG + action=reload-or-restart 20475 DEBUG + systemctl reload-or-restart nginx 20562 DEBUG + [[ -n '' ]] 20563 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 20564 DEBUG + set +o xtrace 20692 DEBUG + set +o xtrace 20714 DEBUG + echo '! Helper used in legacy mode !' 20714 DEBUG + set +x 20719 INFO [############++......] > Configuring PHP-FPM... 20720 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 20736 DEBUG + set -o xtrace 20738 DEBUG + ynh_add_fpm_config 20739 DEBUG + local legacy_args=vtufpd 20742 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 20743 DEBUG + local -A args_array 20744 DEBUG + local phpversion 20744 DEBUG + local use_template 20744 DEBUG + local usage 20745 DEBUG + local footprint 20746 DEBUG + local package 20750 DEBUG + local dedicated_service 20757 DEBUG + ynh_handle_getopts_args 20757 DEBUG + set +o xtrace 20758 DEBUG + package= 20759 DEBUG + use_template=1 20760 DEBUG + usage= 20763 DEBUG + footprint= 20764 DEBUG + '[' -n '' ']' 20765 DEBUG + '[' -n '' ']' 20766 DEBUG + dedicated_service=0 20767 DEBUG + phpversion=7.3 20767 DEBUG ++ ynh_app_setting_get --app=digiwords__2 --key=phpversion 20769 DEBUG ++ local _globalapp=digiwords__2 20770 DEBUG ++ local legacy_args=ak 20772 DEBUG ++ args_array=([a]=app= [k]=key=) 20773 DEBUG ++ local -A args_array 20773 DEBUG ++ local app 20774 DEBUG ++ local key 20775 DEBUG ++ ynh_handle_getopts_args --app=digiwords__2 --key=phpversion 20775 DEBUG ++ set +o xtrace 20811 DEBUG ++ app=digiwords__2 20813 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 20815 DEBUG ++ ynh_app_setting get digiwords__2 phpversion 20816 DEBUG ++ set +o xtrace 20894 DEBUG + local old_phpversion=7.3 20894 DEBUG + '[' -n 7.3 ']' 20895 DEBUG + '[' 7.3 '!=' 7.3 ']' 20895 DEBUG + '[' -n '' ']' 20895 DEBUG + '[' 0 -eq 1 ']' 20896 DEBUG + local fpm_service=php7.3-fpm 20896 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 20896 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 20896 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=fpm_config_dir --value=/etc/php/7.3/fpm 20897 DEBUG + local _globalapp=digiwords__2 20897 DEBUG + local legacy_args=akv 20898 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20898 DEBUG + local -A args_array 20899 DEBUG + local app 20899 DEBUG + local key 20900 DEBUG + local value 20900 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=fpm_config_dir --value=/etc/php/7.3/fpm 20901 DEBUG + set +o xtrace 21021 DEBUG + app=digiwords__2 21022 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 21022 DEBUG + ynh_app_setting set digiwords__2 fpm_config_dir /etc/php/7.3/fpm 21023 DEBUG + set +o xtrace 21099 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=fpm_service --value=php7.3-fpm 21100 DEBUG + local _globalapp=digiwords__2 21101 DEBUG + local legacy_args=akv 21101 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21102 DEBUG + local -A args_array 21103 DEBUG + local app 21103 DEBUG + local key 21104 DEBUG + local value 21104 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=fpm_service --value=php7.3-fpm 21105 DEBUG + set +o xtrace 21232 DEBUG + app=digiwords__2 21234 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 21235 DEBUG + ynh_app_setting set digiwords__2 fpm_service php7.3-fpm 21236 DEBUG + set +o xtrace 21318 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=fpm_dedicated_service --value=0 21320 DEBUG + local _globalapp=digiwords__2 21322 DEBUG + local legacy_args=akv 21323 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21323 DEBUG + local -A args_array 21324 DEBUG + local app 21324 DEBUG + local key 21325 DEBUG + local value 21326 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=fpm_dedicated_service --value=0 21327 DEBUG + set +o xtrace 21461 DEBUG + app=digiwords__2 21462 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 21464 DEBUG + ynh_app_setting set digiwords__2 fpm_dedicated_service 0 21465 DEBUG + set +o xtrace 21554 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=phpversion --value=7.3 21555 DEBUG + local _globalapp=digiwords__2 21556 DEBUG + local legacy_args=akv 21557 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21558 DEBUG + local -A args_array 21558 DEBUG + local app 21559 DEBUG + local key 21560 DEBUG + local value 21561 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=phpversion --value=7.3 21562 DEBUG + set +o xtrace 21695 DEBUG + app=digiwords__2 21696 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 21698 DEBUG + ynh_app_setting set digiwords__2 phpversion 7.3 21698 DEBUG + set +o xtrace 21767 DEBUG + '[' 0 -eq 1 ']' 21767 DEBUG + '[' 1 -eq 1 ']' 21767 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf 21768 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf ']' 21768 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 21768 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 21768 DEBUG + local legacy_args=tdv 21768 DEBUG + args_array=([t]=template= [d]=destination=) 21769 DEBUG + local -A args_array 21769 DEBUG + local template 21769 DEBUG + local destination 21770 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 21771 DEBUG + set +o xtrace 21829 DEBUG + local template_path 21830 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf ']' 21831 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf ']' 21834 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf 21835 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 21836 DEBUG + local legacy_args=f 21836 DEBUG + args_array=([f]=file=) 21837 DEBUG + local -A args_array 21837 DEBUG + local file 21838 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 21838 DEBUG + set +o xtrace 21861 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf 21864 DEBUG ++ ynh_app_setting_get --app=digiwords__2 --key=checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf 21865 DEBUG ++ local _globalapp=digiwords__2 21866 DEBUG ++ local legacy_args=ak 21867 DEBUG ++ args_array=([a]=app= [k]=key=) 21869 DEBUG ++ local -A args_array 21870 DEBUG ++ local app 21875 DEBUG ++ local key 21876 DEBUG ++ ynh_handle_getopts_args --app=digiwords__2 --key=checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf 21877 DEBUG ++ set +o xtrace 21952 DEBUG ++ app=digiwords__2 21954 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf =~ (unprotected|protected|skipped)_ ]] 21955 DEBUG ++ ynh_app_setting get digiwords__2 checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf 21957 DEBUG ++ set +o xtrace 22054 DEBUG + local checksum_value= 22056 DEBUG + backup_file_checksum= 22057 DEBUG + '[' -n '' ']' 22058 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22060 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22062 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22066 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22069 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22071 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22072 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/manifest.json 22074 DEBUG ++ tr -d '>= ' 22082 DEBUG + local ynh_requirement=4.3.0 22084 DEBUG + '[' -z 4.3.0 ']' 22086 DEBUG + '[' 4.3.0 == null ']' 22088 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 22089 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22091 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22092 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22096 DEBUG + ynh_system_user_exists digiwords__2 22097 DEBUG + local legacy_args=u 22097 DEBUG + args_array=([u]=username=) 22098 DEBUG + local -A args_array 22098 DEBUG + local username 22099 DEBUG + ynh_handle_getopts_args digiwords__2 22099 DEBUG + set +o xtrace 22124 DEBUG + echo '! Helper used in legacy mode !' 22127 DEBUG + set +x 22130 DEBUG + getent passwd digiwords__2 22136 DEBUG + chown digiwords__2:digiwords__2 /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22142 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22144 DEBUG + grep -q '^/etc/cron' 22147 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22149 DEBUG + local legacy_args=f 22150 DEBUG + args_array=([f]=file=) 22151 DEBUG + local -A args_array 22151 DEBUG + local file 22152 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22153 DEBUG + set +o xtrace 22170 DEBUG + test -n / 22175 DEBUG + local path_url_slash_less= 22176 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22177 DEBUG + local legacy_args=mrf 22178 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22178 DEBUG + local -A args_array 22179 DEBUG + local match_string 22180 DEBUG + local replace_string 22180 DEBUG + local target_file 22181 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22181 DEBUG + set +o xtrace 22300 DEBUG + set +o xtrace 22302 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22305 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22307 DEBUG + local legacy_args=mrf 22309 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22310 DEBUG + local -A args_array 22311 DEBUG + local match_string 22313 DEBUG + local replace_string 22314 DEBUG + local target_file 22315 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22316 DEBUG + set +o xtrace 22444 DEBUG + set +o xtrace 22447 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22449 DEBUG + test -n digiwords__2 22452 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22455 DEBUG + local legacy_args=mrf 22456 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22457 DEBUG + local -A args_array 22459 DEBUG + local match_string 22460 DEBUG + local replace_string 22461 DEBUG + local target_file 22462 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22463 DEBUG + set +o xtrace 22592 DEBUG + set +o xtrace 22594 DEBUG + sed --in-place s@__NAME__@digiwords__2@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22600 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22602 DEBUG + local legacy_args=mrf 22602 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22603 DEBUG + local -A args_array 22604 DEBUG + local match_string 22605 DEBUG + local replace_string 22605 DEBUG + local target_file 22607 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22607 DEBUG + set +o xtrace 22723 DEBUG + set +o xtrace 22723 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords__2@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22728 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22731 DEBUG + local legacy_args=mrf 22732 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22733 DEBUG + local -A args_array 22734 DEBUG + local match_string 22734 DEBUG + local replace_string 22735 DEBUG + local target_file 22735 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22736 DEBUG + set +o xtrace 22863 DEBUG + set +o xtrace 22865 DEBUG + sed --in-place s@__USER__@digiwords__2@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 22875 DEBUG + test -n /var/www/digiwords__2 22876 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22877 DEBUG + local legacy_args=mrf 22878 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22878 DEBUG + local -A args_array 22879 DEBUG + local match_string 22879 DEBUG + local replace_string 22880 DEBUG + local target_file 22880 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords__2 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 22881 DEBUG + set +o xtrace 22997 DEBUG + set +o xtrace 22999 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords__2@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 23003 DEBUG + test -n 7.3 23006 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 23008 DEBUG + local legacy_args=mrf 23009 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23011 DEBUG + local -A args_array 23012 DEBUG + local match_string 23013 DEBUG + local replace_string 23014 DEBUG + local target_file 23015 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 23016 DEBUG + set +o xtrace 23135 DEBUG + set +o xtrace 23135 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords__2.conf 23144 DEBUG + test -n '' 23145 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 23150 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords__2.conf 23152 DEBUG ++ sort --unique 23153 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 23158 DEBUG + local uniques_vars 23159 DEBUG + local delimit=@ 23159 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 23159 DEBUG + local legacy_args=f 23160 DEBUG + args_array=([f]=file= [u]=update_only) 23160 DEBUG + local -A args_array 23160 DEBUG + local file 23161 DEBUG + local update_only 23162 DEBUG + update_only=0 23162 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords__2.conf 23162 DEBUG + set +o xtrace 23194 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf 23195 DEBUG + '[' 0 -eq 1 ']' 23199 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords__2.conf 23200 DEBUG ++ cut '--delimiter= ' --fields=1 23206 DEBUG + ynh_app_setting_set --app=digiwords__2 --key=checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf --value=d2c0698fe517c4e1d64b7ba9e772308d 23207 DEBUG + local _globalapp=digiwords__2 23207 DEBUG + local legacy_args=akv 23208 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 23208 DEBUG + local -A args_array 23209 DEBUG + local app 23209 DEBUG + local key 23210 DEBUG + local value 23210 DEBUG + ynh_handle_getopts_args --app=digiwords__2 --key=checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf --value=d2c0698fe517c4e1d64b7ba9e772308d 23211 DEBUG + set +o xtrace 23338 DEBUG + app=digiwords__2 23338 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf =~ (unprotected|protected|skipped)_ ]] 23339 DEBUG + ynh_app_setting set digiwords__2 checksum__etc_php_7.3_fpm_pool.d_digiwords__2.conf d2c0698fe517c4e1d64b7ba9e772308d 23340 DEBUG + set +o xtrace 23429 DEBUG + '[' -n '' ']' 23430 DEBUG + unset backup_file_checksum 23431 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_c03z5fu1/app_folder/conf/php-fpm.ini ']' 23432 DEBUG + '[' 0 -eq 1 ']' 23433 DEBUG + php-fpm7.3 --test 23581 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 23581 DEBUG + local legacy_args=nalpte 23582 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 23583 DEBUG + local -A args_array 23584 DEBUG + local service_name 23586 DEBUG + local action 23587 DEBUG + local line_match 23588 DEBUG + local length 23590 DEBUG + local log_path 23591 DEBUG + local timeout 23591 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 23592 DEBUG + set +o xtrace 23766 DEBUG + service_name=php7.3-fpm 23768 DEBUG + action=reload 23769 DEBUG + line_match= 23770 DEBUG + length=20 23771 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 23772 DEBUG + timeout=300 23773 DEBUG + '[' reload == stop ']' 23773 DEBUG + [[ -n '' ]] 23775 DEBUG + '[' reload == reload ']' 23777 DEBUG + action=reload-or-restart 23778 DEBUG + systemctl reload-or-restart php7.3-fpm 23797 DEBUG + [[ -n '' ]] 23801 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 23802 DEBUG + set +o xtrace 23962 DEBUG + set +o xtrace 23987 DEBUG + echo '! Helper used in legacy mode !' 23989 DEBUG + set +x 23995 DEBUG + echo '[##############++....] > Configuring permissions...' 23997 DEBUG + set -o xtrace 23997 DEBUG + '[' 1 -eq 1 ']' 23998 DEBUG + ynh_permission_update --permission=main --add=visitors 23999 DEBUG + local legacy_args=parltP 24001 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=) 24002 DEBUG + local -A args_array 24003 DEBUG + local permission 24005 DEBUG + local add 24006 DEBUG + local remove 24007 DEBUG + local label 24007 DEBUG + local show_tile 24008 DEBUG + local protected 24008 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors 24009 DEBUG + set +o xtrace 24009 INFO [##############++....] > Configuring permissions... 24197 DEBUG + add=visitors 24201 DEBUG + remove= 24203 DEBUG + label= 24206 DEBUG + show_tile= 24207 DEBUG + protected= 24210 DEBUG + [[ -n visitors ]] 24211 DEBUG + add=',add=['\''visitors'\'']' 24213 DEBUG + [[ -n '' ]] 24215 DEBUG + [[ -n '' ]] 24217 DEBUG + [[ -n '' ]] 24219 DEBUG + [[ -n '' ]] 24220 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''digiwords__2.main'\'' ,add=['\''visitors'\''] , force=True)' 24964 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 24965 DEBUG + set +o xtrace 25106 DEBUG + set +o xtrace 25130 DEBUG + echo '! Helper used in legacy mode !' 25131 DEBUG + set +x 25134 DEBUG + echo '[################++..] > Reloading NGINX web server...' 25135 DEBUG + set -o xtrace 25137 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 25140 DEBUG + local legacy_args=nalpte 25142 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 25144 DEBUG + local -A args_array 25145 DEBUG + local service_name 25147 DEBUG + local action 25147 DEBUG + local line_match 25148 DEBUG + local length 25149 DEBUG + local log_path 25150 DEBUG + local timeout 25151 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 25152 DEBUG + set +o xtrace 25154 INFO [################++..] > Reloading NGINX web server... 25349 DEBUG + service_name=nginx 25350 DEBUG + action=reload 25352 DEBUG + line_match= 25354 DEBUG + length=20 25355 DEBUG + log_path=/var/log/nginx/nginx.log 25357 DEBUG + timeout=300 25358 DEBUG + '[' reload == stop ']' 25359 DEBUG + [[ -n '' ]] 25360 DEBUG + '[' reload == reload ']' 25361 DEBUG + action=reload-or-restart 25362 DEBUG + systemctl reload-or-restart nginx 25439 DEBUG + [[ -n '' ]] 25439 DEBUG + ynh_script_progression '--message=Installation of digiwords__2 completed' --last 25440 DEBUG + set +o xtrace 25584 DEBUG + set +o xtrace 25624 DEBUG + echo '! Helper used in legacy mode !' 25625 DEBUG + set +x 25631 INFO [####################] > Installation of digiwords__2 completed 25632 DEBUG + echo '[####################] > Installation of digiwords__2 completed' 25632 DEBUG + set -o xtrace 25632 DEBUG + ynh_exit_properly 25633 DEBUG + local exit_code=0 25633 DEBUG + rm -rf /var/cache/yunohost/download/ 25637 DEBUG + '[' 0 -eq 0 ']' 25638 DEBUG + exit 0 26641 DEBUG Checking that required services are up and running... 27485 SUCCESS Installation completed 27487 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-094059-app_install-digiwords' 27505 DEBUG action [861.1] executed in 27.250s 27506 DEBUG lock has been released Return code: 0 Working time: 29 seconds (09:41:26) Installation successful. Return code: 1 Working time: 0s (09:41:36)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:41:42) Return code: 0 Working time: 0s (09:41:45) HTTP code: 200 Test URL: sub.domain.tld Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract: Running curl sub.domain.tld/ 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:41:51) Return code: 0 Working time: 0s (09:41:54) HTTP code: 200 Test URL: sub.domain.tld/ Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract:  > Validating that the app digiwords__2 can/can't be accessed with its URL... Running curl domain.tld 200;https://domain.tld/ Return code: 0 Working time: 0s (09:42:00) Return code: 0 Working time: 0s (09:42:03) HTTP code: 200 Test URL: domain.tld Real URL: https://domain.tld/ HTTP code: 200 Page title: Page extract: Running curl domain.tld/ Return code: 0 Working time: 0s (09:42:09) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:42:12) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords.  > Removing the app... Running yunohost app remove digiwords 178 DEBUG initializing base actions map parser for cli 180 DEBUG loading actions map namespace 'yunohost' 183 DEBUG building parser... 204 DEBUG building parser took 0.020s 205 DEBUG acquiring lock... 226 DEBUG lock has been acquired 243 DEBUG loading python module yunohost.app took 0.017s 244 DEBUG processing action [4658.1]: yunohost.app.remove with args={'app': 'digiwords', 'purge': False} 271 INFO Removing digiwords... 410 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 421 DEBUG + source _common.sh 421 DEBUG ++ pkg_dependencies=php-sqlite3 422 DEBUG + source /usr/share/yunohost/helpers 423 DEBUG +++ set +o 424 DEBUG +++ grep xtrace 428 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 429 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 429 DEBUG ++ set +x 476 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 477 DEBUG + set +o xtrace 586 DEBUG + set +o xtrace 641 DEBUG + echo '! Helper used in legacy mode !' 642 DEBUG + set +x 647 DEBUG + echo '[++..................] > Loading installation settings...' 647 INFO [++..................] > Loading installation settings... 653 DEBUG + set -o xtrace 654 DEBUG + app=digiwords 654 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 655 DEBUG ++ local _globalapp=digiwords 655 DEBUG ++ local legacy_args=ak 656 DEBUG ++ args_array=([a]=app= [k]=key=) 656 DEBUG ++ local -A args_array 659 DEBUG ++ local app 659 DEBUG ++ local key 660 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 660 DEBUG ++ set +o xtrace 731 DEBUG ++ app=digiwords 731 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 732 DEBUG ++ ynh_app_setting get digiwords domain 732 DEBUG ++ set +o xtrace 807 DEBUG + domain=sub.domain.tld 808 DEBUG ++ ynh_app_setting_get --app=digiwords --key=port 809 DEBUG ++ local _globalapp=digiwords 809 DEBUG ++ local legacy_args=ak 810 DEBUG ++ args_array=([a]=app= [k]=key=) 811 DEBUG ++ local -A args_array 812 DEBUG ++ local app 812 DEBUG ++ local key 812 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=port 812 DEBUG ++ set +o xtrace 870 DEBUG ++ app=digiwords 871 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]] 872 DEBUG ++ ynh_app_setting get digiwords port 872 DEBUG ++ set +o xtrace 945 DEBUG + port= 945 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 946 DEBUG ++ local _globalapp=digiwords 946 DEBUG ++ local legacy_args=ak 947 DEBUG ++ args_array=([a]=app= [k]=key=) 948 DEBUG ++ local -A args_array 948 DEBUG ++ local app 948 DEBUG ++ local key 949 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 949 DEBUG ++ set +o xtrace 1012 DEBUG ++ app=digiwords 1013 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1013 DEBUG ++ ynh_app_setting get digiwords db_name 1013 DEBUG ++ set +o xtrace 1087 DEBUG + db_name= 1088 DEBUG + db_user= 1089 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1090 DEBUG ++ local _globalapp=digiwords 1090 DEBUG ++ local legacy_args=ak 1091 DEBUG ++ args_array=([a]=app= [k]=key=) 1091 DEBUG ++ local -A args_array 1091 DEBUG ++ local app 1092 DEBUG ++ local key 1092 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1092 DEBUG ++ set +o xtrace 1161 DEBUG ++ app=digiwords 1162 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1163 DEBUG ++ ynh_app_setting get digiwords final_path 1163 DEBUG ++ set +o xtrace 1249 DEBUG + final_path=/var/www/digiwords 1250 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1251 DEBUG ++ local _globalapp=digiwords 1251 DEBUG ++ local legacy_args=ak 1252 DEBUG ++ args_array=([a]=app= [k]=key=) 1252 DEBUG ++ local -A args_array 1252 DEBUG ++ local app 1252 DEBUG ++ local key 1253 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1253 DEBUG ++ set +o xtrace 1315 DEBUG ++ app=digiwords 1315 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1316 DEBUG ++ ynh_app_setting get digiwords datadir 1319 DEBUG ++ set +o xtrace 1406 DEBUG + datadir= 1407 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=1 1407 DEBUG + set +o xtrace 1525 DEBUG + set +o xtrace 1551 DEBUG + echo '! Helper used in legacy mode !' 1552 DEBUG + set +x 1557 DEBUG + echo '[##+++...............] > Removing app main directory...' 1558 DEBUG + set -o xtrace 1559 DEBUG + ynh_secure_remove --file=/var/www/digiwords 1559 DEBUG + local legacy_args=f 1559 DEBUG + args_array=([f]=file=) 1560 DEBUG + local -A args_array 1560 DEBUG + local file 1561 DEBUG + ynh_handle_getopts_args --file=/var/www/digiwords 1561 DEBUG + set +o xtrace 1561 INFO [##+++...............] > Removing app main directory... 1582 DEBUG + set +o xtrace 1615 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1 1616 DEBUG + set +o xtrace 1743 DEBUG + set +o xtrace 1766 DEBUG + echo '! Helper used in legacy mode !' 1766 DEBUG + set +x 1771 DEBUG + echo '[#####++.............] > Removing NGINX web server configuration...' 1771 DEBUG + set -o xtrace 1772 DEBUG + ynh_remove_nginx_config 1772 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1773 DEBUG + local legacy_args=f 1774 DEBUG + args_array=([f]=file=) 1774 DEBUG + local -A args_array 1775 DEBUG + local file 1775 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1776 DEBUG + set +o xtrace 1776 INFO [#####++.............] > Removing NGINX web server configuration... 1792 DEBUG + set +o xtrace 1817 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 1818 DEBUG + local legacy_args=nalpte 1818 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 1819 DEBUG + local -A args_array 1819 DEBUG + local service_name 1819 DEBUG + local action 1820 DEBUG + local line_match 1820 DEBUG + local length 1821 DEBUG + local log_path 1821 DEBUG + local timeout 1822 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 1822 DEBUG + set +o xtrace 1990 DEBUG + service_name=nginx 1991 DEBUG + action=reload 1991 DEBUG + line_match= 1991 DEBUG + length=20 1992 DEBUG + log_path=/var/log/nginx/nginx.log 1992 DEBUG + timeout=300 1993 DEBUG + '[' reload == stop ']' 1993 DEBUG + [[ -n '' ]] 1993 DEBUG + '[' reload == reload ']' 1994 DEBUG + action=reload-or-restart 1994 DEBUG + systemctl reload-or-restart nginx 2076 DEBUG + [[ -n '' ]] 2076 DEBUG + ynh_script_progression '--message=Removing PHP-FPM configuration...' --weight=1 2077 DEBUG + set +o xtrace 2201 DEBUG + set +o xtrace 2229 DEBUG + echo '! Helper used in legacy mode !' 2231 DEBUG + set +x 2235 DEBUG + echo '[#######+++..........] > Removing PHP-FPM configuration...' 2235 DEBUG + set -o xtrace 2236 DEBUG + ynh_remove_fpm_config 2236 INFO [#######+++..........] > Removing PHP-FPM configuration... 2240 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_config_dir 2241 DEBUG ++ local _globalapp=digiwords 2242 DEBUG ++ local legacy_args=ak 2243 DEBUG ++ args_array=([a]=app= [k]=key=) 2243 DEBUG ++ local -A args_array 2244 DEBUG ++ local app 2244 DEBUG ++ local key 2244 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir 2245 DEBUG ++ set +o xtrace 2324 DEBUG ++ app=digiwords 2325 DEBUG ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2325 DEBUG ++ ynh_app_setting get digiwords fpm_config_dir 2326 DEBUG ++ set +o xtrace 2405 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 2406 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_service 2407 DEBUG ++ local _globalapp=digiwords 2407 DEBUG ++ local legacy_args=ak 2407 DEBUG ++ args_array=([a]=app= [k]=key=) 2408 DEBUG ++ local -A args_array 2408 DEBUG ++ local app 2408 DEBUG ++ local key 2409 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_service 2409 DEBUG ++ set +o xtrace 2467 DEBUG ++ app=digiwords 2468 DEBUG ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2469 DEBUG ++ ynh_app_setting get digiwords fpm_service 2469 DEBUG ++ set +o xtrace 2562 DEBUG + local fpm_service=php7.3-fpm 2564 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_dedicated_service 2564 DEBUG ++ local _globalapp=digiwords 2565 DEBUG ++ local legacy_args=ak 2565 DEBUG ++ args_array=([a]=app= [k]=key=) 2566 DEBUG ++ local -A args_array 2567 DEBUG ++ local app 2567 DEBUG ++ local key 2568 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service 2568 DEBUG ++ set +o xtrace 2645 DEBUG ++ app=digiwords 2647 DEBUG ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2648 DEBUG ++ ynh_app_setting get digiwords fpm_dedicated_service 2648 DEBUG ++ set +o xtrace 2735 DEBUG + local dedicated_service=0 2737 DEBUG + dedicated_service=0 2738 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 2739 DEBUG ++ local _globalapp=digiwords 2740 DEBUG ++ local legacy_args=ak 2741 DEBUG ++ args_array=([a]=app= [k]=key=) 2742 DEBUG ++ local -A args_array 2743 DEBUG ++ local app 2744 DEBUG ++ local key 2744 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 2745 DEBUG ++ set +o xtrace 2816 DEBUG ++ app=digiwords 2818 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2820 DEBUG ++ ynh_app_setting get digiwords phpversion 2822 DEBUG ++ set +o xtrace 2901 DEBUG + local phpversion=7.3 2902 DEBUG + phpversion=7.3 2902 DEBUG + '[' -z /etc/php/7.3/fpm ']' 2903 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2903 DEBUG + local legacy_args=f 2904 DEBUG + args_array=([f]=file=) 2905 DEBUG + local -A args_array 2905 DEBUG + local file 2906 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2907 DEBUG + set +o xtrace 2935 DEBUG + set +o xtrace 2966 DEBUG + '[' -e /etc/php/7.3/fpm/conf.d/20-digiwords.ini ']' 2967 DEBUG + '[' 0 -eq 1 ']' 2968 DEBUG + ynh_package_is_installed --package=php7.3-fpm 2970 DEBUG + local legacy_args=p 2971 DEBUG + args_array=([p]=package=) 2972 DEBUG + local -A args_array 2973 DEBUG + local package 2973 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 2974 DEBUG + set +o xtrace 2999 DEBUG + ynh_wait_dpkg_free 3000 DEBUG + local try 3002 DEBUG + set +o xtrace 4424 DEBUG + return 0 4426 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 4428 DEBUG + grep --count 'ok installed' 4443 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 4445 DEBUG + local legacy_args=nalpte 4445 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 4446 DEBUG + local -A args_array 4447 DEBUG + local service_name 4447 DEBUG + local action 4448 DEBUG + local line_match 4448 DEBUG + local length 4449 DEBUG + local log_path 4449 DEBUG + local timeout 4450 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 4451 DEBUG + set +o xtrace 4607 DEBUG + service_name=php7.3-fpm 4608 DEBUG + action=reload 4608 DEBUG + line_match= 4610 DEBUG + length=20 4611 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 4613 DEBUG + timeout=300 4614 DEBUG + '[' reload == stop ']' 4615 DEBUG + [[ -n '' ]] 4616 DEBUG + '[' reload == reload ']' 4617 DEBUG + action=reload-or-restart 4618 DEBUG + systemctl reload-or-restart php7.3-fpm 4638 DEBUG + [[ -n '' ]] 4639 DEBUG + '[' 7.3 '!=' 7.3 ']' 4641 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=1 4642 DEBUG + set +o xtrace 4800 DEBUG + set +o xtrace 4828 DEBUG + echo '! Helper used in legacy mode !' 4829 DEBUG + set +x 4834 DEBUG + echo '[##########++........] > Removing dependencies...' 4834 DEBUG + set -o xtrace 4835 DEBUG + ynh_remove_app_dependencies 4835 DEBUG + local dep_app=digiwords 4836 DEBUG + local current_dependencies= 4836 DEBUG + ynh_package_is_installed --package=digiwords-ynh-deps 4837 DEBUG + local legacy_args=p 4837 DEBUG + args_array=([p]=package=) 4838 DEBUG + local -A args_array 4838 DEBUG + local package 4839 DEBUG + ynh_handle_getopts_args --package=digiwords-ynh-deps 4840 DEBUG + set +o xtrace 4840 INFO [##########++........] > Removing dependencies... 4871 DEBUG + ynh_wait_dpkg_free 4872 DEBUG + local try 4873 DEBUG + set +o xtrace 6308 DEBUG + return 0 6308 DEBUG + grep --count 'ok installed' 6311 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 6335 DEBUG ++ dpkg-query --show '--showformat=${Depends}' digiwords-ynh-deps 6356 DEBUG + current_dependencies='php-sqlite3 ' 6356 DEBUG + current_dependencies='php-sqlite3 ' 6357 DEBUG + ynh_package_autopurge digiwords-ynh-deps 6357 DEBUG + ynh_apt autoremove --purge digiwords-ynh-deps 6358 DEBUG + ynh_wait_dpkg_free 6358 DEBUG + local try 6358 DEBUG + set +o xtrace 7799 DEBUG + return 0 7799 DEBUG + LC_ALL=C 7800 DEBUG + DEBIAN_FRONTEND=noninteractive 7800 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge digiwords-ynh-deps 7848 DEBUG Reading package lists... 8290 DEBUG Building dependency tree... 8292 DEBUG Reading state information... 8841 DEBUG The following packages will be REMOVED: 8844 DEBUG  digiwords-ynh-deps* 9416 DEBUG 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded. 9417 DEBUG After this operation, 9216 B disk space will be freed. 9491 DEBUG (Reading database ... 42406 files and directories currently installed.) 9495 DEBUG Removing digiwords-ynh-deps (0.3.3~ynh1) ... 9920 DEBUG ++ echo php-sqlite3 9921 DEBUG ++ tr - ' ' 9923 DEBUG ++ grep -o -E '\' 9925 DEBUG ++ sed s/php//g 9929 DEBUG ++ sort 9930 DEBUG ++ uniq 9943 DEBUG + local specific_php_version= 9944 DEBUG + [[ '' != \7\.\3 ]] 9945 DEBUG + [[ -n '' ]] 9946 DEBUG + ynh_script_progression '--message=Removing various files...' --weight=1 9948 DEBUG + set +o xtrace 10091 DEBUG + set +o xtrace 10124 DEBUG + echo '! Helper used in legacy mode !' 10125 DEBUG + set +x 10135 INFO [############+++.....] > Removing various files... 10139 DEBUG + echo '[############+++.....] > Removing various files...' 10140 DEBUG + set -o xtrace 10140 DEBUG + ynh_secure_remove --file=/var/log/digiwords 10141 DEBUG + local legacy_args=f 10141 DEBUG + args_array=([f]=file=) 10142 DEBUG + local -A args_array 10142 DEBUG + local file 10142 DEBUG + ynh_handle_getopts_args --file=/var/log/digiwords 10153 DEBUG + set +o xtrace 10173 DEBUG + set +o xtrace 10196 DEBUG + echo ''\''/var/log/digiwords'\'' wasn'\''t deleted because it doesn'\''t exist.' 10197 DEBUG + set -o xtrace 10200 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1 10205 DEBUG + set +o xtrace 10209 INFO '/var/log/digiwords' wasn't deleted because it doesn't exist. 10336 DEBUG + set +o xtrace 10361 DEBUG + echo '! Helper used in legacy mode !' 10362 DEBUG + set +x 10367 DEBUG + echo '[###############++...] > Removing the dedicated system user...' 10368 INFO [###############++...] > Removing the dedicated system user... 10373 DEBUG + set -o xtrace 10375 DEBUG + ynh_system_user_delete --username=digiwords 10375 DEBUG + local legacy_args=u 10376 DEBUG + args_array=([u]=username=) 10376 DEBUG + local -A args_array 10377 DEBUG + local username 10378 DEBUG + ynh_handle_getopts_args --username=digiwords 10379 DEBUG + set +o xtrace 10395 DEBUG + ynh_system_user_exists digiwords 10396 DEBUG + local legacy_args=u 10396 DEBUG + args_array=([u]=username=) 10396 DEBUG + local -A args_array 10397 DEBUG + local username 10397 DEBUG + ynh_handle_getopts_args digiwords 10398 DEBUG + set +o xtrace 10413 DEBUG + echo '! Helper used in legacy mode !' 10414 DEBUG + set +x 10419 DEBUG + getent passwd digiwords 10429 DEBUG + deluser digiwords 10589 DEBUG Removing user `digiwords' ... 10590 DEBUG Warning: group `digiwords' has no more members. 10733 DEBUG Done. 10738 DEBUG + ynh_system_group_exists digiwords 10742 DEBUG + local legacy_args=g 10744 DEBUG + args_array=([g]=group=) 10744 DEBUG + local -A args_array 10746 DEBUG + local group 10748 DEBUG + ynh_handle_getopts_args digiwords 10748 DEBUG + set +o xtrace 10765 DEBUG + echo '! Helper used in legacy mode !' 10765 DEBUG + set +x 10775 DEBUG + getent group digiwords 10790 DEBUG + ynh_script_progression '--message=Removal of digiwords completed' --last 10791 DEBUG + set +o xtrace 10935 DEBUG + set +o xtrace 10966 DEBUG + echo '! Helper used in legacy mode !' 10967 DEBUG + set +x 10972 INFO [####################] > Removal of digiwords completed 10974 DEBUG + echo '[####################] > Removal of digiwords completed' 10975 DEBUG + set -o xtrace 11980 SUCCESS digiwords uninstalled 12068 DEBUG initializing ldap interface 12129 DEBUG Permission 'digiwords.main' deleted 12137 DEBUG To view the log of the operation 'Delete permission 'digiwords'', use the command 'yunohost log show 20220531-094231-permission_delete-digiwords' 12171 DEBUG The permission database has been resynchronized 12202 DEBUG SSOwat configuration regenerated 12227 DEBUG Checking that required services are up and running... 13144 DEBUG To view the log of the operation 'Remove the 'digiwords' app', use the command 'yunohost log show 20220531-094219-app_remove-digiwords' 13161 DEBUG action [4658.1] executed in 12.917s 13162 DEBUG lock has been released Return code: 0 Working time: 14 seconds (09:42:32) Remove successful.  > Validating that the app digiwords__2 can/can't be accessed with its URL... Running curl domain.tld 200;https://domain.tld/ Return code: 0 Working time: 0s (09:42:45) Return code: 0 Working time: 0s (09:42:49) HTTP code: 200 Test URL: domain.tld Real URL: https://domain.tld/ HTTP code: 200 Page title: Page extract: Running curl domain.tld/ Return code: 0 Working time: 0s (09:42:56) Return code: 0 Working time: 0s (09:42:59) HTTP code: Test URL: domain.tld/ Real URL: HTTP code: Page title: Page extract: --- SUCCESS --- Working time for this test: 4 minutes, 10 seconds (09:43:00)  ============================================ [Test 6/9] Backup/Restore ============================================  (Reusing existing snapshot snap_rootinstall) Loading snapshot snap_rootinstall ...  > Backup of the application... Running yunohost backup create -n Backup_test --apps digiwords 222 DEBUG initializing base actions map parser for cli 225 DEBUG loading actions map namespace 'yunohost' 228 DEBUG building parser... 235 DEBUG building parser took 0.007s 237 DEBUG acquiring lock... 263 DEBUG lock has been acquired 353 DEBUG loading python module yunohost.backup took 0.090s 354 DEBUG processing action [862.1]: yunohost.backup.create with args={'name': 'Backup_test', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['digiwords'], 'dry_run': False} 402 INFO Collecting files to be backed up for digiwords... 438 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_zmwhgvj6/scripts/backup" 7>&1']' 452 DEBUG + source ../settings/scripts/_common.sh 453 DEBUG ++ pkg_dependencies=php-sqlite3 453 DEBUG + source /usr/share/yunohost/helpers 455 DEBUG +++ set +o 457 DEBUG +++ grep xtrace 464 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 465 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 467 DEBUG ++ set +x 524 DEBUG + ynh_abort_if_errors 526 DEBUG + set -o errexit 526 DEBUG + set -o nounset 528 DEBUG + trap ynh_exit_properly EXIT 529 DEBUG + ynh_print_info '--message=Loading installation settings...' 530 DEBUG + local legacy_args=m 531 DEBUG + args_array=([m]=message=) 533 DEBUG + local -A args_array 533 DEBUG + local message 534 DEBUG + ynh_handle_getopts_args '--message=Loading installation settings...' 535 DEBUG + set +o xtrace 554 DEBUG + echo 'Loading installation settings...' 555 INFO Loading installation settings... 556 DEBUG + app=digiwords 558 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 559 DEBUG ++ local _globalapp=digiwords 560 DEBUG ++ local legacy_args=ak 561 DEBUG ++ args_array=([a]=app= [k]=key=) 561 DEBUG ++ local -A args_array 561 DEBUG ++ local app 562 DEBUG ++ local key 562 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 564 DEBUG ++ set +o xtrace 628 DEBUG ++ app=digiwords 629 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 629 DEBUG ++ ynh_app_setting get digiwords final_path 630 DEBUG ++ set +o xtrace 718 DEBUG + final_path=/var/www/digiwords 719 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 721 DEBUG ++ local _globalapp=digiwords 722 DEBUG ++ local legacy_args=ak 723 DEBUG ++ args_array=([a]=app= [k]=key=) 724 DEBUG ++ local -A args_array 725 DEBUG ++ local app 727 DEBUG ++ local key 728 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 728 DEBUG ++ set +o xtrace 782 DEBUG ++ app=digiwords 782 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 783 DEBUG ++ ynh_app_setting get digiwords domain 784 DEBUG ++ set +o xtrace 860 DEBUG + domain=sub.domain.tld 862 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 863 DEBUG ++ local _globalapp=digiwords 864 DEBUG ++ local legacy_args=ak 865 DEBUG ++ args_array=([a]=app= [k]=key=) 867 DEBUG ++ local -A args_array 868 DEBUG ++ local app 868 DEBUG ++ local key 869 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 869 DEBUG ++ set +o xtrace 927 DEBUG ++ app=digiwords 929 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 931 DEBUG ++ ynh_app_setting get digiwords db_name 933 DEBUG ++ set +o xtrace 1002 DEBUG + db_name= 1005 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 1009 DEBUG ++ local _globalapp=digiwords 1012 DEBUG ++ local legacy_args=ak 1014 DEBUG ++ args_array=([a]=app= [k]=key=) 1016 DEBUG ++ local -A args_array 1018 DEBUG ++ local app 1020 DEBUG ++ local key 1021 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 1022 DEBUG ++ set +o xtrace 1086 DEBUG ++ app=digiwords 1088 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 1090 DEBUG ++ ynh_app_setting get digiwords phpversion 1092 DEBUG ++ set +o xtrace 1182 DEBUG + phpversion=7.3 1185 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1186 DEBUG ++ local _globalapp=digiwords 1187 DEBUG ++ local legacy_args=ak 1188 DEBUG ++ args_array=([a]=app= [k]=key=) 1189 DEBUG ++ local -A args_array 1190 DEBUG ++ local app 1190 DEBUG ++ local key 1191 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1191 DEBUG ++ set +o xtrace 1253 DEBUG ++ app=digiwords 1255 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1257 DEBUG ++ ynh_app_setting get digiwords datadir 1259 DEBUG ++ set +o xtrace 1356 DEBUG + datadir= 1357 DEBUG + ynh_print_info '--message=Declaring files to be backed up...' 1357 DEBUG + local legacy_args=m 1357 DEBUG + args_array=([m]=message=) 1360 DEBUG + local -A args_array 1361 DEBUG + local message 1369 DEBUG + ynh_handle_getopts_args '--message=Declaring files to be backed up...' 1370 DEBUG + set +o xtrace 1430 INFO Declaring files to be backed up... 1434 DEBUG + echo 'Declaring files to be backed up...' 1435 DEBUG + ynh_backup --src_path=/var/www/digiwords 1443 DEBUG + local legacy_args=sdbm 1444 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 1445 DEBUG + local -A args_array 1445 DEBUG + local src_path 1445 DEBUG + local dest_path 1445 DEBUG + local is_big 1446 DEBUG + local not_mandatory 1446 DEBUG + ynh_handle_getopts_args --src_path=/var/www/digiwords 1446 DEBUG + set +o xtrace 1551 DEBUG + dest_path= 1552 DEBUG + is_big=0 1553 DEBUG + not_mandatory=0 1553 DEBUG + BACKUP_CORE_ONLY=0 1554 DEBUG + test -n digiwords 1556 DEBUG ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 1557 DEBUG ++ local _globalapp=digiwords 1560 DEBUG ++ local legacy_args=ak 1561 DEBUG ++ args_array=([a]=app= [k]=key=) 1562 DEBUG ++ local -A args_array 1562 DEBUG ++ local app 1563 DEBUG ++ local key 1563 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 1563 DEBUG ++ set +o xtrace 1625 DEBUG ++ app=digiwords 1627 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 1628 DEBUG ++ ynh_app_setting get digiwords do_not_backup_data 1629 DEBUG ++ set +o xtrace 1705 DEBUG + do_not_backup_data= 1706 DEBUG + '[' 0 -eq 1 ']' 1706 DEBUG + '[' '!' -e /var/www/digiwords ']' 1707 DEBUG ++ realpath /var/www/digiwords 1709 DEBUG + src_path=/var/www/digiwords 1710 DEBUG + [[ -z '' ]] 1711 DEBUG + dest_path=var/www/digiwords 1712 DEBUG + [[ -e var/www/digiwords ]] 1713 DEBUG + local rel_dir=/apps/digiwords/backup 1713 DEBUG + rel_dir=/apps/digiwords/backup/ 1714 DEBUG + dest_path=/apps/digiwords/backup/var/www/digiwords 1715 DEBUG + dest_path=apps/digiwords/backup/var/www/digiwords 1715 DEBUG ++ echo /var/www/digiwords 1721 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1722 DEBUG + local src=/var/www/digiwords 1728 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1730 DEBUG ++ echo apps/digiwords/backup/var/www/digiwords 1732 DEBUG + local dest=apps/digiwords/backup/var/www/digiwords 1732 DEBUG + echo '"/var/www/digiwords","apps/digiwords/backup/var/www/digiwords"' 1733 DEBUG ++ dirname /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords 1736 DEBUG + mkdir --parents /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www 1740 DEBUG + ynh_backup --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1741 DEBUG + local legacy_args=sdbm 1742 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 1742 DEBUG + local -A args_array 1743 DEBUG + local src_path 1744 DEBUG + local dest_path 1745 DEBUG + local is_big 1746 DEBUG + local not_mandatory 1746 DEBUG + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1747 DEBUG + set +o xtrace 1820 DEBUG + dest_path= 1821 DEBUG + is_big=0 1822 DEBUG + not_mandatory=0 1823 DEBUG + BACKUP_CORE_ONLY=0 1823 DEBUG + test -n digiwords 1824 DEBUG ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 1826 DEBUG ++ local _globalapp=digiwords 1827 DEBUG ++ local legacy_args=ak 1829 DEBUG ++ args_array=([a]=app= [k]=key=) 1830 DEBUG ++ local -A args_array 1831 DEBUG ++ local app 1832 DEBUG ++ local key 1833 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 1834 DEBUG ++ set +o xtrace 1896 DEBUG ++ app=digiwords 1897 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 1899 DEBUG ++ ynh_app_setting get digiwords do_not_backup_data 1900 DEBUG ++ set +o xtrace 1982 DEBUG + do_not_backup_data= 1983 DEBUG + '[' 0 -eq 1 ']' 1983 DEBUG + '[' '!' -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 1983 DEBUG ++ realpath /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1986 DEBUG + src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1986 DEBUG + [[ -z '' ]] 1986 DEBUG + dest_path=etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1987 DEBUG + [[ -e etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 1987 DEBUG + local rel_dir=/apps/digiwords/backup 1988 DEBUG + rel_dir=/apps/digiwords/backup/ 1989 DEBUG + dest_path=/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1989 DEBUG + dest_path=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1989 DEBUG ++ echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1990 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1999 DEBUG + local src=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2002 DEBUG ++ echo apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2005 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 2010 DEBUG + local dest=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2015 DEBUG + echo '"/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf","apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf"' 2015 DEBUG ++ dirname /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2016 DEBUG + mkdir --parents /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d 2021 DEBUG + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 2023 DEBUG + local legacy_args=sdbm 2024 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 2024 DEBUG + local -A args_array 2025 DEBUG + local src_path 2026 DEBUG + local dest_path 2026 DEBUG + local is_big 2027 DEBUG + local not_mandatory 2028 DEBUG + ynh_handle_getopts_args --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 2029 DEBUG + set +o xtrace 2095 DEBUG + dest_path= 2096 DEBUG + is_big=0 2098 DEBUG + not_mandatory=0 2099 DEBUG + BACKUP_CORE_ONLY=0 2100 DEBUG + test -n digiwords 2102 DEBUG ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 2104 DEBUG ++ local _globalapp=digiwords 2105 DEBUG ++ local legacy_args=ak 2106 DEBUG ++ args_array=([a]=app= [k]=key=) 2106 DEBUG ++ local -A args_array 2107 DEBUG ++ local app 2108 DEBUG ++ local key 2109 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 2109 DEBUG ++ set +o xtrace 2171 DEBUG ++ app=digiwords 2171 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2172 DEBUG ++ ynh_app_setting get digiwords do_not_backup_data 2173 DEBUG ++ set +o xtrace 2260 DEBUG + do_not_backup_data= 2261 DEBUG + '[' 0 -eq 1 ']' 2261 DEBUG + '[' '!' -e /etc/php/7.3/fpm/pool.d/digiwords.conf ']' 2263 DEBUG ++ realpath /etc/php/7.3/fpm/pool.d/digiwords.conf 2269 DEBUG + src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 2271 DEBUG + [[ -z '' ]] 2272 DEBUG + dest_path=etc/php/7.3/fpm/pool.d/digiwords.conf 2273 DEBUG + [[ -e etc/php/7.3/fpm/pool.d/digiwords.conf ]] 2274 DEBUG + local rel_dir=/apps/digiwords/backup 2274 DEBUG + rel_dir=/apps/digiwords/backup/ 2275 DEBUG + dest_path=/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2275 DEBUG + dest_path=apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2276 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 2277 DEBUG ++ echo /etc/php/7.3/fpm/pool.d/digiwords.conf 2281 DEBUG + local src=/etc/php/7.3/fpm/pool.d/digiwords.conf 2285 DEBUG ++ echo apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2286 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 2292 DEBUG + local dest=apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2292 DEBUG + echo '"/etc/php/7.3/fpm/pool.d/digiwords.conf","apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf"' 2296 DEBUG ++ dirname /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2297 DEBUG + mkdir --parents /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d 2303 DEBUG + ynh_print_info '--message=Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 2306 DEBUG + local legacy_args=m 2307 DEBUG + args_array=([m]=message=) 2308 DEBUG + local -A args_array 2309 DEBUG + local message 2310 DEBUG + ynh_handle_getopts_args '--message=Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 2311 DEBUG + set +o xtrace 2327 INFO Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive). 2335 DEBUG + echo 'Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 2338 DEBUG + ynh_exit_properly 2339 DEBUG + local exit_code=0 2339 DEBUG + rm -rf /var/cache/yunohost/download/ 2340 DEBUG + '[' 0 -eq 0 ']' 2341 DEBUG + exit 0 3346 DEBUG Backup permission for digiwords 3457 DEBUG initializing ldap interface 3567 INFO Creating a backup archive from the collected files... 3569 INFO The archive will contain about 3.4MiB of data. 3569 DEBUG Creating the backup TAR archive... 3693 DEBUG TAR backup archive created 3694 SUCCESS Backup created 3699 DEBUG To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20220531-094418-backup_create' 3713 DEBUG action [862.1] executed in 3.358s 3714 DEBUG lock has been released Return code: 0 Working time: 4 seconds (09:44:22)  > Removing the app... Running yunohost app remove digiwords 167 DEBUG initializing base actions map parser for cli 169 DEBUG loading actions map namespace 'yunohost' 177 DEBUG building parser... 205 DEBUG building parser took 0.028s 207 DEBUG acquiring lock... 232 DEBUG lock has been acquired 254 DEBUG loading python module yunohost.app took 0.022s 254 DEBUG processing action [1304.1]: yunohost.app.remove with args={'app': 'digiwords', 'purge': False} 290 INFO Removing digiwords... 449 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 461 DEBUG + source _common.sh 462 DEBUG ++ pkg_dependencies=php-sqlite3 464 DEBUG + source /usr/share/yunohost/helpers 465 DEBUG +++ set +o 466 DEBUG +++ grep xtrace 468 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 469 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 471 DEBUG ++ set +x 518 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 519 DEBUG + set +o xtrace 617 DEBUG + set +o xtrace 673 DEBUG + echo '! Helper used in legacy mode !' 673 DEBUG + set +x 677 DEBUG + echo '[++..................] > Loading installation settings...' 679 INFO [++..................] > Loading installation settings... 682 DEBUG + set -o xtrace 682 DEBUG + app=digiwords 685 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 687 DEBUG ++ local _globalapp=digiwords 688 DEBUG ++ local legacy_args=ak 689 DEBUG ++ args_array=([a]=app= [k]=key=) 690 DEBUG ++ local -A args_array 692 DEBUG ++ local app 693 DEBUG ++ local key 694 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 695 DEBUG ++ set +o xtrace 780 DEBUG ++ app=digiwords 781 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 782 DEBUG ++ ynh_app_setting get digiwords domain 782 DEBUG ++ set +o xtrace 882 DEBUG + domain=sub.domain.tld 885 DEBUG ++ ynh_app_setting_get --app=digiwords --key=port 885 DEBUG ++ local _globalapp=digiwords 886 DEBUG ++ local legacy_args=ak 887 DEBUG ++ args_array=([a]=app= [k]=key=) 887 DEBUG ++ local -A args_array 888 DEBUG ++ local app 888 DEBUG ++ local key 890 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=port 891 DEBUG ++ set +o xtrace 951 DEBUG ++ app=digiwords 951 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]] 952 DEBUG ++ ynh_app_setting get digiwords port 953 DEBUG ++ set +o xtrace 1054 DEBUG + port= 1055 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1056 DEBUG ++ local _globalapp=digiwords 1057 DEBUG ++ local legacy_args=ak 1057 DEBUG ++ args_array=([a]=app= [k]=key=) 1057 DEBUG ++ local -A args_array 1058 DEBUG ++ local app 1059 DEBUG ++ local key 1059 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1060 DEBUG ++ set +o xtrace 1134 DEBUG ++ app=digiwords 1137 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1140 DEBUG ++ ynh_app_setting get digiwords db_name 1141 DEBUG ++ set +o xtrace 1234 DEBUG + db_name= 1234 DEBUG + db_user= 1236 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1237 DEBUG ++ local _globalapp=digiwords 1238 DEBUG ++ local legacy_args=ak 1239 DEBUG ++ args_array=([a]=app= [k]=key=) 1240 DEBUG ++ local -A args_array 1240 DEBUG ++ local app 1241 DEBUG ++ local key 1244 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1245 DEBUG ++ set +o xtrace 1291 DEBUG ++ app=digiwords 1291 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1292 DEBUG ++ ynh_app_setting get digiwords final_path 1292 DEBUG ++ set +o xtrace 1393 DEBUG + final_path=/var/www/digiwords 1395 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1395 DEBUG ++ local _globalapp=digiwords 1396 DEBUG ++ local legacy_args=ak 1397 DEBUG ++ args_array=([a]=app= [k]=key=) 1398 DEBUG ++ local -A args_array 1398 DEBUG ++ local app 1398 DEBUG ++ local key 1399 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1399 DEBUG ++ set +o xtrace 1447 DEBUG ++ app=digiwords 1448 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1449 DEBUG ++ ynh_app_setting get digiwords datadir 1450 DEBUG ++ set +o xtrace 1533 DEBUG + datadir= 1533 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=1 1534 DEBUG + set +o xtrace 1672 DEBUG + set +o xtrace 1698 DEBUG + echo '! Helper used in legacy mode !' 1698 DEBUG + set +x 1703 DEBUG + echo '[##+++...............] > Removing app main directory...' 1704 DEBUG + set -o xtrace 1705 DEBUG + ynh_secure_remove --file=/var/www/digiwords 1705 DEBUG + local legacy_args=f 1705 DEBUG + args_array=([f]=file=) 1706 DEBUG + local -A args_array 1706 DEBUG + local file 1707 DEBUG + ynh_handle_getopts_args --file=/var/www/digiwords 1708 DEBUG + set +o xtrace 1708 INFO [##+++...............] > Removing app main directory... 1734 DEBUG + set +o xtrace 1765 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1 1765 DEBUG + set +o xtrace 1890 DEBUG + set +o xtrace 1919 DEBUG + echo '! Helper used in legacy mode !' 1921 DEBUG + set +x 1924 DEBUG + echo '[#####++.............] > Removing NGINX web server configuration...' 1925 DEBUG + set -o xtrace 1926 DEBUG + ynh_remove_nginx_config 1926 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1927 DEBUG + local legacy_args=f 1927 DEBUG + args_array=([f]=file=) 1927 DEBUG + local -A args_array 1930 DEBUG + local file 1930 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1932 DEBUG + set +o xtrace 1933 INFO [#####++.............] > Removing NGINX web server configuration... 1956 DEBUG + set +o xtrace 1977 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 1978 DEBUG + local legacy_args=nalpte 1979 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 1980 DEBUG + local -A args_array 1980 DEBUG + local service_name 1981 DEBUG + local action 1981 DEBUG + local line_match 1981 DEBUG + local length 1982 DEBUG + local log_path 1982 DEBUG + local timeout 1983 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 1984 DEBUG + set +o xtrace 2187 DEBUG + service_name=nginx 2187 DEBUG + action=reload 2188 DEBUG + line_match= 2189 DEBUG + length=20 2189 DEBUG + log_path=/var/log/nginx/nginx.log 2190 DEBUG + timeout=300 2190 DEBUG + '[' reload == stop ']' 2190 DEBUG + [[ -n '' ]] 2190 DEBUG + '[' reload == reload ']' 2191 DEBUG + action=reload-or-restart 2191 DEBUG + systemctl reload-or-restart nginx 2271 DEBUG + [[ -n '' ]] 2276 DEBUG + ynh_script_progression '--message=Removing PHP-FPM configuration...' --weight=1 2277 DEBUG + set +o xtrace 2424 DEBUG + set +o xtrace 2475 DEBUG + echo '! Helper used in legacy mode !' 2484 DEBUG + set +x 2487 DEBUG + echo '[#######+++..........] > Removing PHP-FPM configuration...' 2489 DEBUG + set -o xtrace 2489 INFO [#######+++..........] > Removing PHP-FPM configuration... 2489 DEBUG + ynh_remove_fpm_config 2490 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_config_dir 2490 DEBUG ++ local _globalapp=digiwords 2490 DEBUG ++ local legacy_args=ak 2490 DEBUG ++ args_array=([a]=app= [k]=key=) 2490 DEBUG ++ local -A args_array 2500 DEBUG ++ local app 2502 DEBUG ++ local key 2503 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir 2503 DEBUG ++ set +o xtrace 2584 DEBUG ++ app=digiwords 2585 DEBUG ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2586 DEBUG ++ ynh_app_setting get digiwords fpm_config_dir 2589 DEBUG ++ set +o xtrace 2681 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 2682 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_service 2683 DEBUG ++ local _globalapp=digiwords 2683 DEBUG ++ local legacy_args=ak 2684 DEBUG ++ args_array=([a]=app= [k]=key=) 2684 DEBUG ++ local -A args_array 2685 DEBUG ++ local app 2685 DEBUG ++ local key 2686 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_service 2693 DEBUG ++ set +o xtrace 2762 DEBUG ++ app=digiwords 2762 DEBUG ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2764 DEBUG ++ ynh_app_setting get digiwords fpm_service 2765 DEBUG ++ set +o xtrace 2860 DEBUG + local fpm_service=php7.3-fpm 2872 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_dedicated_service 2873 DEBUG ++ local _globalapp=digiwords 2874 DEBUG ++ local legacy_args=ak 2880 DEBUG ++ args_array=([a]=app= [k]=key=) 2880 DEBUG ++ local -A args_array 2881 DEBUG ++ local app 2881 DEBUG ++ local key 2881 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service 2882 DEBUG ++ set +o xtrace 2971 DEBUG ++ app=digiwords 2972 DEBUG ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2974 DEBUG ++ ynh_app_setting get digiwords fpm_dedicated_service 2974 DEBUG ++ set +o xtrace 3070 DEBUG + local dedicated_service=0 3070 DEBUG + dedicated_service=0 3070 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 3074 DEBUG ++ local _globalapp=digiwords 3074 DEBUG ++ local legacy_args=ak 3074 DEBUG ++ args_array=([a]=app= [k]=key=) 3078 DEBUG ++ local -A args_array 3083 DEBUG ++ local app 3084 DEBUG ++ local key 3084 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 3085 DEBUG ++ set +o xtrace 3161 DEBUG ++ app=digiwords 3162 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 3162 DEBUG ++ ynh_app_setting get digiwords phpversion 3163 DEBUG ++ set +o xtrace 3242 DEBUG + local phpversion=7.3 3244 DEBUG + phpversion=7.3 3245 DEBUG + '[' -z /etc/php/7.3/fpm ']' 3246 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 3247 DEBUG + local legacy_args=f 3248 DEBUG + args_array=([f]=file=) 3250 DEBUG + local -A args_array 3250 DEBUG + local file 3251 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 3251 DEBUG + set +o xtrace 3272 DEBUG + set +o xtrace 3294 DEBUG + '[' -e /etc/php/7.3/fpm/conf.d/20-digiwords.ini ']' 3295 DEBUG + '[' 0 -eq 1 ']' 3295 DEBUG + ynh_package_is_installed --package=php7.3-fpm 3296 DEBUG + local legacy_args=p 3297 DEBUG + args_array=([p]=package=) 3301 DEBUG + local -A args_array 3301 DEBUG + local package 3302 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 3302 DEBUG + set +o xtrace 3322 DEBUG + ynh_wait_dpkg_free 3322 DEBUG + local try 3322 DEBUG + set +o xtrace 4719 DEBUG + return 0 4722 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 4724 DEBUG + grep --count 'ok installed' 4748 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 4749 DEBUG + local legacy_args=nalpte 4751 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 4752 DEBUG + local -A args_array 4753 DEBUG + local service_name 4755 DEBUG + local action 4756 DEBUG + local line_match 4756 DEBUG + local length 4757 DEBUG + local log_path 4758 DEBUG + local timeout 4758 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 4759 DEBUG + set +o xtrace 4936 DEBUG + service_name=php7.3-fpm 4937 DEBUG + action=reload 4938 DEBUG + line_match= 4939 DEBUG + length=20 4940 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 4941 DEBUG + timeout=300 4942 DEBUG + '[' reload == stop ']' 4943 DEBUG + [[ -n '' ]] 4943 DEBUG + '[' reload == reload ']' 4945 DEBUG + action=reload-or-restart 4949 DEBUG + systemctl reload-or-restart php7.3-fpm 4971 DEBUG + [[ -n '' ]] 4972 DEBUG + '[' 7.3 '!=' 7.3 ']' 4973 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=1 4974 DEBUG + set +o xtrace 5152 DEBUG + set +o xtrace 5189 DEBUG + echo '! Helper used in legacy mode !' 5189 DEBUG + set +x 5197 DEBUG + echo '[##########++........] > Removing dependencies...' 5198 DEBUG + set -o xtrace 5199 DEBUG + ynh_remove_app_dependencies 5200 DEBUG + local dep_app=digiwords 5201 DEBUG + local current_dependencies= 5202 DEBUG + ynh_package_is_installed --package=digiwords-ynh-deps 5203 DEBUG + local legacy_args=p 5204 DEBUG + args_array=([p]=package=) 5206 DEBUG + local -A args_array 5206 DEBUG + local package 5207 DEBUG + ynh_handle_getopts_args --package=digiwords-ynh-deps 5208 DEBUG + set +o xtrace 5208 INFO [##########++........] > Removing dependencies... 5233 DEBUG + ynh_wait_dpkg_free 5233 DEBUG + local try 5234 DEBUG + set +o xtrace 6838 DEBUG + return 0 6840 DEBUG + grep --count 'ok installed' 6841 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 6867 DEBUG ++ dpkg-query --show '--showformat=${Depends}' digiwords-ynh-deps 6901 DEBUG + current_dependencies='php-sqlite3 ' 6901 DEBUG + current_dependencies='php-sqlite3 ' 6902 DEBUG + ynh_package_autopurge digiwords-ynh-deps 6903 DEBUG + ynh_apt autoremove --purge digiwords-ynh-deps 6904 DEBUG + ynh_wait_dpkg_free 6904 DEBUG + local try 6905 DEBUG + set +o xtrace 8346 DEBUG + return 0 8346 DEBUG + LC_ALL=C 8346 DEBUG + DEBIAN_FRONTEND=noninteractive 8347 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge digiwords-ynh-deps 8393 DEBUG Reading package lists... 8790 DEBUG Building dependency tree... 8792 DEBUG Reading state information... 9276 DEBUG The following packages will be REMOVED: 9279 DEBUG  digiwords-ynh-deps* php-sqlite3* php7.3-sqlite3* 9829 DEBUG 0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded. 9831 DEBUG After this operation, 148 kB disk space will be freed. 9904 DEBUG (Reading database ... 42402 files and directories currently installed.) 9909 DEBUG Removing digiwords-ynh-deps (0.3.3~ynh1) ... 10026 DEBUG Removing php-sqlite3 (2:7.3+69) ... 10163 DEBUG Removing php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10573 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 11216 DEBUG (Reading database ... 42384 files and directories currently installed.) 11222 DEBUG Purging configuration files for php7.3-sqlite3 (7.3.31-1~deb10u1) ... 11303 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11381 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11594 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11679 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 12210 DEBUG ++ echo php-sqlite3 12212 DEBUG ++ uniq 12213 DEBUG ++ sort 12213 DEBUG ++ sed s/php//g 12214 DEBUG ++ grep -o -E '\' 12224 DEBUG ++ tr - ' ' 12231 DEBUG + local specific_php_version= 12232 DEBUG + [[ '' != \7\.\3 ]] 12233 DEBUG + [[ -n '' ]] 12234 DEBUG + ynh_script_progression '--message=Removing various files...' --weight=1 12236 DEBUG + set +o xtrace 12396 DEBUG + set +o xtrace 12430 DEBUG + echo '! Helper used in legacy mode !' 12431 DEBUG + set +x 12434 DEBUG + echo '[############+++.....] > Removing various files...' 12436 DEBUG + set -o xtrace 12437 DEBUG + ynh_secure_remove --file=/var/log/digiwords 12439 INFO [############+++.....] > Removing various files... 12440 DEBUG + local legacy_args=f 12444 DEBUG + args_array=([f]=file=) 12444 DEBUG + local -A args_array 12444 DEBUG + local file 12445 DEBUG + ynh_handle_getopts_args --file=/var/log/digiwords 12446 DEBUG + set +o xtrace 12469 DEBUG + set +o xtrace 12502 INFO '/var/log/digiwords' wasn't deleted because it doesn't exist. 12508 DEBUG + echo ''\''/var/log/digiwords'\'' wasn'\''t deleted because it doesn'\''t exist.' 12510 DEBUG + set -o xtrace 12511 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1 12512 DEBUG + set +o xtrace 12637 DEBUG + set +o xtrace 12664 DEBUG + echo '! Helper used in legacy mode !' 12664 DEBUG + set +x 12670 INFO [###############++...] > Removing the dedicated system user... 12672 DEBUG + echo '[###############++...] > Removing the dedicated system user...' 12672 DEBUG + set -o xtrace 12673 DEBUG + ynh_system_user_delete --username=digiwords 12673 DEBUG + local legacy_args=u 12673 DEBUG + args_array=([u]=username=) 12674 DEBUG + local -A args_array 12675 DEBUG + local username 12675 DEBUG + ynh_handle_getopts_args --username=digiwords 12676 DEBUG + set +o xtrace 12699 DEBUG + ynh_system_user_exists digiwords 12700 DEBUG + local legacy_args=u 12700 DEBUG + args_array=([u]=username=) 12701 DEBUG + local -A args_array 12703 DEBUG + local username 12704 DEBUG + ynh_handle_getopts_args digiwords 12704 DEBUG + set +o xtrace 12723 DEBUG + echo '! Helper used in legacy mode !' 12724 DEBUG + set +x 12730 DEBUG + getent passwd digiwords 12735 DEBUG + deluser digiwords 12871 DEBUG Removing user `digiwords' ... 12873 DEBUG Warning: group `digiwords' has no more members. 12994 DEBUG Done. 12998 DEBUG + ynh_system_group_exists digiwords 13000 DEBUG + local legacy_args=g 13001 DEBUG + args_array=([g]=group=) 13001 DEBUG + local -A args_array 13002 DEBUG + local group 13002 DEBUG + ynh_handle_getopts_args digiwords 13002 DEBUG + set +o xtrace 13018 DEBUG + echo '! Helper used in legacy mode !' 13019 DEBUG + set +x 13025 DEBUG + getent group digiwords 13039 DEBUG + ynh_script_progression '--message=Removal of digiwords completed' --last 13040 DEBUG + set +o xtrace 13161 DEBUG + set +o xtrace 13202 DEBUG + echo '! Helper used in legacy mode !' 13203 DEBUG + set +x 13212 DEBUG + echo '[####################] > Removal of digiwords completed' 13214 INFO [####################] > Removal of digiwords completed 13216 DEBUG + set -o xtrace 14222 SUCCESS digiwords uninstalled 14317 DEBUG initializing ldap interface 14374 DEBUG Permission 'digiwords.main' deleted 14379 DEBUG To view the log of the operation 'Delete permission 'digiwords'', use the command 'yunohost log show 20220531-094452-permission_delete-digiwords' 14396 DEBUG The permission database has been resynchronized 14418 DEBUG SSOwat configuration regenerated 14443 DEBUG Checking that required services are up and running... 15439 DEBUG To view the log of the operation 'Remove the 'digiwords' app', use the command 'yunohost log show 20220531-094438-app_remove-digiwords' 15453 DEBUG action [1304.1] executed in 15.199s 15454 DEBUG lock has been released Return code: 0 Working time: 16 seconds (09:44:53) Remove successful.  > Restore after removing the application... Running yunohost backup restore Backup_test --force --apps digiwords 178 DEBUG initializing base actions map parser for cli 181 DEBUG loading actions map namespace 'yunohost' 184 DEBUG building parser... 189 DEBUG building parser took 0.005s 191 DEBUG acquiring lock... 212 DEBUG lock has been acquired 248 DEBUG loading python module yunohost.backup took 0.036s 248 DEBUG processing action [3049.1]: yunohost.backup.restore with args={'name': 'Backup_test', 'system': None, 'apps': ['digiwords'], 'force': True} 249 INFO Preparing archive for restoration... 250 DEBUG Extracting needed files from the archive... 330 DEBUG restoring from backup 'Backup_test' created on 2022-05-31 09:44:18 358 INFO Restoring digiwords... 587 DEBUG initializing ldap interface 679 DEBUG Permission 'digiwords.main' updated 701 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-094510-permission_url-digiwords' 745 DEBUG Permission 'digiwords.main' created 747 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-094510-permission_create-digiwords' 785 DEBUG The permission database has been resynchronized 817 DEBUG SSOwat configuration regenerated 841 DEBUG Loading migration 0016_php70_to_php73_pools... 844 DEBUG Loading migration 0020_ssh_sftp_permissions... 847 DEBUG Loading migration 0018_xtable_to_nftable... 849 DEBUG Loading migration 0015_migrate_to_buster... 851 DEBUG Loading migration 0019_extend_permissions_features... 852 DEBUG Loading migration 0017_postgresql_9p6_to_11... 893 DEBUG Restoring the app 'digiwords'... 929 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_wboj44nh/restore" 7>&1']' 945 DEBUG + source ../settings/scripts/_common.sh 948 DEBUG ++ pkg_dependencies=php-sqlite3 950 DEBUG + source /usr/share/yunohost/helpers 951 DEBUG +++ set +o 952 DEBUG +++ grep xtrace 955 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 957 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 958 DEBUG ++ set +x 991 DEBUG + ynh_abort_if_errors 993 DEBUG + set -o errexit 994 DEBUG + set -o nounset 995 DEBUG + trap ynh_exit_properly EXIT 996 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 998 DEBUG + set +o xtrace 1115 DEBUG + set +o xtrace 1184 DEBUG + echo '! Helper used in legacy mode !' 1189 DEBUG + set +x 1190 DEBUG + echo '[++..................] > Loading installation settings...' 1191 DEBUG + set -o xtrace 1193 DEBUG + app=digiwords 1194 INFO [++..................] > Loading installation settings... 1198 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 1200 DEBUG ++ local _globalapp=digiwords 1201 DEBUG ++ local legacy_args=ak 1205 DEBUG ++ args_array=([a]=app= [k]=key=) 1207 DEBUG ++ local -A args_array 1211 DEBUG ++ local app 1211 DEBUG ++ local key 1212 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 1213 DEBUG ++ set +o xtrace 1289 DEBUG ++ app=digiwords 1290 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 1291 DEBUG ++ ynh_app_setting get digiwords domain 1293 DEBUG ++ set +o xtrace 1374 DEBUG + domain=sub.domain.tld 1377 DEBUG ++ ynh_app_setting_get --app=digiwords --key=path 1378 DEBUG ++ local _globalapp=digiwords 1380 DEBUG ++ local legacy_args=ak 1381 DEBUG ++ args_array=([a]=app= [k]=key=) 1382 DEBUG ++ local -A args_array 1382 DEBUG ++ local app 1383 DEBUG ++ local key 1385 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=path 1389 DEBUG ++ set +o xtrace 1454 DEBUG ++ app=digiwords 1456 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]] 1457 DEBUG ++ ynh_app_setting get digiwords path 1458 DEBUG ++ set +o xtrace 1542 DEBUG + path_url=/ 1545 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1546 DEBUG ++ local _globalapp=digiwords 1547 DEBUG ++ local legacy_args=ak 1548 DEBUG ++ args_array=([a]=app= [k]=key=) 1550 DEBUG ++ local -A args_array 1551 DEBUG ++ local app 1552 DEBUG ++ local key 1554 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1556 DEBUG ++ set +o xtrace 1632 DEBUG ++ app=digiwords 1633 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1635 DEBUG ++ ynh_app_setting get digiwords final_path 1637 DEBUG ++ set +o xtrace 1783 DEBUG + final_path=/var/www/digiwords 1783 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1784 DEBUG ++ local _globalapp=digiwords 1784 DEBUG ++ local legacy_args=ak 1785 DEBUG ++ args_array=([a]=app= [k]=key=) 1787 DEBUG ++ local -A args_array 1788 DEBUG ++ local app 1794 DEBUG ++ local key 1796 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1800 DEBUG ++ set +o xtrace 1870 DEBUG ++ app=digiwords 1871 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1874 DEBUG ++ ynh_app_setting get digiwords db_name 1878 DEBUG ++ set +o xtrace 1990 DEBUG + db_name= 1991 DEBUG + db_user= 1992 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 1993 DEBUG ++ local _globalapp=digiwords 1995 DEBUG ++ local legacy_args=ak 1996 DEBUG ++ args_array=([a]=app= [k]=key=) 1996 DEBUG ++ local -A args_array 1997 DEBUG ++ local app 1998 DEBUG ++ local key 1998 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 1999 DEBUG ++ set +o xtrace 2088 DEBUG ++ app=digiwords 2088 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2089 DEBUG ++ ynh_app_setting get digiwords phpversion 2089 DEBUG ++ set +o xtrace 2161 DEBUG + phpversion=7.3 2162 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 2163 DEBUG ++ local _globalapp=digiwords 2165 DEBUG ++ local legacy_args=ak 2166 DEBUG ++ args_array=([a]=app= [k]=key=) 2166 DEBUG ++ local -A args_array 2166 DEBUG ++ local app 2166 DEBUG ++ local key 2167 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 2168 DEBUG ++ set +o xtrace 2256 DEBUG ++ app=digiwords 2257 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 2257 DEBUG ++ ynh_app_setting get digiwords datadir 2258 DEBUG ++ set +o xtrace 2361 DEBUG + datadir= 2362 DEBUG + ynh_script_progression '--message=Validating restoration parameters...' --weight=1 2363 DEBUG + set +o xtrace 2515 DEBUG + set +o xtrace 2560 DEBUG + echo '! Helper used in legacy mode !' 2561 DEBUG + set +x 2565 DEBUG + echo '[##++................] > Validating restoration parameters...' 2567 INFO [##++................] > Validating restoration parameters... 2567 DEBUG + set -o xtrace 2568 DEBUG + test '!' -d /var/www/digiwords 2568 DEBUG + ynh_script_progression '--message=Restoring the NGINX web server configuration...' --weight=1 2569 DEBUG + set +o xtrace 2714 DEBUG + set +o xtrace 2737 DEBUG + echo '! Helper used in legacy mode !' 2739 DEBUG + set +x 2743 DEBUG + echo '[####++..............] > Restoring the NGINX web server configuration...' 2744 INFO [####++..............] > Restoring the NGINX web server configuration... 2746 DEBUG + set -o xtrace 2747 DEBUG + ynh_restore_file --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2748 DEBUG + local legacy_args=odm 2749 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 2750 DEBUG + local -A args_array 2751 DEBUG + local origin_path 2751 DEBUG + local dest_path 2752 DEBUG + local not_mandatory 2752 DEBUG + ynh_handle_getopts_args --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2753 DEBUG + set +o xtrace 2827 DEBUG + origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2828 DEBUG + dest_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2829 DEBUG + not_mandatory=0 2829 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2830 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 2830 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 2831 DEBUG + [[ -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 2831 DEBUG ++ dirname /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2835 DEBUG + mkdir --parents /etc/nginx/conf.d/sub.domain.tld.d 2838 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 2850 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2858 DEBUG + ynh_script_progression '--message=Recreating the dedicated system user...' --weight=1 2859 DEBUG + set +o xtrace 2998 DEBUG + set +o xtrace 3026 DEBUG + echo '! Helper used in legacy mode !' 3027 DEBUG + set +x 3031 INFO [######++............] > Recreating the dedicated system user... 3031 DEBUG + echo '[######++............] > Recreating the dedicated system user...' 3031 DEBUG + set -o xtrace 3032 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 3032 DEBUG + local legacy_args=uhs 3032 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 3032 DEBUG + local -A args_array 3032 DEBUG + local username 3032 DEBUG + local home_dir 3033 DEBUG + local use_shell 3033 DEBUG + local groups 3033 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 3033 DEBUG + set +o xtrace 3182 DEBUG + use_shell=0 3183 DEBUG + home_dir=/var/www/digiwords 3184 DEBUG + groups= 3185 DEBUG + ynh_system_user_exists digiwords 3186 DEBUG + local legacy_args=u 3187 DEBUG + args_array=([u]=username=) 3188 DEBUG + local -A args_array 3188 DEBUG + local username 3188 DEBUG + ynh_handle_getopts_args digiwords 3190 DEBUG + set +o xtrace 3207 DEBUG + echo '! Helper used in legacy mode !' 3207 DEBUG + set +x 3210 DEBUG + getent passwd digiwords 3225 DEBUG + '[' -n /var/www/digiwords ']' 3225 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 3225 DEBUG + '[' 0 -eq 1 ']' 3226 DEBUG + local 'shell=--shell /usr/sbin/nologin' 3226 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 3337 DEBUG + local group 3338 DEBUG + ynh_script_progression '--message=Restoring the app main directory...' --weight=1 3340 DEBUG + set +o xtrace 3466 DEBUG + set +o xtrace 3497 DEBUG + echo '! Helper used in legacy mode !' 3498 DEBUG + set +x 3503 DEBUG + echo '[########+++.........] > Restoring the app main directory...' 3504 DEBUG + set -o xtrace 3504 DEBUG + ynh_restore_file --origin_path=/var/www/digiwords 3505 DEBUG + local legacy_args=odm 3507 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3507 INFO [########+++.........] > Restoring the app main directory... 3508 DEBUG + local -A args_array 3509 DEBUG + local origin_path 3509 DEBUG + local dest_path 3509 DEBUG + local not_mandatory 3510 DEBUG + ynh_handle_getopts_args --origin_path=/var/www/digiwords 3510 DEBUG + set +o xtrace 3579 DEBUG + origin_path=/var/www/digiwords 3580 DEBUG + dest_path=/var/www/digiwords 3588 DEBUG + not_mandatory=0 3592 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords 3595 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords ']' 3596 DEBUG + [[ -e /var/www/digiwords ]] 3596 DEBUG ++ dirname /var/www/digiwords 3598 DEBUG + mkdir --parents /var/www 3599 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3600 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords /var/www/digiwords 3604 DEBUG + chmod 750 /var/www/digiwords 3609 DEBUG + chmod -R o-rwx /var/www/digiwords 3616 DEBUG + chown -R digiwords:www-data /var/www/digiwords 3629 DEBUG + ynh_script_progression '--message=Restoring the PHP-FPM configuration...' --weight=1 3630 DEBUG + set +o xtrace 3805 DEBUG + set +o xtrace 3842 DEBUG + echo '! Helper used in legacy mode !' 3843 DEBUG + set +x 3847 INFO [###########++.......] > Restoring the PHP-FPM configuration... 3847 DEBUG + echo '[###########++.......] > Restoring the PHP-FPM configuration...' 3848 DEBUG + set -o xtrace 3849 DEBUG + ynh_restore_file --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3849 DEBUG + local legacy_args=odm 3849 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3849 DEBUG + local -A args_array 3850 DEBUG + local origin_path 3850 DEBUG + local dest_path 3850 DEBUG + local not_mandatory 3850 DEBUG + ynh_handle_getopts_args --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3850 DEBUG + set +o xtrace 3913 DEBUG + origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3915 DEBUG + dest_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3916 DEBUG + not_mandatory=0 3917 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 3918 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 3919 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 3919 DEBUG + [[ -e /etc/php/7.3/fpm/pool.d/digiwords.conf ]] 3920 DEBUG ++ dirname /etc/php/7.3/fpm/pool.d/digiwords.conf 3924 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 3926 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3930 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 3934 DEBUG + ynh_script_progression '--message=Reinstalling dependencies...' --weight=1 3934 DEBUG + set +o xtrace 4055 DEBUG + set +o xtrace 4086 DEBUG + echo '! Helper used in legacy mode !' 4087 DEBUG + set +x 4093 INFO [#############++.....] > Reinstalling dependencies... 4094 DEBUG + echo '[#############++.....] > Reinstalling dependencies...' 4095 DEBUG + set -o xtrace 4096 DEBUG + ynh_install_app_dependencies php-sqlite3 4096 DEBUG + local dependencies=php-sqlite3 4098 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 4099 DEBUG ++ echo php-sqlite3 4103 DEBUG + dependencies=php-sqlite3 4104 DEBUG + local dependencies=php-sqlite3 4105 DEBUG + local manifest_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 4106 DEBUG ++ jq -r .version /home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 4118 DEBUG + local version=0.3.3~ynh1 4119 DEBUG + '[' -z 0.3.3~ynh1 ']' 4120 DEBUG + '[' 0.3.3~ynh1 == null ']' 4121 DEBUG + local dep_app=digiwords 4122 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 4122 DEBUG ++ echo php-sqlite3 4127 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 4128 DEBUG ++ sort -u 4133 DEBUG + local specific_php_version= 4133 DEBUG + [[ '' != \7\.\3 ]] 4134 DEBUG + [[ -n '' ]] 4134 DEBUG + [[ true == \t\r\u\e ]] 4135 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 4135 DEBUG + grep --quiet php 4149 DEBUG + dpkg --list 4150 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 4151 DEBUG + grep php7.0 4184 DEBUG + cat 4188 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 4188 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 4195 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 4196 DEBUG ++ cut '--delimiter= ' --fields=2 4204 DEBUG + local pkgname=digiwords-ynh-deps 4208 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 4209 DEBUG ++ cut '--delimiter= ' --fields=2 4218 DEBUG + local pkgversion=0.3.3~ynh1 4219 DEBUG + [[ -z digiwords-ynh-deps ]] 4221 DEBUG + [[ -z 0.3.3~ynh1 ]] 4222 DEBUG + ynh_package_update 4223 DEBUG + ynh_apt update 4224 DEBUG + ynh_wait_dpkg_free 4224 DEBUG + local try 4226 DEBUG + set +o xtrace 5706 DEBUG + return 0 5707 DEBUG + LC_ALL=C 5707 DEBUG + DEBIAN_FRONTEND=noninteractive 5707 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5835 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5835 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5837 DEBUG Hit:3 http://deb.debian.org/debian buster-updates InRelease 5845 DEBUG Hit:4 http://deb.debian.org/debian-security buster/updates InRelease 8407 DEBUG Reading package lists... 8450 DEBUG ++ mktemp --directory 8454 DEBUG + local TMPDIR=/tmp/tmp.nXQCEeLO0r 8455 DEBUG + echo 10 8457 DEBUG + ynh_wait_dpkg_free 8458 DEBUG + local try 8458 DEBUG + set +o xtrace 9927 DEBUG + return 0 9928 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.nXQCEeLO0r/control 9935 DEBUG + cd /tmp/tmp.nXQCEeLO0r 9936 DEBUG + LC_ALL=C 9937 DEBUG + equivs-build ./control 12016 DEBUG + LC_ALL=C 12016 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 12017 DEBUG + tee ./dpkg_log 12086 DEBUG Selecting previously unselected package digiwords-ynh-deps. 12128 DEBUG (Reading database ... 42385 files and directories currently installed.) 12135 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 12154 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 12227 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 12229 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 12230 DEBUG  Package php-sqlite3 is not installed. 12230 DEBUG  12231 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 12302 DEBUG + ynh_package_install --fix-broken 12304 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 12305 DEBUG + ynh_wait_dpkg_free 12306 DEBUG + local try 12307 DEBUG + set +o xtrace 13738 DEBUG + return 0 13740 DEBUG + LC_ALL=C 13741 DEBUG + DEBIAN_FRONTEND=noninteractive 13742 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13943 DEBUG Reading package lists... 14390 DEBUG Building dependency tree... 14391 DEBUG Reading state information... 14647 DEBUG Correcting dependencies... Done 15102 DEBUG The following additional packages will be installed: 15110 DEBUG  php-sqlite3 php7.3-sqlite3 15142 DEBUG The following NEW packages will be installed: 15143 DEBUG  php-sqlite3 php7.3-sqlite3 15748 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 15749 DEBUG Need to get 0 B/32.2 kB of archives. 15750 DEBUG After this operation, 139 kB of additional disk space will be used. 15916 DEBUG Selecting previously unselected package php7.3-sqlite3. 15964 DEBUG (Reading database ... 42389 files and directories currently installed.) 15969 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 16001 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 16135 DEBUG Selecting previously unselected package php-sqlite3. 16148 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 16167 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 16294 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 16329 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16582 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16695 DEBUG  16698 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 16824 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17115 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17373 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17474 DEBUG  17479 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 17587 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17857 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 17917 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 18690 DEBUG + [[ -n /tmp/tmp.nXQCEeLO0r ]] 18691 DEBUG + rm --recursive --force /tmp/tmp.nXQCEeLO0r 18695 DEBUG + ynh_package_is_installed digiwords-ynh-deps 18696 DEBUG + local legacy_args=p 18697 DEBUG + args_array=([p]=package=) 18697 DEBUG + local -A args_array 18698 DEBUG + local package 18698 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 18698 DEBUG + set +o xtrace 18709 DEBUG + echo '! Helper used in legacy mode !' 18709 DEBUG + set +x 18711 DEBUG + ynh_wait_dpkg_free 18712 DEBUG + local try 18713 DEBUG + set +o xtrace 20197 DEBUG + return 0 20198 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 20200 DEBUG + grep --count 'ok installed' 20227 DEBUG + rm /tmp/digiwords-ynh-deps.control 20230 DEBUG + [[ -n '' ]] 20232 DEBUG + grep --quiet php 20238 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 20239 DEBUG + local _globalapp=digiwords 20240 DEBUG + local legacy_args=akv 20241 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20242 DEBUG + local -A args_array 20243 DEBUG + local app 20243 DEBUG + local key 20244 DEBUG + local value 20245 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 20246 DEBUG + set +o xtrace 20354 DEBUG + app=digiwords 20355 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 20357 DEBUG + ynh_app_setting set digiwords phpversion 7.3 20358 DEBUG + set +o xtrace 20445 DEBUG + ynh_script_progression '--message=Reloading NGINX web server and PHP-FPM...' --weight=1 20446 DEBUG + set +o xtrace 20605 DEBUG + set +o xtrace 20633 DEBUG + echo '! Helper used in legacy mode !' 20635 DEBUG + set +x 20640 INFO [###############++...] > Reloading NGINX web server and PHP-FPM... 20643 DEBUG + echo '[###############++...] > Reloading NGINX web server and PHP-FPM...' 20647 DEBUG + set -o xtrace 20651 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 20651 DEBUG + local legacy_args=nalpte 20652 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 20652 DEBUG + local -A args_array 20652 DEBUG + local service_name 20654 DEBUG + local action 20654 DEBUG + local line_match 20655 DEBUG + local length 20656 DEBUG + local log_path 20657 DEBUG + local timeout 20659 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 20660 DEBUG + set +o xtrace 20858 DEBUG + service_name=php7.3-fpm 20859 DEBUG + action=reload 20861 DEBUG + line_match= 20862 DEBUG + length=20 20864 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 20864 DEBUG + timeout=300 20866 DEBUG + '[' reload == stop ']' 20866 DEBUG + [[ -n '' ]] 20867 DEBUG + '[' reload == reload ']' 20868 DEBUG + action=reload-or-restart 20868 DEBUG + systemctl reload-or-restart php7.3-fpm 20890 DEBUG + [[ -n '' ]] 20891 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 20893 DEBUG + local legacy_args=nalpte 20894 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 20895 DEBUG + local -A args_array 20897 DEBUG + local service_name 20898 DEBUG + local action 20899 DEBUG + local line_match 20900 DEBUG + local length 20901 DEBUG + local log_path 20902 DEBUG + local timeout 20903 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 20904 DEBUG + set +o xtrace 21097 DEBUG + service_name=nginx 21099 DEBUG + action=reload 21100 DEBUG + line_match= 21102 DEBUG + length=20 21104 DEBUG + log_path=/var/log/nginx/nginx.log 21105 DEBUG + timeout=300 21107 DEBUG + '[' reload == stop ']' 21109 DEBUG + [[ -n '' ]] 21110 DEBUG + '[' reload == reload ']' 21112 DEBUG + action=reload-or-restart 21115 DEBUG + systemctl reload-or-restart nginx 21189 DEBUG + [[ -n '' ]] 21191 DEBUG + ynh_script_progression '--message=Restoration completed for digiwords' --last 21194 DEBUG + set +o xtrace 21330 DEBUG + set +o xtrace 21354 DEBUG + echo '! Helper used in legacy mode !' 21355 DEBUG + set +x 21359 DEBUG + echo '[####################] > Restoration completed for digiwords' 21360 DEBUG + set -o xtrace 21361 DEBUG + ynh_exit_properly 21362 DEBUG + local exit_code=0 21363 DEBUG + rm -rf /var/cache/yunohost/download/ 21365 INFO [####################] > Restoration completed for digiwords 21369 DEBUG + '[' 0 -eq 0 ']' 21370 DEBUG + exit 0 22376 DEBUG To view the log of the operation 'Restore 'digiwords' from a backup archive', use the command 'yunohost log show 20220531-094509-backup_restore_app-digiwords' 22413 DEBUG The permission database has been resynchronized 22445 DEBUG SSOwat configuration regenerated 22467 SUCCESS Restoration completed 22467 DEBUG action [3049.1] executed in 22.219s 22468 DEBUG lock has been released Return code: 0 Working time: 23 seconds (09:45:32)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:45:46) Return code: 0 Working time: 0s (09:45:49) HTTP code: 200 Test URL: sub.domain.tld Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract: Running curl sub.domain.tld/ Return code: 0 Working time: 0s (09:45:56) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:45:59) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Loading snapshot snap0 ...  > Restore on a fresh YunoHost system... Running yunohost backup restore Backup_test --force --apps digiwords 175 DEBUG initializing base actions map parser for cli 179 DEBUG loading actions map namespace 'yunohost' 183 DEBUG building parser... 191 DEBUG building parser took 0.008s 194 DEBUG acquiring lock... 222 DEBUG lock has been acquired 296 DEBUG loading python module yunohost.backup took 0.074s 297 DEBUG processing action [861.1]: yunohost.backup.restore with args={'name': 'Backup_test', 'system': None, 'apps': ['digiwords'], 'force': True} 300 INFO Preparing archive for restoration... 301 DEBUG Extracting needed files from the archive... 400 DEBUG restoring from backup 'Backup_test' created on 2022-05-31 09:44:18 437 INFO Restoring digiwords... 652 DEBUG initializing ldap interface 743 DEBUG Permission 'digiwords.main' updated 769 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-094712-permission_url-digiwords' 817 DEBUG Permission 'digiwords.main' created 820 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-094712-permission_create-digiwords' 854 DEBUG The permission database has been resynchronized 888 DEBUG SSOwat configuration regenerated 910 DEBUG Loading migration 0016_php70_to_php73_pools... 916 DEBUG Loading migration 0020_ssh_sftp_permissions... 919 DEBUG Loading migration 0018_xtable_to_nftable... 922 DEBUG Loading migration 0015_migrate_to_buster... 924 DEBUG Loading migration 0019_extend_permissions_features... 926 DEBUG Loading migration 0017_postgresql_9p6_to_11... 966 DEBUG Restoring the app 'digiwords'... 1005 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_5072egzg/restore" 7>&1']' 1026 DEBUG + source ../settings/scripts/_common.sh 1028 DEBUG ++ pkg_dependencies=php-sqlite3 1029 DEBUG + source /usr/share/yunohost/helpers 1030 DEBUG +++ set +o 1031 DEBUG +++ grep xtrace 1034 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1038 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1040 DEBUG ++ set +x 1092 DEBUG + ynh_abort_if_errors 1094 DEBUG + set -o errexit 1096 DEBUG + set -o nounset 1098 DEBUG + trap ynh_exit_properly EXIT 1100 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 1101 DEBUG + set +o xtrace 1196 DEBUG + set +o xtrace 1246 DEBUG + echo '! Helper used in legacy mode !' 1250 DEBUG + set +x 1253 INFO [++..................] > Loading installation settings... 1258 DEBUG + echo '[++..................] > Loading installation settings...' 1259 DEBUG + set -o xtrace 1261 DEBUG + app=digiwords 1262 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 1262 DEBUG ++ local _globalapp=digiwords 1263 DEBUG ++ local legacy_args=ak 1264 DEBUG ++ args_array=([a]=app= [k]=key=) 1264 DEBUG ++ local -A args_array 1265 DEBUG ++ local app 1266 DEBUG ++ local key 1266 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 1267 DEBUG ++ set +o xtrace 1322 DEBUG ++ app=digiwords 1323 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 1325 DEBUG ++ ynh_app_setting get digiwords domain 1327 DEBUG ++ set +o xtrace 1414 DEBUG + domain=sub.domain.tld 1415 DEBUG ++ ynh_app_setting_get --app=digiwords --key=path 1416 DEBUG ++ local _globalapp=digiwords 1417 DEBUG ++ local legacy_args=ak 1418 DEBUG ++ args_array=([a]=app= [k]=key=) 1418 DEBUG ++ local -A args_array 1420 DEBUG ++ local app 1421 DEBUG ++ local key 1422 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=path 1422 DEBUG ++ set +o xtrace 1485 DEBUG ++ app=digiwords 1487 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]] 1494 DEBUG ++ ynh_app_setting get digiwords path 1495 DEBUG ++ set +o xtrace 1571 DEBUG + path_url=/ 1573 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1575 DEBUG ++ local _globalapp=digiwords 1576 DEBUG ++ local legacy_args=ak 1577 DEBUG ++ args_array=([a]=app= [k]=key=) 1579 DEBUG ++ local -A args_array 1580 DEBUG ++ local app 1581 DEBUG ++ local key 1582 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1583 DEBUG ++ set +o xtrace 1636 DEBUG ++ app=digiwords 1637 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1639 DEBUG ++ ynh_app_setting get digiwords final_path 1641 DEBUG ++ set +o xtrace 1727 DEBUG + final_path=/var/www/digiwords 1729 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1730 DEBUG ++ local _globalapp=digiwords 1733 DEBUG ++ local legacy_args=ak 1735 DEBUG ++ args_array=([a]=app= [k]=key=) 1737 DEBUG ++ local -A args_array 1738 DEBUG ++ local app 1739 DEBUG ++ local key 1740 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1741 DEBUG ++ set +o xtrace 1799 DEBUG ++ app=digiwords 1802 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1805 DEBUG ++ ynh_app_setting get digiwords db_name 1806 DEBUG ++ set +o xtrace 1886 DEBUG + db_name= 1889 DEBUG + db_user= 1893 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 1895 DEBUG ++ local _globalapp=digiwords 1898 DEBUG ++ local legacy_args=ak 1899 DEBUG ++ args_array=([a]=app= [k]=key=) 1900 DEBUG ++ local -A args_array 1901 DEBUG ++ local app 1902 DEBUG ++ local key 1902 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 1903 DEBUG ++ set +o xtrace 1960 DEBUG ++ app=digiwords 1963 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 1965 DEBUG ++ ynh_app_setting get digiwords phpversion 1966 DEBUG ++ set +o xtrace 2038 DEBUG + phpversion=7.3 2040 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 2043 DEBUG ++ local _globalapp=digiwords 2047 DEBUG ++ local legacy_args=ak 2049 DEBUG ++ args_array=([a]=app= [k]=key=) 2050 DEBUG ++ local -A args_array 2051 DEBUG ++ local app 2051 DEBUG ++ local key 2053 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 2053 DEBUG ++ set +o xtrace 2107 DEBUG ++ app=digiwords 2109 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 2111 DEBUG ++ ynh_app_setting get digiwords datadir 2117 DEBUG ++ set +o xtrace 2186 DEBUG + datadir= 2188 DEBUG + ynh_script_progression '--message=Validating restoration parameters...' --weight=1 2189 DEBUG + set +o xtrace 2308 DEBUG + set +o xtrace 2333 DEBUG + echo '! Helper used in legacy mode !' 2334 DEBUG + set +x 2338 DEBUG + echo '[##++................] > Validating restoration parameters...' 2340 DEBUG + set -o xtrace 2343 DEBUG + test '!' -d /var/www/digiwords 2346 DEBUG + ynh_script_progression '--message=Restoring the NGINX web server configuration...' --weight=1 2349 DEBUG + set +o xtrace 2353 INFO [##++................] > Validating restoration parameters... 2486 DEBUG + set +o xtrace 2512 DEBUG + echo '! Helper used in legacy mode !' 2513 DEBUG + set +x 2517 DEBUG + echo '[####++..............] > Restoring the NGINX web server configuration...' 2518 INFO [####++..............] > Restoring the NGINX web server configuration... 2518 DEBUG + set -o xtrace 2522 DEBUG + ynh_restore_file --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2523 DEBUG + local legacy_args=odm 2523 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 2524 DEBUG + local -A args_array 2525 DEBUG + local origin_path 2525 DEBUG + local dest_path 2526 DEBUG + local not_mandatory 2527 DEBUG + ynh_handle_getopts_args --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2528 DEBUG + set +o xtrace 2591 DEBUG + origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2592 DEBUG + dest_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2593 DEBUG + not_mandatory=0 2594 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2594 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 2595 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 2595 DEBUG + [[ -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 2595 DEBUG ++ dirname /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2599 DEBUG + mkdir --parents /etc/nginx/conf.d/sub.domain.tld.d 2608 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 2614 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2622 DEBUG + ynh_script_progression '--message=Recreating the dedicated system user...' --weight=1 2623 DEBUG + set +o xtrace 2756 DEBUG + set +o xtrace 2782 DEBUG + echo '! Helper used in legacy mode !' 2784 DEBUG + set +x 2786 DEBUG + echo '[######++............] > Recreating the dedicated system user...' 2787 DEBUG + set -o xtrace 2788 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 2788 INFO [######++............] > Recreating the dedicated system user... 2789 DEBUG + local legacy_args=uhs 2789 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 2795 DEBUG + local -A args_array 2796 DEBUG + local username 2797 DEBUG + local home_dir 2798 DEBUG + local use_shell 2800 DEBUG + local groups 2801 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 2801 DEBUG + set +o xtrace 2943 DEBUG + use_shell=0 2944 DEBUG + home_dir=/var/www/digiwords 2945 DEBUG + groups= 2946 DEBUG + ynh_system_user_exists digiwords 2946 DEBUG + local legacy_args=u 2947 DEBUG + args_array=([u]=username=) 2948 DEBUG + local -A args_array 2948 DEBUG + local username 2949 DEBUG + ynh_handle_getopts_args digiwords 2950 DEBUG + set +o xtrace 2980 DEBUG + echo '! Helper used in legacy mode !' 2983 DEBUG + set +x 2986 DEBUG + getent passwd digiwords 3000 DEBUG + '[' -n /var/www/digiwords ']' 3001 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 3003 DEBUG + '[' 0 -eq 1 ']' 3004 DEBUG + local 'shell=--shell /usr/sbin/nologin' 3005 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 3105 DEBUG + local group 3106 DEBUG + ynh_script_progression '--message=Restoring the app main directory...' --weight=1 3107 DEBUG + set +o xtrace 3230 DEBUG + set +o xtrace 3251 DEBUG + echo '! Helper used in legacy mode !' 3252 DEBUG + set +x 3258 DEBUG + echo '[########+++.........] > Restoring the app main directory...' 3260 DEBUG + set -o xtrace 3262 INFO [########+++.........] > Restoring the app main directory... 3263 DEBUG + ynh_restore_file --origin_path=/var/www/digiwords 3264 DEBUG + local legacy_args=odm 3268 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3269 DEBUG + local -A args_array 3271 DEBUG + local origin_path 3271 DEBUG + local dest_path 3273 DEBUG + local not_mandatory 3274 DEBUG + ynh_handle_getopts_args --origin_path=/var/www/digiwords 3275 DEBUG + set +o xtrace 3331 DEBUG + origin_path=/var/www/digiwords 3332 DEBUG + dest_path=/var/www/digiwords 3333 DEBUG + not_mandatory=0 3334 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords 3334 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords ']' 3335 DEBUG + [[ -e /var/www/digiwords ]] 3336 DEBUG ++ dirname /var/www/digiwords 3340 DEBUG + mkdir --parents /var/www 3343 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3348 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords /var/www/digiwords 3354 DEBUG + chmod 750 /var/www/digiwords 3357 DEBUG + chmod -R o-rwx /var/www/digiwords 3360 DEBUG + chown -R digiwords:www-data /var/www/digiwords 3370 DEBUG + ynh_script_progression '--message=Restoring the PHP-FPM configuration...' --weight=1 3371 DEBUG + set +o xtrace 3509 DEBUG + set +o xtrace 3534 DEBUG + echo '! Helper used in legacy mode !' 3535 DEBUG + set +x 3538 INFO [###########++.......] > Restoring the PHP-FPM configuration... 3546 DEBUG + echo '[###########++.......] > Restoring the PHP-FPM configuration...' 3546 DEBUG + set -o xtrace 3546 DEBUG + ynh_restore_file --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3546 DEBUG + local legacy_args=odm 3546 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3547 DEBUG + local -A args_array 3547 DEBUG + local origin_path 3547 DEBUG + local dest_path 3547 DEBUG + local not_mandatory 3547 DEBUG + ynh_handle_getopts_args --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3548 DEBUG + set +o xtrace 3593 DEBUG + origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3594 DEBUG + dest_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 3596 DEBUG + not_mandatory=0 3599 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 3603 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 3605 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 3606 DEBUG + [[ -e /etc/php/7.3/fpm/pool.d/digiwords.conf ]] 3606 DEBUG ++ dirname /etc/php/7.3/fpm/pool.d/digiwords.conf 3606 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 3607 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3609 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 3614 DEBUG + ynh_script_progression '--message=Reinstalling dependencies...' --weight=1 3615 DEBUG + set +o xtrace 3724 DEBUG + set +o xtrace 3746 DEBUG + echo '! Helper used in legacy mode !' 3749 DEBUG + set +x 3750 INFO [#############++.....] > Reinstalling dependencies... 3754 DEBUG + echo '[#############++.....] > Reinstalling dependencies...' 3755 DEBUG + set -o xtrace 3757 DEBUG + ynh_install_app_dependencies php-sqlite3 3757 DEBUG + local dependencies=php-sqlite3 3758 DEBUG ++ echo php-sqlite3 3759 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3764 DEBUG + dependencies=php-sqlite3 3765 DEBUG + local dependencies=php-sqlite3 3766 DEBUG + local manifest_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 3766 DEBUG ++ jq -r .version /home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 3776 DEBUG + local version=0.3.3~ynh1 3777 DEBUG + '[' -z 0.3.3~ynh1 ']' 3777 DEBUG + '[' 0.3.3~ynh1 == null ']' 3778 DEBUG + local dep_app=digiwords 3779 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3782 DEBUG ++ echo php-sqlite3 3784 DEBUG ++ sort -u 3785 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3790 DEBUG + local specific_php_version= 3791 DEBUG + [[ '' != \7\.\3 ]] 3792 DEBUG + [[ -n '' ]] 3793 DEBUG + [[ true == \t\r\u\e ]] 3793 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3796 DEBUG + grep --quiet php 3797 DEBUG + dpkg --list 3798 DEBUG + grep php7.0 3800 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3823 DEBUG + cat 3826 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3828 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3833 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3833 DEBUG ++ cut '--delimiter= ' --fields=2 3837 DEBUG + local pkgname=digiwords-ynh-deps 3838 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3841 DEBUG ++ cut '--delimiter= ' --fields=2 3844 DEBUG + local pkgversion=0.3.3~ynh1 3845 DEBUG + [[ -z digiwords-ynh-deps ]] 3845 DEBUG + [[ -z 0.3.3~ynh1 ]] 3846 DEBUG + ynh_package_update 3847 DEBUG + ynh_apt update 3847 DEBUG + ynh_wait_dpkg_free 3847 DEBUG + local try 3848 DEBUG + set +o xtrace 5197 DEBUG + return 0 5198 DEBUG + LC_ALL=C 5199 DEBUG + DEBIAN_FRONTEND=noninteractive 5199 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5308 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5309 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5314 DEBUG Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] 5341 DEBUG Get:4 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB] 6046 DEBUG Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [11.1 kB] 6062 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6091 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6297 DEBUG Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [328 kB] 6342 DEBUG Get:8 http://deb.debian.org/debian-security buster/updates/main Translation-en [177 kB] 6478 DEBUG Fetched 635 kB in 1s (534 kB/s) 7751 DEBUG Reading package lists... 7795 DEBUG ++ mktemp --directory 7800 DEBUG + local TMPDIR=/tmp/tmp.u5FZNjoPaz 7801 DEBUG + echo 10 7801 DEBUG + ynh_wait_dpkg_free 7801 DEBUG + local try 7802 DEBUG + set +o xtrace 9166 DEBUG + return 0 9167 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.u5FZNjoPaz/control 9171 DEBUG + cd /tmp/tmp.u5FZNjoPaz 9172 DEBUG + LC_ALL=C 9173 DEBUG + equivs-build ./control 11372 DEBUG + LC_ALL=C 11373 DEBUG + tee ./dpkg_log 11374 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 11449 DEBUG Selecting previously unselected package digiwords-ynh-deps. 11498 DEBUG (Reading database ... 42385 files and directories currently installed.) 11504 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 11518 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 11585 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 11586 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 11587 DEBUG  Package php-sqlite3 is not installed. 11588 DEBUG  11589 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 11666 DEBUG + ynh_package_install --fix-broken 11667 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 11668 DEBUG + ynh_wait_dpkg_free 11668 DEBUG + local try 11669 DEBUG + set +o xtrace 13030 DEBUG + return 0 13030 DEBUG + LC_ALL=C 13031 DEBUG + DEBIAN_FRONTEND=noninteractive 13031 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13240 DEBUG Reading package lists... 13588 DEBUG Building dependency tree... 13589 DEBUG Reading state information... 13804 DEBUG Correcting dependencies... Done 14236 DEBUG The following additional packages will be installed: 14237 DEBUG  php-sqlite3 php7.3-sqlite3 14287 DEBUG The following NEW packages will be installed: 14289 DEBUG  php-sqlite3 php7.3-sqlite3 14361 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 14362 DEBUG Need to get 32.2 kB of archives. 14363 DEBUG After this operation, 139 kB of additional disk space will be used. 14365 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php7.3-sqlite3 amd64 7.3.31-1~deb10u1 [26.2 kB] 14378 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 php-sqlite3 all 2:7.3+69 [5996 B] 14904 DEBUG Fetched 32.2 kB in 0s (695 kB/s) 15197 DEBUG Selecting previously unselected package php7.3-sqlite3. 15242 DEBUG (Reading database ... 42389 files and directories currently installed.) 15249 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 15279 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15389 DEBUG Selecting previously unselected package php-sqlite3. 15396 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 15410 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 15517 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15545 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15757 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 15861 DEBUG  15863 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 15973 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16223 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16454 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16560 DEBUG  16561 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 16654 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16890 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 16935 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 17633 DEBUG + [[ -n /tmp/tmp.u5FZNjoPaz ]] 17633 DEBUG + rm --recursive --force /tmp/tmp.u5FZNjoPaz 17638 DEBUG + ynh_package_is_installed digiwords-ynh-deps 17639 DEBUG + local legacy_args=p 17639 DEBUG + args_array=([p]=package=) 17640 DEBUG + local -A args_array 17640 DEBUG + local package 17640 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 17641 DEBUG + set +o xtrace 17655 DEBUG + echo '! Helper used in legacy mode !' 17656 DEBUG + set +x 17660 DEBUG + ynh_wait_dpkg_free 17661 DEBUG + local try 17661 DEBUG + set +o xtrace 19018 DEBUG + return 0 19020 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 19022 DEBUG + grep --count 'ok installed' 19038 DEBUG + rm /tmp/digiwords-ynh-deps.control 19042 DEBUG + [[ -n '' ]] 19045 DEBUG + grep --quiet php 19045 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 19046 DEBUG + local _globalapp=digiwords 19046 DEBUG + local legacy_args=akv 19046 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19046 DEBUG + local -A args_array 19047 DEBUG + local app 19047 DEBUG + local key 19047 DEBUG + local value 19048 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 19048 DEBUG + set +o xtrace 19184 DEBUG + app=digiwords 19185 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 19187 DEBUG + ynh_app_setting set digiwords phpversion 7.3 19190 DEBUG + set +o xtrace 19286 DEBUG + ynh_script_progression '--message=Reloading NGINX web server and PHP-FPM...' --weight=1 19287 DEBUG + set +o xtrace 19424 DEBUG + set +o xtrace 19446 DEBUG + echo '! Helper used in legacy mode !' 19447 DEBUG + set +x 19454 DEBUG + echo '[###############++...] > Reloading NGINX web server and PHP-FPM...' 19457 DEBUG + set -o xtrace 19457 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 19459 DEBUG + local legacy_args=nalpte 19460 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 19461 DEBUG + local -A args_array 19462 DEBUG + local service_name 19463 DEBUG + local action 19463 DEBUG + local line_match 19464 DEBUG + local length 19464 DEBUG + local log_path 19464 DEBUG + local timeout 19464 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 19464 DEBUG + set +o xtrace 19465 INFO [###############++...] > Reloading NGINX web server and PHP-FPM... 19674 DEBUG + service_name=php7.3-fpm 19675 DEBUG + action=reload 19676 DEBUG + line_match= 19676 DEBUG + length=20 19677 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 19677 DEBUG + timeout=300 19678 DEBUG + '[' reload == stop ']' 19679 DEBUG + [[ -n '' ]] 19680 DEBUG + '[' reload == reload ']' 19680 DEBUG + action=reload-or-restart 19681 DEBUG + systemctl reload-or-restart php7.3-fpm 19705 DEBUG + [[ -n '' ]] 19706 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 19706 DEBUG + local legacy_args=nalpte 19706 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 19706 DEBUG + local -A args_array 19707 DEBUG + local service_name 19707 DEBUG + local action 19707 DEBUG + local line_match 19707 DEBUG + local length 19710 DEBUG + local log_path 19711 DEBUG + local timeout 19712 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 19712 DEBUG + set +o xtrace 19931 DEBUG + service_name=nginx 19932 DEBUG + action=reload 19932 DEBUG + line_match= 19932 DEBUG + length=20 19933 DEBUG + log_path=/var/log/nginx/nginx.log 19933 DEBUG + timeout=300 19934 DEBUG + '[' reload == stop ']' 19935 DEBUG + [[ -n '' ]] 19935 DEBUG + '[' reload == reload ']' 19935 DEBUG + action=reload-or-restart 19936 DEBUG + systemctl reload-or-restart nginx 20021 DEBUG + [[ -n '' ]] 20021 DEBUG + ynh_script_progression '--message=Restoration completed for digiwords' --last 20022 DEBUG + set +o xtrace 20171 DEBUG + set +o xtrace 20205 DEBUG + echo '! Helper used in legacy mode !' 20206 DEBUG + set +x 20208 INFO [####################] > Restoration completed for digiwords 20208 DEBUG + echo '[####################] > Restoration completed for digiwords' 20209 DEBUG + set -o xtrace 20212 DEBUG + ynh_exit_properly 20213 DEBUG + local exit_code=0 20214 DEBUG + rm -rf /var/cache/yunohost/download/ 20215 DEBUG + '[' 0 -eq 0 ']' 20216 DEBUG + exit 0 21219 DEBUG To view the log of the operation 'Restore 'digiwords' from a backup archive', use the command 'yunohost log show 20220531-094711-backup_restore_app-digiwords' 21244 DEBUG The permission database has been resynchronized 21268 DEBUG SSOwat configuration regenerated 21289 SUCCESS Restoration completed 21289 DEBUG action [861.1] executed in 20.992s 21290 DEBUG lock has been released Return code: 0 Working time: 23 seconds (09:47:33)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:47:46) Return code: 0 Working time: 0s (09:47:49) HTTP code: 200 Test URL: sub.domain.tld Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract: Running curl sub.domain.tld/ 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:47:56) Return code: 0 Working time: 0s (09:48:00) HTTP code: 200 Test URL: sub.domain.tld/ Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract: (Reusing existing snapshot snap_subdirinstall) Loading snapshot snap_subdirinstall ...  > Backup of the application... Running yunohost backup create -n Backup_test --apps digiwords 187 DEBUG initializing base actions map parser for cli 189 DEBUG loading actions map namespace 'yunohost' 193 DEBUG building parser... 199 DEBUG building parser took 0.005s 201 DEBUG acquiring lock... 228 DEBUG lock has been acquired 317 DEBUG loading python module yunohost.backup took 0.089s 318 DEBUG processing action [864.1]: yunohost.backup.create with args={'name': 'Backup_test', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['digiwords'], 'dry_run': False} 384 INFO Collecting files to be backed up for digiwords... 418 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_31hojt1q/scripts/backup" 7>&1']' 428 DEBUG + source ../settings/scripts/_common.sh 429 DEBUG ++ pkg_dependencies=php-sqlite3 429 DEBUG + source /usr/share/yunohost/helpers 430 DEBUG +++ grep xtrace 430 DEBUG +++ set +o 433 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 434 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 435 DEBUG ++ set +x 482 DEBUG + ynh_abort_if_errors 483 DEBUG + set -o errexit 484 DEBUG + set -o nounset 485 DEBUG + trap ynh_exit_properly EXIT 486 DEBUG + ynh_print_info '--message=Loading installation settings...' 487 DEBUG + local legacy_args=m 490 DEBUG + args_array=([m]=message=) 491 DEBUG + local -A args_array 492 DEBUG + local message 493 DEBUG + ynh_handle_getopts_args '--message=Loading installation settings...' 495 DEBUG + set +o xtrace 511 DEBUG + echo 'Loading installation settings...' 513 DEBUG + app=digiwords 514 INFO Loading installation settings... 519 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 522 DEBUG ++ local _globalapp=digiwords 524 DEBUG ++ local legacy_args=ak 525 DEBUG ++ args_array=([a]=app= [k]=key=) 526 DEBUG ++ local -A args_array 527 DEBUG ++ local app 530 DEBUG ++ local key 530 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 531 DEBUG ++ set +o xtrace 588 DEBUG ++ app=digiwords 589 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 591 DEBUG ++ ynh_app_setting get digiwords final_path 591 DEBUG ++ set +o xtrace 675 DEBUG + final_path=/var/www/digiwords 676 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 677 DEBUG ++ local _globalapp=digiwords 678 DEBUG ++ local legacy_args=ak 678 DEBUG ++ args_array=([a]=app= [k]=key=) 678 DEBUG ++ local -A args_array 679 DEBUG ++ local app 679 DEBUG ++ local key 680 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 680 DEBUG ++ set +o xtrace 731 DEBUG ++ app=digiwords 731 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 732 DEBUG ++ ynh_app_setting get digiwords domain 733 DEBUG ++ set +o xtrace 811 DEBUG + domain=sub.domain.tld 812 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 812 DEBUG ++ local _globalapp=digiwords 813 DEBUG ++ local legacy_args=ak 813 DEBUG ++ args_array=([a]=app= [k]=key=) 814 DEBUG ++ local -A args_array 814 DEBUG ++ local app 815 DEBUG ++ local key 815 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 816 DEBUG ++ set +o xtrace 879 DEBUG ++ app=digiwords 880 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 881 DEBUG ++ ynh_app_setting get digiwords db_name 881 DEBUG ++ set +o xtrace 971 DEBUG + db_name= 973 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 974 DEBUG ++ local _globalapp=digiwords 975 DEBUG ++ local legacy_args=ak 976 DEBUG ++ args_array=([a]=app= [k]=key=) 976 DEBUG ++ local -A args_array 977 DEBUG ++ local app 978 DEBUG ++ local key 979 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 979 DEBUG ++ set +o xtrace 1034 DEBUG ++ app=digiwords 1036 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 1037 DEBUG ++ ynh_app_setting get digiwords phpversion 1038 DEBUG ++ set +o xtrace 1123 DEBUG + phpversion=7.3 1124 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1124 DEBUG ++ local _globalapp=digiwords 1125 DEBUG ++ local legacy_args=ak 1126 DEBUG ++ args_array=([a]=app= [k]=key=) 1126 DEBUG ++ local -A args_array 1127 DEBUG ++ local app 1128 DEBUG ++ local key 1129 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1129 DEBUG ++ set +o xtrace 1181 DEBUG ++ app=digiwords 1182 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1183 DEBUG ++ ynh_app_setting get digiwords datadir 1184 DEBUG ++ set +o xtrace 1272 DEBUG + datadir= 1273 DEBUG + ynh_print_info '--message=Declaring files to be backed up...' 1274 DEBUG + local legacy_args=m 1274 DEBUG + args_array=([m]=message=) 1274 DEBUG + local -A args_array 1275 DEBUG + local message 1275 DEBUG + ynh_handle_getopts_args '--message=Declaring files to be backed up...' 1275 DEBUG + set +o xtrace 1291 DEBUG + echo 'Declaring files to be backed up...' 1293 DEBUG + ynh_backup --src_path=/var/www/digiwords 1294 DEBUG + local legacy_args=sdbm 1295 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 1295 DEBUG + local -A args_array 1296 DEBUG + local src_path 1298 DEBUG + local dest_path 1299 DEBUG + local is_big 1300 DEBUG + local not_mandatory 1301 DEBUG + ynh_handle_getopts_args --src_path=/var/www/digiwords 1302 INFO Declaring files to be backed up... 1302 DEBUG + set +o xtrace 1363 DEBUG + dest_path= 1364 DEBUG + is_big=0 1366 DEBUG + not_mandatory=0 1367 DEBUG + BACKUP_CORE_ONLY=0 1369 DEBUG + test -n digiwords 1372 DEBUG ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 1375 DEBUG ++ local _globalapp=digiwords 1376 DEBUG ++ local legacy_args=ak 1380 DEBUG ++ args_array=([a]=app= [k]=key=) 1381 DEBUG ++ local -A args_array 1382 DEBUG ++ local app 1383 DEBUG ++ local key 1387 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 1389 DEBUG ++ set +o xtrace 1458 DEBUG ++ app=digiwords 1459 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 1459 DEBUG ++ ynh_app_setting get digiwords do_not_backup_data 1461 DEBUG ++ set +o xtrace 1538 DEBUG + do_not_backup_data= 1539 DEBUG + '[' 0 -eq 1 ']' 1540 DEBUG + '[' '!' -e /var/www/digiwords ']' 1540 DEBUG ++ realpath /var/www/digiwords 1542 DEBUG + src_path=/var/www/digiwords 1544 DEBUG + [[ -z '' ]] 1544 DEBUG + dest_path=var/www/digiwords 1545 DEBUG + [[ -e var/www/digiwords ]] 1546 DEBUG + local rel_dir=/apps/digiwords/backup 1546 DEBUG + rel_dir=/apps/digiwords/backup/ 1547 DEBUG + dest_path=/apps/digiwords/backup/var/www/digiwords 1548 DEBUG + dest_path=apps/digiwords/backup/var/www/digiwords 1548 DEBUG ++ echo /var/www/digiwords 1549 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1555 DEBUG + local src=/var/www/digiwords 1556 DEBUG ++ echo apps/digiwords/backup/var/www/digiwords 1557 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1561 DEBUG + local dest=apps/digiwords/backup/var/www/digiwords 1562 DEBUG + echo '"/var/www/digiwords","apps/digiwords/backup/var/www/digiwords"' 1562 DEBUG ++ dirname /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords 1564 DEBUG + mkdir --parents /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www 1567 DEBUG + ynh_backup --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1568 DEBUG + local legacy_args=sdbm 1573 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 1574 DEBUG + local -A args_array 1574 DEBUG + local src_path 1574 DEBUG + local dest_path 1575 DEBUG + local is_big 1575 DEBUG + local not_mandatory 1576 DEBUG + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1576 DEBUG + set +o xtrace 1633 DEBUG + dest_path= 1634 DEBUG + is_big=0 1634 DEBUG + not_mandatory=0 1635 DEBUG + BACKUP_CORE_ONLY=0 1635 DEBUG + test -n digiwords 1637 DEBUG ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 1638 DEBUG ++ local _globalapp=digiwords 1639 DEBUG ++ local legacy_args=ak 1640 DEBUG ++ args_array=([a]=app= [k]=key=) 1644 DEBUG ++ local -A args_array 1645 DEBUG ++ local app 1645 DEBUG ++ local key 1646 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 1647 DEBUG ++ set +o xtrace 1704 DEBUG ++ app=digiwords 1706 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 1708 DEBUG ++ ynh_app_setting get digiwords do_not_backup_data 1710 DEBUG ++ set +o xtrace 1800 DEBUG + do_not_backup_data= 1802 DEBUG + '[' 0 -eq 1 ']' 1803 DEBUG + '[' '!' -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 1804 DEBUG ++ realpath /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1808 DEBUG + src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1809 DEBUG + [[ -z '' ]] 1811 DEBUG + dest_path=etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1813 DEBUG + [[ -e etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 1814 DEBUG + local rel_dir=/apps/digiwords/backup 1827 DEBUG + rel_dir=/apps/digiwords/backup/ 1828 DEBUG + dest_path=/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1837 DEBUG + dest_path=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1837 DEBUG ++ echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1838 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1843 DEBUG + local src=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1848 DEBUG ++ echo apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1850 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 1855 DEBUG + local dest=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1856 DEBUG + echo '"/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf","apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf"' 1857 DEBUG ++ dirname /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1859 DEBUG + mkdir --parents /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d 1862 DEBUG + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 1863 DEBUG + local legacy_args=sdbm 1864 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 1865 DEBUG + local -A args_array 1866 DEBUG + local src_path 1866 DEBUG + local dest_path 1867 DEBUG + local is_big 1868 DEBUG + local not_mandatory 1868 DEBUG + ynh_handle_getopts_args --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 1869 DEBUG + set +o xtrace 1921 DEBUG + dest_path= 1922 DEBUG + is_big=0 1923 DEBUG + not_mandatory=0 1924 DEBUG + BACKUP_CORE_ONLY=0 1925 DEBUG + test -n digiwords 1927 DEBUG ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 1929 DEBUG ++ local _globalapp=digiwords 1930 DEBUG ++ local legacy_args=ak 1931 DEBUG ++ args_array=([a]=app= [k]=key=) 1932 DEBUG ++ local -A args_array 1932 DEBUG ++ local app 1933 DEBUG ++ local key 1934 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 1934 DEBUG ++ set +o xtrace 1987 DEBUG ++ app=digiwords 1989 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 1990 DEBUG ++ ynh_app_setting get digiwords do_not_backup_data 1992 DEBUG ++ set +o xtrace 2072 DEBUG + do_not_backup_data= 2074 DEBUG + '[' 0 -eq 1 ']' 2076 DEBUG + '[' '!' -e /etc/php/7.3/fpm/pool.d/digiwords.conf ']' 2077 DEBUG ++ realpath /etc/php/7.3/fpm/pool.d/digiwords.conf 2081 DEBUG + src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 2083 DEBUG + [[ -z '' ]] 2085 DEBUG + dest_path=etc/php/7.3/fpm/pool.d/digiwords.conf 2086 DEBUG + [[ -e etc/php/7.3/fpm/pool.d/digiwords.conf ]] 2087 DEBUG + local rel_dir=/apps/digiwords/backup 2089 DEBUG + rel_dir=/apps/digiwords/backup/ 2089 DEBUG + dest_path=/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2090 DEBUG + dest_path=apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2091 DEBUG ++ echo /etc/php/7.3/fpm/pool.d/digiwords.conf 2091 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 2092 DEBUG + local src=/etc/php/7.3/fpm/pool.d/digiwords.conf 2094 DEBUG ++ echo apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2095 DEBUG ++ sed --regexp-extended 's/"/\"\"/g' 2100 DEBUG + local dest=apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2101 DEBUG + echo '"/etc/php/7.3/fpm/pool.d/digiwords.conf","apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf"' 2102 DEBUG ++ dirname /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 2103 DEBUG + mkdir --parents /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d 2107 DEBUG + ynh_print_info '--message=Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 2108 DEBUG + local legacy_args=m 2111 DEBUG + args_array=([m]=message=) 2112 DEBUG + local -A args_array 2118 DEBUG + local message 2119 DEBUG + ynh_handle_getopts_args '--message=Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 2120 DEBUG + set +o xtrace 2127 DEBUG + echo 'Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 2128 DEBUG + ynh_exit_properly 2129 DEBUG + local exit_code=0 2131 DEBUG + rm -rf /var/cache/yunohost/download/ 2132 INFO Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive). 2132 DEBUG + '[' 0 -eq 0 ']' 2133 DEBUG + exit 0 3136 DEBUG Backup permission for digiwords 3220 DEBUG initializing ldap interface 3352 INFO Creating a backup archive from the collected files... 3354 INFO The archive will contain about 3.4MiB of data. 3355 DEBUG Creating the backup TAR archive... 3454 DEBUG TAR backup archive created 3456 SUCCESS Backup created 3465 DEBUG To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20220531-094910-backup_create' 3480 DEBUG action [864.1] executed in 3.162s 3482 DEBUG lock has been released Return code: 0 Working time: 4 seconds (09:49:14)  > Removing the app... Running yunohost app remove digiwords 221 DEBUG initializing base actions map parser for cli 225 DEBUG loading actions map namespace 'yunohost' 229 DEBUG building parser... 247 DEBUG building parser took 0.018s 249 DEBUG acquiring lock... 272 DEBUG lock has been acquired 294 DEBUG loading python module yunohost.app took 0.021s 294 DEBUG processing action [1306.1]: yunohost.app.remove with args={'app': 'digiwords', 'purge': False} 332 INFO Removing digiwords... 472 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 482 DEBUG + source _common.sh 484 DEBUG ++ pkg_dependencies=php-sqlite3 485 DEBUG + source /usr/share/yunohost/helpers 488 DEBUG +++ grep xtrace 489 DEBUG +++ set +o 494 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 495 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 496 DEBUG ++ set +x 543 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 544 DEBUG + set +o xtrace 656 DEBUG + set +o xtrace 704 DEBUG + echo '! Helper used in legacy mode !' 704 DEBUG + set +x 707 INFO [++..................] > Loading installation settings... 710 DEBUG + echo '[++..................] > Loading installation settings...' 710 DEBUG + set -o xtrace 711 DEBUG + app=digiwords 713 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 716 DEBUG ++ local _globalapp=digiwords 717 DEBUG ++ local legacy_args=ak 717 DEBUG ++ args_array=([a]=app= [k]=key=) 718 DEBUG ++ local -A args_array 718 DEBUG ++ local app 719 DEBUG ++ local key 720 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 721 DEBUG ++ set +o xtrace 782 DEBUG ++ app=digiwords 784 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 785 DEBUG ++ ynh_app_setting get digiwords domain 785 DEBUG ++ set +o xtrace 865 DEBUG + domain=sub.domain.tld 866 DEBUG ++ ynh_app_setting_get --app=digiwords --key=port 867 DEBUG ++ local _globalapp=digiwords 868 DEBUG ++ local legacy_args=ak 869 DEBUG ++ args_array=([a]=app= [k]=key=) 869 DEBUG ++ local -A args_array 870 DEBUG ++ local app 870 DEBUG ++ local key 870 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=port 872 DEBUG ++ set +o xtrace 936 DEBUG ++ app=digiwords 937 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]] 938 DEBUG ++ ynh_app_setting get digiwords port 938 DEBUG ++ set +o xtrace 1015 DEBUG + port= 1016 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1017 DEBUG ++ local _globalapp=digiwords 1019 DEBUG ++ local legacy_args=ak 1020 DEBUG ++ args_array=([a]=app= [k]=key=) 1021 DEBUG ++ local -A args_array 1021 DEBUG ++ local app 1021 DEBUG ++ local key 1022 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1023 DEBUG ++ set +o xtrace 1083 DEBUG ++ app=digiwords 1086 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1086 DEBUG ++ ynh_app_setting get digiwords db_name 1087 DEBUG ++ set +o xtrace 1169 DEBUG + db_name= 1170 DEBUG + db_user= 1171 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1172 DEBUG ++ local _globalapp=digiwords 1173 DEBUG ++ local legacy_args=ak 1174 DEBUG ++ args_array=([a]=app= [k]=key=) 1175 DEBUG ++ local -A args_array 1175 DEBUG ++ local app 1176 DEBUG ++ local key 1176 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1177 DEBUG ++ set +o xtrace 1237 DEBUG ++ app=digiwords 1238 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1239 DEBUG ++ ynh_app_setting get digiwords final_path 1239 DEBUG ++ set +o xtrace 1324 DEBUG + final_path=/var/www/digiwords 1325 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 1326 DEBUG ++ local _globalapp=digiwords 1326 DEBUG ++ local legacy_args=ak 1327 DEBUG ++ args_array=([a]=app= [k]=key=) 1328 DEBUG ++ local -A args_array 1328 DEBUG ++ local app 1328 DEBUG ++ local key 1329 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 1331 DEBUG ++ set +o xtrace 1400 DEBUG ++ app=digiwords 1401 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 1401 DEBUG ++ ynh_app_setting get digiwords datadir 1401 DEBUG ++ set +o xtrace 1497 DEBUG + datadir= 1498 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=1 1499 DEBUG + set +o xtrace 1615 DEBUG + set +o xtrace 1634 DEBUG + echo '! Helper used in legacy mode !' 1635 DEBUG + set +x 1638 INFO [##+++...............] > Removing app main directory... 1640 DEBUG + echo '[##+++...............] > Removing app main directory...' 1641 DEBUG + set -o xtrace 1641 DEBUG + ynh_secure_remove --file=/var/www/digiwords 1641 DEBUG + local legacy_args=f 1642 DEBUG + args_array=([f]=file=) 1642 DEBUG + local -A args_array 1642 DEBUG + local file 1642 DEBUG + ynh_handle_getopts_args --file=/var/www/digiwords 1643 DEBUG + set +o xtrace 1663 DEBUG + set +o xtrace 1689 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1 1689 DEBUG + set +o xtrace 1798 DEBUG + set +o xtrace 1818 DEBUG + echo '! Helper used in legacy mode !' 1819 DEBUG + set +x 1824 INFO [#####++.............] > Removing NGINX web server configuration... 1825 DEBUG + echo '[#####++.............] > Removing NGINX web server configuration...' 1828 DEBUG + set -o xtrace 1828 DEBUG + ynh_remove_nginx_config 1831 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1831 DEBUG + local legacy_args=f 1832 DEBUG + args_array=([f]=file=) 1832 DEBUG + local -A args_array 1832 DEBUG + local file 1832 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 1833 DEBUG + set +o xtrace 1848 DEBUG + set +o xtrace 1873 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 1873 DEBUG + local legacy_args=nalpte 1874 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 1874 DEBUG + local -A args_array 1874 DEBUG + local service_name 1874 DEBUG + local action 1875 DEBUG + local line_match 1875 DEBUG + local length 1875 DEBUG + local log_path 1876 DEBUG + local timeout 1876 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 1876 DEBUG + set +o xtrace 2055 DEBUG + service_name=nginx 2056 DEBUG + action=reload 2056 DEBUG + line_match= 2056 DEBUG + length=20 2057 DEBUG + log_path=/var/log/nginx/nginx.log 2057 DEBUG + timeout=300 2058 DEBUG + '[' reload == stop ']' 2058 DEBUG + [[ -n '' ]] 2059 DEBUG + '[' reload == reload ']' 2059 DEBUG + action=reload-or-restart 2059 DEBUG + systemctl reload-or-restart nginx 2142 DEBUG + [[ -n '' ]] 2143 DEBUG + ynh_script_progression '--message=Removing PHP-FPM configuration...' --weight=1 2143 DEBUG + set +o xtrace 2284 DEBUG + set +o xtrace 2312 DEBUG + echo '! Helper used in legacy mode !' 2313 DEBUG + set +x 2326 DEBUG + echo '[#######+++..........] > Removing PHP-FPM configuration...' 2327 DEBUG + set -o xtrace 2328 DEBUG + ynh_remove_fpm_config 2328 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_config_dir 2328 DEBUG ++ local _globalapp=digiwords 2329 DEBUG ++ local legacy_args=ak 2329 DEBUG ++ args_array=([a]=app= [k]=key=) 2330 DEBUG ++ local -A args_array 2330 DEBUG ++ local app 2331 DEBUG ++ local key 2331 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir 2332 INFO [#######+++..........] > Removing PHP-FPM configuration... 2332 DEBUG ++ set +o xtrace 2405 DEBUG ++ app=digiwords 2407 DEBUG ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2408 DEBUG ++ ynh_app_setting get digiwords fpm_config_dir 2409 DEBUG ++ set +o xtrace 2494 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 2496 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_service 2497 DEBUG ++ local _globalapp=digiwords 2498 DEBUG ++ local legacy_args=ak 2500 DEBUG ++ args_array=([a]=app= [k]=key=) 2501 DEBUG ++ local -A args_array 2501 DEBUG ++ local app 2501 DEBUG ++ local key 2502 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_service 2502 DEBUG ++ set +o xtrace 2568 DEBUG ++ app=digiwords 2568 DEBUG ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2569 DEBUG ++ ynh_app_setting get digiwords fpm_service 2569 DEBUG ++ set +o xtrace 2652 DEBUG + local fpm_service=php7.3-fpm 2654 DEBUG ++ ynh_app_setting_get --app=digiwords --key=fpm_dedicated_service 2655 DEBUG ++ local _globalapp=digiwords 2655 DEBUG ++ local legacy_args=ak 2656 DEBUG ++ args_array=([a]=app= [k]=key=) 2656 DEBUG ++ local -A args_array 2657 DEBUG ++ local app 2658 DEBUG ++ local key 2658 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service 2658 DEBUG ++ set +o xtrace 2724 DEBUG ++ app=digiwords 2725 DEBUG ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2725 DEBUG ++ ynh_app_setting get digiwords fpm_dedicated_service 2726 DEBUG ++ set +o xtrace 2807 DEBUG + local dedicated_service=0 2808 DEBUG + dedicated_service=0 2812 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 2815 DEBUG ++ local _globalapp=digiwords 2817 DEBUG ++ local legacy_args=ak 2818 DEBUG ++ args_array=([a]=app= [k]=key=) 2819 DEBUG ++ local -A args_array 2820 DEBUG ++ local app 2820 DEBUG ++ local key 2821 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 2821 DEBUG ++ set +o xtrace 2889 DEBUG ++ app=digiwords 2891 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2893 DEBUG ++ ynh_app_setting get digiwords phpversion 2894 DEBUG ++ set +o xtrace 2981 DEBUG + local phpversion=7.3 2983 DEBUG + phpversion=7.3 2984 DEBUG + '[' -z /etc/php/7.3/fpm ']' 2985 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2987 DEBUG + local legacy_args=f 2991 DEBUG + args_array=([f]=file=) 2994 DEBUG + local -A args_array 2995 DEBUG + local file 2996 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 2998 DEBUG + set +o xtrace 3006 DEBUG + set +o xtrace 3030 DEBUG + '[' -e /etc/php/7.3/fpm/conf.d/20-digiwords.ini ']' 3032 DEBUG + '[' 0 -eq 1 ']' 3034 DEBUG + ynh_package_is_installed --package=php7.3-fpm 3035 DEBUG + local legacy_args=p 3036 DEBUG + args_array=([p]=package=) 3037 DEBUG + local -A args_array 3038 DEBUG + local package 3038 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 3039 DEBUG + set +o xtrace 3056 DEBUG + ynh_wait_dpkg_free 3057 DEBUG + local try 3057 DEBUG + set +o xtrace 4502 DEBUG + return 0 4503 DEBUG + grep --count 'ok installed' 4505 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 4528 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 4530 DEBUG + local legacy_args=nalpte 4531 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 4532 DEBUG + local -A args_array 4534 DEBUG + local service_name 4535 DEBUG + local action 4535 DEBUG + local line_match 4536 DEBUG + local length 4536 DEBUG + local log_path 4536 DEBUG + local timeout 4537 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 4538 DEBUG + set +o xtrace 4737 DEBUG + service_name=php7.3-fpm 4739 DEBUG + action=reload 4741 DEBUG + line_match= 4743 DEBUG + length=20 4748 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 4749 DEBUG + timeout=300 4751 DEBUG + '[' reload == stop ']' 4752 DEBUG + [[ -n '' ]] 4753 DEBUG + '[' reload == reload ']' 4756 DEBUG + action=reload-or-restart 4757 DEBUG + systemctl reload-or-restart php7.3-fpm 4770 DEBUG + [[ -n '' ]] 4771 DEBUG + '[' 7.3 '!=' 7.3 ']' 4773 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=1 4775 DEBUG + set +o xtrace 4925 DEBUG + set +o xtrace 4956 DEBUG + echo '! Helper used in legacy mode !' 4957 DEBUG + set +x 4963 INFO [##########++........] > Removing dependencies... 4965 DEBUG + echo '[##########++........] > Removing dependencies...' 4965 DEBUG + set -o xtrace 4966 DEBUG + ynh_remove_app_dependencies 4967 DEBUG + local dep_app=digiwords 4968 DEBUG + local current_dependencies= 4969 DEBUG + ynh_package_is_installed --package=digiwords-ynh-deps 4970 DEBUG + local legacy_args=p 4971 DEBUG + args_array=([p]=package=) 4971 DEBUG + local -A args_array 4972 DEBUG + local package 4973 DEBUG + ynh_handle_getopts_args --package=digiwords-ynh-deps 4973 DEBUG + set +o xtrace 4991 DEBUG + ynh_wait_dpkg_free 4992 DEBUG + local try 4993 DEBUG + set +o xtrace 6378 DEBUG + return 0 6381 DEBUG + grep --count 'ok installed' 6383 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 6400 DEBUG ++ dpkg-query --show '--showformat=${Depends}' digiwords-ynh-deps 6419 DEBUG + current_dependencies='php-sqlite3 ' 6421 DEBUG + current_dependencies='php-sqlite3 ' 6423 DEBUG + ynh_package_autopurge digiwords-ynh-deps 6425 DEBUG + ynh_apt autoremove --purge digiwords-ynh-deps 6427 DEBUG + ynh_wait_dpkg_free 6428 DEBUG + local try 6430 DEBUG + set +o xtrace 7872 DEBUG + return 0 7873 DEBUG + LC_ALL=C 7874 DEBUG + DEBIAN_FRONTEND=noninteractive 7874 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge digiwords-ynh-deps 7917 DEBUG Reading package lists... 8314 DEBUG Building dependency tree... 8316 DEBUG Reading state information... 8804 DEBUG The following packages will be REMOVED: 8809 DEBUG  digiwords-ynh-deps* php-sqlite3* php7.3-sqlite3* 9341 DEBUG 0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded. 9342 DEBUG After this operation, 148 kB disk space will be freed. 9413 DEBUG (Reading database ... 42402 files and directories currently installed.) 9417 DEBUG Removing digiwords-ynh-deps (0.3.3~ynh1) ... 9549 DEBUG Removing php-sqlite3 (2:7.3+69) ... 9666 DEBUG Removing php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10067 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 10663 DEBUG (Reading database ... 42384 files and directories currently installed.) 10671 DEBUG Purging configuration files for php7.3-sqlite3 (7.3.31-1~deb10u1) ... 10751 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 10859 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11067 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11166 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 11662 DEBUG ++ echo php-sqlite3 11663 DEBUG ++ grep -o -E '\' 11663 DEBUG ++ tr - ' ' 11663 DEBUG ++ sed s/php//g 11665 DEBUG ++ uniq 11667 DEBUG ++ sort 11673 DEBUG + local specific_php_version= 11674 DEBUG + [[ '' != \7\.\3 ]] 11675 DEBUG + [[ -n '' ]] 11675 DEBUG + ynh_script_progression '--message=Removing various files...' --weight=1 11676 DEBUG + set +o xtrace 11795 DEBUG + set +o xtrace 11830 DEBUG + echo '! Helper used in legacy mode !' 11833 DEBUG + set +x 11841 INFO [############+++.....] > Removing various files... 11845 DEBUG + echo '[############+++.....] > Removing various files...' 11854 DEBUG + set -o xtrace 11856 DEBUG + ynh_secure_remove --file=/var/log/digiwords 11858 DEBUG + local legacy_args=f 11861 DEBUG + args_array=([f]=file=) 11865 DEBUG + local -A args_array 11867 DEBUG + local file 11870 DEBUG + ynh_handle_getopts_args --file=/var/log/digiwords 11874 DEBUG + set +o xtrace 11896 DEBUG + set +o xtrace 11933 INFO '/var/log/digiwords' wasn't deleted because it doesn't exist. 11938 DEBUG + echo ''\''/var/log/digiwords'\'' wasn'\''t deleted because it doesn'\''t exist.' 11940 DEBUG + set -o xtrace 11941 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1 11943 DEBUG + set +o xtrace 12068 DEBUG + set +o xtrace 12089 DEBUG + echo '! Helper used in legacy mode !' 12090 DEBUG + set +x 12102 DEBUG + echo '[###############++...] > Removing the dedicated system user...' 12103 DEBUG + set -o xtrace 12104 DEBUG + ynh_system_user_delete --username=digiwords 12105 DEBUG + local legacy_args=u 12106 DEBUG + args_array=([u]=username=) 12107 DEBUG + local -A args_array 12107 DEBUG + local username 12108 DEBUG + ynh_handle_getopts_args --username=digiwords 12109 DEBUG + set +o xtrace 12109 INFO [###############++...] > Removing the dedicated system user... 12126 DEBUG + ynh_system_user_exists digiwords 12134 DEBUG + local legacy_args=u 12137 DEBUG + args_array=([u]=username=) 12138 DEBUG + local -A args_array 12139 DEBUG + local username 12140 DEBUG + ynh_handle_getopts_args digiwords 12141 DEBUG + set +o xtrace 12157 DEBUG + echo '! Helper used in legacy mode !' 12160 DEBUG + set +x 12168 DEBUG + getent passwd digiwords 12174 DEBUG + deluser digiwords 12328 DEBUG Removing user `digiwords' ... 12331 DEBUG Warning: group `digiwords' has no more members. 12480 DEBUG Done. 12486 DEBUG + ynh_system_group_exists digiwords 12489 DEBUG + local legacy_args=g 12490 DEBUG + args_array=([g]=group=) 12491 DEBUG + local -A args_array 12492 DEBUG + local group 12497 DEBUG + ynh_handle_getopts_args digiwords 12497 DEBUG + set +o xtrace 12507 DEBUG + echo '! Helper used in legacy mode !' 12508 DEBUG + set +x 12511 DEBUG + getent group digiwords 12529 DEBUG + ynh_script_progression '--message=Removal of digiwords completed' --last 12532 DEBUG + set +o xtrace 12652 DEBUG + set +o xtrace 12685 DEBUG + echo '! Helper used in legacy mode !' 12686 DEBUG + set +x 12690 DEBUG + echo '[####################] > Removal of digiwords completed' 12692 DEBUG + set -o xtrace 12693 INFO [####################] > Removal of digiwords completed 13699 SUCCESS digiwords uninstalled 13790 DEBUG initializing ldap interface 13838 DEBUG Permission 'digiwords.main' deleted 13844 DEBUG To view the log of the operation 'Delete permission 'digiwords'', use the command 'yunohost log show 20220531-094943-permission_delete-digiwords' 13859 DEBUG The permission database has been resynchronized 13879 DEBUG SSOwat configuration regenerated 13897 DEBUG Checking that required services are up and running... 14716 DEBUG To view the log of the operation 'Remove the 'digiwords' app', use the command 'yunohost log show 20220531-094929-app_remove-digiwords' 14732 DEBUG action [1306.1] executed in 14.437s 14734 DEBUG lock has been released Return code: 0 Working time: 16 seconds (09:49:44) Remove successful.  > Restore after removing the application... Running yunohost backup restore Backup_test --force --apps digiwords 254 DEBUG initializing base actions map parser for cli 257 DEBUG loading actions map namespace 'yunohost' 260 DEBUG building parser... 266 DEBUG building parser took 0.005s 268 DEBUG acquiring lock... 289 DEBUG lock has been acquired 320 DEBUG loading python module yunohost.backup took 0.030s 320 DEBUG processing action [3051.1]: yunohost.backup.restore with args={'name': 'Backup_test', 'system': None, 'apps': ['digiwords'], 'force': True} 322 INFO Preparing archive for restoration... 323 DEBUG Extracting needed files from the archive... 420 DEBUG restoring from backup 'Backup_test' created on 2022-05-31 09:49:11 449 INFO Restoring digiwords... 663 DEBUG initializing ldap interface 743 DEBUG Permission 'digiwords.main' updated 767 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-095000-permission_url-digiwords' 813 DEBUG Permission 'digiwords.main' created 814 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-095000-permission_create-digiwords' 846 DEBUG The permission database has been resynchronized 874 DEBUG SSOwat configuration regenerated 905 DEBUG Loading migration 0016_php70_to_php73_pools... 907 DEBUG Loading migration 0020_ssh_sftp_permissions... 911 DEBUG Loading migration 0018_xtable_to_nftable... 915 DEBUG Loading migration 0015_migrate_to_buster... 919 DEBUG Loading migration 0019_extend_permissions_features... 923 DEBUG Loading migration 0017_postgresql_9p6_to_11... 970 DEBUG Restoring the app 'digiwords'... 998 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_h70nmm45/restore" 7>&1']' 1015 DEBUG + source ../settings/scripts/_common.sh 1016 DEBUG ++ pkg_dependencies=php-sqlite3 1017 DEBUG + source /usr/share/yunohost/helpers 1019 DEBUG +++ grep xtrace 1019 DEBUG +++ set +o 1025 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1026 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1027 DEBUG ++ set +x 1075 DEBUG + ynh_abort_if_errors 1076 DEBUG + set -o errexit 1077 DEBUG + set -o nounset 1078 DEBUG + trap ynh_exit_properly EXIT 1079 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 1080 DEBUG + set +o xtrace 1249 DEBUG + set +o xtrace 1321 DEBUG + echo '! Helper used in legacy mode !' 1323 DEBUG + set +x 1327 DEBUG + echo '[++..................] > Loading installation settings...' 1328 DEBUG + set -o xtrace 1330 DEBUG + app=digiwords 1331 INFO [++..................] > Loading installation settings... 1338 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 1345 DEBUG ++ local _globalapp=digiwords 1349 DEBUG ++ local legacy_args=ak 1350 DEBUG ++ args_array=([a]=app= [k]=key=) 1351 DEBUG ++ local -A args_array 1352 DEBUG ++ local app 1352 DEBUG ++ local key 1353 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 1353 DEBUG ++ set +o xtrace 1437 DEBUG ++ app=digiwords 1441 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 1442 DEBUG ++ ynh_app_setting get digiwords domain 1442 DEBUG ++ set +o xtrace 1518 DEBUG + domain=sub.domain.tld 1519 DEBUG ++ ynh_app_setting_get --app=digiwords --key=path 1520 DEBUG ++ local _globalapp=digiwords 1521 DEBUG ++ local legacy_args=ak 1521 DEBUG ++ args_array=([a]=app= [k]=key=) 1522 DEBUG ++ local -A args_array 1522 DEBUG ++ local app 1523 DEBUG ++ local key 1525 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=path 1526 DEBUG ++ set +o xtrace 1594 DEBUG ++ app=digiwords 1595 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]] 1595 DEBUG ++ ynh_app_setting get digiwords path 1596 DEBUG ++ set +o xtrace 1688 DEBUG + path_url=/path 1689 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1690 DEBUG ++ local _globalapp=digiwords 1690 DEBUG ++ local legacy_args=ak 1691 DEBUG ++ args_array=([a]=app= [k]=key=) 1691 DEBUG ++ local -A args_array 1692 DEBUG ++ local app 1692 DEBUG ++ local key 1693 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1693 DEBUG ++ set +o xtrace 1767 DEBUG ++ app=digiwords 1767 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 1768 DEBUG ++ ynh_app_setting get digiwords final_path 1768 DEBUG ++ set +o xtrace 1872 DEBUG + final_path=/var/www/digiwords 1876 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 1879 DEBUG ++ local _globalapp=digiwords 1883 DEBUG ++ local legacy_args=ak 1885 DEBUG ++ args_array=([a]=app= [k]=key=) 1886 DEBUG ++ local -A args_array 1888 DEBUG ++ local app 1888 DEBUG ++ local key 1890 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 1890 DEBUG ++ set +o xtrace 1960 DEBUG ++ app=digiwords 1960 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 1960 DEBUG ++ ynh_app_setting get digiwords db_name 1961 DEBUG ++ set +o xtrace 2062 DEBUG + db_name= 2063 DEBUG + db_user= 2067 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 2067 DEBUG ++ local _globalapp=digiwords 2067 DEBUG ++ local legacy_args=ak 2067 DEBUG ++ args_array=([a]=app= [k]=key=) 2067 DEBUG ++ local -A args_array 2068 DEBUG ++ local app 2068 DEBUG ++ local key 2068 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 2068 DEBUG ++ set +o xtrace 2171 DEBUG ++ app=digiwords 2175 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2178 DEBUG ++ ynh_app_setting get digiwords phpversion 2179 DEBUG ++ set +o xtrace 2361 DEBUG + phpversion=7.3 2363 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 2364 DEBUG ++ local _globalapp=digiwords 2366 DEBUG ++ local legacy_args=ak 2367 DEBUG ++ args_array=([a]=app= [k]=key=) 2369 DEBUG ++ local -A args_array 2370 DEBUG ++ local app 2371 DEBUG ++ local key 2372 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 2373 DEBUG ++ set +o xtrace 2449 DEBUG ++ app=digiwords 2450 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 2451 DEBUG ++ ynh_app_setting get digiwords datadir 2451 DEBUG ++ set +o xtrace 2551 DEBUG + datadir= 2552 DEBUG + ynh_script_progression '--message=Validating restoration parameters...' --weight=1 2554 DEBUG + set +o xtrace 2734 DEBUG + set +o xtrace 2772 DEBUG + echo '! Helper used in legacy mode !' 2773 DEBUG + set +x 2773 DEBUG + echo '[##++................] > Validating restoration parameters...' 2773 DEBUG + set -o xtrace 2774 DEBUG + test '!' -d /var/www/digiwords 2774 DEBUG + ynh_script_progression '--message=Restoring the NGINX web server configuration...' --weight=1 2774 DEBUG + set +o xtrace 2775 INFO [##++................] > Validating restoration parameters... 2947 DEBUG + set +o xtrace 2975 DEBUG + echo '! Helper used in legacy mode !' 2975 DEBUG + set +x 2981 DEBUG + echo '[####++..............] > Restoring the NGINX web server configuration...' 2983 INFO [####++..............] > Restoring the NGINX web server configuration... 2983 DEBUG + set -o xtrace 2992 DEBUG + ynh_restore_file --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2993 DEBUG + local legacy_args=odm 2993 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 2994 DEBUG + local -A args_array 2995 DEBUG + local origin_path 2995 DEBUG + local dest_path 2996 DEBUG + local not_mandatory 2997 DEBUG + ynh_handle_getopts_args --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 2998 DEBUG + set +o xtrace 3060 DEBUG + origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3062 DEBUG + dest_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3064 DEBUG + not_mandatory=0 3065 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3066 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 3069 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 3070 DEBUG + [[ -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 3070 DEBUG ++ dirname /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3071 DEBUG + mkdir --parents /etc/nginx/conf.d/sub.domain.tld.d 3077 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3095 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3100 DEBUG + ynh_script_progression '--message=Recreating the dedicated system user...' --weight=1 3102 DEBUG + set +o xtrace 3283 DEBUG + set +o xtrace 3322 DEBUG + echo '! Helper used in legacy mode !' 3323 DEBUG + set +x 3328 DEBUG + echo '[######++............] > Recreating the dedicated system user...' 3330 DEBUG + set -o xtrace 3331 INFO [######++............] > Recreating the dedicated system user... 3331 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 3335 DEBUG + local legacy_args=uhs 3336 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 3336 DEBUG + local -A args_array 3337 DEBUG + local username 3337 DEBUG + local home_dir 3339 DEBUG + local use_shell 3339 DEBUG + local groups 3340 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 3341 DEBUG + set +o xtrace 3547 DEBUG + use_shell=0 3548 DEBUG + home_dir=/var/www/digiwords 3549 DEBUG + groups= 3550 DEBUG + ynh_system_user_exists digiwords 3550 DEBUG + local legacy_args=u 3551 DEBUG + args_array=([u]=username=) 3551 DEBUG + local -A args_array 3552 DEBUG + local username 3552 DEBUG + ynh_handle_getopts_args digiwords 3553 DEBUG + set +o xtrace 3574 DEBUG + echo '! Helper used in legacy mode !' 3576 DEBUG + set +x 3580 DEBUG + getent passwd digiwords 3591 DEBUG + '[' -n /var/www/digiwords ']' 3593 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 3595 DEBUG + '[' 0 -eq 1 ']' 3596 DEBUG + local 'shell=--shell /usr/sbin/nologin' 3597 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 3750 DEBUG + local group 3751 DEBUG + ynh_script_progression '--message=Restoring the app main directory...' --weight=1 3752 DEBUG + set +o xtrace 3899 DEBUG + set +o xtrace 3925 DEBUG + echo '! Helper used in legacy mode !' 3927 DEBUG + set +x 3932 DEBUG + echo '[########+++.........] > Restoring the app main directory...' 3934 DEBUG + set -o xtrace 3935 DEBUG + ynh_restore_file --origin_path=/var/www/digiwords 3935 DEBUG + local legacy_args=odm 3935 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3936 DEBUG + local -A args_array 3936 DEBUG + local origin_path 3940 DEBUG + local dest_path 3941 DEBUG + local not_mandatory 3942 DEBUG + ynh_handle_getopts_args --origin_path=/var/www/digiwords 3943 DEBUG + set +o xtrace 3943 INFO [########+++.........] > Restoring the app main directory... 4006 DEBUG + origin_path=/var/www/digiwords 4007 DEBUG + dest_path=/var/www/digiwords 4009 DEBUG + not_mandatory=0 4011 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords 4012 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords ']' 4013 DEBUG + [[ -e /var/www/digiwords ]] 4014 DEBUG ++ dirname /var/www/digiwords 4016 DEBUG + mkdir --parents /var/www 4032 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 4039 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords /var/www/digiwords 4045 DEBUG + chmod 750 /var/www/digiwords 4048 DEBUG + chmod -R o-rwx /var/www/digiwords 4052 DEBUG + chown -R digiwords:www-data /var/www/digiwords 4062 DEBUG + ynh_script_progression '--message=Restoring the PHP-FPM configuration...' --weight=1 4064 DEBUG + set +o xtrace 4258 DEBUG + set +o xtrace 4279 DEBUG + echo '! Helper used in legacy mode !' 4280 DEBUG + set +x 4282 INFO [###########++.......] > Restoring the PHP-FPM configuration... 4289 DEBUG + echo '[###########++.......] > Restoring the PHP-FPM configuration...' 4292 DEBUG + set -o xtrace 4293 DEBUG + ynh_restore_file --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4295 DEBUG + local legacy_args=odm 4296 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 4298 DEBUG + local -A args_array 4298 DEBUG + local origin_path 4299 DEBUG + local dest_path 4300 DEBUG + local not_mandatory 4300 DEBUG + ynh_handle_getopts_args --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4300 DEBUG + set +o xtrace 4406 DEBUG + origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4414 DEBUG + dest_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4417 DEBUG + not_mandatory=0 4422 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 4423 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 4424 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 4424 DEBUG + [[ -e /etc/php/7.3/fpm/pool.d/digiwords.conf ]] 4430 DEBUG ++ dirname /etc/php/7.3/fpm/pool.d/digiwords.conf 4434 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 4439 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 4465 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 4467 DEBUG + ynh_script_progression '--message=Reinstalling dependencies...' --weight=1 4468 DEBUG + set +o xtrace 4679 DEBUG + set +o xtrace 4713 DEBUG + echo '! Helper used in legacy mode !' 4715 DEBUG + set +x 4721 DEBUG + echo '[#############++.....] > Reinstalling dependencies...' 4726 DEBUG + set -o xtrace 4727 DEBUG + ynh_install_app_dependencies php-sqlite3 4727 DEBUG + local dependencies=php-sqlite3 4728 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 4729 DEBUG ++ echo php-sqlite3 4731 INFO [#############++.....] > Reinstalling dependencies... 4732 DEBUG + dependencies=php-sqlite3 4738 DEBUG + local dependencies=php-sqlite3 4739 DEBUG + local manifest_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 4740 DEBUG ++ jq -r .version /home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 4746 DEBUG + local version=0.3.3~ynh1 4747 DEBUG + '[' -z 0.3.3~ynh1 ']' 4749 DEBUG + '[' 0.3.3~ynh1 == null ']' 4750 DEBUG + local dep_app=digiwords 4751 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 4752 DEBUG ++ echo php-sqlite3 4753 DEBUG ++ sort -u 4754 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 4778 DEBUG + local specific_php_version= 4779 DEBUG + [[ '' != \7\.\3 ]] 4780 DEBUG + [[ -n '' ]] 4781 DEBUG + [[ true == \t\r\u\e ]] 4782 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 4782 DEBUG + grep --quiet php 4787 DEBUG + dpkg --list 4788 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 4789 DEBUG + grep php7.0 4826 DEBUG + cat 4833 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 4834 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 4840 DEBUG ++ cut '--delimiter= ' --fields=2 4846 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 4854 DEBUG + local pkgname=digiwords-ynh-deps 4858 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 4858 DEBUG ++ cut '--delimiter= ' --fields=2 4864 DEBUG + local pkgversion=0.3.3~ynh1 4866 DEBUG + [[ -z digiwords-ynh-deps ]] 4866 DEBUG + [[ -z 0.3.3~ynh1 ]] 4867 DEBUG + ynh_package_update 4867 DEBUG + ynh_apt update 4867 DEBUG + ynh_wait_dpkg_free 4867 DEBUG + local try 4867 DEBUG + set +o xtrace 6481 DEBUG + return 0 6482 DEBUG + LC_ALL=C 6483 DEBUG + DEBIAN_FRONTEND=noninteractive 6483 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 6641 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 6642 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 6648 DEBUG Hit:3 http://deb.debian.org/debian buster-updates InRelease 6659 DEBUG Hit:4 http://deb.debian.org/debian-security buster/updates InRelease 9383 DEBUG Reading package lists... 9433 DEBUG ++ mktemp --directory 9441 DEBUG + local TMPDIR=/tmp/tmp.J1FAHMme25 9442 DEBUG + echo 10 9444 DEBUG + ynh_wait_dpkg_free 9444 DEBUG + local try 9446 DEBUG + set +o xtrace 10944 DEBUG + return 0 10946 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.J1FAHMme25/control 10952 DEBUG + cd /tmp/tmp.J1FAHMme25 10953 DEBUG + LC_ALL=C 10953 DEBUG + equivs-build ./control 13239 DEBUG + tee ./dpkg_log 13241 DEBUG + LC_ALL=C 13243 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 13321 DEBUG Selecting previously unselected package digiwords-ynh-deps. 13362 DEBUG (Reading database ... 42385 files and directories currently installed.) 13367 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 13381 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 13472 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 13475 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 13477 DEBUG  Package php-sqlite3 is not installed. 13478 DEBUG  13478 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 13563 DEBUG + ynh_package_install --fix-broken 13564 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13565 DEBUG + ynh_wait_dpkg_free 13567 DEBUG + local try 13568 DEBUG + set +o xtrace 14970 DEBUG + return 0 14970 DEBUG + LC_ALL=C 14971 DEBUG + DEBIAN_FRONTEND=noninteractive 14972 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 15160 DEBUG Reading package lists... 15571 DEBUG Building dependency tree... 15574 DEBUG Reading state information... 15806 DEBUG Correcting dependencies... Done 16196 DEBUG The following additional packages will be installed: 16197 DEBUG  php-sqlite3 php7.3-sqlite3 16226 DEBUG The following NEW packages will be installed: 16230 DEBUG  php-sqlite3 php7.3-sqlite3 16767 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 16769 DEBUG Need to get 0 B/32.2 kB of archives. 16770 DEBUG After this operation, 139 kB of additional disk space will be used. 16986 DEBUG Selecting previously unselected package php7.3-sqlite3. 17035 DEBUG (Reading database ... 42389 files and directories currently installed.) 17041 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 17069 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 17177 DEBUG Selecting previously unselected package php-sqlite3. 17183 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 17193 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 17317 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 17344 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17555 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17646 DEBUG  17648 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 17763 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18032 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18249 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18368 DEBUG  18369 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 18453 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18731 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 18770 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 19545 DEBUG + [[ -n /tmp/tmp.J1FAHMme25 ]] 19546 DEBUG + rm --recursive --force /tmp/tmp.J1FAHMme25 19550 DEBUG + ynh_package_is_installed digiwords-ynh-deps 19551 DEBUG + local legacy_args=p 19551 DEBUG + args_array=([p]=package=) 19552 DEBUG + local -A args_array 19553 DEBUG + local package 19553 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 19554 DEBUG + set +o xtrace 19572 DEBUG + echo '! Helper used in legacy mode !' 19573 DEBUG + set +x 19574 DEBUG + ynh_wait_dpkg_free 19575 DEBUG + local try 19576 DEBUG + set +o xtrace 21144 DEBUG + return 0 21145 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 21146 DEBUG + grep --count 'ok installed' 21166 DEBUG + rm /tmp/digiwords-ynh-deps.control 21170 DEBUG + [[ -n '' ]] 21174 DEBUG + grep --quiet php 21179 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 21181 DEBUG + local _globalapp=digiwords 21183 DEBUG + local legacy_args=akv 21185 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21187 DEBUG + local -A args_array 21188 DEBUG + local app 21190 DEBUG + local key 21191 DEBUG + local value 21192 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 21194 DEBUG + set +o xtrace 21324 DEBUG + app=digiwords 21325 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 21326 DEBUG + ynh_app_setting set digiwords phpversion 7.3 21328 DEBUG + set +o xtrace 21435 DEBUG + ynh_script_progression '--message=Reloading NGINX web server and PHP-FPM...' --weight=1 21436 DEBUG + set +o xtrace 21596 DEBUG + set +o xtrace 21632 DEBUG + echo '! Helper used in legacy mode !' 21634 DEBUG + set +x 21639 INFO [###############++...] > Reloading NGINX web server and PHP-FPM... 21642 DEBUG + echo '[###############++...] > Reloading NGINX web server and PHP-FPM...' 21643 DEBUG + set -o xtrace 21644 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 21645 DEBUG + local legacy_args=nalpte 21646 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 21646 DEBUG + local -A args_array 21647 DEBUG + local service_name 21648 DEBUG + local action 21649 DEBUG + local line_match 21649 DEBUG + local length 21650 DEBUG + local log_path 21651 DEBUG + local timeout 21652 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 21653 DEBUG + set +o xtrace 21864 DEBUG + service_name=php7.3-fpm 21866 DEBUG + action=reload 21868 DEBUG + line_match= 21870 DEBUG + length=20 21871 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 21872 DEBUG + timeout=300 21874 DEBUG + '[' reload == stop ']' 21876 DEBUG + [[ -n '' ]] 21879 DEBUG + '[' reload == reload ']' 21882 DEBUG + action=reload-or-restart 21885 DEBUG + systemctl reload-or-restart php7.3-fpm 21907 DEBUG + [[ -n '' ]] 21908 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 21910 DEBUG + local legacy_args=nalpte 21911 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 21912 DEBUG + local -A args_array 21915 DEBUG + local service_name 21915 DEBUG + local action 21917 DEBUG + local line_match 21934 DEBUG + local length 21936 DEBUG + local log_path 21936 DEBUG + local timeout 21937 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 21939 DEBUG + set +o xtrace 22128 DEBUG + service_name=nginx 22130 DEBUG + action=reload 22132 DEBUG + line_match= 22136 DEBUG + length=20 22140 DEBUG + log_path=/var/log/nginx/nginx.log 22143 DEBUG + timeout=300 22146 DEBUG + '[' reload == stop ']' 22149 DEBUG + [[ -n '' ]] 22152 DEBUG + '[' reload == reload ']' 22152 DEBUG + action=reload-or-restart 22153 DEBUG + systemctl reload-or-restart nginx 22227 DEBUG + [[ -n '' ]] 22228 DEBUG + ynh_script_progression '--message=Restoration completed for digiwords' --last 22228 DEBUG + set +o xtrace 22393 DEBUG + set +o xtrace 22427 DEBUG + echo '! Helper used in legacy mode !' 22428 DEBUG + set +x 22438 DEBUG + echo '[####################] > Restoration completed for digiwords' 22439 DEBUG + set -o xtrace 22440 DEBUG + ynh_exit_properly 22442 DEBUG + local exit_code=0 22443 DEBUG + rm -rf /var/cache/yunohost/download/ 22445 INFO [####################] > Restoration completed for digiwords 22445 DEBUG + '[' 0 -eq 0 ']' 22448 DEBUG + exit 0 23452 DEBUG To view the log of the operation 'Restore 'digiwords' from a backup archive', use the command 'yunohost log show 20220531-094959-backup_restore_app-digiwords' 23495 DEBUG The permission database has been resynchronized 23533 DEBUG SSOwat configuration regenerated 23556 SUCCESS Restoration completed 23557 DEBUG action [3051.1] executed in 23.237s 23558 DEBUG lock has been released Return code: 0 Working time: 25 seconds (09:50:23)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld/path Return code: 0 Working time: 0s (09:50:36) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:50:39) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/path Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Running curl sub.domain.tld/path/ 200;https://sub.domain.tld/path/ Return code: 0 Working time: 0s (09:50:46) Return code: 0 Working time: 0s (09:50:49) HTTP code: 200 Test URL: sub.domain.tld/path/ Real URL: https://sub.domain.tld/path/ HTTP code: 200 Page title: Page extract: Loading snapshot snap0 ...  > Restore on a fresh YunoHost system... Running yunohost backup restore Backup_test --force --apps digiwords 281 DEBUG initializing base actions map parser for cli 284 DEBUG loading actions map namespace 'yunohost' 288 DEBUG building parser... 294 DEBUG building parser took 0.006s 296 DEBUG acquiring lock... 318 DEBUG lock has been acquired 412 DEBUG loading python module yunohost.backup took 0.093s 413 DEBUG processing action [842.1]: yunohost.backup.restore with args={'name': 'Backup_test', 'system': None, 'apps': ['digiwords'], 'force': True} 414 INFO Preparing archive for restoration... 415 DEBUG Extracting needed files from the archive... 544 DEBUG restoring from backup 'Backup_test' created on 2022-05-31 09:49:11 583 INFO Restoring digiwords... 837 DEBUG initializing ldap interface 929 DEBUG Permission 'digiwords.main' updated 955 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-095158-permission_url-digiwords' 1002 DEBUG Permission 'digiwords.main' created 1003 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-095158-permission_create-digiwords' 1046 DEBUG The permission database has been resynchronized 1082 DEBUG SSOwat configuration regenerated 1110 DEBUG Loading migration 0016_php70_to_php73_pools... 1115 DEBUG Loading migration 0020_ssh_sftp_permissions... 1120 DEBUG Loading migration 0018_xtable_to_nftable... 1123 DEBUG Loading migration 0015_migrate_to_buster... 1131 DEBUG Loading migration 0019_extend_permissions_features... 1139 DEBUG Loading migration 0017_postgresql_9p6_to_11... 1183 DEBUG Restoring the app 'digiwords'... 1217 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_mawhknwp/restore" 7>&1']' 1253 DEBUG + source ../settings/scripts/_common.sh 1253 DEBUG ++ pkg_dependencies=php-sqlite3 1253 DEBUG + source /usr/share/yunohost/helpers 1254 DEBUG +++ set +o 1255 DEBUG +++ grep xtrace 1265 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1268 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1270 DEBUG ++ set +x 1324 DEBUG + ynh_abort_if_errors 1325 DEBUG + set -o errexit 1327 DEBUG + set -o nounset 1327 DEBUG + trap ynh_exit_properly EXIT 1328 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 1330 DEBUG + set +o xtrace 1462 DEBUG + set +o xtrace 1519 DEBUG + echo '! Helper used in legacy mode !' 1520 DEBUG + set +x 1523 DEBUG + echo '[++..................] > Loading installation settings...' 1524 INFO [++..................] > Loading installation settings... 1525 DEBUG + set -o xtrace 1525 DEBUG + app=digiwords 1529 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 1529 DEBUG ++ local _globalapp=digiwords 1530 DEBUG ++ local legacy_args=ak 1532 DEBUG ++ args_array=([a]=app= [k]=key=) 1536 DEBUG ++ local -A args_array 1537 DEBUG ++ local app 1537 DEBUG ++ local key 1538 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 1538 DEBUG ++ set +o xtrace 1627 DEBUG ++ app=digiwords 1628 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 1629 DEBUG ++ ynh_app_setting get digiwords domain 1630 DEBUG ++ set +o xtrace 1729 DEBUG + domain=sub.domain.tld 1730 DEBUG ++ ynh_app_setting_get --app=digiwords --key=path 1731 DEBUG ++ local _globalapp=digiwords 1731 DEBUG ++ local legacy_args=ak 1733 DEBUG ++ args_array=([a]=app= [k]=key=) 1734 DEBUG ++ local -A args_array 1734 DEBUG ++ local app 1735 DEBUG ++ local key 1735 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=path 1735 DEBUG ++ set +o xtrace 1816 DEBUG ++ app=digiwords 1817 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]] 1818 DEBUG ++ ynh_app_setting get digiwords path 1818 DEBUG ++ set +o xtrace 1937 DEBUG + path_url=/path 1939 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 1940 DEBUG ++ local _globalapp=digiwords 1940 DEBUG ++ local legacy_args=ak 1941 DEBUG ++ args_array=([a]=app= [k]=key=) 1941 DEBUG ++ local -A args_array 1942 DEBUG ++ local app 1942 DEBUG ++ local key 1942 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 1943 DEBUG ++ set +o xtrace 2001 DEBUG ++ app=digiwords 2002 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2003 DEBUG ++ ynh_app_setting get digiwords final_path 2003 DEBUG ++ set +o xtrace 2109 DEBUG + final_path=/var/www/digiwords 2110 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 2112 DEBUG ++ local _globalapp=digiwords 2113 DEBUG ++ local legacy_args=ak 2114 DEBUG ++ args_array=([a]=app= [k]=key=) 2114 DEBUG ++ local -A args_array 2115 DEBUG ++ local app 2115 DEBUG ++ local key 2115 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 2115 DEBUG ++ set +o xtrace 2195 DEBUG ++ app=digiwords 2197 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2198 DEBUG ++ ynh_app_setting get digiwords db_name 2198 DEBUG ++ set +o xtrace 2283 DEBUG + db_name= 2284 DEBUG + db_user= 2285 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 2286 DEBUG ++ local _globalapp=digiwords 2286 DEBUG ++ local legacy_args=ak 2287 DEBUG ++ args_array=([a]=app= [k]=key=) 2287 DEBUG ++ local -A args_array 2288 DEBUG ++ local app 2288 DEBUG ++ local key 2289 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 2289 DEBUG ++ set +o xtrace 2352 DEBUG ++ app=digiwords 2353 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2354 DEBUG ++ ynh_app_setting get digiwords phpversion 2355 DEBUG ++ set +o xtrace 2468 DEBUG + phpversion=7.3 2470 DEBUG ++ ynh_app_setting_get --app=digiwords --key=datadir 2471 DEBUG ++ local _globalapp=digiwords 2472 DEBUG ++ local legacy_args=ak 2473 DEBUG ++ args_array=([a]=app= [k]=key=) 2474 DEBUG ++ local -A args_array 2476 DEBUG ++ local app 2476 DEBUG ++ local key 2477 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=datadir 2478 DEBUG ++ set +o xtrace 2530 DEBUG ++ app=digiwords 2532 DEBUG ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 2533 DEBUG ++ ynh_app_setting get digiwords datadir 2534 DEBUG ++ set +o xtrace 2625 DEBUG + datadir= 2626 DEBUG + ynh_script_progression '--message=Validating restoration parameters...' --weight=1 2627 DEBUG + set +o xtrace 2732 DEBUG + set +o xtrace 2768 DEBUG + echo '! Helper used in legacy mode !' 2769 DEBUG + set +x 2776 INFO [##++................] > Validating restoration parameters... 2782 DEBUG + echo '[##++................] > Validating restoration parameters...' 2782 DEBUG + set -o xtrace 2793 DEBUG + test '!' -d /var/www/digiwords 2794 DEBUG + ynh_script_progression '--message=Restoring the NGINX web server configuration...' --weight=1 2794 DEBUG + set +o xtrace 2974 DEBUG + set +o xtrace 2997 DEBUG + echo '! Helper used in legacy mode !' 3001 DEBUG + set +x 3009 DEBUG + echo '[####++..............] > Restoring the NGINX web server configuration...' 3010 DEBUG + set -o xtrace 3013 DEBUG + ynh_restore_file --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3014 INFO [####++..............] > Restoring the NGINX web server configuration... 3015 DEBUG + local legacy_args=odm 3018 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3018 DEBUG + local -A args_array 3021 DEBUG + local origin_path 3022 DEBUG + local dest_path 3023 DEBUG + local not_mandatory 3023 DEBUG + ynh_handle_getopts_args --origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3024 DEBUG + set +o xtrace 3074 DEBUG + origin_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3075 DEBUG + dest_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3075 DEBUG + not_mandatory=0 3076 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3077 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 3077 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 3078 DEBUG + [[ -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 3078 DEBUG ++ dirname /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3084 DEBUG + mkdir --parents /etc/nginx/conf.d/sub.domain.tld.d 3092 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3098 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 3110 DEBUG + ynh_script_progression '--message=Recreating the dedicated system user...' --weight=1 3111 DEBUG + set +o xtrace 3325 DEBUG + set +o xtrace 3360 DEBUG + echo '! Helper used in legacy mode !' 3360 DEBUG + set +x 3378 INFO [######++............] > Recreating the dedicated system user... 3379 DEBUG + echo '[######++............] > Recreating the dedicated system user...' 3379 DEBUG + set -o xtrace 3379 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 3380 DEBUG + local legacy_args=uhs 3380 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 3380 DEBUG + local -A args_array 3380 DEBUG + local username 3381 DEBUG + local home_dir 3381 DEBUG + local use_shell 3381 DEBUG + local groups 3381 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 3382 DEBUG + set +o xtrace 3523 DEBUG + use_shell=0 3524 DEBUG + home_dir=/var/www/digiwords 3525 DEBUG + groups= 3526 DEBUG + ynh_system_user_exists digiwords 3528 DEBUG + local legacy_args=u 3528 DEBUG + args_array=([u]=username=) 3530 DEBUG + local -A args_array 3530 DEBUG + local username 3531 DEBUG + ynh_handle_getopts_args digiwords 3532 DEBUG + set +o xtrace 3543 DEBUG + echo '! Helper used in legacy mode !' 3543 DEBUG + set +x 3548 DEBUG + getent passwd digiwords 3559 DEBUG + '[' -n /var/www/digiwords ']' 3560 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 3561 DEBUG + '[' 0 -eq 1 ']' 3562 DEBUG + local 'shell=--shell /usr/sbin/nologin' 3562 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 3683 DEBUG + local group 3685 DEBUG + ynh_script_progression '--message=Restoring the app main directory...' --weight=1 3686 DEBUG + set +o xtrace 3816 DEBUG + set +o xtrace 3837 DEBUG + echo '! Helper used in legacy mode !' 3838 DEBUG + set +x 3843 DEBUG + echo '[########+++.........] > Restoring the app main directory...' 3845 INFO [########+++.........] > Restoring the app main directory... 3845 DEBUG + set -o xtrace 3849 DEBUG + ynh_restore_file --origin_path=/var/www/digiwords 3849 DEBUG + local legacy_args=odm 3850 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 3850 DEBUG + local -A args_array 3850 DEBUG + local origin_path 3850 DEBUG + local dest_path 3851 DEBUG + local not_mandatory 3851 DEBUG + ynh_handle_getopts_args --origin_path=/var/www/digiwords 3855 DEBUG + set +o xtrace 3916 DEBUG + origin_path=/var/www/digiwords 3916 DEBUG + dest_path=/var/www/digiwords 3916 DEBUG + not_mandatory=0 3917 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords 3917 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords ']' 3917 DEBUG + [[ -e /var/www/digiwords ]] 3917 DEBUG ++ dirname /var/www/digiwords 3920 DEBUG + mkdir --parents /var/www 3924 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 3933 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/var/www/digiwords /var/www/digiwords 3936 DEBUG + chmod 750 /var/www/digiwords 3939 DEBUG + chmod -R o-rwx /var/www/digiwords 3941 DEBUG + chown -R digiwords:www-data /var/www/digiwords 3951 DEBUG + ynh_script_progression '--message=Restoring the PHP-FPM configuration...' --weight=1 3952 DEBUG + set +o xtrace 4088 DEBUG + set +o xtrace 4130 DEBUG + echo '! Helper used in legacy mode !' 4131 DEBUG + set +x 4137 DEBUG + echo '[###########++.......] > Restoring the PHP-FPM configuration...' 4138 INFO [###########++.......] > Restoring the PHP-FPM configuration... 4139 DEBUG + set -o xtrace 4140 DEBUG + ynh_restore_file --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4145 DEBUG + local legacy_args=odm 4146 DEBUG + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory) 4147 DEBUG + local -A args_array 4148 DEBUG + local origin_path 4149 DEBUG + local dest_path 4149 DEBUG + local not_mandatory 4150 DEBUG + ynh_handle_getopts_args --origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4151 DEBUG + set +o xtrace 4218 DEBUG + origin_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4218 DEBUG + dest_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4219 DEBUG + not_mandatory=0 4219 DEBUG + local archive_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 4220 DEBUG + '[' '!' -d /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 4220 DEBUG + '[' '!' -f /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf ']' 4221 DEBUG + [[ -e /etc/php/7.3/fpm/pool.d/digiwords.conf ]] 4221 DEBUG ++ dirname /etc/php/7.3/fpm/pool.d/digiwords.conf 4222 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 4227 DEBUG + mountpoint --quiet /home/yunohost.backup/tmp/Backup_test 4229 DEBUG + mv /home/yunohost.backup/tmp/Backup_test/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 4233 DEBUG + ynh_script_progression '--message=Reinstalling dependencies...' --weight=1 4237 DEBUG + set +o xtrace 4369 DEBUG + set +o xtrace 4393 DEBUG + echo '! Helper used in legacy mode !' 4393 DEBUG + set +x 4397 DEBUG + echo '[#############++.....] > Reinstalling dependencies...' 4397 DEBUG + set -o xtrace 4397 INFO [#############++.....] > Reinstalling dependencies... 4398 DEBUG + ynh_install_app_dependencies php-sqlite3 4399 DEBUG + local dependencies=php-sqlite3 4406 DEBUG ++ echo php-sqlite3 4407 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 4421 DEBUG + dependencies=php-sqlite3 4422 DEBUG + local dependencies=php-sqlite3 4424 DEBUG + local manifest_path=/home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 4425 DEBUG ++ jq -r .version /home/yunohost.backup/tmp/Backup_test/apps/digiwords/settings/manifest.json 4437 DEBUG + local version=0.3.3~ynh1 4437 DEBUG + '[' -z 0.3.3~ynh1 ']' 4437 DEBUG + '[' 0.3.3~ynh1 == null ']' 4438 DEBUG + local dep_app=digiwords 4438 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 4453 DEBUG ++ echo php-sqlite3 4462 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 4468 DEBUG ++ sort -u 4473 DEBUG + local specific_php_version= 4474 DEBUG + [[ '' != \7\.\3 ]] 4476 DEBUG + [[ -n '' ]] 4480 DEBUG + [[ true == \t\r\u\e ]] 4481 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 4484 DEBUG + grep --quiet php 4486 DEBUG + grep php7.0 4489 DEBUG + dpkg --list 4489 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 4584 DEBUG + cat 4585 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 4585 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 4585 DEBUG ++ cut '--delimiter= ' --fields=2 4591 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 4602 DEBUG + local pkgname=digiwords-ynh-deps 4602 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 4603 DEBUG ++ cut '--delimiter= ' --fields=2 4607 DEBUG + local pkgversion=0.3.3~ynh1 4607 DEBUG + [[ -z digiwords-ynh-deps ]] 4607 DEBUG + [[ -z 0.3.3~ynh1 ]] 4607 DEBUG + ynh_package_update 4608 DEBUG + ynh_apt update 4608 DEBUG + ynh_wait_dpkg_free 4608 DEBUG + local try 4608 DEBUG + set +o xtrace 6160 DEBUG + return 0 6166 DEBUG + LC_ALL=C 6169 DEBUG + DEBIAN_FRONTEND=noninteractive 6170 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 6491 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 6501 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 6529 DEBUG Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] 6566 DEBUG Get:4 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB] 7384 DEBUG Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [11.1 kB] 7405 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 7433 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 7635 DEBUG Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [328 kB] 7692 DEBUG Get:8 http://deb.debian.org/debian-security buster/updates/main Translation-en [177 kB] 7890 DEBUG Fetched 635 kB in 2s (404 kB/s) 9465 DEBUG Reading package lists... 9524 DEBUG ++ mktemp --directory 9527 DEBUG + local TMPDIR=/tmp/tmp.U6misZELME 9529 DEBUG + echo 10 9533 DEBUG + ynh_wait_dpkg_free 9534 DEBUG + local try 9539 DEBUG + set +o xtrace 11046 DEBUG + return 0 11047 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.U6misZELME/control 11051 DEBUG + cd /tmp/tmp.U6misZELME 11052 DEBUG + LC_ALL=C 11053 DEBUG + equivs-build ./control 13561 DEBUG + tee ./dpkg_log 13562 DEBUG + LC_ALL=C 13563 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 13628 DEBUG Selecting previously unselected package digiwords-ynh-deps. 13670 DEBUG (Reading database ... 42385 files and directories currently installed.) 13677 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 13694 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) ... 13785 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 13787 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 13788 DEBUG  Package php-sqlite3 is not installed. 13789 DEBUG  13790 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 13855 DEBUG + ynh_package_install --fix-broken 13856 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13858 DEBUG + ynh_wait_dpkg_free 13859 DEBUG + local try 13861 DEBUG + set +o xtrace 15348 DEBUG + return 0 15351 DEBUG + LC_ALL=C 15352 DEBUG + DEBIAN_FRONTEND=noninteractive 15355 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 15568 DEBUG Reading package lists... 16005 DEBUG Building dependency tree... 16007 DEBUG Reading state information... 16296 DEBUG Correcting dependencies... Done 16762 DEBUG The following additional packages will be installed: 16763 DEBUG  php-sqlite3 php7.3-sqlite3 16809 DEBUG The following NEW packages will be installed: 16810 DEBUG  php-sqlite3 php7.3-sqlite3 16882 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 16884 DEBUG Need to get 32.2 kB of archives. 16884 DEBUG After this operation, 139 kB of additional disk space will be used. 16885 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php7.3-sqlite3 amd64 7.3.31-1~deb10u1 [26.2 kB] 16898 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 php-sqlite3 all 2:7.3+69 [5996 B] 17535 DEBUG Fetched 32.2 kB in 0s (631 kB/s) 17735 DEBUG Selecting previously unselected package php7.3-sqlite3. 17795 DEBUG (Reading database ... 42389 files and directories currently installed.) 17800 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 17832 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 17962 DEBUG Selecting previously unselected package php-sqlite3. 17971 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 17986 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 18115 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 18153 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18406 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18512 DEBUG  18514 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 18607 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 18888 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 19128 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 19244 DEBUG  19245 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 19348 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 19602 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 19637 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 20376 DEBUG + [[ -n /tmp/tmp.U6misZELME ]] 20378 DEBUG + rm --recursive --force /tmp/tmp.U6misZELME 20383 DEBUG + ynh_package_is_installed digiwords-ynh-deps 20385 DEBUG + local legacy_args=p 20385 DEBUG + args_array=([p]=package=) 20386 DEBUG + local -A args_array 20386 DEBUG + local package 20387 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 20387 DEBUG + set +o xtrace 20400 DEBUG + echo '! Helper used in legacy mode !' 20401 DEBUG + set +x 20403 DEBUG + ynh_wait_dpkg_free 20404 DEBUG + local try 20405 DEBUG + set +o xtrace 21798 DEBUG + return 0 21799 DEBUG + grep --count 'ok installed' 21800 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 21825 DEBUG + rm /tmp/digiwords-ynh-deps.control 21828 DEBUG + [[ -n '' ]] 21829 DEBUG + grep --quiet php 21834 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 21835 DEBUG + local _globalapp=digiwords 21835 DEBUG + local legacy_args=akv 21837 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21837 DEBUG + local -A args_array 21838 DEBUG + local app 21839 DEBUG + local key 21840 DEBUG + local value 21841 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 21842 DEBUG + set +o xtrace 21950 DEBUG + app=digiwords 21951 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 21951 DEBUG + ynh_app_setting set digiwords phpversion 7.3 21952 DEBUG + set +o xtrace 22041 DEBUG + ynh_script_progression '--message=Reloading NGINX web server and PHP-FPM...' --weight=1 22043 DEBUG + set +o xtrace 22164 DEBUG + set +o xtrace 22192 DEBUG + echo '! Helper used in legacy mode !' 22195 DEBUG + set +x 22197 DEBUG + echo '[###############++...] > Reloading NGINX web server and PHP-FPM...' 22199 DEBUG + set -o xtrace 22199 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 22200 DEBUG + local legacy_args=nalpte 22201 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 22202 DEBUG + local -A args_array 22202 DEBUG + local service_name 22203 DEBUG + local action 22205 DEBUG + local line_match 22206 DEBUG + local length 22206 DEBUG + local log_path 22207 DEBUG + local timeout 22207 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 22208 DEBUG + set +o xtrace 22210 INFO [###############++...] > Reloading NGINX web server and PHP-FPM... 22428 DEBUG + service_name=php7.3-fpm 22431 DEBUG + action=reload 22432 DEBUG + line_match= 22433 DEBUG + length=20 22434 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 22435 DEBUG + timeout=300 22435 DEBUG + '[' reload == stop ']' 22435 DEBUG + [[ -n '' ]] 22436 DEBUG + '[' reload == reload ']' 22437 DEBUG + action=reload-or-restart 22437 DEBUG + systemctl reload-or-restart php7.3-fpm 22466 DEBUG + [[ -n '' ]] 22468 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 22469 DEBUG + local legacy_args=nalpte 22470 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 22472 DEBUG + local -A args_array 22481 DEBUG + local service_name 22482 DEBUG + local action 22483 DEBUG + local line_match 22484 DEBUG + local length 22484 DEBUG + local log_path 22485 DEBUG + local timeout 22485 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 22485 DEBUG + set +o xtrace 22742 DEBUG + service_name=nginx 22744 DEBUG + action=reload 22745 DEBUG + line_match= 22747 DEBUG + length=20 22748 DEBUG + log_path=/var/log/nginx/nginx.log 22750 DEBUG + timeout=300 22751 DEBUG + '[' reload == stop ']' 22751 DEBUG + [[ -n '' ]] 22751 DEBUG + '[' reload == reload ']' 22752 DEBUG + action=reload-or-restart 22752 DEBUG + systemctl reload-or-restart nginx 22846 DEBUG + [[ -n '' ]] 22850 DEBUG + ynh_script_progression '--message=Restoration completed for digiwords' --last 22851 DEBUG + set +o xtrace 22993 DEBUG + set +o xtrace 23022 DEBUG + echo '! Helper used in legacy mode !' 23023 DEBUG + set +x 23031 DEBUG + echo '[####################] > Restoration completed for digiwords' 23032 DEBUG + set -o xtrace 23038 DEBUG + ynh_exit_properly 23039 DEBUG + local exit_code=0 23041 DEBUG + rm -rf /var/cache/yunohost/download/ 23043 INFO [####################] > Restoration completed for digiwords 23049 DEBUG + '[' 0 -eq 0 ']' 23052 DEBUG + exit 0 24056 DEBUG To view the log of the operation 'Restore 'digiwords' from a backup archive', use the command 'yunohost log show 20220531-095157-backup_restore_app-digiwords' 24093 DEBUG The permission database has been resynchronized 24146 DEBUG SSOwat configuration regenerated 24168 SUCCESS Restoration completed 24169 DEBUG action [842.1] executed in 23.755s 24169 DEBUG lock has been released Return code: 0 Working time: 25 seconds (09:52:21)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld/path 200;https://sub.domain.tld/path/ Return code: 0 Working time: 0s (09:52:35) Return code: 0 Working time: 0s (09:52:38) HTTP code: 200 Test URL: sub.domain.tld/path Real URL: https://sub.domain.tld/path/ HTTP code: 200 Page title: Page extract: Running curl sub.domain.tld/path/ 200;https://sub.domain.tld/path/ Return code: 0 Working time: 0s (09:52:44) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:52:47) HTTP code: 200 Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/path/ Real URL: https://sub.domain.tld/path/ HTTP code: 200 Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. --- SUCCESS --- Working time for this test: 9 minutes, 42 seconds (09:52:47)  ============================================ [Test 7/9] Upgrade from the same version ============================================   > Preliminary install... (Reusing existing snapshot snap_rootinstall) Loading snapshot snap_rootinstall ...  > Upgrade... Running yunohost app upgrade digiwords --file /app_folder --force 231 DEBUG initializing base actions map parser for cli 234 DEBUG loading actions map namespace 'yunohost' 237 DEBUG building parser... 258 DEBUG building parser took 0.021s 260 DEBUG acquiring lock... 281 DEBUG lock has been acquired 320 DEBUG loading python module yunohost.app took 0.039s 321 DEBUG processing action [846.1]: yunohost.app.upgrade with args={'app': ['digiwords'], 'url': None, 'file': '/app_folder', 'force': True, 'no_safety_backup': False} 358 INFO Now upgrading digiwords... 442 DEBUG initializing ldap interface 500 DEBUG Extracting... 517 DEBUG Done 519 DEBUG Checking required packages for digiwords... 533 DEBUG Checking that required services are up and running... 1516 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 1528 DEBUG + source _common.sh 1529 DEBUG ++ pkg_dependencies=php-sqlite3 1529 DEBUG + source /usr/share/yunohost/helpers 1531 DEBUG +++ set +o 1532 DEBUG +++ grep xtrace 1537 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1538 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1538 DEBUG ++ set +x 1582 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 1583 DEBUG + set +o xtrace 1686 DEBUG + set +o xtrace 1743 DEBUG + echo '! Helper used in legacy mode !' 1744 DEBUG + set +x 1747 INFO [++..................] > Loading installation settings... 1748 DEBUG + echo '[++..................] > Loading installation settings...' 1749 DEBUG + set -o xtrace 1750 DEBUG + app=digiwords 1751 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 1751 DEBUG ++ local _globalapp=digiwords 1752 DEBUG ++ local legacy_args=ak 1753 DEBUG ++ args_array=([a]=app= [k]=key=) 1755 DEBUG ++ local -A args_array 1755 DEBUG ++ local app 1756 DEBUG ++ local key 1756 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 1756 DEBUG ++ set +o xtrace 1828 DEBUG ++ app=digiwords 1829 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 1831 DEBUG ++ ynh_app_setting get digiwords domain 1833 DEBUG ++ set +o xtrace 1932 DEBUG + domain=sub.domain.tld 1935 DEBUG ++ ynh_app_setting_get --app=digiwords --key=path 1936 DEBUG ++ local _globalapp=digiwords 1944 DEBUG ++ local legacy_args=ak 1945 DEBUG ++ args_array=([a]=app= [k]=key=) 1947 DEBUG ++ local -A args_array 1948 DEBUG ++ local app 1950 DEBUG ++ local key 1951 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=path 1951 DEBUG ++ set +o xtrace 2026 DEBUG ++ app=digiwords 2026 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2027 DEBUG ++ ynh_app_setting get digiwords path 2028 DEBUG ++ set +o xtrace 2114 DEBUG + path_url=/ 2115 DEBUG ++ ynh_app_setting_get --app=digiwords --key=admin 2116 DEBUG ++ local _globalapp=digiwords 2116 DEBUG ++ local legacy_args=ak 2116 DEBUG ++ args_array=([a]=app= [k]=key=) 2117 DEBUG ++ local -A args_array 2117 DEBUG ++ local app 2118 DEBUG ++ local key 2119 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=admin 2119 DEBUG ++ set +o xtrace 2181 DEBUG ++ app=digiwords 2182 DEBUG ++ [[ admin =~ (unprotected|protected|skipped)_ ]] 2183 DEBUG ++ ynh_app_setting get digiwords admin 2183 DEBUG ++ set +o xtrace 2260 DEBUG + admin= 2262 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 2263 DEBUG ++ local _globalapp=digiwords 2264 DEBUG ++ local legacy_args=ak 2265 DEBUG ++ args_array=([a]=app= [k]=key=) 2266 DEBUG ++ local -A args_array 2266 DEBUG ++ local app 2267 DEBUG ++ local key 2267 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 2268 DEBUG ++ set +o xtrace 2330 DEBUG ++ app=digiwords 2330 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2334 DEBUG ++ ynh_app_setting get digiwords final_path 2334 DEBUG ++ set +o xtrace 2429 DEBUG + final_path=/var/www/digiwords 2430 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 2431 DEBUG ++ local _globalapp=digiwords 2431 DEBUG ++ local legacy_args=ak 2433 DEBUG ++ args_array=([a]=app= [k]=key=) 2434 DEBUG ++ local -A args_array 2435 DEBUG ++ local app 2435 DEBUG ++ local key 2436 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 2436 DEBUG ++ set +o xtrace 2507 DEBUG ++ app=digiwords 2508 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2509 DEBUG ++ ynh_app_setting get digiwords db_name 2511 DEBUG ++ set +o xtrace 2596 DEBUG + db_name= 2598 DEBUG ++ ynh_check_app_version_changed 2599 DEBUG ++ local return_value=UPGRADE_FORCED 2601 DEBUG ++ '[' UPGRADE_FORCED == UPGRADE_FULL ']' 2602 DEBUG ++ '[' UPGRADE_FORCED == UPGRADE_FORCED ']' 2603 DEBUG ++ return_value=UPGRADE_APP 2604 DEBUG ++ echo UPGRADE_APP 2605 DEBUG + upgrade_type=UPGRADE_APP 2605 DEBUG + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...' --weight=1 2606 DEBUG + set +o xtrace 2715 DEBUG + set +o xtrace 2740 DEBUG + echo '! Helper used in legacy mode !' 2741 DEBUG + set +x 2745 INFO [##++................] > Backing up the app before upgrading (may take a while)... 2747 DEBUG + echo '[##++................] > Backing up the app before upgrading (may take a while)...' 2747 DEBUG + set -o xtrace 2748 DEBUG + ynh_backup_before_upgrade 2748 DEBUG + '[' '!' -e /etc/yunohost/apps/digiwords/scripts/backup ']' 2748 DEBUG + backup_number=1 2749 DEBUG + local old_backup_number=2 2749 DEBUG + local app_bck=digiwords 2750 DEBUG + NO_BACKUP_UPGRADE=0 2750 DEBUG + '[' 0 -eq 0 ']' 2750 DEBUG + ynh_backup_archive_exists digiwords-pre-upgrade1 2751 DEBUG + yunohost backup list --output-as json --quiet 2752 DEBUG + jq -e --arg archive digiwords-pre-upgrade1 '.archives | index($archive)' 3154 DEBUG + BACKUP_CORE_ONLY=1 3154 DEBUG + yunohost backup create --apps digiwords --name digiwords-pre-upgrade1 --debug 3429 DEBUG 203 initializing base actions map parser for cli 3435 DEBUG 208 loading actions map namespace 'yunohost' 3440 DEBUG 214 building parser... 3450 DEBUG 223 building parser took 0.009s 3462 DEBUG 235 acquiring lock... 3540 DEBUG 314 loading python module yunohost.backup took 0.032s 3543 DEBUG 315 processing action [1200.1]: yunohost.backup.create with args={'name': 'digiwords-pre-upgrade1', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['digiwords'], 'dry_run': False} 3596 DEBUG 370 Collecting files to be backed up for digiwords... 3621 DEBUG 395 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_g0yrqj69/scripts/backup" 7>&1']' 3633 DEBUG 406 + source ../settings/scripts/_common.sh 3634 DEBUG 407 ++ pkg_dependencies=php-sqlite3 3634 DEBUG 408 + source /usr/share/yunohost/helpers 3635 DEBUG 409 +++ set +o 3638 DEBUG 412 +++ grep xtrace 3643 DEBUG 416 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 3643 DEBUG 417 ++ XTRACE_ENABLE='set -o xtrace' 3644 DEBUG 417 ++ set +x 3699 DEBUG 473 + ynh_abort_if_errors 3699 DEBUG 473 + set -o errexit 3700 DEBUG 473 + set -o nounset 3701 DEBUG 474 + trap ynh_exit_properly EXIT 3703 DEBUG 477 + ynh_print_info '--message=Loading installation settings...' 3705 DEBUG 477 + local legacy_args=m 3705 DEBUG 477 + args_array=([m]=message=) 3707 DEBUG 478 + local -A args_array 3709 DEBUG 478 + local message 3709 DEBUG 478 + ynh_handle_getopts_args '--message=Loading installation settings...' 3710 DEBUG 479 + set +o xtrace 3731 DEBUG 505 Loading installation settings... 3734 DEBUG 505 + echo 'Loading installation settings...' 3736 DEBUG 506 + app=digiwords 3737 DEBUG 507 ++ ynh_app_setting_get --app=digiwords --key=final_path 3738 DEBUG 509 ++ local _globalapp=digiwords 3739 DEBUG 510 ++ local legacy_args=ak 3740 DEBUG 511 ++ args_array=([a]=app= [k]=key=) 3740 DEBUG 511 ++ local -A args_array 3740 DEBUG 512 ++ local app 3742 DEBUG 514 ++ local key 3743 DEBUG 514 ++ ynh_handle_getopts_args --app=digiwords --key=final_path 3745 DEBUG 514 ++ set +o xtrace 3803 DEBUG 577 ++ app=digiwords 3805 DEBUG 577 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 3808 DEBUG 577 ++ ynh_app_setting get digiwords final_path 3811 DEBUG 578 ++ set +o xtrace 3893 DEBUG 666 + final_path=/var/www/digiwords 3895 DEBUG 668 ++ ynh_app_setting_get --app=digiwords --key=domain 3903 DEBUG 677 ++ local _globalapp=digiwords 3904 DEBUG 677 ++ local legacy_args=ak 3905 DEBUG 678 ++ args_array=([a]=app= [k]=key=) 3906 DEBUG 678 ++ local -A args_array 3907 DEBUG 678 ++ local app 3907 DEBUG 678 ++ local key 3907 DEBUG 679 ++ ynh_handle_getopts_args --app=digiwords --key=domain 3908 DEBUG 681 ++ set +o xtrace 3977 DEBUG 751 ++ app=digiwords 3981 DEBUG 751 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 3984 DEBUG 751 ++ ynh_app_setting get digiwords domain 3985 DEBUG 751 ++ set +o xtrace 4061 DEBUG 835 + domain=sub.domain.tld 4067 DEBUG 836 ++ ynh_app_setting_get --app=digiwords --key=db_name 4069 DEBUG 840 ++ local _globalapp=digiwords 4069 DEBUG 840 ++ local legacy_args=ak 4070 DEBUG 840 ++ args_array=([a]=app= [k]=key=) 4071 DEBUG 841 ++ local -A args_array 4071 DEBUG 841 ++ local app 4072 DEBUG 841 ++ local key 4072 DEBUG 841 ++ ynh_handle_getopts_args --app=digiwords --key=db_name 4073 DEBUG 842 ++ set +o xtrace 4138 DEBUG 909 ++ app=digiwords 4139 DEBUG 910 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 4142 DEBUG 910 ++ ynh_app_setting get digiwords db_name 4143 DEBUG 910 ++ set +o xtrace 4213 DEBUG 986 + db_name= 4216 DEBUG 990 ++ ynh_app_setting_get --app=digiwords --key=phpversion 4225 DEBUG 999 ++ local _globalapp=digiwords 4226 DEBUG 1000 ++ local legacy_args=ak 4227 DEBUG 1001 ++ args_array=([a]=app= [k]=key=) 4233 DEBUG 1004 ++ local -A args_array 4234 DEBUG 1005 ++ local app 4234 DEBUG 1006 ++ local key 4234 DEBUG 1006 ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 4235 DEBUG 1007 ++ set +o xtrace 4290 DEBUG 1063 ++ app=digiwords 4291 DEBUG 1064 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 4291 DEBUG 1064 ++ ynh_app_setting get digiwords phpversion 4292 DEBUG 1064 ++ set +o xtrace 4395 DEBUG 1168 + phpversion=7.3 4399 DEBUG 1171 ++ ynh_app_setting_get --app=digiwords --key=datadir 4403 DEBUG 1176 ++ local _globalapp=digiwords 4404 DEBUG 1178 ++ local legacy_args=ak 4405 DEBUG 1179 ++ args_array=([a]=app= [k]=key=) 4406 DEBUG 1181 ++ local -A args_array 4407 DEBUG 1182 ++ local app 4408 DEBUG 1183 ++ local key 4409 DEBUG 1183 ++ ynh_handle_getopts_args --app=digiwords --key=datadir 4410 DEBUG 1184 ++ set +o xtrace 4484 DEBUG 1258 ++ app=digiwords 4485 DEBUG 1258 ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 4490 DEBUG 1258 ++ ynh_app_setting get digiwords datadir 4496 DEBUG 1259 ++ set +o xtrace 4571 DEBUG 1342 + datadir= 4571 DEBUG 1343 + ynh_print_info '--message=Declaring files to be backed up...' 4572 DEBUG 1343 + local legacy_args=m 4573 DEBUG 1344 + args_array=([m]=message=) 4573 DEBUG 1344 + local -A args_array 4574 DEBUG 1345 + local message 4575 DEBUG 1345 + ynh_handle_getopts_args '--message=Declaring files to be backed up...' 4576 DEBUG 1345 + set +o xtrace 4600 DEBUG 1374 + echo 'Declaring files to be backed up...' 4601 DEBUG 1375 + ynh_backup --src_path=/var/www/digiwords 4602 DEBUG 1375 + local legacy_args=sdbm 4603 DEBUG 1375 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 4606 DEBUG 1379 + local -A args_array 4610 DEBUG 1383 + local src_path 4612 DEBUG 1385 + local dest_path 4614 DEBUG 1388 + local is_big 4615 DEBUG 1389 + local not_mandatory 4616 DEBUG 1390 + ynh_handle_getopts_args --src_path=/var/www/digiwords 4617 DEBUG 1391 + set +o xtrace 4620 DEBUG 1394 Declaring files to be backed up... 4683 DEBUG 1456 + dest_path= 4685 DEBUG 1457 + is_big=0 4687 DEBUG 1457 + not_mandatory=0 4691 DEBUG 1457 + BACKUP_CORE_ONLY=1 4693 DEBUG 1458 + test -n digiwords 4696 DEBUG 1462 ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 4700 DEBUG 1471 ++ local _globalapp=digiwords 4701 DEBUG 1474 ++ local legacy_args=ak 4703 DEBUG 1476 ++ args_array=([a]=app= [k]=key=) 4704 DEBUG 1477 ++ local -A args_array 4704 DEBUG 1478 ++ local app 4707 DEBUG 1479 ++ local key 4710 DEBUG 1479 ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 4711 DEBUG 1481 ++ set +o xtrace 4788 DEBUG 1561 ++ app=digiwords 4789 DEBUG 1562 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 4791 DEBUG 1562 ++ ynh_app_setting get digiwords do_not_backup_data 4792 DEBUG 1562 ++ set +o xtrace 4920 DEBUG 1694 + do_not_backup_data= 4921 DEBUG 1694 + '[' 0 -eq 1 ']' 4921 DEBUG 1694 + '[' '!' -e /var/www/digiwords ']' 4922 DEBUG 1695 ++ realpath /var/www/digiwords 4931 DEBUG 1703 + src_path=/var/www/digiwords 4931 DEBUG 1705 + [[ -z '' ]] 4932 DEBUG 1705 + dest_path=var/www/digiwords 4933 DEBUG 1706 + [[ -e var/www/digiwords ]] 4934 DEBUG 1707 + local rel_dir=/apps/digiwords/backup 4936 DEBUG 1709 + rel_dir=/apps/digiwords/backup/ 4938 DEBUG 1711 + dest_path=/apps/digiwords/backup/var/www/digiwords 4944 DEBUG 1714 + dest_path=apps/digiwords/backup/var/www/digiwords 4944 DEBUG 1716 ++ echo /var/www/digiwords 4945 DEBUG 1717 ++ sed --regexp-extended 's/"/\"\"/g' 4951 DEBUG 1724 + local src=/var/www/digiwords 4954 DEBUG 1728 ++ sed --regexp-extended 's/"/\"\"/g' 4955 DEBUG 1729 ++ echo apps/digiwords/backup/var/www/digiwords 4961 DEBUG 1734 + local dest=apps/digiwords/backup/var/www/digiwords 4962 DEBUG 1735 + echo '"/var/www/digiwords","apps/digiwords/backup/var/www/digiwords"' 4963 DEBUG 1736 ++ dirname /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/var/www/digiwords 4969 DEBUG 1742 + mkdir --parents /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/var/www 4974 DEBUG 1748 + ynh_backup --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4975 DEBUG 1749 + local legacy_args=sdbm 4976 DEBUG 1749 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 4977 DEBUG 1749 + local -A args_array 4977 DEBUG 1749 + local src_path 4978 DEBUG 1750 + local dest_path 4979 DEBUG 1750 + local is_big 4979 DEBUG 1751 + local not_mandatory 4980 DEBUG 1751 + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4981 DEBUG 1751 + set +o xtrace 5042 DEBUG 1816 + dest_path= 5043 DEBUG 1816 + is_big=0 5044 DEBUG 1817 + not_mandatory=0 5045 DEBUG 1817 + BACKUP_CORE_ONLY=1 5047 DEBUG 1817 + test -n digiwords 5048 DEBUG 1817 ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 5049 DEBUG 1818 ++ local _globalapp=digiwords 5051 DEBUG 1819 ++ local legacy_args=ak 5051 DEBUG 1820 ++ args_array=([a]=app= [k]=key=) 5052 DEBUG 1821 ++ local -A args_array 5052 DEBUG 1822 ++ local app 5053 DEBUG 1823 ++ local key 5054 DEBUG 1823 ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 5055 DEBUG 1824 ++ set +o xtrace 5109 DEBUG 1884 ++ app=digiwords 5110 DEBUG 1884 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 5110 DEBUG 1884 ++ ynh_app_setting get digiwords do_not_backup_data 5111 DEBUG 1885 ++ set +o xtrace 5188 DEBUG 1962 + do_not_backup_data= 5189 DEBUG 1963 + '[' 0 -eq 1 ']' 5191 DEBUG 1963 + '[' '!' -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 5194 DEBUG 1968 ++ realpath /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5196 DEBUG 1970 + src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5198 DEBUG 1971 + [[ -z '' ]] 5200 DEBUG 1971 + dest_path=etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5201 DEBUG 1972 + [[ -e etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 5202 DEBUG 1973 + local rel_dir=/apps/digiwords/backup 5202 DEBUG 1974 + rel_dir=/apps/digiwords/backup/ 5203 DEBUG 1974 + dest_path=/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5204 DEBUG 1974 + dest_path=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5204 DEBUG 1974 ++ echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5205 DEBUG 1975 ++ sed --regexp-extended 's/"/\"\"/g' 5205 DEBUG 1977 + local src=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5206 DEBUG 1979 ++ sed --regexp-extended 's/"/\"\"/g' 5208 DEBUG 1982 ++ echo apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5214 DEBUG 1988 + local dest=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5215 DEBUG 1989 + echo '"/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf","apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf"' 5216 DEBUG 1990 ++ dirname /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 5219 DEBUG 1993 + mkdir --parents /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d 5225 DEBUG 1997 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 5226 DEBUG 1997 + local legacy_args=sdbm 5227 DEBUG 1997 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 5227 DEBUG 1998 + local -A args_array 5228 DEBUG 1998 + local src_path 5228 DEBUG 1998 + local dest_path 5229 DEBUG 1998 + local is_big 5230 DEBUG 1998 + local not_mandatory 5231 DEBUG 1999 + ynh_handle_getopts_args --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 5231 DEBUG 1999 + set +o xtrace 5301 DEBUG 2075 + dest_path= 5302 DEBUG 2075 + is_big=0 5302 DEBUG 2076 + not_mandatory=0 5304 DEBUG 2078 + BACKUP_CORE_ONLY=1 5306 DEBUG 2078 + test -n digiwords 5306 DEBUG 2081 ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 5307 DEBUG 2081 ++ local _globalapp=digiwords 5307 DEBUG 2081 ++ local legacy_args=ak 5308 DEBUG 2081 ++ args_array=([a]=app= [k]=key=) 5308 DEBUG 2082 ++ local -A args_array 5309 DEBUG 2082 ++ local app 5309 DEBUG 2082 ++ local key 5310 DEBUG 2083 ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 5310 DEBUG 2083 ++ set +o xtrace 5378 DEBUG 2152 ++ app=digiwords 5379 DEBUG 2153 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 5380 DEBUG 2153 ++ ynh_app_setting get digiwords do_not_backup_data 5381 DEBUG 2154 ++ set +o xtrace 5464 DEBUG 2238 + do_not_backup_data= 5465 DEBUG 2239 + '[' 0 -eq 1 ']' 5466 DEBUG 2240 + '[' '!' -e /etc/php/7.3/fpm/pool.d/digiwords.conf ']' 5466 DEBUG 2240 ++ realpath /etc/php/7.3/fpm/pool.d/digiwords.conf 5471 DEBUG 2245 + src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 5471 DEBUG 2245 + [[ -z '' ]] 5472 DEBUG 2246 + dest_path=etc/php/7.3/fpm/pool.d/digiwords.conf 5473 DEBUG 2247 + [[ -e etc/php/7.3/fpm/pool.d/digiwords.conf ]] 5474 DEBUG 2248 + local rel_dir=/apps/digiwords/backup 5475 DEBUG 2249 + rel_dir=/apps/digiwords/backup/ 5475 DEBUG 2249 + dest_path=/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 5476 DEBUG 2250 + dest_path=apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 5478 DEBUG 2252 ++ echo /etc/php/7.3/fpm/pool.d/digiwords.conf 5479 DEBUG 2253 ++ sed --regexp-extended 's/"/\"\"/g' 5496 DEBUG 2270 + local src=/etc/php/7.3/fpm/pool.d/digiwords.conf 5500 DEBUG 2273 ++ echo apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 5501 DEBUG 2274 ++ sed --regexp-extended 's/"/\"\"/g' 5510 DEBUG 2281 + local dest=apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 5511 DEBUG 2282 + echo '"/etc/php/7.3/fpm/pool.d/digiwords.conf","apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf"' 5511 DEBUG 2283 ++ dirname /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/etc/php/7.3/fpm/pool.d/digiwords.conf 5512 DEBUG 2284 + mkdir --parents /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/etc/php/7.3/fpm/pool.d 5517 DEBUG 2291 + ynh_print_info '--message=Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 5518 DEBUG 2292 + local legacy_args=m 5520 DEBUG 2293 + args_array=([m]=message=) 5523 DEBUG 2295 + local -A args_array 5527 DEBUG 2297 + local message 5527 DEBUG 2298 + ynh_handle_getopts_args '--message=Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 5528 DEBUG 2300 + set +o xtrace 5555 DEBUG 2329 Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive). 5557 DEBUG 2329 + echo 'Backup script completed for digiwords. (YunoHost will then actually copy those files to the archive).' 5559 DEBUG 2329 + ynh_exit_properly 5563 DEBUG 2329 + local exit_code=0 5563 DEBUG 2330 + rm -rf /var/cache/yunohost/download/ 5566 DEBUG 2333 + '[' 0 -eq 0 ']' 5567 DEBUG 2337 + exit 0 6567 DEBUG 3341 Backup permission for digiwords 6650 DEBUG 3423 initializing ldap interface 6763 DEBUG 3537 Creating a backup archive from the collected files... 6764 DEBUG 3538 The archive will contain about 3.4MiB of data. 6765 DEBUG 3539 Creating the backup TAR archive... 6850 DEBUG 3622 TAR backup archive created 6850 DEBUG 3623 Backup created 6854 DEBUG 3627 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20220531-095406-backup_create' 6868 DEBUG 3642 action [1200.1] executed in 3.325s 6870 DEBUG name: digiwords-pre-upgrade1 6871 DEBUG results: 6871 DEBUG  apps: 6872 DEBUG  digiwords: Success 6872 DEBUG  system: 6873 DEBUG size: 3566324 6941 DEBUG + '[' 0 -eq 0 ']' 6942 DEBUG + ynh_backup_archive_exists digiwords-pre-upgrade2 6942 DEBUG + yunohost backup list --output-as json --quiet 6943 DEBUG + jq -e --arg archive digiwords-pre-upgrade2 '.archives | index($archive)' 7356 DEBUG + ynh_abort_if_errors 7356 DEBUG + set -o errexit 7357 DEBUG + set -o nounset 7357 DEBUG + trap ynh_exit_properly EXIT 7358 DEBUG + ynh_script_progression '--message=Ensuring downward compatibility...' --weight=1 7359 DEBUG + set +o xtrace 7477 DEBUG + set +o xtrace 7500 DEBUG + echo '! Helper used in legacy mode !' 7501 DEBUG + set +x 7507 DEBUG + echo '[####++..............] > Ensuring downward compatibility...' 7507 INFO [####++..............] > Ensuring downward compatibility... 7508 DEBUG + set -o xtrace 7509 DEBUG + ynh_legacy_permissions_exists 7510 DEBUG + for permission in "skipped" "unprotected" "protected" 7514 DEBUG + ynh_permission_exists --permission=legacy_skipped_uris 7515 DEBUG + local legacy_args=p 7516 DEBUG + args_array=([p]=permission=) 7516 DEBUG + local -A args_array 7517 DEBUG + local permission 7517 DEBUG + ynh_handle_getopts_args --permission=legacy_skipped_uris 7518 DEBUG + set +o xtrace 7540 DEBUG + yunohost user permission list digiwords --output-as json --quiet 7544 DEBUG + jq -e --arg perm digiwords.legacy_skipped_uris '.permissions[$perm]' 8170 DEBUG + for permission in "skipped" "unprotected" "protected" 8171 DEBUG + ynh_permission_exists --permission=legacy_unprotected_uris 8172 DEBUG + local legacy_args=p 8173 DEBUG + args_array=([p]=permission=) 8174 DEBUG + local -A args_array 8175 DEBUG + local permission 8175 DEBUG + ynh_handle_getopts_args --permission=legacy_unprotected_uris 8176 DEBUG + set +o xtrace 8201 DEBUG + yunohost user permission list digiwords --output-as json --quiet 8202 DEBUG + jq -e --arg perm digiwords.legacy_unprotected_uris '.permissions[$perm]' 8818 DEBUG + for permission in "skipped" "unprotected" "protected" 8819 DEBUG + ynh_permission_exists --permission=legacy_protected_uris 8820 DEBUG + local legacy_args=p 8821 DEBUG + args_array=([p]=permission=) 8823 DEBUG + local -A args_array 8824 DEBUG + local permission 8824 DEBUG + ynh_handle_getopts_args --permission=legacy_protected_uris 8824 DEBUG + set +o xtrace 8845 DEBUG + yunohost user permission list digiwords --output-as json --quiet 8847 DEBUG + jq -e --arg perm digiwords.legacy_protected_uris '.permissions[$perm]' 9387 DEBUG + return 1 9388 DEBUG + ynh_permission_exists --permission=admin 9389 DEBUG + local legacy_args=p 9391 DEBUG + args_array=([p]=permission=) 9391 DEBUG + local -A args_array 9391 DEBUG + local permission 9392 DEBUG + ynh_handle_getopts_args --permission=admin 9393 DEBUG + set +o xtrace 9416 DEBUG + jq -e --arg perm digiwords.admin '.permissions[$perm]' 9425 DEBUG + yunohost user permission list digiwords --output-as json --quiet 10066 DEBUG + ynh_permission_create --permission=admin --url=/admin --allowed= 10067 DEBUG + local legacy_args=puAhaltP 10067 DEBUG + args_array=([p]=permission= [u]=url= [A]=additional_urls= [h]=auth_header= [a]=allowed= [l]=label= [t]=show_tile= [P]=protected=) 10069 DEBUG + local -A args_array 10070 DEBUG + local permission 10071 DEBUG + local url 10072 DEBUG + local additional_urls 10073 DEBUG + local auth_header 10074 DEBUG + local allowed 10076 DEBUG + local label 10077 DEBUG + local show_tile 10078 DEBUG + local protected 10081 DEBUG + ynh_handle_getopts_args --permission=admin --url=/admin --allowed= 10083 DEBUG + set +o xtrace 10472 DEBUG + url=/admin 10473 DEBUG + additional_urls= 10475 DEBUG + auth_header= 10477 DEBUG + allowed= 10479 DEBUG + label= 10481 DEBUG + show_tile= 10483 DEBUG + protected= 10484 DEBUG + [[ -n /admin ]] 10485 DEBUG + url=',url='\''/admin'\''' 10486 DEBUG + [[ -n '' ]] 10487 DEBUG + [[ -n '' ]] 10488 DEBUG + [[ -n '' ]] 10489 DEBUG + [[ -n '' ]] 10490 DEBUG + label=',label='\''admin'\''' 10490 DEBUG + [[ -n '' ]] 10491 DEBUG + [[ -n '' ]] 10492 DEBUG + yunohost tools shell -c 'from yunohost.permission import permission_create; permission_create('\''digiwords.admin'\'' ,url='\''/admin'\'' ,label='\''admin'\'' )' 11230 DEBUG + ynh_permission_exists --permission=api 11231 DEBUG + local legacy_args=p 11231 DEBUG + args_array=([p]=permission=) 11232 DEBUG + local -A args_array 11232 DEBUG + local permission 11232 DEBUG + ynh_handle_getopts_args --permission=api 11232 DEBUG + set +o xtrace 11261 DEBUG + yunohost user permission list digiwords --output-as json --quiet 11262 DEBUG + jq -e --arg perm digiwords.api '.permissions[$perm]' 11822 DEBUG + ynh_permission_create --permission=api --url=/api --allowed=visitors --show_tile=false --protected=true 11822 DEBUG + local legacy_args=puAhaltP 11823 DEBUG + args_array=([p]=permission= [u]=url= [A]=additional_urls= [h]=auth_header= [a]=allowed= [l]=label= [t]=show_tile= [P]=protected=) 11823 DEBUG + local -A args_array 11824 DEBUG + local permission 11825 DEBUG + local url 11825 DEBUG + local additional_urls 11826 DEBUG + local auth_header 11827 DEBUG + local allowed 11828 DEBUG + local label 11832 DEBUG + local show_tile 11833 DEBUG + local protected 11833 DEBUG + ynh_handle_getopts_args --permission=api --url=/api --allowed=visitors --show_tile=false --protected=true 11834 DEBUG + set +o xtrace 12394 DEBUG + url=/api 12394 DEBUG + additional_urls= 12395 DEBUG + auth_header= 12396 DEBUG + allowed=visitors 12396 DEBUG + label= 12397 DEBUG + show_tile=false 12398 DEBUG + protected=true 12398 DEBUG + [[ -n /api ]] 12399 DEBUG + url=',url='\''/api'\''' 12400 DEBUG + [[ -n '' ]] 12400 DEBUG + [[ -n '' ]] 12401 DEBUG + [[ -n visitors ]] 12401 DEBUG + allowed=',allowed=['\''visitors'\'']' 12402 DEBUG + [[ -n '' ]] 12402 DEBUG + label=',label='\''api'\''' 12403 DEBUG + [[ -n false ]] 12404 DEBUG + '[' false == true ']' 12404 DEBUG + show_tile=,show_tile=False 12405 DEBUG + [[ -n true ]] 12405 DEBUG + '[' true == true ']' 12406 DEBUG + protected=,protected=True 12406 DEBUG + yunohost tools shell -c 'from yunohost.permission import permission_create; permission_create('\''digiwords.api'\'' ,url='\''/api'\'' ,allowed=['\''visitors'\''] ,label='\''api'\'' ,show_tile=False ,protected=True)' 13283 DEBUG + ynh_script_progression '--message=Making sure dedicated system user exists...' --weight=1 13284 DEBUG + set +o xtrace 13437 DEBUG + set +o xtrace 13460 DEBUG + echo '! Helper used in legacy mode !' 13461 DEBUG + set +x 13465 DEBUG + echo '[######++............] > Making sure dedicated system user exists...' 13467 DEBUG + set -o xtrace 13470 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 13472 DEBUG + local legacy_args=uhs 13474 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 13475 DEBUG + local -A args_array 13475 DEBUG + local username 13476 DEBUG + local home_dir 13476 DEBUG + local use_shell 13477 DEBUG + local groups 13479 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 13481 DEBUG + set +o xtrace 13482 INFO [######++............] > Making sure dedicated system user exists... 13617 DEBUG + use_shell=0 13617 DEBUG + home_dir=/var/www/digiwords 13618 DEBUG + groups= 13618 DEBUG + ynh_system_user_exists digiwords 13619 DEBUG + local legacy_args=u 13619 DEBUG + args_array=([u]=username=) 13619 DEBUG + local -A args_array 13619 DEBUG + local username 13620 DEBUG + ynh_handle_getopts_args digiwords 13620 DEBUG + set +o xtrace 13655 DEBUG + echo '! Helper used in legacy mode !' 13655 DEBUG + set +x 13660 DEBUG + getent passwd digiwords 13679 DEBUG + local group 13680 DEBUG + '[' UPGRADE_APP == UPGRADE_APP ']' 13680 DEBUG + ynh_script_progression '--message=Upgrading source files...' --weight=1 13681 DEBUG + set +o xtrace 13797 DEBUG + set +o xtrace 13831 DEBUG + echo '! Helper used in legacy mode !' 13831 DEBUG + set +x 13833 INFO [########++..........] > Upgrading source files... 13834 DEBUG + echo '[########++..........] > Upgrading source files...' 13835 DEBUG + set -o xtrace 13838 DEBUG + test -f /var/www/digiwords/inc/digiwords.db 13839 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 13840 DEBUG + local legacy_args=dsk 13840 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 13842 DEBUG + local -A args_array 13843 DEBUG + local dest_dir 13844 DEBUG + local source_id 13844 DEBUG + local keep 13846 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 13847 DEBUG + set +o xtrace 13889 DEBUG + source_id=app 13890 DEBUG + keep= 13890 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13892 DEBUG ++ cut --delimiter== --fields=2- 13893 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13902 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 13904 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13906 DEBUG ++ cut --delimiter== --fields=2- 13912 DEBUG + local src_sum=78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 13917 DEBUG ++ cut --delimiter== --fields=2- 13917 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13920 DEBUG + local src_sumprg=sha256sum 13922 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13923 DEBUG ++ cut --delimiter== --fields=2- 13929 DEBUG + local src_format=zip 13931 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13932 DEBUG ++ cut --delimiter== --fields=2- 13935 DEBUG + local src_extract=true 13937 DEBUG ++ cut --delimiter== --fields=2- 13938 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13943 DEBUG + local src_in_subdir=true 13944 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/app.src 13945 DEBUG ++ cut --delimiter== --fields=2- 13948 DEBUG + local src_filename= 13949 DEBUG + src_sumprg=sha256sum 13950 DEBUG + src_in_subdir=true 13950 DEBUG + src_format=zip 13952 DEBUG ++ echo zip 13953 DEBUG ++ tr '[:upper:]' '[:lower:]' 13956 DEBUG + src_format=zip 13957 DEBUG + src_extract=true 13957 DEBUG + '[' '' = '' ']' 13957 DEBUG + src_filename=app.zip 13957 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 13958 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 13961 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 13963 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 13963 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip ']' 13964 DEBUG + local out 13964 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/releases/download/0.3.3/digiwords-0.3.3.zip 19505 DEBUG + out='2022-05-31 09:54:22 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/459932950/34f63a52-4624-4bf0-8fd9-bfd6df81b61b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T095417Z&X-Amz-Expires=300&X-Amz-Signature=02e76202484c6b154ad772e3a74aec2fdbddca5880f05dacbaa4def146be4a4c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3B%20filename%3Ddigiwords-0.3.3.zip&response-content-type=application%2Foctet-stream [3002924/3002924] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 19506 DEBUG + sha256sum --check --status 19507 DEBUG + echo '78564c2aa18e0702972994808843587dde876813dfddc06905924a4354a54156 /var/cache/yunohost/download/digiwords/app.zip' 19541 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 19545 DEBUG + '[' -n '' ']' 19547 DEBUG + mkdir --parents /var/www/digiwords 19550 DEBUG + '[' -n /var/www/digiwords ']' 19551 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 19553 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 19556 DEBUG + local target=/var/www/digiwords 19558 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/manifest.json 19560 DEBUG ++ tr -d '>= ' 19563 DEBUG + local ynh_requirement=4.3.0 19564 DEBUG + '[' -z 4.3.0 ']' 19566 DEBUG + '[' 4.3.0 == null ']' 19567 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 19569 DEBUG + chmod o-rwx /var/www/digiwords 19573 DEBUG + chmod g-w /var/www/digiwords 19575 DEBUG + chown -R root:root /var/www/digiwords 19587 DEBUG + ynh_system_user_exists digiwords 19589 DEBUG + local legacy_args=u 19591 DEBUG + args_array=([u]=username=) 19592 DEBUG + local -A args_array 19593 DEBUG + local username 19594 DEBUG + ynh_handle_getopts_args digiwords 19596 DEBUG + set +o xtrace 19607 DEBUG + echo '! Helper used in legacy mode !' 19609 DEBUG + set +x 19611 DEBUG + getent passwd digiwords 19614 DEBUG + chown digiwords:digiwords /var/www/digiwords 19622 DEBUG + echo /var/www/digiwords 19624 DEBUG + grep -q '^/etc/cron' 19629 DEBUG + true 19631 DEBUG + '[' zip = zip ']' 19632 DEBUG + true 19633 DEBUG ++ mktemp --directory 19635 DEBUG + local tmp_dir=/tmp/tmp.23BCKEtL7x 19636 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.23BCKEtL7x 19699 DEBUG + cp --archive /tmp/tmp.23BCKEtL7x/digiwords/. /var/www/digiwords 19721 DEBUG + ynh_secure_remove --file=/tmp/tmp.23BCKEtL7x 19722 DEBUG + local legacy_args=f 19723 DEBUG + args_array=([f]=file=) 19724 DEBUG + local -A args_array 19725 DEBUG + local file 19725 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.23BCKEtL7x 19726 DEBUG + set +o xtrace 19741 DEBUG + set +o xtrace 19778 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 19779 DEBUG + local legacy_args=f 19779 DEBUG + args_array=([f]=file=) 19780 DEBUG + local -A args_array 19780 DEBUG + local file 19781 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 19781 DEBUG + set +o xtrace 19805 DEBUG + set +o xtrace 19830 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/sources/patches/ ']' 19831 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/sources/extra_files/app 19831 DEBUG + '[' -n '' ']' 19832 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 19837 DEBUG + chmod 750 /var/www/digiwords 19843 DEBUG + chmod -R o-rwx /var/www/digiwords 19848 DEBUG + chown -R digiwords:www-data /var/www/digiwords 19856 DEBUG + ynh_script_progression '--message=Upgrading NGINX web server configuration...' --weight=1 19860 DEBUG + set +o xtrace 19984 DEBUG + set +o xtrace 20012 DEBUG + echo '! Helper used in legacy mode !' 20012 DEBUG + set +x 20019 DEBUG + echo '[##########++........] > Upgrading NGINX web server configuration...' 20019 INFO [##########++........] > Upgrading NGINX web server configuration... 20020 DEBUG + set -o xtrace 20020 DEBUG + ynh_add_nginx_config 20022 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20026 DEBUG + '[' / '!=' / ']' 20027 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf 20028 DEBUG + local legacy_args=mrf 20029 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 20029 DEBUG + local -A args_array 20030 DEBUG + local match_string 20031 DEBUG + local replace_string 20031 DEBUG + local target_file 20032 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf 20032 DEBUG + set +o xtrace 20163 DEBUG + set +o xtrace 20164 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf 20168 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20170 DEBUG + local legacy_args=tdv 20171 DEBUG + args_array=([t]=template= [d]=destination=) 20172 DEBUG + local -A args_array 20172 DEBUG + local template 20173 DEBUG + local destination 20174 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20175 DEBUG + set +o xtrace 20233 DEBUG + local template_path 20234 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf ']' 20235 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf ']' 20236 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf 20237 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20237 DEBUG + local legacy_args=f 20238 DEBUG + args_array=([f]=file=) 20239 DEBUG + local -A args_array 20239 DEBUG + local file 20240 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20240 DEBUG + set +o xtrace 20252 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 20254 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 20255 DEBUG ++ local _globalapp=digiwords 20256 DEBUG ++ local legacy_args=ak 20256 DEBUG ++ args_array=([a]=app= [k]=key=) 20257 DEBUG ++ local -A args_array 20258 DEBUG ++ local app 20259 DEBUG ++ local key 20259 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 20260 DEBUG ++ set +o xtrace 20327 DEBUG ++ app=digiwords 20328 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 20328 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 20329 DEBUG ++ set +o xtrace 20423 DEBUG + local checksum_value=9c307bf4206b43d766feb3b967a25374 20424 DEBUG + backup_file_checksum= 20424 DEBUG + '[' -n 9c307bf4206b43d766feb3b967a25374 ']' 20424 DEBUG + '[' -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 20425 DEBUG + echo '9c307bf4206b43d766feb3b967a25374 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf' 20426 DEBUG + md5sum --check --status 20432 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20435 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20440 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20441 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20443 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20444 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20446 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/manifest.json 20447 DEBUG ++ tr -d '>= ' 20458 DEBUG + local ynh_requirement=4.3.0 20459 DEBUG + '[' -z 4.3.0 ']' 20460 DEBUG + '[' 4.3.0 == null ']' 20461 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 20465 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20471 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20474 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20489 DEBUG + ynh_system_user_exists digiwords 20490 DEBUG + local legacy_args=u 20490 DEBUG + args_array=([u]=username=) 20491 DEBUG + local -A args_array 20491 DEBUG + local username 20491 DEBUG + ynh_handle_getopts_args digiwords 20491 DEBUG + set +o xtrace 20513 DEBUG + echo '! Helper used in legacy mode !' 20521 DEBUG + set +x 20522 DEBUG + getent passwd digiwords 20524 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20527 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20528 DEBUG + grep -q '^/etc/cron' 20535 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20535 DEBUG + local legacy_args=f 20536 DEBUG + args_array=([f]=file=) 20536 DEBUG + local -A args_array 20536 DEBUG + local file 20536 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20536 DEBUG + set +o xtrace 20570 DEBUG + test -n / 20570 DEBUG + local path_url_slash_less= 20570 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20571 DEBUG + local legacy_args=mrf 20571 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 20571 DEBUG + local -A args_array 20571 DEBUG + local match_string 20571 DEBUG + local replace_string 20572 DEBUG + local target_file 20572 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20572 DEBUG + set +o xtrace 20729 DEBUG + set +o xtrace 20737 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20740 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20741 DEBUG + local legacy_args=mrf 20743 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 20743 DEBUG + local -A args_array 20744 DEBUG + local match_string 20745 DEBUG + local replace_string 20745 DEBUG + local target_file 20746 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20747 DEBUG + set +o xtrace 20880 DEBUG + set +o xtrace 20880 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20883 DEBUG + test -n digiwords 20884 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20886 DEBUG + local legacy_args=mrf 20887 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 20888 DEBUG + local -A args_array 20888 DEBUG + local match_string 20890 DEBUG + local replace_string 20891 DEBUG + local target_file 20892 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 20893 DEBUG + set +o xtrace 21026 DEBUG + set +o xtrace 21027 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21033 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21033 DEBUG + local legacy_args=mrf 21034 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21034 DEBUG + local -A args_array 21035 DEBUG + local match_string 21035 DEBUG + local replace_string 21037 DEBUG + local target_file 21037 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21038 DEBUG + set +o xtrace 21196 DEBUG + set +o xtrace 21196 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21201 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21202 DEBUG + local legacy_args=mrf 21203 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21203 DEBUG + local -A args_array 21203 DEBUG + local match_string 21203 DEBUG + local replace_string 21204 DEBUG + local target_file 21204 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21205 DEBUG + set +o xtrace 21348 DEBUG + set +o xtrace 21349 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21354 DEBUG + test -n /var/www/digiwords 21355 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21356 DEBUG + local legacy_args=mrf 21357 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21357 DEBUG + local -A args_array 21358 DEBUG + local match_string 21358 DEBUG + local replace_string 21359 DEBUG + local target_file 21359 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21360 DEBUG + set +o xtrace 21497 DEBUG + set +o xtrace 21497 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21504 DEBUG + test -n 7.3 21504 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21505 DEBUG + local legacy_args=mrf 21505 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 21505 DEBUG + local -A args_array 21505 DEBUG + local match_string 21506 DEBUG + local replace_string 21506 DEBUG + local target_file 21507 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21508 DEBUG + set +o xtrace 21673 DEBUG + set +o xtrace 21674 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21680 DEBUG + test -n '' 21681 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 21688 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21689 DEBUG ++ sort --unique 21693 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 21696 DEBUG + local uniques_vars 21699 DEBUG + local delimit=@ 21699 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21699 DEBUG + local legacy_args=f 21701 DEBUG + args_array=([f]=file= [u]=update_only) 21701 DEBUG + local -A args_array 21702 DEBUG + local file 21702 DEBUG + local update_only 21703 DEBUG + update_only=0 21703 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21703 DEBUG + set +o xtrace 21736 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 21737 DEBUG + '[' 0 -eq 1 ']' 21739 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 21740 DEBUG ++ cut '--delimiter= ' --fields=1 21745 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 21745 DEBUG + local _globalapp=digiwords 21746 DEBUG + local legacy_args=akv 21746 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 21747 DEBUG + local -A args_array 21747 DEBUG + local app 21748 DEBUG + local key 21748 DEBUG + local value 21748 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=9c307bf4206b43d766feb3b967a25374 21748 DEBUG + set +o xtrace 21893 DEBUG + app=digiwords 21893 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 21894 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 9c307bf4206b43d766feb3b967a25374 21894 DEBUG + set +o xtrace 21972 DEBUG + '[' -n '' ']' 21972 DEBUG + unset backup_file_checksum 21973 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 21974 DEBUG + local legacy_args=nalpte 21975 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 21975 DEBUG + local -A args_array 21977 DEBUG + local service_name 21978 DEBUG + local action 21978 DEBUG + local line_match 21979 DEBUG + local length 21979 DEBUG + local log_path 21980 DEBUG + local timeout 21980 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 21981 DEBUG + set +o xtrace 22186 DEBUG + service_name=nginx 22187 DEBUG + action=reload 22187 DEBUG + line_match= 22187 DEBUG + length=20 22188 DEBUG + log_path=/var/log/nginx/nginx.log 22188 DEBUG + timeout=300 22188 DEBUG + '[' reload == stop ']' 22189 DEBUG + [[ -n '' ]] 22189 DEBUG + '[' reload == reload ']' 22190 DEBUG + action=reload-or-restart 22190 DEBUG + systemctl reload-or-restart nginx 22284 DEBUG + [[ -n '' ]] 22284 DEBUG + ynh_script_progression '--message=Upgrading dependencies...' --weight=1 22285 DEBUG + set +o xtrace 22440 DEBUG + set +o xtrace 22465 DEBUG + echo '! Helper used in legacy mode !' 22466 DEBUG + set +x 22479 DEBUG + echo '[############++......] > Upgrading dependencies...' 22480 DEBUG + set -o xtrace 22481 DEBUG + ynh_install_app_dependencies php-sqlite3 22481 DEBUG + local dependencies=php-sqlite3 22482 INFO [############++......] > Upgrading dependencies... 22487 DEBUG ++ echo php-sqlite3 22489 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 22495 DEBUG + dependencies=php-sqlite3 22496 DEBUG + local dependencies=php-sqlite3 22496 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/manifest.json 22497 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/manifest.json 22504 DEBUG + local version=0.3.3~ynh1 22504 DEBUG + '[' -z 0.3.3~ynh1 ']' 22505 DEBUG + '[' 0.3.3~ynh1 == null ']' 22506 DEBUG + local dep_app=digiwords 22507 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 22508 DEBUG ++ echo php-sqlite3 22509 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 22509 DEBUG ++ sort -u 22515 DEBUG + local specific_php_version= 22515 DEBUG + [[ '' != \7\.\3 ]] 22516 DEBUG + [[ -n '' ]] 22516 DEBUG + [[ true == \t\r\u\e ]] 22516 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 22517 DEBUG + grep --quiet php 22526 DEBUG + grep php7.0 22527 DEBUG + dpkg --list 22527 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 22555 DEBUG + cat 22562 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 22563 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 22566 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 22567 DEBUG ++ cut '--delimiter= ' --fields=2 22571 DEBUG + local pkgname=digiwords-ynh-deps 22575 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 22579 DEBUG ++ cut '--delimiter= ' --fields=2 22583 DEBUG + local pkgversion=0.3.3~ynh1 22584 DEBUG + [[ -z digiwords-ynh-deps ]] 22584 DEBUG + [[ -z 0.3.3~ynh1 ]] 22586 DEBUG + ynh_package_update 22586 DEBUG + ynh_apt update 22587 DEBUG + ynh_wait_dpkg_free 22587 DEBUG + local try 22587 DEBUG + set +o xtrace 24010 DEBUG + return 0 24011 DEBUG + LC_ALL=C 24012 DEBUG + DEBIAN_FRONTEND=noninteractive 24013 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 24119 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 24123 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 24134 DEBUG Hit:3 http://deb.debian.org/debian buster-updates InRelease 24146 DEBUG Hit:4 http://deb.debian.org/debian-security buster/updates InRelease 26712 DEBUG Reading package lists... 26763 DEBUG ++ mktemp --directory 26769 DEBUG + local TMPDIR=/tmp/tmp.K2s5oHG5C6 26770 DEBUG + echo 10 26771 DEBUG + ynh_wait_dpkg_free 26771 DEBUG + local try 26773 DEBUG + set +o xtrace 28197 DEBUG + return 0 28198 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.K2s5oHG5C6/control 28202 DEBUG + cd /tmp/tmp.K2s5oHG5C6 28203 DEBUG + LC_ALL=C 28204 DEBUG + equivs-build ./control 30363 DEBUG + LC_ALL=C 30364 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.3~ynh1_all.deb 30365 DEBUG + tee ./dpkg_log 30468 DEBUG (Reading database ... 42403 files and directories currently installed.) 30472 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.3~ynh1_all.deb ... 30505 DEBUG Unpacking digiwords-ynh-deps (0.3.3~ynh1) over (0.3.3~ynh1) ... 30592 DEBUG Setting up digiwords-ynh-deps (0.3.3~ynh1) ... 30671 DEBUG + ynh_package_install --fix-broken 30672 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 30675 DEBUG + ynh_wait_dpkg_free 30676 DEBUG + local try 30686 DEBUG + set +o xtrace 32081 DEBUG + return 0 32083 DEBUG + LC_ALL=C 32084 DEBUG + DEBIAN_FRONTEND=noninteractive 32085 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 32279 DEBUG Reading package lists... 32720 DEBUG Building dependency tree... 32722 DEBUG Reading state information... 33260 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 33262 DEBUG + [[ -n /tmp/tmp.K2s5oHG5C6 ]] 33266 DEBUG + rm --recursive --force /tmp/tmp.K2s5oHG5C6 33269 DEBUG + ynh_package_is_installed digiwords-ynh-deps 33275 DEBUG + local legacy_args=p 33277 DEBUG + args_array=([p]=package=) 33283 DEBUG + local -A args_array 33286 DEBUG + local package 33288 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 33289 DEBUG + set +o xtrace 33293 DEBUG + echo '! Helper used in legacy mode !' 33294 DEBUG + set +x 33300 DEBUG + ynh_wait_dpkg_free 33301 DEBUG + local try 33302 DEBUG + set +o xtrace 34722 DEBUG + return 0 34724 DEBUG + grep --count 'ok installed' 34728 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 34747 DEBUG + rm /tmp/digiwords-ynh-deps.control 34750 DEBUG + [[ -n '' ]] 34755 DEBUG + grep --quiet php 34757 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 34759 DEBUG + local _globalapp=digiwords 34760 DEBUG + local legacy_args=akv 34763 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 34764 DEBUG + local -A args_array 34765 DEBUG + local app 34767 DEBUG + local key 34767 DEBUG + local value 34772 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 34773 DEBUG + set +o xtrace 34920 DEBUG + app=digiwords 34921 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 34923 DEBUG + ynh_app_setting set digiwords phpversion 7.3 34925 DEBUG + set +o xtrace 35007 DEBUG + ynh_script_progression '--message=Upgrading PHP-FPM configuration...' --weight=1 35008 DEBUG + set +o xtrace 35134 DEBUG + set +o xtrace 35161 DEBUG + echo '! Helper used in legacy mode !' 35162 DEBUG + set +x 35166 DEBUG + echo '[##############++....] > Upgrading PHP-FPM configuration...' 35167 DEBUG + set -o xtrace 35168 DEBUG + ynh_add_fpm_config 35168 DEBUG + local legacy_args=vtufpd 35168 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 35169 DEBUG + local -A args_array 35169 DEBUG + local phpversion 35170 DEBUG + local use_template 35171 DEBUG + local usage 35172 DEBUG + local footprint 35172 DEBUG + local package 35175 DEBUG + local dedicated_service 35176 DEBUG + ynh_handle_getopts_args 35176 DEBUG + set +o xtrace 35177 DEBUG + package= 35178 DEBUG + use_template=1 35179 DEBUG + usage= 35180 DEBUG + footprint= 35180 DEBUG + '[' -n '' ']' 35181 DEBUG + '[' -n '' ']' 35182 DEBUG + dedicated_service=0 35183 DEBUG + phpversion=7.3 35184 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 35184 INFO [##############++....] > Upgrading PHP-FPM configuration... 35185 DEBUG ++ local _globalapp=digiwords 35186 DEBUG ++ local legacy_args=ak 35187 DEBUG ++ args_array=([a]=app= [k]=key=) 35187 DEBUG ++ local -A args_array 35187 DEBUG ++ local app 35189 DEBUG ++ local key 35189 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 35189 DEBUG ++ set +o xtrace 35259 DEBUG ++ app=digiwords 35260 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 35261 DEBUG ++ ynh_app_setting get digiwords phpversion 35262 DEBUG ++ set +o xtrace 35368 DEBUG + local old_phpversion=7.3 35369 DEBUG + '[' -n 7.3 ']' 35371 DEBUG + '[' 7.3 '!=' 7.3 ']' 35371 DEBUG + '[' -n '' ']' 35372 DEBUG + '[' 0 -eq 1 ']' 35373 DEBUG + local fpm_service=php7.3-fpm 35374 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 35374 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 35377 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 35378 DEBUG + local _globalapp=digiwords 35378 DEBUG + local legacy_args=akv 35379 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 35379 DEBUG + local -A args_array 35379 DEBUG + local app 35379 DEBUG + local key 35380 DEBUG + local value 35380 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 35381 DEBUG + set +o xtrace 35530 DEBUG + app=digiwords 35531 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 35532 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 35533 DEBUG + set +o xtrace 35615 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 35616 DEBUG + local _globalapp=digiwords 35617 DEBUG + local legacy_args=akv 35618 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 35619 DEBUG + local -A args_array 35620 DEBUG + local app 35621 DEBUG + local key 35622 DEBUG + local value 35623 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 35624 DEBUG + set +o xtrace 35764 DEBUG + app=digiwords 35765 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 35766 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 35767 DEBUG + set +o xtrace 35878 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 35879 DEBUG + local _globalapp=digiwords 35879 DEBUG + local legacy_args=akv 35880 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 35880 DEBUG + local -A args_array 35881 DEBUG + local app 35882 DEBUG + local key 35883 DEBUG + local value 35883 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 35883 DEBUG + set +o xtrace 36036 DEBUG + app=digiwords 36037 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 36038 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 36039 DEBUG + set +o xtrace 36129 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 36129 DEBUG + local _globalapp=digiwords 36131 DEBUG + local legacy_args=akv 36131 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 36132 DEBUG + local -A args_array 36132 DEBUG + local app 36133 DEBUG + local key 36133 DEBUG + local value 36133 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 36134 DEBUG + set +o xtrace 36284 DEBUG + app=digiwords 36284 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 36285 DEBUG + ynh_app_setting set digiwords phpversion 7.3 36286 DEBUG + set +o xtrace 36362 DEBUG + '[' 0 -eq 1 ']' 36363 DEBUG + '[' 1 -eq 1 ']' 36363 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf 36363 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf ']' 36364 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 36364 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 36364 DEBUG + local legacy_args=tdv 36365 DEBUG + args_array=([t]=template= [d]=destination=) 36366 DEBUG + local -A args_array 36366 DEBUG + local template 36367 DEBUG + local destination 36368 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 36369 DEBUG + set +o xtrace 36434 DEBUG + local template_path 36435 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf ']' 36436 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf ']' 36436 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf 36437 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36438 DEBUG + local legacy_args=f 36439 DEBUG + args_array=([f]=file=) 36439 DEBUG + local -A args_array 36440 DEBUG + local file 36440 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36440 DEBUG + set +o xtrace 36456 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 36458 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 36459 DEBUG ++ local _globalapp=digiwords 36460 DEBUG ++ local legacy_args=ak 36460 DEBUG ++ args_array=([a]=app= [k]=key=) 36461 DEBUG ++ local -A args_array 36462 DEBUG ++ local app 36463 DEBUG ++ local key 36464 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 36465 DEBUG ++ set +o xtrace 36541 DEBUG ++ app=digiwords 36542 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 36542 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 36543 DEBUG ++ set +o xtrace 36634 DEBUG + local checksum_value=79ffd547aca07e585572ccb8bfba1ec1 36634 DEBUG + backup_file_checksum= 36635 DEBUG + '[' -n 79ffd547aca07e585572ccb8bfba1ec1 ']' 36635 DEBUG + '[' -e /etc/php/7.3/fpm/pool.d/digiwords.conf ']' 36636 DEBUG + md5sum --check --status 36637 DEBUG + echo '79ffd547aca07e585572ccb8bfba1ec1 /etc/php/7.3/fpm/pool.d/digiwords.conf' 36640 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 36642 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 36645 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 36648 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 36651 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 36652 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 36655 DEBUG ++ tr -d '>= ' 36659 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/manifest.json 36664 DEBUG + local ynh_requirement=4.3.0 36665 DEBUG + '[' -z 4.3.0 ']' 36666 DEBUG + '[' 4.3.0 == null ']' 36667 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 36670 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 36672 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 36674 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 36676 DEBUG + ynh_system_user_exists digiwords 36677 DEBUG + local legacy_args=u 36678 DEBUG + args_array=([u]=username=) 36678 DEBUG + local -A args_array 36679 DEBUG + local username 36680 DEBUG + ynh_handle_getopts_args digiwords 36680 DEBUG + set +o xtrace 36704 DEBUG + echo '! Helper used in legacy mode !' 36705 DEBUG + set +x 36712 DEBUG + getent passwd digiwords 36720 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 36726 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 36728 DEBUG + grep -q '^/etc/cron' 36736 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36739 DEBUG + local legacy_args=f 36739 DEBUG + args_array=([f]=file=) 36740 DEBUG + local -A args_array 36740 DEBUG + local file 36740 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36740 DEBUG + set +o xtrace 36774 DEBUG + test -n / 36775 DEBUG + local path_url_slash_less= 36776 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36777 DEBUG + local legacy_args=mrf 36778 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 36779 DEBUG + local -A args_array 36779 DEBUG + local match_string 36779 DEBUG + local replace_string 36779 DEBUG + local target_file 36780 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36780 DEBUG + set +o xtrace 36949 DEBUG + set +o xtrace 36950 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 36958 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36959 DEBUG + local legacy_args=mrf 36960 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 36960 DEBUG + local -A args_array 36961 DEBUG + local match_string 36962 DEBUG + local replace_string 36962 DEBUG + local target_file 36963 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 36963 DEBUG + set +o xtrace 37108 DEBUG + set +o xtrace 37109 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 37115 DEBUG + test -n digiwords 37116 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37116 DEBUG + local legacy_args=mrf 37116 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 37117 DEBUG + local -A args_array 37118 DEBUG + local match_string 37118 DEBUG + local replace_string 37121 DEBUG + local target_file 37121 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37122 DEBUG + set +o xtrace 37268 DEBUG + set +o xtrace 37273 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 37282 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37283 DEBUG + local legacy_args=mrf 37283 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 37285 DEBUG + local -A args_array 37285 DEBUG + local match_string 37286 DEBUG + local replace_string 37286 DEBUG + local target_file 37286 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37286 DEBUG + set +o xtrace 37424 DEBUG + set +o xtrace 37425 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 37431 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37432 DEBUG + local legacy_args=mrf 37432 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 37433 DEBUG + local -A args_array 37433 DEBUG + local match_string 37433 DEBUG + local replace_string 37433 DEBUG + local target_file 37434 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37434 DEBUG + set +o xtrace 37612 DEBUG + set +o xtrace 37613 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 37619 DEBUG + test -n /var/www/digiwords 37619 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37620 DEBUG + local legacy_args=mrf 37620 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 37620 DEBUG + local -A args_array 37620 DEBUG + local match_string 37621 DEBUG + local replace_string 37621 DEBUG + local target_file 37621 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37622 DEBUG + set +o xtrace 37858 DEBUG + set +o xtrace 37859 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 37864 DEBUG + test -n 7.3 37865 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37865 DEBUG + local legacy_args=mrf 37866 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 37866 DEBUG + local -A args_array 37867 DEBUG + local match_string 37867 DEBUG + local replace_string 37867 DEBUG + local target_file 37867 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 37868 DEBUG + set +o xtrace 38005 DEBUG + set +o xtrace 38005 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 38014 DEBUG + test -n '' 38014 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 38016 DEBUG ++ sort --unique 38017 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 38019 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 38025 DEBUG + local uniques_vars 38027 DEBUG + local delimit=@ 38027 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 38028 DEBUG + local legacy_args=f 38030 DEBUG + args_array=([f]=file= [u]=update_only) 38031 DEBUG + local -A args_array 38032 DEBUG + local file 38032 DEBUG + local update_only 38033 DEBUG + update_only=0 38038 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 38040 DEBUG + set +o xtrace 38073 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 38074 DEBUG + '[' 0 -eq 1 ']' 38079 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 38080 DEBUG ++ cut '--delimiter= ' --fields=1 38083 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 38083 DEBUG + local _globalapp=digiwords 38084 DEBUG + local legacy_args=akv 38084 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 38084 DEBUG + local -A args_array 38084 DEBUG + local app 38085 DEBUG + local key 38085 DEBUG + local value 38085 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 38088 DEBUG + set +o xtrace 38248 DEBUG + app=digiwords 38248 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 38258 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 38259 DEBUG + set +o xtrace 38351 DEBUG + '[' -n '' ']' 38352 DEBUG + unset backup_file_checksum 38352 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_k0xjq8lt/app_folder/conf/php-fpm.ini ']' 38352 DEBUG + '[' 0 -eq 1 ']' 38353 DEBUG + php-fpm7.3 --test 38469 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 38470 DEBUG + local legacy_args=nalpte 38470 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 38470 DEBUG + local -A args_array 38470 DEBUG + local service_name 38471 DEBUG + local action 38471 DEBUG + local line_match 38471 DEBUG + local length 38471 DEBUG + local log_path 38471 DEBUG + local timeout 38472 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 38472 DEBUG + set +o xtrace 38680 DEBUG + service_name=php7.3-fpm 38680 DEBUG + action=reload 38681 DEBUG + line_match= 38682 DEBUG + length=20 38682 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 38682 DEBUG + timeout=300 38683 DEBUG + '[' reload == stop ']' 38683 DEBUG + [[ -n '' ]] 38684 DEBUG + '[' reload == reload ']' 38684 DEBUG + action=reload-or-restart 38685 DEBUG + systemctl reload-or-restart php7.3-fpm 38708 DEBUG + [[ -n '' ]] 38709 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 38709 DEBUG + set +o xtrace 38857 DEBUG + set +o xtrace 38880 DEBUG + echo '! Helper used in legacy mode !' 38881 DEBUG + set +x 38890 DEBUG + echo '[################++..] > Reloading NGINX web server...' 38890 INFO [################++..] > Reloading NGINX web server... 38890 DEBUG + set -o xtrace 38891 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 38894 DEBUG + local legacy_args=nalpte 38894 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 38899 DEBUG + local -A args_array 38899 DEBUG + local service_name 38900 DEBUG + local action 38900 DEBUG + local line_match 38901 DEBUG + local length 38901 DEBUG + local log_path 38903 DEBUG + local timeout 38903 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 38903 DEBUG + set +o xtrace 39084 DEBUG + service_name=nginx 39084 DEBUG + action=reload 39084 DEBUG + line_match= 39084 DEBUG + length=20 39085 DEBUG + log_path=/var/log/nginx/nginx.log 39085 DEBUG + timeout=300 39085 DEBUG + '[' reload == stop ']' 39085 DEBUG + [[ -n '' ]] 39086 DEBUG + '[' reload == reload ']' 39086 DEBUG + action=reload-or-restart 39086 DEBUG + systemctl reload-or-restart nginx 39172 DEBUG + [[ -n '' ]] 39173 DEBUG + ynh_script_progression '--message=Upgrade of digiwords completed' --last 39173 DEBUG + set +o xtrace 39327 DEBUG + set +o xtrace 39370 DEBUG + echo '! Helper used in legacy mode !' 39370 DEBUG + set +x 39377 DEBUG + echo '[####################] > Upgrade of digiwords completed' 39377 INFO [####################] > Upgrade of digiwords completed 39378 DEBUG + set -o xtrace 39381 DEBUG + ynh_exit_properly 39382 DEBUG + local exit_code=0 39382 DEBUG + rm -rf /var/cache/yunohost/download/ 39383 DEBUG + '[' 0 -eq 0 ']' 39384 DEBUG + exit 0 40386 DEBUG Checking that required services are up and running... 41335 SUCCESS digiwords upgraded 41346 DEBUG To view the log of the operation 'Upgrade the 'digiwords' app', use the command 'yunohost log show 20220531-095404-app_upgrade-digiwords' 41381 DEBUG The permission database has been resynchronized 41420 DEBUG SSOwat configuration regenerated 41441 SUCCESS Upgrade complete 41442 DEBUG action [846.1] executed in 41.121s 41443 DEBUG lock has been released Return code: 0 Working time: 43 seconds (09:54:45)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld Return code: 0 Working time: 0s (09:54:59) Return code: 0 Working time: 0s (09:55:03) HTTP code: Test URL: sub.domain.tld Real URL: HTTP code: Page title: Page extract: Running curl sub.domain.tld/ Return code: 0 Working time: 0s (09:55:10) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:55:13) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld/ Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. --- SUCCESS --- Working time for this test: 2 minutes, 21 seconds (09:55:13)  ============================================ [Test 8/9] Upgrade from commit fabe9c7bdb98a0569148a79546e2889c2823d79a ============================================   > Preliminary install... Loading snapshot snap0 ... Running: yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" Running yunohost app install --force /app_folder -a "domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&" 197 DEBUG initializing base actions map parser for cli 199 DEBUG loading actions map namespace 'yunohost' 202 DEBUG building parser... 223 DEBUG building parser took 0.021s 225 DEBUG acquiring lock... 249 DEBUG lock has been acquired 269 DEBUG loading python module yunohost.app took 0.020s 269 DEBUG processing action [845.1]: yunohost.app.install with args={'app': '/app_folder', 'label': None, 'args': 'domain=sub.domain.tld&path=/&# admin=package_checker&language=fr&is_public=1&# password=1Strong-Password&# port=666&admin=&', 'no_remove_on_failure': False, 'force': True} 312 DEBUG Extracting... 334 DEBUG Done 336 DEBUG Checking required packages for digiwords... 343 DEBUG Checking that required services are up and running... 1291 DEBUG initializing ldap interface 1459 INFO Installing digiwords... 1515 DEBUG Nothing to update in LDAP 1516 DEBUG Permission 'digiwords.main' updated 1525 DEBUG To view the log of the operation 'Update URL related to permission 'digiwords'', use the command 'yunohost log show 20220531-095632-permission_url-digiwords' 1560 DEBUG The permission database has been resynchronized 1579 DEBUG SSOwat configuration regenerated 1608 DEBUG Permission 'digiwords.main' created 1610 DEBUG To view the log of the operation 'Create permission 'digiwords'', use the command 'yunohost log show 20220531-095631-permission_create-digiwords' 1641 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 1658 DEBUG + source _common.sh 1659 DEBUG ++ pkg_dependencies=php-sqlite3 1660 DEBUG + source /usr/share/yunohost/helpers 1660 DEBUG +++ set +o 1661 DEBUG +++ grep xtrace 1666 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1667 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1667 DEBUG ++ set +x 1717 DEBUG + ynh_abort_if_errors 1718 DEBUG + set -o errexit 1718 DEBUG + set -o nounset 1719 DEBUG + trap ynh_exit_properly EXIT 1719 DEBUG + domain=sub.domain.tld 1720 DEBUG + path_url=/ 1720 DEBUG + is_public=1 1721 DEBUG + app=digiwords 1721 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1 1722 DEBUG + set +o xtrace 1845 DEBUG + set +o xtrace 1891 DEBUG + echo '! Helper used in legacy mode !' 1892 DEBUG + set +x 1895 DEBUG + echo '[++..................] > Validating installation parameters...' 1895 DEBUG + set -o xtrace 1896 DEBUG + final_path=/var/www/digiwords 1896 DEBUG + test '!' -e /var/www/digiwords 1896 DEBUG + ynh_webpath_register --app=digiwords --domain=sub.domain.tld --path_url=/ 1897 DEBUG + local legacy_args=adp 1897 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=) 1898 DEBUG + local -A args_array 1898 DEBUG + local app 1899 DEBUG + local domain 1899 DEBUG + local path_url 1899 DEBUG + ynh_handle_getopts_args --app=digiwords --domain=sub.domain.tld --path_url=/ 1900 DEBUG + set +o xtrace 1900 INFO [++..................] > Validating installation parameters... 2022 DEBUG + yunohost app register-url digiwords sub.domain.tld / 2684 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1 2684 DEBUG + set +o xtrace 2793 DEBUG + set +o xtrace 2813 DEBUG + echo '! Helper used in legacy mode !' 2813 DEBUG + set +x 2819 INFO [##++................] > Storing installation settings... 2820 DEBUG + echo '[##++................] > Storing installation settings...' 2821 DEBUG + set -o xtrace 2821 DEBUG + ynh_app_setting_set --app=digiwords --key=domain --value=sub.domain.tld 2824 DEBUG + local _globalapp=digiwords 2826 DEBUG + local legacy_args=akv 2827 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 2827 DEBUG + local -A args_array 2828 DEBUG + local app 2829 DEBUG + local key 2829 DEBUG + local value 2829 DEBUG + ynh_handle_getopts_args --app=digiwords --key=domain --value=sub.domain.tld 2830 DEBUG + set +o xtrace 2977 DEBUG + app=digiwords 2977 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]] 2978 DEBUG + ynh_app_setting set digiwords domain sub.domain.tld 2978 DEBUG + set +o xtrace 3077 DEBUG + ynh_app_setting_set --app=digiwords --key=path --value=/ 3077 DEBUG + local _globalapp=digiwords 3077 DEBUG + local legacy_args=akv 3077 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 3078 DEBUG + local -A args_array 3078 DEBUG + local app 3078 DEBUG + local key 3079 DEBUG + local value 3079 DEBUG + ynh_handle_getopts_args --app=digiwords --key=path --value=/ 3079 DEBUG + set +o xtrace 3196 DEBUG + app=digiwords 3197 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]] 3197 DEBUG + ynh_app_setting set digiwords path / 3197 DEBUG + set +o xtrace 3272 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=1 3273 DEBUG + set +o xtrace 3406 DEBUG + set +o xtrace 3439 DEBUG + echo '! Helper used in legacy mode !' 3440 DEBUG + set +x 3448 INFO [####++..............] > Installing dependencies... 3450 DEBUG + echo '[####++..............] > Installing dependencies...' 3451 DEBUG + set -o xtrace 3452 DEBUG + ynh_install_app_dependencies php-sqlite3 3453 DEBUG + local dependencies=php-sqlite3 3456 DEBUG ++ echo php-sqlite3 3461 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 3467 DEBUG + dependencies=php-sqlite3 3468 DEBUG + local dependencies=php-sqlite3 3468 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/manifest.json 3471 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/manifest.json 3480 DEBUG + local version=0.3.2~ynh2 3481 DEBUG + '[' -z 0.3.2~ynh2 ']' 3482 DEBUG + '[' 0.3.2~ynh2 == null ']' 3482 DEBUG + local dep_app=digiwords 3483 DEBUG + [[ php-sqlite3 =~ [<=>] ]] 3489 DEBUG ++ echo php-sqlite3 3489 DEBUG ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 3489 DEBUG ++ sort -u 3491 DEBUG + local specific_php_version= 3492 DEBUG + [[ '' != \7\.\3 ]] 3492 DEBUG + [[ -n '' ]] 3493 DEBUG + [[ true == \t\r\u\e ]] 3494 DEBUG + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 3495 DEBUG + grep --quiet php 3497 DEBUG + dpkg --list 3498 DEBUG + grep php7.0 3500 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 3529 DEBUG + cat 3533 DEBUG + ynh_package_install_from_equivs /tmp/digiwords-ynh-deps.control 3534 DEBUG + local controlfile=/tmp/digiwords-ynh-deps.control 3537 DEBUG ++ grep '^Package: ' /tmp/digiwords-ynh-deps.control 3538 DEBUG ++ cut '--delimiter= ' --fields=2 3543 DEBUG + local pkgname=digiwords-ynh-deps 3547 DEBUG ++ grep '^Version: ' /tmp/digiwords-ynh-deps.control 3548 DEBUG ++ cut '--delimiter= ' --fields=2 3551 DEBUG + local pkgversion=0.3.2~ynh2 3552 DEBUG + [[ -z digiwords-ynh-deps ]] 3552 DEBUG + [[ -z 0.3.2~ynh2 ]] 3552 DEBUG + ynh_package_update 3553 DEBUG + ynh_apt update 3553 DEBUG + ynh_wait_dpkg_free 3553 DEBUG + local try 3553 DEBUG + set +o xtrace 5131 DEBUG + return 0 5132 DEBUG + LC_ALL=C 5132 DEBUG + DEBIAN_FRONTEND=noninteractive 5133 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 5260 DEBUG Hit:1 http://forge.yunohost.org/debian buster InRelease 5279 DEBUG Hit:2 http://deb.debian.org/debian buster InRelease 5293 DEBUG Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] 5325 DEBUG Get:4 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB] 5992 DEBUG Get:5 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [11.1 kB] 6010 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6027 DEBUG Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-05-28-1407.13.pdiff [1094 B] 6230 DEBUG Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [328 kB] 6299 DEBUG Get:8 http://deb.debian.org/debian-security buster/updates/main Translation-en [177 kB] 6458 DEBUG Fetched 635 kB in 1s (520 kB/s) 7995 DEBUG Reading package lists... 8057 DEBUG ++ mktemp --directory 8067 DEBUG + local TMPDIR=/tmp/tmp.5T4qnNz1UF 8068 DEBUG + echo 10 8070 DEBUG + ynh_wait_dpkg_free 8073 DEBUG + local try 8075 DEBUG + set +o xtrace 9519 DEBUG + return 0 9521 DEBUG + cp /tmp/digiwords-ynh-deps.control /tmp/tmp.5T4qnNz1UF/control 9529 DEBUG + cd /tmp/tmp.5T4qnNz1UF 9533 DEBUG + LC_ALL=C 9535 DEBUG + equivs-build ./control 11592 DEBUG + LC_ALL=C 11592 DEBUG + dpkg --force-depends --install ./digiwords-ynh-deps_0.3.2~ynh2_all.deb 11593 DEBUG + tee ./dpkg_log 11658 DEBUG Selecting previously unselected package digiwords-ynh-deps. 11715 DEBUG (Reading database ... 42385 files and directories currently installed.) 11719 DEBUG Preparing to unpack .../digiwords-ynh-deps_0.3.2~ynh2_all.deb ... 11731 DEBUG Unpacking digiwords-ynh-deps (0.3.2~ynh2) ... 11803 DEBUG dpkg: digiwords-ynh-deps: dependency problems, but configuring anyway as you requested: 11804 DEBUG  digiwords-ynh-deps depends on php-sqlite3; however: 11805 DEBUG  Package php-sqlite3 is not installed. 11805 DEBUG  11806 DEBUG Setting up digiwords-ynh-deps (0.3.2~ynh2) ... 11901 DEBUG + ynh_package_install --fix-broken 11903 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 11904 DEBUG + ynh_wait_dpkg_free 11904 DEBUG + local try 11905 DEBUG + set +o xtrace 13397 DEBUG + return 0 13398 DEBUG + LC_ALL=C 13399 DEBUG + DEBIAN_FRONTEND=noninteractive 13401 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 13632 DEBUG Reading package lists... 14043 DEBUG Building dependency tree... 14044 DEBUG Reading state information... 14290 DEBUG Correcting dependencies... Done 14665 DEBUG The following additional packages will be installed: 14666 DEBUG  php-sqlite3 php7.3-sqlite3 14709 DEBUG The following NEW packages will be installed: 14709 DEBUG  php-sqlite3 php7.3-sqlite3 14788 DEBUG 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 14790 DEBUG Need to get 32.2 kB of archives. 14797 DEBUG After this operation, 139 kB of additional disk space will be used. 14800 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php7.3-sqlite3 amd64 7.3.31-1~deb10u1 [26.2 kB] 14811 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 php-sqlite3 all 2:7.3+69 [5996 B] 15361 DEBUG Fetched 32.2 kB in 0s (480 kB/s) 15540 DEBUG Selecting previously unselected package php7.3-sqlite3. 15578 DEBUG (Reading database ... 42389 files and directories currently installed.) 15581 DEBUG Preparing to unpack .../php7.3-sqlite3_7.3.31-1~deb10u1_amd64.deb ... 15605 DEBUG Unpacking php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15743 DEBUG Selecting previously unselected package php-sqlite3. 15753 DEBUG Preparing to unpack .../php-sqlite3_2%3a7.3+69_all.deb ... 15772 DEBUG Unpacking php-sqlite3 (2:7.3+69) ... 15891 DEBUG Setting up php7.3-sqlite3 (7.3.31-1~deb10u1) ... 15939 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16154 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16241 DEBUG  16242 DEBUG Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version 16328 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16560 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16781 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 16882 DEBUG  16883 DEBUG Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version 16986 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 17249 DEBUG Setting up php-sqlite3 (2:7.3+69) ... 17291 DEBUG Processing triggers for php7.3-fpm (7.3.31-1~deb10u1) ... 18115 DEBUG + [[ -n /tmp/tmp.5T4qnNz1UF ]] 18116 DEBUG + rm --recursive --force /tmp/tmp.5T4qnNz1UF 18119 DEBUG + ynh_package_is_installed digiwords-ynh-deps 18121 DEBUG + local legacy_args=p 18124 DEBUG + args_array=([p]=package=) 18126 DEBUG + local -A args_array 18127 DEBUG + local package 18128 DEBUG + ynh_handle_getopts_args digiwords-ynh-deps 18128 DEBUG + set +o xtrace 18139 DEBUG + echo '! Helper used in legacy mode !' 18140 DEBUG + set +x 18146 DEBUG + ynh_wait_dpkg_free 18147 DEBUG + local try 18147 DEBUG + set +o xtrace 19605 DEBUG + return 0 19606 DEBUG + dpkg-query --show '--showformat=${Status}' digiwords-ynh-deps 19608 DEBUG + grep --count 'ok installed' 19628 DEBUG + rm /tmp/digiwords-ynh-deps.control 19630 DEBUG + [[ -n '' ]] 19632 DEBUG + grep --quiet php 19639 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 19640 DEBUG + local _globalapp=digiwords 19640 DEBUG + local legacy_args=akv 19641 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 19643 DEBUG + local -A args_array 19644 DEBUG + local app 19644 DEBUG + local key 19645 DEBUG + local value 19645 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 19645 DEBUG + set +o xtrace 19761 DEBUG + app=digiwords 19762 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 19763 DEBUG + ynh_app_setting set digiwords phpversion 7.3 19764 DEBUG + set +o xtrace 19845 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1 19846 DEBUG + set +o xtrace 19964 DEBUG + set +o xtrace 19985 DEBUG + echo '! Helper used in legacy mode !' 19986 DEBUG + set +x 19992 INFO [######++............] > Configuring system user... 19992 DEBUG + echo '[######++............] > Configuring system user...' 19993 DEBUG + set -o xtrace 19993 DEBUG + ynh_system_user_create --username=digiwords --home_dir=/var/www/digiwords 19994 DEBUG + local legacy_args=uhs 19994 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=) 19994 DEBUG + local -A args_array 19994 DEBUG + local username 19995 DEBUG + local home_dir 19995 DEBUG + local use_shell 19995 DEBUG + local groups 19996 DEBUG + ynh_handle_getopts_args --username=digiwords --home_dir=/var/www/digiwords 19997 DEBUG + set +o xtrace 20104 DEBUG + use_shell=0 20105 DEBUG + home_dir=/var/www/digiwords 20105 DEBUG + groups= 20105 DEBUG + ynh_system_user_exists digiwords 20106 DEBUG + local legacy_args=u 20106 DEBUG + args_array=([u]=username=) 20107 DEBUG + local -A args_array 20107 DEBUG + local username 20108 DEBUG + ynh_handle_getopts_args digiwords 20108 DEBUG + set +o xtrace 20131 DEBUG + echo '! Helper used in legacy mode !' 20131 DEBUG + set +x 20138 DEBUG + getent passwd digiwords 20151 DEBUG + '[' -n /var/www/digiwords ']' 20152 DEBUG + local 'user_home_dir=--home-dir /var/www/digiwords' 20152 DEBUG + '[' 0 -eq 1 ']' 20153 DEBUG + local 'shell=--shell /usr/sbin/nologin' 20154 DEBUG + useradd --home-dir /var/www/digiwords --system --user-group digiwords --shell /usr/sbin/nologin 20310 DEBUG + local group 20310 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=1 20311 DEBUG + set +o xtrace 20457 DEBUG + set +o xtrace 20478 DEBUG + echo '! Helper used in legacy mode !' 20479 DEBUG + set +x 20484 INFO [########++..........] > Setting up source files... 20485 DEBUG + echo '[########++..........] > Setting up source files...' 20486 DEBUG + set -o xtrace 20487 DEBUG + ynh_app_setting_set --app=digiwords --key=final_path --value=/var/www/digiwords 20487 DEBUG + local _globalapp=digiwords 20488 DEBUG + local legacy_args=akv 20488 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 20489 DEBUG + local -A args_array 20490 DEBUG + local app 20490 DEBUG + local key 20491 DEBUG + local value 20492 DEBUG + ynh_handle_getopts_args --app=digiwords --key=final_path --value=/var/www/digiwords 20493 DEBUG + set +o xtrace 20655 DEBUG + app=digiwords 20657 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]] 20658 DEBUG + ynh_app_setting set digiwords final_path /var/www/digiwords 20660 DEBUG + set +o xtrace 20762 DEBUG + ynh_setup_source --dest_dir=/var/www/digiwords 20764 DEBUG + local legacy_args=dsk 20766 DEBUG + args_array=([d]=dest_dir= [s]=source_id= [k]=keep=) 20767 DEBUG + local -A args_array 20768 DEBUG + local dest_dir 20768 DEBUG + local source_id 20769 DEBUG + local keep 20770 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/digiwords 20771 DEBUG + set +o xtrace 20824 DEBUG + source_id=app 20825 DEBUG + keep= 20825 DEBUG + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20827 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20829 DEBUG ++ cut --delimiter== --fields=2- 20837 DEBUG + local src_url=https://github.com/YunoHost-Apps/digiwords_ynh/files/8153168/digiwords-v0.3.2.zip 20838 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20839 DEBUG ++ cut --delimiter== --fields=2- 20844 DEBUG + local src_sum=2e97f6fcb29272c79a12b30c216177c6371efec053a401e4915db7ec46e557dc 20846 DEBUG ++ cut --delimiter== --fields=2- 20847 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20855 DEBUG + local src_sumprg=sha256sum 20857 DEBUG ++ cut --delimiter== --fields=2- 20858 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20864 DEBUG + local src_format=zip 20869 DEBUG ++ cut --delimiter== --fields=2- 20869 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20880 DEBUG + local src_extract=true 20883 DEBUG ++ cut --delimiter== --fields=2- 20884 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20892 DEBUG + local src_in_subdir=true 20893 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/app.src 20896 DEBUG ++ cut --delimiter== --fields=2- 20903 DEBUG + local src_filename= 20904 DEBUG + src_sumprg=sha256sum 20905 DEBUG + src_in_subdir=true 20906 DEBUG + src_format=zip 20906 DEBUG ++ echo zip 20908 DEBUG ++ tr '[:upper:]' '[:lower:]' 20914 DEBUG + src_format=zip 20915 DEBUG + src_extract=true 20916 DEBUG + '[' '' = '' ']' 20916 DEBUG + src_filename=app.zip 20916 DEBUG + local local_src=/opt/yunohost-apps-src/digiwords/app.zip 20917 DEBUG + mkdir -p /var/cache/yunohost/download/digiwords/ 20923 DEBUG + src_filename=/var/cache/yunohost/download/digiwords/app.zip 20924 DEBUG + test -e /opt/yunohost-apps-src/digiwords/app.zip 20924 DEBUG + '[' -n https://github.com/YunoHost-Apps/digiwords_ynh/files/8153168/digiwords-v0.3.2.zip ']' 20924 DEBUG + local out 20925 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/digiwords/app.zip https://github.com/YunoHost-Apps/digiwords_ynh/files/8153168/digiwords-v0.3.2.zip 22315 DEBUG + out='2022-05-31 09:56:52 URL:https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/459932950/8153168?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220531T095651Z&X-Amz-Expires=300&X-Amz-Signature=83fdf2a91d2eb520409ad88e5ad0070d25d2645f416ca11719fb6e5b74cd0ccf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=459932950&response-content-disposition=attachment%3Bfilename%3Ddigiwords-v0.3.2.zip&response-content-type=application%2Fzip [3000523/3000523] -> "/var/cache/yunohost/download/digiwords/app.zip" [1]' 22316 DEBUG + echo '2e97f6fcb29272c79a12b30c216177c6371efec053a401e4915db7ec46e557dc /var/cache/yunohost/download/digiwords/app.zip' 22317 DEBUG + sha256sum --check --status 22345 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 22349 DEBUG + '[' -n '' ']' 22350 DEBUG + mkdir --parents /var/www/digiwords 22357 DEBUG + '[' -n /var/www/digiwords ']' 22358 DEBUG + '[' /var/www/digiwords == /var/www/digiwords ']' 22359 DEBUG + _ynh_apply_default_permissions /var/www/digiwords 22359 DEBUG + local target=/var/www/digiwords 22360 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/manifest.json 22361 DEBUG ++ tr -d '>= ' 22372 DEBUG + local ynh_requirement=4.3.0 22373 DEBUG + '[' -z 4.3.0 ']' 22374 DEBUG + '[' 4.3.0 == null ']' 22375 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 22381 DEBUG + chmod o-rwx /var/www/digiwords 22384 DEBUG + chmod g-w /var/www/digiwords 22387 DEBUG + chown -R root:root /var/www/digiwords 22397 DEBUG + ynh_system_user_exists digiwords 22398 DEBUG + local legacy_args=u 22398 DEBUG + args_array=([u]=username=) 22399 DEBUG + local -A args_array 22400 DEBUG + local username 22401 DEBUG + ynh_handle_getopts_args digiwords 22401 DEBUG + set +o xtrace 22413 DEBUG + echo '! Helper used in legacy mode !' 22414 DEBUG + set +x 22428 DEBUG + getent passwd digiwords 22437 DEBUG + chown digiwords:digiwords /var/www/digiwords 22448 DEBUG + echo /var/www/digiwords 22449 DEBUG + grep -q '^/etc/cron' 22453 DEBUG + true 22455 DEBUG + '[' zip = zip ']' 22456 DEBUG + true 22459 DEBUG ++ mktemp --directory 22461 DEBUG + local tmp_dir=/tmp/tmp.2P8DTpwSaJ 22463 DEBUG + unzip -quo /var/cache/yunohost/download/digiwords/app.zip -d /tmp/tmp.2P8DTpwSaJ 22512 DEBUG + cp --archive /tmp/tmp.2P8DTpwSaJ/digiwords/. /var/www/digiwords 22539 DEBUG + ynh_secure_remove --file=/tmp/tmp.2P8DTpwSaJ 22540 DEBUG + local legacy_args=f 22546 DEBUG + args_array=([f]=file=) 22547 DEBUG + local -A args_array 22548 DEBUG + local file 22549 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.2P8DTpwSaJ 22549 DEBUG + set +o xtrace 22572 DEBUG + set +o xtrace 22606 DEBUG + ynh_secure_remove --file=/var/cache/yunohost/download/digiwords/app.zip 22607 DEBUG + local legacy_args=f 22608 DEBUG + args_array=([f]=file=) 22609 DEBUG + local -A args_array 22610 DEBUG + local file 22612 DEBUG + ynh_handle_getopts_args --file=/var/cache/yunohost/download/digiwords/app.zip 22614 DEBUG + set +o xtrace 22629 DEBUG + set +o xtrace 22656 DEBUG + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/sources/patches/ ']' 22657 DEBUG + test -e /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/sources/extra_files/app 22659 DEBUG + '[' -n '' ']' 22661 DEBUG + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 22661 DEBUG + chmod 750 /var/www/digiwords 22666 DEBUG + chmod -R o-rwx /var/www/digiwords 22672 DEBUG + chown -R digiwords:www-data /var/www/digiwords 22683 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=1 22683 DEBUG + set +o xtrace 22821 DEBUG + set +o xtrace 22854 DEBUG + echo '! Helper used in legacy mode !' 22857 DEBUG + set +x 22864 INFO [##########++........] > Configuring NGINX web server... 22865 DEBUG + echo '[##########++........] > Configuring NGINX web server...' 22866 DEBUG + set -o xtrace 22866 DEBUG + ynh_add_nginx_config 22867 DEBUG + local finalnginxconf=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 22867 DEBUG + '[' / '!=' / ']' 22868 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf 22868 DEBUG + local legacy_args=mrf 22868 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 22873 DEBUG + local -A args_array 22873 DEBUG + local match_string 22874 DEBUG + local replace_string 22875 DEBUG + local target_file 22876 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf 22884 DEBUG + set +o xtrace 23032 DEBUG + set +o xtrace 23033 DEBUG + sed --in-place 's@^#root_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf 23037 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23038 DEBUG + local legacy_args=tdv 23039 DEBUG + args_array=([t]=template= [d]=destination=) 23039 DEBUG + local -A args_array 23039 DEBUG + local template 23040 DEBUG + local destination 23041 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf --destination=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23042 DEBUG + set +o xtrace 23106 DEBUG + local template_path 23109 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf ']' 23110 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf ']' 23110 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf 23111 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23113 DEBUG + local legacy_args=f 23113 DEBUG + args_array=([f]=file=) 23117 DEBUG + local -A args_array 23117 DEBUG + local file 23118 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23119 DEBUG + set +o xtrace 23141 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 23143 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 23146 DEBUG ++ local _globalapp=digiwords 23147 DEBUG ++ local legacy_args=ak 23148 DEBUG ++ args_array=([a]=app= [k]=key=) 23149 DEBUG ++ local -A args_array 23150 DEBUG ++ local app 23151 DEBUG ++ local key 23151 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 23152 DEBUG ++ set +o xtrace 23219 DEBUG ++ app=digiwords 23220 DEBUG ++ [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 23223 DEBUG ++ ynh_app_setting get digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 23224 DEBUG ++ set +o xtrace 23319 DEBUG + local checksum_value= 23320 DEBUG + backup_file_checksum= 23321 DEBUG + '[' -n '' ']' 23322 DEBUG + touch /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23324 DEBUG + chown root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23327 DEBUG + chmod 640 /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23329 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/nginx.conf /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23333 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23334 DEBUG + local target=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23336 DEBUG ++ tr -d '>= ' 23339 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/manifest.json 23349 DEBUG + local ynh_requirement=4.3.0 23351 DEBUG + '[' -z 4.3.0 ']' 23352 DEBUG + '[' 4.3.0 == null ']' 23353 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 23355 DEBUG + chmod o-rwx /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23357 DEBUG + chmod g-w /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23362 DEBUG + chown -R root:root /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23366 DEBUG + ynh_system_user_exists digiwords 23367 DEBUG + local legacy_args=u 23368 DEBUG + args_array=([u]=username=) 23372 DEBUG + local -A args_array 23372 DEBUG + local username 23373 DEBUG + ynh_handle_getopts_args digiwords 23373 DEBUG + set +o xtrace 23383 DEBUG + echo '! Helper used in legacy mode !' 23384 DEBUG + set +x 23389 DEBUG + getent passwd digiwords 23393 DEBUG + chown digiwords:digiwords /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23396 DEBUG + echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23398 DEBUG + grep -q '^/etc/cron' 23402 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23403 DEBUG + local legacy_args=f 23407 DEBUG + args_array=([f]=file=) 23408 DEBUG + local -A args_array 23409 DEBUG + local file 23410 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23411 DEBUG + set +o xtrace 23426 DEBUG + test -n / 23427 DEBUG + local path_url_slash_less= 23432 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23432 DEBUG + local legacy_args=mrf 23433 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23433 DEBUG + local -A args_array 23434 DEBUG + local match_string 23436 DEBUG + local replace_string 23437 DEBUG + local target_file 23438 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23439 DEBUG + set +o xtrace 23574 DEBUG + set +o xtrace 23576 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23581 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23582 DEBUG + local legacy_args=mrf 23583 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23584 DEBUG + local -A args_array 23585 DEBUG + local match_string 23587 DEBUG + local replace_string 23588 DEBUG + local target_file 23589 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23591 DEBUG + set +o xtrace 23751 DEBUG + set +o xtrace 23763 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23768 DEBUG + test -n digiwords 23769 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23770 DEBUG + local legacy_args=mrf 23771 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23771 DEBUG + local -A args_array 23772 DEBUG + local match_string 23773 DEBUG + local replace_string 23773 DEBUG + local target_file 23774 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23790 DEBUG + set +o xtrace 23980 DEBUG + set +o xtrace 23984 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23990 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23991 DEBUG + local legacy_args=mrf 23991 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 23992 DEBUG + local -A args_array 23993 DEBUG + local match_string 23993 DEBUG + local replace_string 23994 DEBUG + local target_file 23994 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 23995 DEBUG + set +o xtrace 24148 DEBUG + set +o xtrace 24149 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24154 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24156 DEBUG + local legacy_args=mrf 24156 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24157 DEBUG + local -A args_array 24157 DEBUG + local match_string 24159 DEBUG + local replace_string 24160 DEBUG + local target_file 24160 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24162 DEBUG + set +o xtrace 24324 DEBUG + set +o xtrace 24325 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24331 DEBUG + test -n /var/www/digiwords 24332 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24333 DEBUG + local legacy_args=mrf 24334 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24336 DEBUG + local -A args_array 24337 DEBUG + local match_string 24337 DEBUG + local replace_string 24339 DEBUG + local target_file 24340 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24342 DEBUG + set +o xtrace 24522 DEBUG + set +o xtrace 24528 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24540 DEBUG + test -n 7.3 24540 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24541 DEBUG + local legacy_args=mrf 24541 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 24541 DEBUG + local -A args_array 24542 DEBUG + local match_string 24542 DEBUG + local replace_string 24542 DEBUG + local target_file 24549 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24550 DEBUG + set +o xtrace 24681 DEBUG + set +o xtrace 24681 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24684 DEBUG + test -n '' 24685 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 24686 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24687 DEBUG ++ sort --unique 24690 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 24696 DEBUG + local uniques_vars 24696 DEBUG + local delimit=@ 24697 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24697 DEBUG + local legacy_args=f 24697 DEBUG + args_array=([f]=file= [u]=update_only) 24698 DEBUG + local -A args_array 24698 DEBUG + local file 24699 DEBUG + local update_only 24700 DEBUG + update_only=0 24700 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24701 DEBUG + set +o xtrace 24737 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 24738 DEBUG + '[' 0 -eq 1 ']' 24739 DEBUG ++ md5sum /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 24741 DEBUG ++ cut '--delimiter= ' --fields=1 24749 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=5c962d7fd9685f7d45b0447fc6ee09d1 24749 DEBUG + local _globalapp=digiwords 24750 DEBUG + local legacy_args=akv 24750 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 24751 DEBUG + local -A args_array 24751 DEBUG + local app 24751 DEBUG + local key 24751 DEBUG + local value 24751 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf --value=5c962d7fd9685f7d45b0447fc6ee09d1 24752 DEBUG + set +o xtrace 24877 DEBUG + app=digiwords 24879 DEBUG + [[ checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 24880 DEBUG + ynh_app_setting set digiwords checksum__etc_nginx_conf.d_sub.domain.tld.d_digiwords.conf 5c962d7fd9685f7d45b0447fc6ee09d1 24880 DEBUG + set +o xtrace 24965 DEBUG + '[' -n '' ']' 24966 DEBUG + unset backup_file_checksum 24967 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 24968 DEBUG + local legacy_args=nalpte 24968 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 24969 DEBUG + local -A args_array 24969 DEBUG + local service_name 24970 DEBUG + local action 24971 DEBUG + local line_match 24971 DEBUG + local length 24972 DEBUG + local log_path 24972 DEBUG + local timeout 24973 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 24973 DEBUG + set +o xtrace 25158 DEBUG + service_name=nginx 25159 DEBUG + action=reload 25169 DEBUG + line_match= 25169 DEBUG + length=20 25169 DEBUG + log_path=/var/log/nginx/nginx.log 25170 DEBUG + timeout=300 25170 DEBUG + '[' reload == stop ']' 25171 DEBUG + [[ -n '' ]] 25172 DEBUG + '[' reload == reload ']' 25172 DEBUG + action=reload-or-restart 25172 DEBUG + systemctl reload-or-restart nginx 25268 DEBUG + [[ -n '' ]] 25274 DEBUG + ynh_script_progression '--message=Configuring PHP-FPM...' --weight=1 25277 DEBUG + set +o xtrace 25427 DEBUG + set +o xtrace 25472 DEBUG + echo '! Helper used in legacy mode !' 25477 DEBUG + set +x 25479 INFO [############++......] > Configuring PHP-FPM... 25483 DEBUG + echo '[############++......] > Configuring PHP-FPM...' 25485 DEBUG + set -o xtrace 25488 DEBUG + ynh_add_fpm_config 25489 DEBUG + local legacy_args=vtufpd 25489 DEBUG + args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service) 25490 DEBUG + local -A args_array 25491 DEBUG + local phpversion 25492 DEBUG + local use_template 25492 DEBUG + local usage 25493 DEBUG + local footprint 25493 DEBUG + local package 25494 DEBUG + local dedicated_service 25495 DEBUG + ynh_handle_getopts_args 25496 DEBUG + set +o xtrace 25497 DEBUG + package= 25498 DEBUG + use_template=1 25501 DEBUG + usage= 25503 DEBUG + footprint= 25505 DEBUG + '[' -n '' ']' 25515 DEBUG + '[' -n '' ']' 25515 DEBUG + dedicated_service=0 25516 DEBUG + phpversion=7.3 25516 DEBUG ++ ynh_app_setting_get --app=digiwords --key=phpversion 25517 DEBUG ++ local _globalapp=digiwords 25517 DEBUG ++ local legacy_args=ak 25517 DEBUG ++ args_array=([a]=app= [k]=key=) 25517 DEBUG ++ local -A args_array 25517 DEBUG ++ local app 25517 DEBUG ++ local key 25517 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 25518 DEBUG ++ set +o xtrace 25578 DEBUG ++ app=digiwords 25580 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 25583 DEBUG ++ ynh_app_setting get digiwords phpversion 25584 DEBUG ++ set +o xtrace 25669 DEBUG + local old_phpversion=7.3 25670 DEBUG + '[' -n 7.3 ']' 25671 DEBUG + '[' 7.3 '!=' 7.3 ']' 25671 DEBUG + '[' -n '' ']' 25671 DEBUG + '[' 0 -eq 1 ']' 25672 DEBUG + local fpm_service=php7.3-fpm 25673 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 25673 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 25678 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 25680 DEBUG + local _globalapp=digiwords 25680 DEBUG + local legacy_args=akv 25680 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25680 DEBUG + local -A args_array 25683 DEBUG + local app 25683 DEBUG + local key 25684 DEBUG + local value 25684 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_config_dir --value=/etc/php/7.3/fpm 25684 DEBUG + set +o xtrace 25811 DEBUG + app=digiwords 25812 DEBUG + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 25814 DEBUG + ynh_app_setting set digiwords fpm_config_dir /etc/php/7.3/fpm 25814 DEBUG + set +o xtrace 25892 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_service --value=php7.3-fpm 25893 DEBUG + local _globalapp=digiwords 25894 DEBUG + local legacy_args=akv 25895 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 25896 DEBUG + local -A args_array 25897 DEBUG + local app 25899 DEBUG + local key 25900 DEBUG + local value 25901 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_service --value=php7.3-fpm 25902 DEBUG + set +o xtrace 26028 DEBUG + app=digiwords 26028 DEBUG + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 26030 DEBUG + ynh_app_setting set digiwords fpm_service php7.3-fpm 26030 DEBUG + set +o xtrace 26112 DEBUG + ynh_app_setting_set --app=digiwords --key=fpm_dedicated_service --value=0 26113 DEBUG + local _globalapp=digiwords 26113 DEBUG + local legacy_args=akv 26114 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26114 DEBUG + local -A args_array 26115 DEBUG + local app 26115 DEBUG + local key 26116 DEBUG + local value 26116 DEBUG + ynh_handle_getopts_args --app=digiwords --key=fpm_dedicated_service --value=0 26116 DEBUG + set +o xtrace 26247 DEBUG + app=digiwords 26248 DEBUG + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 26249 DEBUG + ynh_app_setting set digiwords fpm_dedicated_service 0 26249 DEBUG + set +o xtrace 26338 DEBUG + ynh_app_setting_set --app=digiwords --key=phpversion --value=7.3 26339 DEBUG + local _globalapp=digiwords 26341 DEBUG + local legacy_args=akv 26342 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 26343 DEBUG + local -A args_array 26344 DEBUG + local app 26345 DEBUG + local key 26345 DEBUG + local value 26346 DEBUG + ynh_handle_getopts_args --app=digiwords --key=phpversion --value=7.3 26347 DEBUG + set +o xtrace 26457 DEBUG + app=digiwords 26458 DEBUG + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 26459 DEBUG + ynh_app_setting set digiwords phpversion 7.3 26460 DEBUG + set +o xtrace 26541 DEBUG + '[' 0 -eq 1 ']' 26542 DEBUG + '[' 1 -eq 1 ']' 26542 DEBUG + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf 26543 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf ']' 26544 DEBUG + local finalphpconf=/etc/php/7.3/fpm/pool.d/digiwords.conf 26544 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 26545 DEBUG + local legacy_args=tdv 26546 DEBUG + args_array=([t]=template= [d]=destination=) 26548 DEBUG + local -A args_array 26548 DEBUG + local template 26549 DEBUG + local destination 26549 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/digiwords.conf 26550 DEBUG + set +o xtrace 26600 DEBUG + local template_path 26601 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf//var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf ']' 26602 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf ']' 26604 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf 26604 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26604 DEBUG + local legacy_args=f 26605 DEBUG + args_array=([f]=file=) 26605 DEBUG + local -A args_array 26605 DEBUG + local file 26606 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26607 DEBUG + set +o xtrace 26633 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26635 DEBUG ++ ynh_app_setting_get --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26635 DEBUG ++ local _globalapp=digiwords 26636 DEBUG ++ local legacy_args=ak 26637 DEBUG ++ args_array=([a]=app= [k]=key=) 26637 DEBUG ++ local -A args_array 26637 DEBUG ++ local app 26638 DEBUG ++ local key 26638 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26640 DEBUG ++ set +o xtrace 26703 DEBUG ++ app=digiwords 26703 DEBUG ++ [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 26705 DEBUG ++ ynh_app_setting get digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 26706 DEBUG ++ set +o xtrace 26805 DEBUG + local checksum_value= 26807 DEBUG + backup_file_checksum= 26807 DEBUG + '[' -n '' ']' 26807 DEBUG + touch /etc/php/7.3/fpm/pool.d/digiwords.conf 26809 DEBUG + chown root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 26814 DEBUG + chmod 640 /etc/php/7.3/fpm/pool.d/digiwords.conf 26819 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/digiwords.conf 26823 DEBUG + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/digiwords.conf 26823 DEBUG + local target=/etc/php/7.3/fpm/pool.d/digiwords.conf 26828 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/manifest.json 26829 DEBUG ++ tr -d '>= ' 26834 DEBUG + local ynh_requirement=4.3.0 26836 DEBUG + '[' -z 4.3.0 ']' 26836 DEBUG + '[' 4.3.0 == null ']' 26837 DEBUG + dpkg --compare-versions 4.3.0 ge 4.2 26842 DEBUG + chmod o-rwx /etc/php/7.3/fpm/pool.d/digiwords.conf 26844 DEBUG + chmod g-w /etc/php/7.3/fpm/pool.d/digiwords.conf 26847 DEBUG + chown -R root:root /etc/php/7.3/fpm/pool.d/digiwords.conf 26867 DEBUG + ynh_system_user_exists digiwords 26868 DEBUG + local legacy_args=u 26868 DEBUG + args_array=([u]=username=) 26869 DEBUG + local -A args_array 26870 DEBUG + local username 26870 DEBUG + ynh_handle_getopts_args digiwords 26871 DEBUG + set +o xtrace 26888 DEBUG + echo '! Helper used in legacy mode !' 26888 DEBUG + set +x 26893 DEBUG + getent passwd digiwords 26899 DEBUG + chown digiwords:digiwords /etc/php/7.3/fpm/pool.d/digiwords.conf 26903 DEBUG + grep -q '^/etc/cron' 26903 DEBUG + echo /etc/php/7.3/fpm/pool.d/digiwords.conf 26908 DEBUG + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26908 DEBUG + local legacy_args=f 26909 DEBUG + args_array=([f]=file=) 26909 DEBUG + local -A args_array 26911 DEBUG + local file 26911 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26912 DEBUG + set +o xtrace 26930 DEBUG + test -n / 26931 DEBUG + local path_url_slash_less= 26931 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26931 DEBUG + local legacy_args=mrf 26931 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 26932 DEBUG + local -A args_array 26932 DEBUG + local match_string 26932 DEBUG + local replace_string 26932 DEBUG + local target_file 26932 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 26933 DEBUG + set +o xtrace 27071 DEBUG + set +o xtrace 27072 DEBUG + sed --in-place s@__PATH__/@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27080 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27081 DEBUG + local legacy_args=mrf 27083 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27083 DEBUG + local -A args_array 27084 DEBUG + local match_string 27086 DEBUG + local replace_string 27088 DEBUG + local target_file 27089 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27090 DEBUG + set +o xtrace 27235 DEBUG + set +o xtrace 27236 DEBUG + sed --in-place s@__PATH__@/@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27241 DEBUG + test -n digiwords 27242 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27244 DEBUG + local legacy_args=mrf 27244 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27245 DEBUG + local -A args_array 27246 DEBUG + local match_string 27246 DEBUG + local replace_string 27247 DEBUG + local target_file 27248 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27250 DEBUG + set +o xtrace 27385 DEBUG + set +o xtrace 27387 DEBUG + sed --in-place s@__NAME__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27393 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27394 DEBUG + local legacy_args=mrf 27394 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27395 DEBUG + local -A args_array 27395 DEBUG + local match_string 27396 DEBUG + local replace_string 27396 DEBUG + local target_file 27397 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27397 DEBUG + set +o xtrace 27530 DEBUG + set +o xtrace 27532 DEBUG + sed --in-place s@__NAMETOCHANGE__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27540 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27540 DEBUG + local legacy_args=mrf 27542 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27542 DEBUG + local -A args_array 27543 DEBUG + local match_string 27544 DEBUG + local replace_string 27545 DEBUG + local target_file 27545 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27545 DEBUG + set +o xtrace 27658 DEBUG + set +o xtrace 27659 DEBUG + sed --in-place s@__USER__@digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27665 DEBUG + test -n /var/www/digiwords 27667 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27667 DEBUG + local legacy_args=mrf 27668 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27668 DEBUG + local -A args_array 27668 DEBUG + local match_string 27668 DEBUG + local replace_string 27669 DEBUG + local target_file 27669 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/digiwords --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27670 DEBUG + set +o xtrace 27799 DEBUG + set +o xtrace 27800 DEBUG + sed --in-place s@__FINALPATH__@/var/www/digiwords@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27805 DEBUG + test -n 7.3 27806 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27810 DEBUG + local legacy_args=mrf 27811 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 27811 DEBUG + local -A args_array 27811 DEBUG + local match_string 27812 DEBUG + local replace_string 27812 DEBUG + local target_file 27812 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27812 DEBUG + set +o xtrace 27942 DEBUG + set +o xtrace 27943 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/php/7.3/fpm/pool.d/digiwords.conf 27948 DEBUG + test -n '' 27949 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) 27950 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/digiwords.conf 27951 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g' 27952 DEBUG ++ sort --unique 27957 DEBUG + local uniques_vars 27958 DEBUG + local delimit=@ 27958 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27959 DEBUG + local legacy_args=f 27959 DEBUG + args_array=([f]=file= [u]=update_only) 27959 DEBUG + local -A args_array 27960 DEBUG + local file 27960 DEBUG + local update_only 27961 DEBUG + update_only=0 27961 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/digiwords.conf 27962 DEBUG + set +o xtrace 27997 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 27997 DEBUG + '[' 0 -eq 1 ']' 27998 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/digiwords.conf 28003 DEBUG ++ cut '--delimiter= ' --fields=1 28019 DEBUG + ynh_app_setting_set --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 28020 DEBUG + local _globalapp=digiwords 28020 DEBUG + local legacy_args=akv 28020 DEBUG + args_array=([a]=app= [k]=key= [v]=value=) 28021 DEBUG + local -A args_array 28021 DEBUG + local app 28022 DEBUG + local key 28022 DEBUG + local value 28023 DEBUG + ynh_handle_getopts_args --app=digiwords --key=checksum__etc_php_7.3_fpm_pool.d_digiwords.conf --value=79ffd547aca07e585572ccb8bfba1ec1 28024 DEBUG + set +o xtrace 28135 DEBUG + app=digiwords 28136 DEBUG + [[ checksum__etc_php_7.3_fpm_pool.d_digiwords.conf =~ (unprotected|protected|skipped)_ ]] 28137 DEBUG + ynh_app_setting set digiwords checksum__etc_php_7.3_fpm_pool.d_digiwords.conf 79ffd547aca07e585572ccb8bfba1ec1 28137 DEBUG + set +o xtrace 28224 DEBUG + '[' -n '' ']' 28224 DEBUG + unset backup_file_checksum 28224 DEBUG + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_8rjtv7yl/app_folder/conf/php-fpm.ini ']' 28225 DEBUG + '[' 0 -eq 1 ']' 28225 DEBUG + php-fpm7.3 --test 28344 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 28345 DEBUG + local legacy_args=nalpte 28345 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 28345 DEBUG + local -A args_array 28346 DEBUG + local service_name 28346 DEBUG + local action 28346 DEBUG + local line_match 28347 DEBUG + local length 28347 DEBUG + local log_path 28347 DEBUG + local timeout 28348 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 28348 DEBUG + set +o xtrace 28545 DEBUG + service_name=php7.3-fpm 28546 DEBUG + action=reload 28548 DEBUG + line_match= 28548 DEBUG + length=20 28549 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 28549 DEBUG + timeout=300 28550 DEBUG + '[' reload == stop ']' 28550 DEBUG + [[ -n '' ]] 28550 DEBUG + '[' reload == reload ']' 28550 DEBUG + action=reload-or-restart 28551 DEBUG + systemctl reload-or-restart php7.3-fpm 28585 DEBUG + [[ -n '' ]] 28589 DEBUG + ynh_script_progression '--message=Configuring permissions...' --weight=1 28590 DEBUG + set +o xtrace 28731 DEBUG + set +o xtrace 28752 DEBUG + echo '! Helper used in legacy mode !' 28752 DEBUG + set +x 28759 INFO [##############++....] > Configuring permissions... 28760 DEBUG + echo '[##############++....] > Configuring permissions...' 28761 DEBUG + set -o xtrace 28761 DEBUG + '[' 1 -eq 1 ']' 28764 DEBUG + ynh_permission_update --permission=main --add=visitors 28765 DEBUG + local legacy_args=parltP 28765 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=) 28766 DEBUG + local -A args_array 28767 DEBUG + local permission 28768 DEBUG + local add 28768 DEBUG + local remove 28769 DEBUG + local label 28769 DEBUG + local show_tile 28770 DEBUG + local protected 28771 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors 28771 DEBUG + set +o xtrace 28940 DEBUG + add=visitors 28941 DEBUG + remove= 28943 DEBUG + label= 28944 DEBUG + show_tile= 28944 DEBUG + protected= 28945 DEBUG + [[ -n visitors ]] 28945 DEBUG + add=',add=['\''visitors'\'']' 28946 DEBUG + [[ -n '' ]] 28947 DEBUG + [[ -n '' ]] 28947 DEBUG + [[ -n '' ]] 28948 DEBUG + [[ -n '' ]] 28948 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''digiwords.main'\'' ,add=['\''visitors'\''] , force=True)' 29550 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=1 29551 DEBUG + set +o xtrace 29683 DEBUG + set +o xtrace 29707 DEBUG + echo '! Helper used in legacy mode !' 29708 DEBUG + set +x 29709 INFO [################++..] > Reloading NGINX web server... 29710 DEBUG + echo '[################++..] > Reloading NGINX web server...' 29710 DEBUG + set -o xtrace 29711 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 29711 DEBUG + local legacy_args=nalpte 29712 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 29713 DEBUG + local -A args_array 29714 DEBUG + local service_name 29716 DEBUG + local action 29716 DEBUG + local line_match 29716 DEBUG + local length 29717 DEBUG + local log_path 29717 DEBUG + local timeout 29717 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 29717 DEBUG + set +o xtrace 29910 DEBUG + service_name=nginx 29911 DEBUG + action=reload 29912 DEBUG + line_match= 29912 DEBUG + length=20 29913 DEBUG + log_path=/var/log/nginx/nginx.log 29916 DEBUG + timeout=300 29916 DEBUG + '[' reload == stop ']' 29916 DEBUG + [[ -n '' ]] 29916 DEBUG + '[' reload == reload ']' 29917 DEBUG + action=reload-or-restart 29918 DEBUG + systemctl reload-or-restart nginx 30004 DEBUG + [[ -n '' ]] 30006 DEBUG + ynh_script_progression '--message=Installation of digiwords completed' --last 30006 DEBUG + set +o xtrace 30164 DEBUG + set +o xtrace 30189 DEBUG + echo '! Helper used in legacy mode !' 30189 DEBUG + set +x 30208 INFO [####################] > Installation of digiwords completed 30212 DEBUG + echo '[####################] > Installation of digiwords completed' 30212 DEBUG + set -o xtrace 30213 DEBUG + ynh_exit_properly 30213 DEBUG + local exit_code=0 30213 DEBUG + rm -rf /var/cache/yunohost/download/ 30214 DEBUG + '[' 0 -eq 0 ']' 30215 DEBUG + exit 0 31217 DEBUG Checking that required services are up and running... 32087 SUCCESS Installation completed 32093 DEBUG To view the log of the operation 'Install the 'digiwords' app', use the command 'yunohost log show 20220531-095631-app_install-digiwords' 32110 DEBUG action [845.1] executed in 31.840s 32111 DEBUG lock has been released Return code: 0 Working time: 32 seconds (09:57:02) Installation successful. Return code: 1 Working time: 0s (09:57:13)  > Validating that the app digiwords can/can't be accessed with its URL... Running curl sub.domain.tld Return code: 0 Working time: 0s (09:57:19) Digiwords by La Digitale
Return code: 0 Working time: 0s (09:57:22) HTTP code: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Test URL: sub.domain.tld Real URL: HTTP code: Page title: Page extract: Veuillez activer Javascript dans votre navigateur pour utiliser Digiwords. Running curl sub.domain.tld/ 200;https://sub.domain.tld/ Return code: 0 Working time: 0s (09:57:28) Return code: 0 Working time: 0s (09:57:31) HTTP code: 200 Test URL: sub.domain.tld/ Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract: Test URL: sub.domain.tld/ Real URL: https://sub.domain.tld/ HTTP code: 200 Page title: Page extract:  > Upgrade... Running yunohost app upgrade digiwords --file /app_folder --force 183 DEBUG initializing base actions map parser for cli 186 DEBUG loading actions map namespace 'yunohost' 188 DEBUG building parser... 210 DEBUG building parser took 0.021s 212 DEBUG acquiring lock... 234 DEBUG lock has been acquired 252 DEBUG loading python module yunohost.app took 0.018s 252 DEBUG processing action [5152.1]: yunohost.app.upgrade with args={'app': ['digiwords'], 'url': None, 'file': '/app_folder', 'force': True, 'no_safety_backup': False} 271 INFO Now upgrading digiwords... 347 DEBUG initializing ldap interface 403 DEBUG Extracting... 420 DEBUG Done 422 DEBUG Checking required packages for digiwords... 434 DEBUG Checking that required services are up and running... 1469 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 1479 DEBUG + source _common.sh 1480 DEBUG ++ pkg_dependencies=php-sqlite3 1480 DEBUG + source /usr/share/yunohost/helpers 1483 DEBUG +++ set +o 1490 DEBUG +++ grep xtrace 1491 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace' 1492 DEBUG ++ XTRACE_ENABLE='set -o xtrace' 1492 DEBUG ++ set +x 1541 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1 1542 DEBUG + set +o xtrace 1665 DEBUG + set +o xtrace 1723 DEBUG + echo '! Helper used in legacy mode !' 1724 DEBUG + set +x 1729 DEBUG + echo '[++..................] > Loading installation settings...' 1730 DEBUG + set -o xtrace 1731 DEBUG + app=digiwords 1732 DEBUG ++ ynh_app_setting_get --app=digiwords --key=domain 1733 DEBUG ++ local _globalapp=digiwords 1734 DEBUG ++ local legacy_args=ak 1735 DEBUG ++ args_array=([a]=app= [k]=key=) 1736 DEBUG ++ local -A args_array 1737 DEBUG ++ local app 1738 DEBUG ++ local key 1739 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=domain 1739 DEBUG ++ set +o xtrace 1749 INFO [++..................] > Loading installation settings... 1821 DEBUG ++ app=digiwords 1823 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 1827 DEBUG ++ ynh_app_setting get digiwords domain 1829 DEBUG ++ set +o xtrace 1918 DEBUG + domain=sub.domain.tld 1920 DEBUG ++ ynh_app_setting_get --app=digiwords --key=path 1922 DEBUG ++ local _globalapp=digiwords 1923 DEBUG ++ local legacy_args=ak 1923 DEBUG ++ args_array=([a]=app= [k]=key=) 1924 DEBUG ++ local -A args_array 1925 DEBUG ++ local app 1926 DEBUG ++ local key 1927 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=path 1928 DEBUG ++ set +o xtrace 1987 DEBUG ++ app=digiwords 1989 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]] 1990 DEBUG ++ ynh_app_setting get digiwords path 1991 DEBUG ++ set +o xtrace 2084 DEBUG + path_url=/ 2086 DEBUG ++ ynh_app_setting_get --app=digiwords --key=admin 2088 DEBUG ++ local _globalapp=digiwords 2090 DEBUG ++ local legacy_args=ak 2090 DEBUG ++ args_array=([a]=app= [k]=key=) 2091 DEBUG ++ local -A args_array 2092 DEBUG ++ local app 2092 DEBUG ++ local key 2093 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=admin 2093 DEBUG ++ set +o xtrace 2153 DEBUG ++ app=digiwords 2153 DEBUG ++ [[ admin =~ (unprotected|protected|skipped)_ ]] 2153 DEBUG ++ ynh_app_setting get digiwords admin 2154 DEBUG ++ set +o xtrace 2245 DEBUG + admin= 2247 DEBUG ++ ynh_app_setting_get --app=digiwords --key=final_path 2253 DEBUG ++ local _globalapp=digiwords 2254 DEBUG ++ local legacy_args=ak 2255 DEBUG ++ args_array=([a]=app= [k]=key=) 2256 DEBUG ++ local -A args_array 2257 DEBUG ++ local app 2258 DEBUG ++ local key 2258 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=final_path 2259 DEBUG ++ set +o xtrace 2307 DEBUG ++ app=digiwords 2308 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2309 DEBUG ++ ynh_app_setting get digiwords final_path 2310 DEBUG ++ set +o xtrace 2393 DEBUG + final_path=/var/www/digiwords 2394 DEBUG ++ ynh_app_setting_get --app=digiwords --key=db_name 2396 DEBUG ++ local _globalapp=digiwords 2397 DEBUG ++ local legacy_args=ak 2398 DEBUG ++ args_array=([a]=app= [k]=key=) 2399 DEBUG ++ local -A args_array 2400 DEBUG ++ local app 2400 DEBUG ++ local key 2402 DEBUG ++ ynh_handle_getopts_args --app=digiwords --key=db_name 2403 DEBUG ++ set +o xtrace 2465 DEBUG ++ app=digiwords 2466 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2466 DEBUG ++ ynh_app_setting get digiwords db_name 2467 DEBUG ++ set +o xtrace 2539 DEBUG + db_name= 2542 DEBUG ++ ynh_check_app_version_changed 2545 DEBUG ++ local return_value=UPGRADE_FULL 2546 DEBUG ++ '[' UPGRADE_FULL == UPGRADE_FULL ']' 2547 DEBUG ++ return_value=UPGRADE_APP 2549 DEBUG ++ echo UPGRADE_APP 2550 DEBUG + upgrade_type=UPGRADE_APP 2551 DEBUG + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...' --weight=1 2553 DEBUG + set +o xtrace 2685 DEBUG + set +o xtrace 2705 DEBUG + echo '! Helper used in legacy mode !' 2706 DEBUG + set +x 2709 DEBUG + echo '[##++................] > Backing up the app before upgrading (may take a while)...' 2711 DEBUG + set -o xtrace 2712 DEBUG + ynh_backup_before_upgrade 2713 DEBUG + '[' '!' -e /etc/yunohost/apps/digiwords/scripts/backup ']' 2714 DEBUG + backup_number=1 2715 DEBUG + local old_backup_number=2 2715 DEBUG + local app_bck=digiwords 2716 DEBUG + NO_BACKUP_UPGRADE=0 2719 DEBUG + '[' 0 -eq 0 ']' 2719 DEBUG + ynh_backup_archive_exists digiwords-pre-upgrade1 2722 DEBUG + yunohost backup list --output-as json --quiet 2723 INFO [##++................] > Backing up the app before upgrading (may take a while)... 2725 DEBUG + jq -e --arg archive digiwords-pre-upgrade1 '.archives | index($archive)' 3087 DEBUG + BACKUP_CORE_ONLY=1 3088 DEBUG + yunohost backup create --apps digiwords --name digiwords-pre-upgrade1 --debug 3336 DEBUG 181 initializing base actions map parser for cli 3339 DEBUG 185 loading actions map namespace 'yunohost' 3342 DEBUG 188 building parser... 3348 DEBUG 194 building parser took 0.006s 3351 DEBUG 197 acquiring lock... 3410 DEBUG 256 loading python module yunohost.backup took 0.032s 3412 DEBUG 257 processing action [5506.1]: yunohost.backup.create with args={'name': 'digiwords-pre-upgrade1', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['digiwords'], 'dry_run': False} 3455 DEBUG 301 Collecting files to be backed up for digiwords... 3483 DEBUG 330 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_vng0u44b/scripts/backup" 7>&1']' 3493 DEBUG 338 + source ../settings/scripts/_common.sh 3494 DEBUG 339 ++ pkg_dependencies=php-sqlite3 3495 DEBUG 339 + source /usr/share/yunohost/helpers 3498 DEBUG 341 +++ grep xtrace 3499 DEBUG 342 +++ set +o 3504 DEBUG 349 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 3504 DEBUG 350 ++ XTRACE_ENABLE='set -o xtrace' 3505 DEBUG 350 ++ set +x 3556 DEBUG 400 + ynh_abort_if_errors 3557 DEBUG 401 + set -o errexit 3560 DEBUG 401 + set -o nounset 3563 DEBUG 401 + trap ynh_exit_properly EXIT 3565 DEBUG 401 + ynh_print_info '--message=Loading installation settings...' 3566 DEBUG 401 + local legacy_args=m 3567 DEBUG 402 + args_array=([m]=message=) 3568 DEBUG 402 + local -A args_array 3568 DEBUG 402 + local message 3569 DEBUG 402 + ynh_handle_getopts_args '--message=Loading installation settings...' 3569 DEBUG 403 + set +o xtrace 3592 DEBUG 437 + echo 'Loading installation settings...' 3594 DEBUG 437 + app=digiwords 3595 DEBUG 438 Loading installation settings... 3597 DEBUG 438 ++ ynh_app_setting_get --app=digiwords --key=final_path 3598 DEBUG 438 ++ local _globalapp=digiwords 3599 DEBUG 438 ++ local legacy_args=ak 3601 DEBUG 439 ++ args_array=([a]=app= [k]=key=) 3602 DEBUG 439 ++ local -A args_array 3604 DEBUG 439 ++ local app 3605 DEBUG 440 ++ local key 3605 DEBUG 440 ++ ynh_handle_getopts_args --app=digiwords --key=final_path 3606 DEBUG 440 ++ set +o xtrace 3658 DEBUG 504 ++ app=digiwords 3662 DEBUG 505 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 3664 DEBUG 505 ++ ynh_app_setting get digiwords final_path 3667 DEBUG 505 ++ set +o xtrace 3745 DEBUG 592 + final_path=/var/www/digiwords 3750 DEBUG 593 ++ ynh_app_setting_get --app=digiwords --key=domain 3761 DEBUG 594 ++ local _globalapp=digiwords 3762 DEBUG 596 ++ local legacy_args=ak 3763 DEBUG 597 ++ args_array=([a]=app= [k]=key=) 3765 DEBUG 599 ++ local -A args_array 3766 DEBUG 599 ++ local app 3769 DEBUG 600 ++ local key 3770 DEBUG 601 ++ ynh_handle_getopts_args --app=digiwords --key=domain 3771 DEBUG 602 ++ set +o xtrace 3829 DEBUG 674 ++ app=digiwords 3834 DEBUG 676 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 3835 DEBUG 677 ++ ynh_app_setting get digiwords domain 3837 DEBUG 678 ++ set +o xtrace 3910 DEBUG 756 + domain=sub.domain.tld 3913 DEBUG 756 ++ ynh_app_setting_get --app=digiwords --key=db_name 3915 DEBUG 756 ++ local _globalapp=digiwords 3917 DEBUG 757 ++ local legacy_args=ak 3918 DEBUG 758 ++ args_array=([a]=app= [k]=key=) 3918 DEBUG 758 ++ local -A args_array 3918 DEBUG 758 ++ local app 3919 DEBUG 758 ++ local key 3920 DEBUG 759 ++ ynh_handle_getopts_args --app=digiwords --key=db_name 3920 DEBUG 759 ++ set +o xtrace 3974 DEBUG 820 ++ app=digiwords 3978 DEBUG 822 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 3980 DEBUG 822 ++ ynh_app_setting get digiwords db_name 3981 DEBUG 823 ++ set +o xtrace 4059 DEBUG 904 + db_name= 4060 DEBUG 905 ++ ynh_app_setting_get --app=digiwords --key=phpversion 4061 DEBUG 906 ++ local _globalapp=digiwords 4063 DEBUG 907 ++ local legacy_args=ak 4064 DEBUG 907 ++ args_array=([a]=app= [k]=key=) 4065 DEBUG 908 ++ local -A args_array 4066 DEBUG 908 ++ local app 4067 DEBUG 908 ++ local key 4069 DEBUG 908 ++ ynh_handle_getopts_args --app=digiwords --key=phpversion 4070 DEBUG 916 ++ set +o xtrace 4122 DEBUG 968 ++ app=digiwords 4124 DEBUG 969 ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 4127 DEBUG 969 ++ ynh_app_setting get digiwords phpversion 4130 DEBUG 969 ++ set +o xtrace 4206 DEBUG 1052 + phpversion=7.3 4208 DEBUG 1054 ++ ynh_app_setting_get --app=digiwords --key=datadir 4209 DEBUG 1054 ++ local _globalapp=digiwords 4210 DEBUG 1054 ++ local legacy_args=ak 4212 DEBUG 1054 ++ args_array=([a]=app= [k]=key=) 4213 DEBUG 1055 ++ local -A args_array 4214 DEBUG 1056 ++ local app 4214 DEBUG 1056 ++ local key 4215 DEBUG 1056 ++ ynh_handle_getopts_args --app=digiwords --key=datadir 4215 DEBUG 1057 ++ set +o xtrace 4313 DEBUG 1159 ++ app=digiwords 4314 DEBUG 1160 ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 4317 DEBUG 1160 ++ ynh_app_setting get digiwords datadir 4319 DEBUG 1161 ++ set +o xtrace 4397 DEBUG 1243 + datadir= 4399 DEBUG 1243 + ynh_print_info '--message=Declaring files to be backed up...' 4400 DEBUG 1243 + local legacy_args=m 4402 DEBUG 1244 + args_array=([m]=message=) 4403 DEBUG 1244 + local -A args_array 4405 DEBUG 1244 + local message 4406 DEBUG 1245 + ynh_handle_getopts_args '--message=Declaring files to be backed up...' 4407 DEBUG 1245 + set +o xtrace 4421 DEBUG 1267 + echo 'Declaring files to be backed up...' 4422 DEBUG 1268 + ynh_backup --src_path=/var/www/digiwords 4423 DEBUG 1268 + local legacy_args=sdbm 4423 DEBUG 1269 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 4425 DEBUG 1271 + local -A args_array 4426 DEBUG 1271 + local src_path 4427 DEBUG 1272 + local dest_path 4427 DEBUG 1272 + local is_big 4428 DEBUG 1273 + local not_mandatory 4429 DEBUG 1274 + ynh_handle_getopts_args --src_path=/var/www/digiwords 4430 DEBUG 1275 + set +o xtrace 4431 DEBUG 1276 Declaring files to be backed up... 4479 DEBUG 1326 + dest_path= 4481 DEBUG 1326 + is_big=0 4482 DEBUG 1326 + not_mandatory=0 4483 DEBUG 1327 + BACKUP_CORE_ONLY=1 4487 DEBUG 1327 + test -n digiwords 4488 DEBUG 1328 ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 4489 DEBUG 1329 ++ local _globalapp=digiwords 4490 DEBUG 1330 ++ local legacy_args=ak 4491 DEBUG 1330 ++ args_array=([a]=app= [k]=key=) 4492 DEBUG 1330 ++ local -A args_array 4492 DEBUG 1330 ++ local app 4493 DEBUG 1331 ++ local key 4494 DEBUG 1331 ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 4495 DEBUG 1332 ++ set +o xtrace 4561 DEBUG 1407 ++ app=digiwords 4562 DEBUG 1408 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 4563 DEBUG 1408 ++ ynh_app_setting get digiwords do_not_backup_data 4564 DEBUG 1409 ++ set +o xtrace 4642 DEBUG 1488 + do_not_backup_data= 4643 DEBUG 1488 + '[' 0 -eq 1 ']' 4644 DEBUG 1489 + '[' '!' -e /var/www/digiwords ']' 4645 DEBUG 1490 ++ realpath /var/www/digiwords 4646 DEBUG 1492 + src_path=/var/www/digiwords 4647 DEBUG 1493 + [[ -z '' ]] 4648 DEBUG 1494 + dest_path=var/www/digiwords 4649 DEBUG 1495 + [[ -e var/www/digiwords ]] 4650 DEBUG 1496 + local rel_dir=/apps/digiwords/backup 4651 DEBUG 1497 + rel_dir=/apps/digiwords/backup/ 4652 DEBUG 1497 + dest_path=/apps/digiwords/backup/var/www/digiwords 4652 DEBUG 1498 + dest_path=apps/digiwords/backup/var/www/digiwords 4653 DEBUG 1499 ++ echo /var/www/digiwords 4654 DEBUG 1500 ++ sed --regexp-extended 's/"/\"\"/g' 4658 DEBUG 1505 + local src=/var/www/digiwords 4660 DEBUG 1506 ++ echo apps/digiwords/backup/var/www/digiwords 4661 DEBUG 1507 ++ sed --regexp-extended 's/"/\"\"/g' 4666 DEBUG 1512 + local dest=apps/digiwords/backup/var/www/digiwords 4667 DEBUG 1512 + echo '"/var/www/digiwords","apps/digiwords/backup/var/www/digiwords"' 4668 DEBUG 1513 ++ dirname /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/var/www/digiwords 4671 DEBUG 1517 + mkdir --parents /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/var/www 4676 DEBUG 1522 + ynh_backup --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4677 DEBUG 1522 + local legacy_args=sdbm 4678 DEBUG 1523 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 4678 DEBUG 1524 + local -A args_array 4679 DEBUG 1524 + local src_path 4679 DEBUG 1526 + local dest_path 4680 DEBUG 1526 + local is_big 4680 DEBUG 1526 + local not_mandatory 4681 DEBUG 1526 + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4681 DEBUG 1527 + set +o xtrace 4743 DEBUG 1589 + dest_path= 4744 DEBUG 1590 + is_big=0 4746 DEBUG 1591 + not_mandatory=0 4749 DEBUG 1591 + BACKUP_CORE_ONLY=1 4752 DEBUG 1592 + test -n digiwords 4754 DEBUG 1594 ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 4758 DEBUG 1596 ++ local _globalapp=digiwords 4758 DEBUG 1596 ++ local legacy_args=ak 4760 DEBUG 1597 ++ args_array=([a]=app= [k]=key=) 4761 DEBUG 1597 ++ local -A args_array 4762 DEBUG 1597 ++ local app 4763 DEBUG 1597 ++ local key 4763 DEBUG 1598 ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 4764 DEBUG 1599 ++ set +o xtrace 4816 DEBUG 1663 ++ app=digiwords 4818 DEBUG 1663 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 4820 DEBUG 1666 ++ ynh_app_setting get digiwords do_not_backup_data 4821 DEBUG 1666 ++ set +o xtrace 4896 DEBUG 1742 + do_not_backup_data= 4897 DEBUG 1743 + '[' 0 -eq 1 ']' 4899 DEBUG 1743 + '[' '!' -e /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ']' 4900 DEBUG 1744 ++ realpath /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4902 DEBUG 1748 + src_path=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4903 DEBUG 1748 + [[ -z '' ]] 4905 DEBUG 1748 + dest_path=etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4905 DEBUG 1749 + [[ -e etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf ]] 4906 DEBUG 1749 + local rel_dir=/apps/digiwords/backup 4907 DEBUG 1749 + rel_dir=/apps/digiwords/backup/ 4908 DEBUG 1749 + dest_path=/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4909 DEBUG 1750 + dest_path=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4909 DEBUG 1753 ++ echo /etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4910 DEBUG 1754 ++ sed --regexp-extended 's/"/\"\"/g' 4913 DEBUG 1759 + local src=/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4914 DEBUG 1761 ++ echo apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4915 DEBUG 1761 ++ sed --regexp-extended 's/"/\"\"/g' 4926 DEBUG 1772 + local dest=apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4930 DEBUG 1772 + echo '"/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf","apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf"' 4937 DEBUG 1775 ++ dirname /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d/digiwords.conf 4937 DEBUG 1782 + mkdir --parents /home/yunohost.backup/tmp/digiwords-pre-upgrade1/apps/digiwords/backup/etc/nginx/conf.d/sub.domain.tld.d 4940 DEBUG 1784 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4943 DEBUG 1785 + local legacy_args=sdbm 4943 DEBUG 1785 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory) 4943 DEBUG 1785 + local -A args_array 4944 DEBUG 1785 + local src_path 4944 DEBUG 1785 + local dest_path 4944 DEBUG 1785 + local is_big 4944 DEBUG 1786 + local not_mandatory 4945 DEBUG 1786 + ynh_handle_getopts_args --src_path=/etc/php/7.3/fpm/pool.d/digiwords.conf 4945 DEBUG 1786 + set +o xtrace 5032 DEBUG 1877 + dest_path= 5033 DEBUG 1877 + is_big=0 5034 DEBUG 1878 + not_mandatory=0 5035 DEBUG 1878 + BACKUP_CORE_ONLY=1 5039 DEBUG 1884 + test -n digiwords 5041 DEBUG 1887 ++ ynh_app_setting_get --app=digiwords --key=do_not_backup_data 5046 DEBUG 1889 ++ local _globalapp=digiwords 5047 DEBUG 1893 ++ local legacy_args=ak 5048 DEBUG 1893 ++ args_array=([a]=app= [k]=key=) 5050 DEBUG 1894 ++ local -A args_array 5050 DEBUG 1894 ++ local app 5051 DEBUG 1894 ++ local key 5051 DEBUG 1896 ++ ynh_handle_getopts_args --app=digiwords --key=do_not_backup_data 5052 DEBUG 1897 ++ set +