YunoHost-Apps / wallabag2_ynh

Wallabag v2 package for YunoHost
https://www.wallabag.org/
GNU Affero General Public License v3.0
62 stars 14 forks source link

Upgrading to 2.5.4~ynh3 seems to delete images saved locally #201

Closed kr-cr closed 3 months ago

kr-cr commented 6 months ago

Describe the bug

Hi, It seems the upgrade from 2.5.4-ynh2 to 2.5.4-ynh3 removes images saved locally. I tried to restore 2.5.4~ynh2 pre-update backup and apply the upgrade again but images does not show up in the wallabag interface after upgrading. (and are actually not in their folders in '/var/www/wallabag2/web/assets'

I don't know how to check what's changed in this upgrade that could cause this.

Thank you for any help.

Context

Steps to reproduce

  1. Go to Web Admin → System update
  2. Upgrade to Wallabag 2.5.4~ynh3
  3. The upgrade proceeds properly
  4. Going back to wallabag, the images does not load anymore and checking in '/var/www/wallabag2/web/assets' there is no images anymore.

Expected behavior

The images should not be deleted.

nicofrand commented 5 months ago

I have the same issue (just noticed now). I was able to retrieve the images from the backup though (in web/assets/images).

kr-cr commented 5 months ago

Thanks for the feedback. So did you just just put them back from the backup where they should be? I restored the pre-update backup for now because I didn't know if doing this was a good solution but if that's the case I could try.

lapineige commented 5 months ago

I don't understand what could change it in https://github.com/YunoHost-Apps/wallabag2_ynh/blob/master/scripts/upgrade

Do you have the upgrade log ?

kr-cr commented 5 months ago

Yes, it should be this one:

20240404-191823-app_upgrade-wallabag2.log

Expandable code block ```javascript 2024-04-04 20:18:23,475: INFO - Provisioning sources... 2024-04-04 20:18:23,479: DEBUG - Prefetching asset main: https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz ... 2024-04-04 20:18:30,240: INFO - Updating system_user... 2024-04-04 20:18:30,621: INFO - Updating install_dir... 2024-04-04 20:18:30,753: INFO - Provisioning permissions... 2024-04-04 20:18:32,212: DEBUG - Nothing to update in LDAP 2024-04-04 20:18:32,820: DEBUG - Permission 'wallabag2.main' updated 2024-04-04 20:18:32,827: DEBUG - Full log of this operation: 'Update accesses for permission 'wallabag2'' 2024-04-04 20:18:34,360: DEBUG - Nothing to update in LDAP 2024-04-04 20:18:34,362: DEBUG - Permission 'wallabag2.main' updated 2024-04-04 20:18:35,017: DEBUG - Full log of this operation: 'Update URL related to permission 'wallabag2'' 2024-04-04 20:18:35,676: DEBUG - The permission database has been resynchronized 2024-04-04 20:18:36,644: DEBUG - SSOwat configuration regenerated 2024-04-04 20:18:36,677: INFO - Provisioning apt... 2024-04-04 20:18:36,846: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']' 2024-04-04 20:18:36,900: DEBUG - + source /usr/share/yunohost/helpers 2024-04-04 20:18:36,904: DEBUG - +++ set +o 2024-04-04 20:18:36,905: DEBUG - +++ grep xtrace 2024-04-04 20:18:36,913: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2024-04-04 20:18:36,914: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2024-04-04 20:18:36,915: DEBUG - ++ set +x 2024-04-04 20:18:37,050: DEBUG - + ynh_abort_if_errors 2024-04-04 20:18:37,052: DEBUG - + set -o errexit 2024-04-04 20:18:37,053: DEBUG - + set -o nounset 2024-04-04 20:18:37,054: DEBUG - + trap ynh_exit_properly EXIT 2024-04-04 20:18:37,055: DEBUG - + ynh_install_app_dependencies mariadb-server php7.4-cli php7.4-curl php7.4-gd php7.4-gettext php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-redis php7.4-tidy php7.4-xml 2024-04-04 20:18:37,057: DEBUG - + local 'dependencies=mariadb-server php7.4-cli php7.4-curl php7.4-gd php7.4-gettext php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-redis php7.4-tidy php7.4-xml' 2024-04-04 20:18:37,058: DEBUG - ++ echo 'mariadb-server php7.4-cli php7.4-curl php7.4-gd php7.4-gettext php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-redis php7.4-tidy php7.4-xml' 2024-04-04 20:18:37,059: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2024-04-04 20:18:37,068: DEBUG - + dependencies='mariadb-server, php7.4-cli, php7.4-curl, php7.4-gd, php7.4-gettext, php7.4-intl, php7.4-json, php7.4-ldap, php7.4-mbstring, php7.4-mysql, php7.4-redis, php7.4-tidy, php7.4-xml' 2024-04-04 20:18:37,069: DEBUG - + local 'dependencies=mariadb-server, php7.4-cli, php7.4-curl, php7.4-gd, php7.4-gettext, php7.4-intl, php7.4-json, php7.4-ldap, php7.4-mbstring, php7.4-mysql, php7.4-redis, php7.4-tidy, php7.4-xml' 2024-04-04 20:18:37,071: DEBUG - ++ ynh_read_manifest --manifest_key=version 2024-04-04 20:18:37,072: DEBUG - ++ local legacy_args=mk 2024-04-04 20:18:37,074: DEBUG - ++ args_array=(['m']='manifest=' ['k']='manifest_key=') 2024-04-04 20:18:37,075: DEBUG - ++ local -A args_array 2024-04-04 20:18:37,076: DEBUG - ++ local manifest 2024-04-04 20:18:37,077: DEBUG - ++ local manifest_key 2024-04-04 20:18:37,078: DEBUG - ++ ynh_handle_getopts_args --manifest_key=version 2024-04-04 20:18:37,078: DEBUG - ++ set +o xtrace 2024-04-04 20:18:37,156: DEBUG - ++ '[' '!' -e '' ']' 2024-04-04 20:18:37,157: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_3qw2ubry/manifest.json ']' 2024-04-04 20:18:37,159: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_3qw2ubry/manifest.json 2024-04-04 20:18:37,161: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_3qw2ubry/manifest.json 2024-04-04 20:18:37,162: DEBUG - ++ grep -q '\.json$' 2024-04-04 20:18:37,168: DEBUG - ++ jq .version /var/cache/yunohost/app_tmp_work_dirs/app_3qw2ubry/manifest.json --raw-output 2024-04-04 20:18:37,506: DEBUG - + local version=2.5.4~ynh2 2024-04-04 20:18:37,508: DEBUG - + '[' -z 2.5.4~ynh2 ']' 2024-04-04 20:18:37,509: DEBUG - + '[' 2.5.4~ynh2 == null ']' 2024-04-04 20:18:37,510: DEBUG - + local dep_app=wallabag2 2024-04-04 20:18:37,512: DEBUG - + [[ mariadb-server, php7.4-cli, php7.4-curl, php7.4-gd, php7.4-gettext, php7.4-intl, php7.4-json, php7.4-ldap, php7.4-mbstring, php7.4-mysql, php7.4-redis, php7.4-tidy, php7.4-xml =~ [<=>] ]] 2024-04-04 20:18:37,514: DEBUG - ++ echo mariadb-server, php7.4-cli, php7.4-curl, php7.4-gd, php7.4-gettext, php7.4-intl, php7.4-json, php7.4-ldap, php7.4-mbstring, php7.4-mysql, php7.4-redis, php7.4-tidy, php7.4-xml 2024-04-04 20:18:37,515: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)' 2024-04-04 20:18:37,516: DEBUG - ++ sort -u 2024-04-04 20:18:37,523: DEBUG - + local specific_php_version=7.4 2024-04-04 20:18:37,525: DEBUG - + [[ -n 7.4 ]] 2024-04-04 20:18:37,527: DEBUG - ++ echo 7.4 2024-04-04 20:18:37,529: DEBUG - ++ wc -l 2024-04-04 20:18:37,540: DEBUG - + [[ 1 -eq 1 ]] 2024-04-04 20:18:37,541: DEBUG - + dependencies+=', php7.4, php7.4-fpm, php7.4-common' 2024-04-04 20:18:37,542: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=phpversion 2024-04-04 20:18:37,544: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:18:37,545: DEBUG - ++ local legacy_args=ak 2024-04-04 20:18:37,546: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:18:37,547: DEBUG - ++ local -A args_array 2024-04-04 20:18:37,547: DEBUG - ++ local app 2024-04-04 20:18:37,548: DEBUG - ++ local key 2024-04-04 20:18:37,549: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=phpversion 2024-04-04 20:18:37,550: DEBUG - ++ set +o xtrace 2024-04-04 20:18:37,687: DEBUG - ++ app=wallabag2 2024-04-04 20:18:37,689: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:18:37,690: DEBUG - ++ ynh_app_setting get wallabag2 phpversion 2024-04-04 20:18:37,691: DEBUG - ++ set +o xtrace 2024-04-04 20:18:38,056: DEBUG - + local old_phpversion=7.4 2024-04-04 20:18:38,057: DEBUG - + '[' -n 7.4 ']' 2024-04-04 20:18:38,058: DEBUG - + '[' 7.4 '!=' 7.4 ']' 2024-04-04 20:18:38,059: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=phpversion --value=7.4 2024-04-04 20:18:38,060: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:18:38,061: DEBUG - + local legacy_args=akv 2024-04-04 20:18:38,062: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:18:38,063: DEBUG - + local -A args_array 2024-04-04 20:18:38,064: DEBUG - + local app 2024-04-04 20:18:38,065: DEBUG - + local key 2024-04-04 20:18:38,066: DEBUG - + local value 2024-04-04 20:18:38,067: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=phpversion --value=7.4 2024-04-04 20:18:38,069: DEBUG - + set +o xtrace 2024-04-04 20:18:38,347: DEBUG - + app=wallabag2 2024-04-04 20:18:38,349: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:18:38,350: DEBUG - + ynh_app_setting set wallabag2 phpversion 7.4 2024-04-04 20:18:38,351: DEBUG - + set +o xtrace 2024-04-04 20:18:38,701: DEBUG - + test -e /usr/bin/php7.4 2024-04-04 20:18:38,702: DEBUG - + update-alternatives --set php /usr/bin/php7.4 2024-04-04 20:18:38,726: DEBUG - ++ ynh_package_is_installed postgresql-13 2024-04-04 20:18:38,728: DEBUG - ++ local legacy_args=p 2024-04-04 20:18:38,729: DEBUG - ++ args_array=(['p']='package=') 2024-04-04 20:18:38,730: DEBUG - ++ local -A args_array 2024-04-04 20:18:38,731: DEBUG - ++ local package 2024-04-04 20:18:38,732: DEBUG - ++ ynh_handle_getopts_args postgresql-13 2024-04-04 20:18:38,733: DEBUG - ++ set +o xtrace 2024-04-04 20:18:38,765: DEBUG - ++ echo '! Helper used in legacy mode !' 2024-04-04 20:18:38,767: DEBUG - ++ set +x 2024-04-04 20:18:38,775: DEBUG - ++ ynh_wait_dpkg_free 2024-04-04 20:18:38,776: DEBUG - ++ local try 2024-04-04 20:18:38,777: DEBUG - ++ set +o xtrace 2024-04-04 20:18:39,867: DEBUG - ++ return 0 2024-04-04 20:18:39,870: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2024-04-04 20:18:39,871: DEBUG - ++ grep --count 'ok installed' 2024-04-04 20:18:39,936: DEBUG - ++ echo yes 2024-04-04 20:18:39,938: DEBUG - + local psql_installed=yes 2024-04-04 20:18:39,940: DEBUG - + [[ true == \t\r\u\e ]] 2024-04-04 20:18:39,941: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2024-04-04 20:18:39,942: DEBUG - + cat 2024-04-04 20:18:39,947: DEBUG - + ynh_package_install_from_equivs /tmp/wallabag2-ynh-deps.control 2024-04-04 20:18:39,949: DEBUG - + local controlfile=/tmp/wallabag2-ynh-deps.control 2024-04-04 20:18:39,952: DEBUG - ++ grep '^Package: ' /tmp/wallabag2-ynh-deps.control 2024-04-04 20:18:39,953: DEBUG - ++ cut '--delimiter= ' --fields=2 2024-04-04 20:18:39,961: DEBUG - + local pkgname=wallabag2-ynh-deps 2024-04-04 20:18:39,965: DEBUG - ++ grep '^Version: ' /tmp/wallabag2-ynh-deps.control 2024-04-04 20:18:39,968: DEBUG - ++ cut '--delimiter= ' --fields=2 2024-04-04 20:18:39,975: DEBUG - + local pkgversion=2.5.4~ynh2 2024-04-04 20:18:39,977: DEBUG - + [[ -z wallabag2-ynh-deps ]] 2024-04-04 20:18:39,978: DEBUG - + [[ -z 2.5.4~ynh2 ]] 2024-04-04 20:18:39,979: DEBUG - + ynh_package_update 2024-04-04 20:18:39,979: DEBUG - + ynh_apt update 2024-04-04 20:18:39,980: DEBUG - + ynh_wait_dpkg_free 2024-04-04 20:18:39,981: DEBUG - + local try 2024-04-04 20:18:39,982: DEBUG - + set +o xtrace 2024-04-04 20:18:41,009: DEBUG - + return 0 2024-04-04 20:18:41,018: DEBUG - + LC_ALL=C 2024-04-04 20:18:41,020: DEBUG - + DEBIAN_FRONTEND=noninteractive 2024-04-04 20:18:41,021: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2024-04-04 20:18:41,542: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease 2024-04-04 20:18:41,544: DEBUG - Hit:2 http://deb.debian.org/debian bullseye InRelease 2024-04-04 20:18:41,546: DEBUG - Hit:3 http://deb.debian.org/debian bullseye-updates InRelease 2024-04-04 20:18:41,547: DEBUG - Hit:4 http://security.debian.org/debian-security bullseye-security InRelease 2024-04-04 20:18:41,627: DEBUG - Hit:5 https://packages.sury.org/php bullseye InRelease 2024-04-04 20:18:41,662: DEBUG - Hit:6 http://archive.raspberrypi.org/debian bullseye InRelease 2024-04-04 20:18:55,155: DEBUG - Reading package lists... 2024-04-04 20:18:56,953: DEBUG - ++ mktemp --directory 2024-04-04 20:18:56,961: DEBUG - + local TMPDIR=/tmp/tmp.gBf668eDcx 2024-04-04 20:18:56,962: DEBUG - + rm -f /usr/share/equivs/template/debian/compat 2024-04-04 20:18:56,985: DEBUG - + ynh_wait_dpkg_free 2024-04-04 20:18:56,986: DEBUG - + local try 2024-04-04 20:18:56,987: DEBUG - + set +o xtrace 2024-04-04 20:18:58,080: DEBUG - + return 0 2024-04-04 20:18:58,081: DEBUG - + cp /tmp/wallabag2-ynh-deps.control /tmp/tmp.gBf668eDcx/control 2024-04-04 20:18:58,095: DEBUG - + cd /tmp/tmp.gBf668eDcx 2024-04-04 20:18:58,096: DEBUG - + LC_ALL=C 2024-04-04 20:18:58,097: DEBUG - + equivs-build ./control 2024-04-04 20:18:59,473: DEBUG - dpkg-buildpackage: info: source package wallabag2-ynh-deps 2024-04-04 20:18:59,474: DEBUG - dpkg-buildpackage: info: source version 2.5.4~ynh2 2024-04-04 20:18:59,474: DEBUG - dpkg-buildpackage: info: source distribution unstable 2024-04-04 20:18:59,475: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator 2024-04-04 20:18:59,749: DEBUG - dpkg-source --before-build . 2024-04-04 20:18:59,751: DEBUG - dpkg-buildpackage: info: host architecture arm64 2024-04-04 20:19:00,450: DEBUG - debian/rules clean 2024-04-04 20:19:00,481: DEBUG - dh clean 2024-04-04 20:19:01,030: DEBUG - dh_clean 2024-04-04 20:19:01,244: DEBUG - debian/rules binary 2024-04-04 20:19:01,254: DEBUG - dh binary 2024-04-04 20:19:01,695: DEBUG - dh_update_autotools_config 2024-04-04 20:19:01,877: DEBUG - dh_autoreconf 2024-04-04 20:19:02,197: DEBUG - create-stamp debian/debhelper-build-stamp 2024-04-04 20:19:02,199: DEBUG - dh_prep 2024-04-04 20:19:02,383: DEBUG - dh_install 2024-04-04 20:19:02,600: DEBUG - dh_installdocs 2024-04-04 20:19:02,860: DEBUG - dh_installchangelogs 2024-04-04 20:19:03,464: DEBUG - dh_perl 2024-04-04 20:19:03,696: DEBUG - dh_link 2024-04-04 20:19:03,917: DEBUG - dh_strip_nondeterminism 2024-04-04 20:19:04,613: DEBUG - dh_compress 2024-04-04 20:19:04,889: DEBUG - dh_fixperms 2024-04-04 20:19:05,145: DEBUG - dh_missing 2024-04-04 20:19:05,312: DEBUG - dh_installdeb 2024-04-04 20:19:05,528: DEBUG - dh_gencontrol 2024-04-04 20:19:06,352: DEBUG - dh_md5sums 2024-04-04 20:19:06,580: DEBUG - dh_builddeb 2024-04-04 20:19:06,766: DEBUG - dpkg-deb: building package 'wallabag2-ynh-deps' in '../wallabag2-ynh-deps_2.5.4~ynh2_all.deb'. 2024-04-04 20:19:06,910: DEBUG - dpkg-genbuildinfo --build=binary 2024-04-04 20:19:09,533: DEBUG - dpkg-genchanges --build=binary >../wallabag2-ynh-deps_2.5.4~ynh2_arm64.changes 2024-04-04 20:19:10,072: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included) 2024-04-04 20:19:10,090: DEBUG - dpkg-source --after-build . 2024-04-04 20:19:10,770: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included) 2024-04-04 20:19:10,798: DEBUG - 2024-04-04 20:19:10,799: DEBUG - The package has been created. 2024-04-04 20:19:10,800: DEBUG - Attention, the package has been created in the current directory, 2024-04-04 20:19:10,801: DEBUG - not in ".." as indicated by the message above! 2024-04-04 20:19:10,807: DEBUG - + LC_ALL=C 2024-04-04 20:19:10,809: DEBUG - + dpkg --force-depends --install ./wallabag2-ynh-deps_2.5.4~ynh2_all.deb 2024-04-04 20:19:10,810: DEBUG - + tee ./dpkg_log 2024-04-04 20:19:12,075: DEBUG - (Reading database ... 58397 files and directories currently installed.) 2024-04-04 20:19:12,091: DEBUG - Preparing to unpack .../wallabag2-ynh-deps_2.5.4~ynh2_all.deb ... 2024-04-04 20:19:12,137: DEBUG - Unpacking wallabag2-ynh-deps (2.5.4~ynh2) over (2.5.4~ynh2) ... 2024-04-04 20:19:12,344: DEBUG - Setting up wallabag2-ynh-deps (2.5.4~ynh2) ... 2024-04-04 20:19:12,591: DEBUG - + ynh_package_install --fix-broken 2024-04-04 20:19:12,593: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2024-04-04 20:19:12,594: DEBUG - + ynh_wait_dpkg_free 2024-04-04 20:19:12,595: DEBUG - + local try 2024-04-04 20:19:12,596: DEBUG - + set +o xtrace 2024-04-04 20:19:13,684: DEBUG - + return 0 2024-04-04 20:19:13,686: DEBUG - + LC_ALL=C 2024-04-04 20:19:13,687: DEBUG - + DEBIAN_FRONTEND=noninteractive 2024-04-04 20:19:13,688: 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 2024-04-04 20:19:17,449: DEBUG - Reading package lists... 2024-04-04 20:19:19,779: DEBUG - Building dependency tree... 2024-04-04 20:19:19,788: DEBUG - Reading state information... 2024-04-04 20:19:22,525: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2024-04-04 20:19:22,534: DEBUG - + [[ -n /tmp/tmp.gBf668eDcx ]] 2024-04-04 20:19:22,536: DEBUG - + rm --recursive --force /tmp/tmp.gBf668eDcx 2024-04-04 20:19:22,541: DEBUG - + ynh_package_is_installed wallabag2-ynh-deps 2024-04-04 20:19:22,542: DEBUG - + local legacy_args=p 2024-04-04 20:19:22,543: DEBUG - + args_array=(['p']='package=') 2024-04-04 20:19:22,545: DEBUG - + local -A args_array 2024-04-04 20:19:22,546: DEBUG - + local package 2024-04-04 20:19:22,547: DEBUG - + ynh_handle_getopts_args wallabag2-ynh-deps 2024-04-04 20:19:22,548: DEBUG - + set +o xtrace 2024-04-04 20:19:22,584: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:19:22,585: DEBUG - + set +x 2024-04-04 20:19:22,591: DEBUG - + ynh_wait_dpkg_free 2024-04-04 20:19:22,592: DEBUG - + local try 2024-04-04 20:19:22,594: DEBUG - + set +o xtrace 2024-04-04 20:19:23,673: DEBUG - + return 0 2024-04-04 20:19:23,676: DEBUG - + dpkg-query --show '--showformat=${Status}' wallabag2-ynh-deps 2024-04-04 20:19:23,678: DEBUG - + grep --count 'ok installed' 2024-04-04 20:19:23,759: DEBUG - + rm /tmp/wallabag2-ynh-deps.control 2024-04-04 20:19:23,767: DEBUG - ++ ynh_package_is_installed postgresql-13 2024-04-04 20:19:23,769: DEBUG - ++ local legacy_args=p 2024-04-04 20:19:23,770: DEBUG - ++ args_array=(['p']='package=') 2024-04-04 20:19:23,772: DEBUG - ++ local -A args_array 2024-04-04 20:19:23,773: DEBUG - ++ local package 2024-04-04 20:19:23,774: DEBUG - ++ ynh_handle_getopts_args postgresql-13 2024-04-04 20:19:23,775: DEBUG - ++ set +o xtrace 2024-04-04 20:19:23,808: DEBUG - ++ echo '! Helper used in legacy mode !' 2024-04-04 20:19:23,810: DEBUG - ++ set +x 2024-04-04 20:19:23,817: DEBUG - ++ ynh_wait_dpkg_free 2024-04-04 20:19:23,819: DEBUG - ++ local try 2024-04-04 20:19:23,820: DEBUG - ++ set +o xtrace 2024-04-04 20:19:24,820: DEBUG - ++ return 0 2024-04-04 20:19:24,823: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2024-04-04 20:19:24,828: DEBUG - ++ grep --count 'ok installed' 2024-04-04 20:19:24,898: DEBUG - ++ echo yes 2024-04-04 20:19:24,903: DEBUG - + local psql_installed2=yes 2024-04-04 20:19:24,904: DEBUG - + [[ yes != \y\e\s ]] 2024-04-04 20:19:24,911: DEBUG - + ynh_exit_properly 2024-04-04 20:19:24,914: DEBUG - + local exit_code=0 2024-04-04 20:19:24,915: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]] 2024-04-04 20:19:24,917: DEBUG - + '[' 0 -eq 0 ']' 2024-04-04 20:19:24,918: DEBUG - + exit 0 2024-04-04 20:19:25,923: INFO - Provisioning database... 2024-04-04 20:19:26,455: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 2024-04-04 20:19:26,514: DEBUG - + source _common.sh 2024-04-04 20:19:26,517: DEBUG - ++ wb_conf=/var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:19:26,519: DEBUG - + source /usr/share/yunohost/helpers 2024-04-04 20:19:26,521: DEBUG - +++ set +o 2024-04-04 20:19:26,524: DEBUG - +++ grep xtrace 2024-04-04 20:19:26,536: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2024-04-04 20:19:26,538: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2024-04-04 20:19:26,539: DEBUG - ++ set +x 2024-04-04 20:19:26,692: DEBUG - + ynh_script_progression '--message=Upgrading source files...' --weight=6 2024-04-04 20:19:26,693: DEBUG - + set +o xtrace 2024-04-04 20:19:26,960: DEBUG - + set +o xtrace 2024-04-04 20:19:27,082: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:19:27,083: DEBUG - + set +x 2024-04-04 20:19:27,091: DEBUG - + echo '[+++++++++++++.......] > Upgrading source files...' 2024-04-04 20:19:27,093: INFO - [+++++++++++++.......] > Upgrading source files... 2024-04-04 20:19:27,098: DEBUG - + set -o xtrace 2024-04-04 20:19:27,099: DEBUG - + ynh_setup_source --dest_dir=/var/www/wallabag2 --full_replace=1 '--keep=app/config/parameters.yml var/logs' 2024-04-04 20:19:27,100: DEBUG - + local legacy_args=dsk 2024-04-04 20:19:27,101: DEBUG - + args_array=(['d']='dest_dir=' ['s']='source_id=' ['k']='keep=' ['r']='full_replace=') 2024-04-04 20:19:27,102: DEBUG - + local -A args_array 2024-04-04 20:19:27,103: DEBUG - + local dest_dir 2024-04-04 20:19:27,104: DEBUG - + local source_id 2024-04-04 20:19:27,105: DEBUG - + local keep 2024-04-04 20:19:27,106: DEBUG - + local full_replace 2024-04-04 20:19:27,108: DEBUG - + ynh_handle_getopts_args --dest_dir=/var/www/wallabag2 --full_replace=1 '--keep=app/config/parameters.yml var/logs' 2024-04-04 20:19:27,110: DEBUG - + set +o xtrace 2024-04-04 20:19:27,489: DEBUG - + keep='app/config/parameters.yml var/logs' 2024-04-04 20:19:27,491: DEBUG - + full_replace=1 2024-04-04 20:19:27,492: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:19:27,494: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:19:27,495: DEBUG - + toml_to_json 2024-04-04 20:19:27,497: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:19:27,499: DEBUG - + jq -e .resources.sources 2024-04-04 20:19:27,950: DEBUG - + source_id=main 2024-04-04 20:19:27,953: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:19:27,954: DEBUG - ++ toml_to_json 2024-04-04 20:19:27,956: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:19:27,957: DEBUG - ++ jq '.resources.sources["main"]' 2024-04-04 20:19:28,360: DEBUG - + local 'sources_json={ 2024-04-04 20:19:28,361: DEBUG - "url": "https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz", 2024-04-04 20:19:28,362: DEBUG - "sha256": "c953105e3181f18bf592541a1c46c318c6663ad00d4687052676b02a7d74c618", 2024-04-04 20:19:28,362: DEBUG - "autoupdate": { 2024-04-04 20:19:28,363: DEBUG - "strategy": "latest_github_release" 2024-04-04 20:19:28,364: DEBUG - } 2024-04-04 20:19:28,364: DEBUG - }' 2024-04-04 20:19:28,365: DEBUG - + jq -re .url 2024-04-04 20:19:28,687: DEBUG - https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz 2024-04-04 20:19:28,694: DEBUG - + local arch_prefix= 2024-04-04 20:19:28,695: DEBUG - ++ jq -r .url 2024-04-04 20:19:28,697: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:29,002: DEBUG - + local src_url=https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz 2024-04-04 20:19:29,006: DEBUG - ++ jq -r .sha256 2024-04-04 20:19:29,009: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:29,318: DEBUG - + local src_sum=c953105e3181f18bf592541a1c46c318c6663ad00d4687052676b02a7d74c618 2024-04-04 20:19:29,320: DEBUG - + local src_sumprg=sha256sum 2024-04-04 20:19:29,322: DEBUG - ++ jq -r .format 2024-04-04 20:19:29,324: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:29,636: DEBUG - + local src_format= 2024-04-04 20:19:29,640: DEBUG - ++ jq -r .in_subdir 2024-04-04 20:19:29,641: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:29,952: DEBUG - + local src_in_subdir= 2024-04-04 20:19:29,956: DEBUG - ++ jq -r .extract 2024-04-04 20:19:29,959: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:30,266: DEBUG - + local src_extract= 2024-04-04 20:19:30,271: DEBUG - ++ jq -r .platform 2024-04-04 20:19:30,272: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:30,581: DEBUG - + local src_platform= 2024-04-04 20:19:30,585: DEBUG - ++ jq -r .rename 2024-04-04 20:19:30,587: DEBUG - ++ sed 's/^null$//' 2024-04-04 20:19:30,893: DEBUG - + local src_rename= 2024-04-04 20:19:30,894: DEBUG - + [[ -n https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz ]] 2024-04-04 20:19:30,895: DEBUG - + [[ -n c953105e3181f18bf592541a1c46c318c6663ad00d4687052676b02a7d74c618 ]] 2024-04-04 20:19:30,897: DEBUG - + [[ -z '' ]] 2024-04-04 20:19:30,898: DEBUG - + [[ https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz =~ ^.*\.zip$ ]] 2024-04-04 20:19:30,900: DEBUG - + [[ https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz =~ ^.*/zipball/.*$ ]] 2024-04-04 20:19:30,901: DEBUG - + [[ https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz =~ ^.*\.tar\.gz$ ]] 2024-04-04 20:19:30,902: DEBUG - + src_format=tar.gz 2024-04-04 20:19:30,903: DEBUG - + src_sumprg=sha256sum 2024-04-04 20:19:30,904: DEBUG - + src_in_subdir=true 2024-04-04 20:19:30,905: DEBUG - + src_format=tar.gz 2024-04-04 20:19:30,906: DEBUG - ++ echo tar.gz 2024-04-04 20:19:30,907: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2024-04-04 20:19:30,909: DEBUG - + src_format=tar.gz 2024-04-04 20:19:30,910: DEBUG - + src_extract=true 2024-04-04 20:19:30,911: DEBUG - + [[ true != \t\r\u\e ]] 2024-04-04 20:19:30,912: DEBUG - + local local_src=/opt/yunohost-apps-src/wallabag2/main 2024-04-04 20:19:30,913: DEBUG - ++ dirname /var/cache/yunohost/download/wallabag2/main 2024-04-04 20:19:30,918: DEBUG - + mkdir -p /var/cache/yunohost/download/wallabag2 2024-04-04 20:19:30,927: DEBUG - + src_filename=/var/cache/yunohost/download/wallabag2/main 2024-04-04 20:19:30,929: DEBUG - + '[' tar.gz = docker ']' 2024-04-04 20:19:30,930: DEBUG - + test -e /opt/yunohost-apps-src/wallabag2/main 2024-04-04 20:19:30,932: DEBUG - + '[' -n https://github.com/wallabag/wallabag/releases/download/2.5.4/wallabag-2.5.4.tar.gz ']' 2024-04-04 20:19:30,933: DEBUG - + '[' -e /var/cache/yunohost/download/wallabag2/main ']' 2024-04-04 20:19:30,934: DEBUG - + echo 'c953105e3181f18bf592541a1c46c318c6663ad00d4687052676b02a7d74c618 /var/cache/yunohost/download/wallabag2/main' 2024-04-04 20:19:30,935: DEBUG - + sha256sum --check --status 2024-04-04 20:19:33,193: DEBUG - + '[' '!' -e /var/cache/yunohost/download/wallabag2/main ']' 2024-04-04 20:19:33,195: DEBUG - + echo 'c953105e3181f18bf592541a1c46c318c6663ad00d4687052676b02a7d74c618 /var/cache/yunohost/download/wallabag2/main' 2024-04-04 20:19:33,197: DEBUG - + sha256sum --check --status 2024-04-04 20:19:34,042: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2024-04-04 20:19:34,049: DEBUG - + '[' -n 'app/config/parameters.yml var/logs' ']' 2024-04-04 20:19:34,050: DEBUG - + '[' -e /var/www/wallabag2 ']' 2024-04-04 20:19:34,051: DEBUG - + local keep_dir=/var/cache/yunohost/files_to_keep_during_setup_source/wallabag2 2024-04-04 20:19:34,052: DEBUG - + mkdir -p /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2 2024-04-04 20:19:34,057: DEBUG - + local stuff_to_keep 2024-04-04 20:19:34,058: DEBUG - + for stuff_to_keep in $keep 2024-04-04 20:19:34,059: DEBUG - + '[' -e /var/www/wallabag2/app/config/parameters.yml ']' 2024-04-04 20:19:34,075: DEBUG - ++ dirname /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/app/config/parameters.yml 2024-04-04 20:19:34,081: DEBUG - + mkdir --parents /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/app/config 2024-04-04 20:19:34,089: DEBUG - + cp --archive /var/www/wallabag2/app/config/parameters.yml /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/app/config/parameters.yml 2024-04-04 20:19:34,106: DEBUG - + for stuff_to_keep in $keep 2024-04-04 20:19:34,108: DEBUG - + '[' -e /var/www/wallabag2/var/logs ']' 2024-04-04 20:19:34,110: DEBUG - ++ dirname /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/var/logs 2024-04-04 20:19:34,116: DEBUG - + mkdir --parents /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/var 2024-04-04 20:19:34,123: DEBUG - + cp --archive /var/www/wallabag2/var/logs /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/var/logs 2024-04-04 20:19:48,273: DEBUG - + '[' 1 -eq 1 ']' 2024-04-04 20:19:48,276: DEBUG - + ynh_secure_remove --file=/var/www/wallabag2 2024-04-04 20:19:48,277: DEBUG - + local legacy_args=f 2024-04-04 20:19:48,278: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:19:48,279: DEBUG - + local -A args_array 2024-04-04 20:19:48,280: DEBUG - + local file 2024-04-04 20:19:48,281: DEBUG - + ynh_handle_getopts_args --file=/var/www/wallabag2 2024-04-04 20:19:48,282: DEBUG - + set +o xtrace 2024-04-04 20:19:48,320: DEBUG - + set +o xtrace 2024-04-04 20:20:04,369: DEBUG - + mkdir --parents /var/www/wallabag2 2024-04-04 20:20:04,379: DEBUG - + '[' -n /var/www/wallabag2 ']' 2024-04-04 20:20:04,381: DEBUG - + '[' /var/www/wallabag2 == /var/www/wallabag2 ']' 2024-04-04 20:20:04,382: DEBUG - + _ynh_apply_default_permissions /var/www/wallabag2 2024-04-04 20:20:04,384: DEBUG - + local target=/var/www/wallabag2 2024-04-04 20:20:04,386: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2024-04-04 20:20:04,388: DEBUG - ++ local legacy_args=mk 2024-04-04 20:20:04,390: DEBUG - ++ tr -d '<>= ' 2024-04-04 20:20:04,391: DEBUG - ++ args_array=(['m']='manifest=' ['k']='manifest_key=') 2024-04-04 20:20:04,393: DEBUG - ++ local -A args_array 2024-04-04 20:20:04,394: DEBUG - ++ local manifest 2024-04-04 20:20:04,395: DEBUG - ++ local manifest_key 2024-04-04 20:20:04,396: DEBUG - ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost 2024-04-04 20:20:04,397: DEBUG - ++ set +o xtrace 2024-04-04 20:20:04,485: DEBUG - ++ '[' '!' -e '' ']' 2024-04-04 20:20:04,487: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.json ']' 2024-04-04 20:20:04,490: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml ']' 2024-04-04 20:20:04,491: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:20:04,493: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:20:04,494: DEBUG - ++ grep -q '\.json$' 2024-04-04 20:20:04,502: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:20:04,507: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:20:04,510: DEBUG - ++ jq .requirements.yunohost --raw-output 2024-04-04 20:20:05,062: DEBUG - + local ynh_requirement=null 2024-04-04 20:20:05,064: DEBUG - + dpkg --compare-versions 2.0 ge 2 2024-04-04 20:20:05,075: DEBUG - + chmod o-rwx /var/www/wallabag2 2024-04-04 20:20:05,087: DEBUG - + chmod g-w /var/www/wallabag2 2024-04-04 20:20:05,092: DEBUG - + chown -R root:root /var/www/wallabag2 2024-04-04 20:20:05,104: DEBUG - + ynh_system_user_exists wallabag2 2024-04-04 20:20:05,106: DEBUG - + local legacy_args=u 2024-04-04 20:20:05,108: DEBUG - + args_array=(['u']='username=') 2024-04-04 20:20:05,109: DEBUG - + local -A args_array 2024-04-04 20:20:05,110: DEBUG - + local username 2024-04-04 20:20:05,111: DEBUG - + ynh_handle_getopts_args wallabag2 2024-04-04 20:20:05,113: DEBUG - + set +o xtrace 2024-04-04 20:20:05,149: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:20:05,150: DEBUG - + set +x 2024-04-04 20:20:05,159: DEBUG - + getent passwd wallabag2 2024-04-04 20:20:05,180: DEBUG - + chown wallabag2:wallabag2 /var/www/wallabag2 2024-04-04 20:20:05,201: DEBUG - + echo /var/www/wallabag2 2024-04-04 20:20:05,202: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2024-04-04 20:20:05,212: DEBUG - + '[' -n '' ']' 2024-04-04 20:20:05,214: DEBUG - + [[ true == \f\a\l\s\e ]] 2024-04-04 20:20:05,215: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]] 2024-04-04 20:20:05,216: DEBUG - + [[ tar.gz == \z\i\p ]] 2024-04-04 20:20:05,217: DEBUG - + local strip= 2024-04-04 20:20:05,218: DEBUG - + '[' true '!=' false ']' 2024-04-04 20:20:05,219: DEBUG - + '[' true == true ']' 2024-04-04 20:20:05,220: DEBUG - + local sub_dirs=1 2024-04-04 20:20:05,222: DEBUG - + strip='--strip-components 1' 2024-04-04 20:20:05,223: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2024-04-04 20:20:05,224: DEBUG - + tar --extract --file=/var/cache/yunohost/download/wallabag2/main --directory=/var/www/wallabag2 --strip-components 1 2024-04-04 20:20:24,834: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/wallabag2/main 2024-04-04 20:20:24,839: DEBUG - + local legacy_args=f 2024-04-04 20:20:24,842: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:20:24,843: DEBUG - + local -A args_array 2024-04-04 20:20:24,845: DEBUG - + local file 2024-04-04 20:20:24,846: DEBUG - + ynh_handle_getopts_args --file=/var/cache/yunohost/download/wallabag2/main 2024-04-04 20:20:24,848: DEBUG - + set +o xtrace 2024-04-04 20:20:24,896: DEBUG - + set +o xtrace 2024-04-04 20:20:24,970: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/ ']' 2024-04-04 20:20:24,975: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/ 2024-04-04 20:20:24,982: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches 2024-04-04 20:20:24,987: DEBUG - ++ find /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches -type f -name 'main-*.patch' 2024-04-04 20:20:24,989: DEBUG - ++ wc --lines 2024-04-04 20:20:25,001: DEBUG - + (( 3 > 0 )) 2024-04-04 20:20:25,002: DEBUG - + pushd /var/www/wallabag2 2024-04-04 20:20:25,003: DEBUG - /var/www/wallabag2 /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/scripts 2024-04-04 20:20:25,004: DEBUG - + for p in $patches_folder/${source_id}-*.patch 2024-04-04 20:20:25,005: DEBUG - + echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/main-00-ldap-auth.patch 2024-04-04 20:20:25,006: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/main-00-ldap-auth.patch 2024-04-04 20:20:25,007: DEBUG - + patch --strip=1 2024-04-04 20:20:25,025: DEBUG - patching file app/config/security.yml 2024-04-04 20:20:25,026: DEBUG - Hunk #2 succeeded at 49 with fuzz 2 (offset 3 lines). 2024-04-04 20:20:25,027: DEBUG - patching file app/config/services.yml 2024-04-04 20:20:25,028: DEBUG - Hunk #1 succeeded at 38 (offset -5 lines). 2024-04-04 20:20:25,030: DEBUG - + for p in $patches_folder/${source_id}-*.patch 2024-04-04 20:20:25,030: DEBUG - + echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/main-01-logout-success-handler.patch 2024-04-04 20:20:25,031: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/main-01-logout-success-handler.patch 2024-04-04 20:20:25,033: DEBUG - + patch --strip=1 2024-04-04 20:20:25,035: DEBUG - patching file app/config/security.yml 2024-04-04 20:20:25,037: DEBUG - Hunk #1 succeeded at 65 with fuzz 2 (offset 3 lines). 2024-04-04 20:20:25,038: DEBUG - patching file app/config/services.yml 2024-04-04 20:20:25,039: DEBUG - Hunk #1 succeeded at 38 (offset -5 lines). 2024-04-04 20:20:25,040: DEBUG - patching file src/Wallabag/YunoHostBundle/Security/LogoutSuccessHandler.php 2024-04-04 20:20:25,042: DEBUG - + for p in $patches_folder/${source_id}-*.patch 2024-04-04 20:20:25,043: DEBUG - + echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/main-02-oauth-workaround.patch 2024-04-04 20:20:25,044: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/patches/main-02-oauth-workaround.patch 2024-04-04 20:20:25,045: DEBUG - + patch --strip=1 2024-04-04 20:20:25,048: DEBUG - patching file vendor/friendsofsymfony/oauth-server-bundle/Storage/OAuthStorage.php 2024-04-04 20:20:25,050: DEBUG - Hunk #1 succeeded at 167 (offset -3 lines). 2024-04-04 20:20:25,051: DEBUG - + popd 2024-04-04 20:20:25,052: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/scripts 2024-04-04 20:20:25,054: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/sources/extra_files/main 2024-04-04 20:20:25,055: DEBUG - + '[' -n 'app/config/parameters.yml var/logs' ']' 2024-04-04 20:20:25,056: DEBUG - + local keep_dir=/var/cache/yunohost/files_to_keep_during_setup_source/wallabag2 2024-04-04 20:20:25,057: DEBUG - + local stuff_to_keep 2024-04-04 20:20:25,058: DEBUG - + for stuff_to_keep in $keep 2024-04-04 20:20:25,058: DEBUG - + '[' -e /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/app/config/parameters.yml ']' 2024-04-04 20:20:25,059: DEBUG - ++ dirname /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:25,061: DEBUG - + mkdir --parents /var/www/wallabag2/app/config 2024-04-04 20:20:25,068: DEBUG - + cp --archive --no-target-directory /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/app/config/parameters.yml /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:25,078: DEBUG - + for stuff_to_keep in $keep 2024-04-04 20:20:25,080: DEBUG - + '[' -e /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/var/logs ']' 2024-04-04 20:20:25,081: DEBUG - ++ dirname /var/www/wallabag2/var/logs 2024-04-04 20:20:25,087: DEBUG - + mkdir --parents /var/www/wallabag2/var 2024-04-04 20:20:25,094: DEBUG - + cp --archive --no-target-directory /var/cache/yunohost/files_to_keep_during_setup_source/wallabag2/var/logs /var/www/wallabag2/var/logs 2024-04-04 20:20:42,535: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2024-04-04 20:20:42,595: DEBUG - + mkdir -p /var/www/wallabag2/var/logs/ 2024-04-04 20:20:42,603: DEBUG - + touch /var/www/wallabag2/var/logs/prod.log 2024-04-04 20:20:42,613: DEBUG - + chown -R wallabag2:www-data /var/www/wallabag2 2024-04-04 20:20:43,919: DEBUG - + '[' -e /var/www/wallabag2/var/cache/prod/appProdProjectContainer.php ']' 2024-04-04 20:20:43,920: DEBUG - + ynh_script_progression '--message=Reconfiguring wallabag2...' --weight=1 2024-04-04 20:20:43,925: DEBUG - + set +o xtrace 2024-04-04 20:20:44,225: DEBUG - + set +o xtrace 2024-04-04 20:20:44,288: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:20:44,289: DEBUG - + set +x 2024-04-04 20:20:44,296: DEBUG - + echo '[#############++.....] > Reconfiguring wallabag2...' 2024-04-04 20:20:44,298: INFO - [#############++.....] > Reconfiguring wallabag2... 2024-04-04 20:20:44,302: DEBUG - + set -o xtrace 2024-04-04 20:20:44,302: DEBUG - + cp /var/www/wallabag2/app/config/parameters.yml.dist /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:44,315: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=fosuser_registration: true' '--replace_string=fosuser_registration: false' 2024-04-04 20:20:44,316: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:44,320: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:44,322: DEBUG - + local -A args_array 2024-04-04 20:20:44,322: DEBUG - + local match_string 2024-04-04 20:20:44,323: DEBUG - + local replace_string 2024-04-04 20:20:44,324: DEBUG - + local target_file 2024-04-04 20:20:44,325: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=fosuser_registration: true' '--replace_string=fosuser_registration: false' 2024-04-04 20:20:44,327: DEBUG - + set +o xtrace 2024-04-04 20:20:44,651: DEBUG - + set +o xtrace 2024-04-04 20:20:44,653: DEBUG - + sed --in-place 'sfosuser_registration: truefosuser_registration: falseg' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:44,666: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_name: wallabag' '--replace_string=database_name: wallabag2' 2024-04-04 20:20:44,667: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:44,669: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:44,670: DEBUG - + local -A args_array 2024-04-04 20:20:44,671: DEBUG - + local match_string 2024-04-04 20:20:44,673: DEBUG - + local replace_string 2024-04-04 20:20:44,674: DEBUG - + local target_file 2024-04-04 20:20:44,675: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_name: wallabag' '--replace_string=database_name: wallabag2' 2024-04-04 20:20:44,676: DEBUG - + set +o xtrace 2024-04-04 20:20:45,008: DEBUG - + set +o xtrace 2024-04-04 20:20:45,010: DEBUG - + sed --in-place 'sdatabase_name: wallabagdatabase_name: wallabag2g' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:45,022: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_user: root' '--replace_string=database_user: wallabag2' 2024-04-04 20:20:45,023: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:45,025: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:45,026: DEBUG - + local -A args_array 2024-04-04 20:20:45,027: DEBUG - + local match_string 2024-04-04 20:20:45,029: DEBUG - + local replace_string 2024-04-04 20:20:45,030: DEBUG - + local target_file 2024-04-04 20:20:45,031: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_user: root' '--replace_string=database_user: wallabag2' 2024-04-04 20:20:45,033: DEBUG - + set +o xtrace 2024-04-04 20:20:45,370: DEBUG - + set +o xtrace 2024-04-04 20:20:45,371: DEBUG - + sed --in-place 'sdatabase_user: rootdatabase_user: wallabag2g' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:45,383: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_password: ~' '--replace_string=database_password: A5i5FCTCc3xL2wnE3VeTN7Qw' 2024-04-04 20:20:45,385: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:45,386: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:45,388: DEBUG - + local -A args_array 2024-04-04 20:20:45,389: DEBUG - + local match_string 2024-04-04 20:20:45,390: DEBUG - + local replace_string 2024-04-04 20:20:45,391: DEBUG - + local target_file 2024-04-04 20:20:45,393: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_password: ~' '--replace_string=database_password: A5i5FCTCc3xL2wnE3VeTN7Qw' 2024-04-04 20:20:45,394: DEBUG - + set +o xtrace 2024-04-04 20:20:45,727: DEBUG - + set +o xtrace 2024-04-04 20:20:45,729: DEBUG - + sed --in-place 'sdatabase_password: ~database_password: A5i5FCTCc3xL2wnE3VeTN7Qwg' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:45,741: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_table_prefix: wallabag_' '--replace_string=database_table_prefix: null' 2024-04-04 20:20:45,743: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:45,744: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:45,746: DEBUG - + local -A args_array 2024-04-04 20:20:45,747: DEBUG - + local match_string 2024-04-04 20:20:45,748: DEBUG - + local replace_string 2024-04-04 20:20:45,750: DEBUG - + local target_file 2024-04-04 20:20:45,751: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=database_table_prefix: wallabag_' '--replace_string=database_table_prefix: null' 2024-04-04 20:20:45,752: DEBUG - + set +o xtrace 2024-04-04 20:20:46,081: DEBUG - + set +o xtrace 2024-04-04 20:20:46,083: DEBUG - + sed --in-place 'sdatabase_table_prefix: wallabag_database_table_prefix: nullg' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:46,095: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv' '--replace_string=secret: 7XGi5V11ULuaYx4cSl3dIsG4' 2024-04-04 20:20:46,097: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:46,098: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:46,100: DEBUG - + local -A args_array 2024-04-04 20:20:46,101: DEBUG - + local match_string 2024-04-04 20:20:46,102: DEBUG - + local replace_string 2024-04-04 20:20:46,103: DEBUG - + local target_file 2024-04-04 20:20:46,105: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv' '--replace_string=secret: 7XGi5V11ULuaYx4cSl3dIsG4' 2024-04-04 20:20:46,106: DEBUG - + set +o xtrace 2024-04-04 20:20:46,444: DEBUG - + set +o xtrace 2024-04-04 20:20:46,446: DEBUG - + sed --in-place 'ssecret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGvsecret: 7XGi5V11ULuaYx4cSl3dIsG4g' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:46,458: DEBUG - + ynh_replace_string --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=domain_name: https://your-wallabag-url-instance.com' '--replace_string=domain_name: https://cloud.mydomain.com/wallabag' 2024-04-04 20:20:46,460: DEBUG - + local legacy_args=mrf 2024-04-04 20:20:46,462: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:20:46,463: DEBUG - + local -A args_array 2024-04-04 20:20:46,464: DEBUG - + local match_string 2024-04-04 20:20:46,466: DEBUG - + local replace_string 2024-04-04 20:20:46,467: DEBUG - + local target_file 2024-04-04 20:20:46,469: DEBUG - + ynh_handle_getopts_args --target_file=/var/www/wallabag2/app/config/parameters.yml '--match_string=domain_name: https://your-wallabag-url-instance.com' '--replace_string=domain_name: https://cloud.mydomain.com/wallabag' 2024-04-04 20:20:46,471: DEBUG - + set +o xtrace 2024-04-04 20:20:46,806: DEBUG - + set +o xtrace 2024-04-04 20:20:46,808: DEBUG - + sed --in-place 'sdomain_name: https://your-wallabag-url-instance.comdomain_name: https://cloud.mydomain.com/wallabagg' /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:46,821: DEBUG - + chmod 600 /var/www/wallabag2/app/config/parameters.yml 2024-04-04 20:20:46,827: DEBUG - + chown -R wallabag2:www-data /var/www/wallabag2 2024-04-04 20:20:47,697: DEBUG - + php_exec=("php$phpversion" "$install_dir/bin/console" --no-interaction --env=prod) 2024-04-04 20:20:47,698: DEBUG - + ynh_exec_as wallabag2 php7.4 /var/www/wallabag2/bin/console --no-interaction --env=prod doctrine:migrations:migrate 2024-04-04 20:20:47,699: DEBUG - + local user=wallabag2 2024-04-04 20:20:47,700: DEBUG - + shift 1 2024-04-04 20:20:47,701: DEBUG - ++ whoami 2024-04-04 20:20:48,905: DEBUG - + [[ wallabag2 = root ]] 2024-04-04 20:20:48,907: DEBUG - + sudo -u wallabag2 php7.4 /var/www/wallabag2/bin/console --no-interaction --env=prod doctrine:migrations:migrate 2024-04-04 20:20:57,577: DEBUG - 2024-04-04 20:20:57,578: DEBUG - Application Migrations 2024-04-04 20:20:57,580: DEBUG - 2024-04-04 20:20:57,581: DEBUG - 2024-04-04 20:20:57,630: DEBUG - No migrations to execute. 2024-04-04 20:20:57,710: DEBUG - + ynh_exec_as wallabag2 php7.4 /var/www/wallabag2/bin/console --no-interaction --env=prod cache:clear 2024-04-04 20:20:57,712: DEBUG - + local user=wallabag2 2024-04-04 20:20:57,713: DEBUG - + shift 1 2024-04-04 20:20:57,714: DEBUG - ++ whoami 2024-04-04 20:20:57,721: DEBUG - + [[ wallabag2 = root ]] 2024-04-04 20:20:57,722: DEBUG - + sudo -u wallabag2 php7.4 /var/www/wallabag2/bin/console --no-interaction --env=prod cache:clear 2024-04-04 20:20:58,762: DEBUG - 2024-04-04 20:20:58,763: DEBUG - // Clearing the cache for the prod environment with debug 2024-04-04 20:20:58,765: DEBUG - // false 2024-04-04 20:20:58,766: DEBUG - 2024-04-04 20:21:27,741: DEBUG - [OK] Cache for the "prod" environment (debug=false) was successfully cleared. 2024-04-04 20:21:27,767: DEBUG - 2024-04-04 20:21:27,853: DEBUG - + ynh_mysql_connect_as --user=wallabag2 --password=A5i5FCTCc3xL2wnE3VeTN7Qw --database=wallabag2 2024-04-04 20:21:27,854: DEBUG - + local legacy_args=upd 2024-04-04 20:21:27,855: DEBUG - + args_array=(['u']='user=' ['p']='password=' ['d']='database=') 2024-04-04 20:21:27,856: DEBUG - + local -A args_array 2024-04-04 20:21:27,857: DEBUG - + local user 2024-04-04 20:21:27,858: DEBUG - + local password 2024-04-04 20:21:27,859: DEBUG - + local database 2024-04-04 20:21:27,860: DEBUG - + ynh_handle_getopts_args --user=wallabag2 --password=A5i5FCTCc3xL2wnE3VeTN7Qw --database=wallabag2 2024-04-04 20:21:27,861: DEBUG - + set +o xtrace 2024-04-04 20:21:28,175: DEBUG - + database=wallabag2 2024-04-04 20:21:28,176: DEBUG - + mysql --user=wallabag2 --password=A5i5FCTCc3xL2wnE3VeTN7Qw --batch wallabag2 2024-04-04 20:21:28,381: DEBUG - + ynh_replace_string --match_string=__APP__ --replace_string=wallabag2 --target_file=../hooks/post_user_create 2024-04-04 20:21:28,382: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:28,383: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:28,385: DEBUG - + local -A args_array 2024-04-04 20:21:28,386: DEBUG - + local match_string 2024-04-04 20:21:28,386: DEBUG - + local replace_string 2024-04-04 20:21:28,387: DEBUG - + local target_file 2024-04-04 20:21:28,388: DEBUG - + ynh_handle_getopts_args --match_string=__APP__ --replace_string=wallabag2 --target_file=../hooks/post_user_create 2024-04-04 20:21:28,389: DEBUG - + set +o xtrace 2024-04-04 20:21:28,708: DEBUG - + set +o xtrace 2024-04-04 20:21:28,709: DEBUG - + sed --in-place $'s\001__APP__\001wallabag2\001g' ../hooks/post_user_create 2024-04-04 20:21:28,720: DEBUG - + ynh_replace_string --match_string=__APP__ --replace_string=wallabag2 --target_file=../hooks/post_user_delete 2024-04-04 20:21:28,722: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:28,723: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:28,724: DEBUG - + local -A args_array 2024-04-04 20:21:28,725: DEBUG - + local match_string 2024-04-04 20:21:28,726: DEBUG - + local replace_string 2024-04-04 20:21:28,726: DEBUG - + local target_file 2024-04-04 20:21:28,727: DEBUG - + ynh_handle_getopts_args --match_string=__APP__ --replace_string=wallabag2 --target_file=../hooks/post_user_delete 2024-04-04 20:21:28,729: DEBUG - + set +o xtrace 2024-04-04 20:21:29,045: DEBUG - + set +o xtrace 2024-04-04 20:21:29,046: DEBUG - + sed --in-place $'s\001__APP__\001wallabag2\001g' ../hooks/post_user_delete 2024-04-04 20:21:29,057: DEBUG - + ynh_script_progression '--message=Upgrading system configurations related to wallabag2...' --weight=1 2024-04-04 20:21:29,058: DEBUG - + set +o xtrace 2024-04-04 20:21:29,344: DEBUG - + set +o xtrace 2024-04-04 20:21:29,402: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:21:29,403: DEBUG - + set +x 2024-04-04 20:21:29,412: DEBUG - + echo '[###############++...] > Upgrading system configurations related to wallabag2...' 2024-04-04 20:21:29,414: INFO - [###############++...] > Upgrading system configurations related to wallabag2... 2024-04-04 20:21:29,418: DEBUG - + set -o xtrace 2024-04-04 20:21:29,419: DEBUG - + ynh_add_nginx_config 2024-04-04 20:21:29,420: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:29,421: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:29,422: DEBUG - + local legacy_args=tdv 2024-04-04 20:21:29,423: DEBUG - + args_array=(['t']='template=' ['d']='destination=') 2024-04-04 20:21:29,424: DEBUG - + local -A args_array 2024-04-04 20:21:29,426: DEBUG - + local template 2024-04-04 20:21:29,427: DEBUG - + local destination 2024-04-04 20:21:29,428: DEBUG - + ynh_handle_getopts_args --template=nginx.conf --destination=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:29,429: DEBUG - + set +o xtrace 2024-04-04 20:21:29,569: DEBUG - + local template_path 2024-04-04 20:21:29,571: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/nginx.conf ']' 2024-04-04 20:21:29,572: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/nginx.conf 2024-04-04 20:21:29,573: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:29,574: DEBUG - + local legacy_args=f 2024-04-04 20:21:29,575: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:29,576: DEBUG - + local -A args_array 2024-04-04 20:21:29,577: DEBUG - + local file 2024-04-04 20:21:29,578: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:29,579: DEBUG - + set +o xtrace 2024-04-04 20:21:29,622: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 2024-04-04 20:21:29,625: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 2024-04-04 20:21:29,626: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:29,627: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:29,629: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:29,630: DEBUG - ++ local -A args_array 2024-04-04 20:21:29,631: DEBUG - ++ local app 2024-04-04 20:21:29,632: DEBUG - ++ local key 2024-04-04 20:21:29,633: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 2024-04-04 20:21:29,634: DEBUG - ++ set +o xtrace 2024-04-04 20:21:29,783: DEBUG - ++ app=wallabag2 2024-04-04 20:21:29,784: DEBUG - ++ [[ checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:29,786: DEBUG - ++ ynh_app_setting get wallabag2 checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 2024-04-04 20:21:29,787: DEBUG - ++ set +o xtrace 2024-04-04 20:21:30,194: DEBUG - + local checksum_value= 2024-04-04 20:21:30,196: DEBUG - + backup_file_checksum= 2024-04-04 20:21:30,197: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:30,198: DEBUG - + touch /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,201: DEBUG - + chown root:root /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,209: DEBUG - + chmod 640 /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,216: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/nginx.conf /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,226: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,227: DEBUG - + local target=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,231: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2024-04-04 20:21:30,232: DEBUG - ++ tr -d '<>= ' 2024-04-04 20:21:30,234: DEBUG - ++ local legacy_args=mk 2024-04-04 20:21:30,236: DEBUG - ++ args_array=(['m']='manifest=' ['k']='manifest_key=') 2024-04-04 20:21:30,238: DEBUG - ++ local -A args_array 2024-04-04 20:21:30,239: DEBUG - ++ local manifest 2024-04-04 20:21:30,240: DEBUG - ++ local manifest_key 2024-04-04 20:21:30,241: DEBUG - ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost 2024-04-04 20:21:30,242: DEBUG - ++ set +o xtrace 2024-04-04 20:21:30,324: DEBUG - ++ '[' '!' -e '' ']' 2024-04-04 20:21:30,325: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.json ']' 2024-04-04 20:21:30,326: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml ']' 2024-04-04 20:21:30,328: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:30,329: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:30,330: DEBUG - ++ grep -q '\.json$' 2024-04-04 20:21:30,339: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:30,342: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:21:30,344: DEBUG - ++ jq .requirements.yunohost --raw-output 2024-04-04 20:21:30,752: DEBUG - + local ynh_requirement=null 2024-04-04 20:21:30,755: DEBUG - + dpkg --compare-versions 2.0 ge 2 2024-04-04 20:21:30,761: DEBUG - + chmod o-rwx /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,767: DEBUG - + chmod g-w /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,772: DEBUG - + chown -R root:root /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,779: DEBUG - + ynh_system_user_exists wallabag2 2024-04-04 20:21:30,780: DEBUG - + local legacy_args=u 2024-04-04 20:21:30,781: DEBUG - + args_array=(['u']='username=') 2024-04-04 20:21:30,782: DEBUG - + local -A args_array 2024-04-04 20:21:30,784: DEBUG - + local username 2024-04-04 20:21:30,785: DEBUG - + ynh_handle_getopts_args wallabag2 2024-04-04 20:21:30,786: DEBUG - + set +o xtrace 2024-04-04 20:21:30,821: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:21:30,822: DEBUG - + set +x 2024-04-04 20:21:30,830: DEBUG - + getent passwd wallabag2 2024-04-04 20:21:30,839: DEBUG - + chown wallabag2:wallabag2 /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,847: DEBUG - + echo /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,850: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2024-04-04 20:21:30,859: DEBUG - + chmod 400 /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,865: DEBUG - + chown root:root /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,871: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,873: DEBUG - + local legacy_args=f 2024-04-04 20:21:30,874: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:30,875: DEBUG - + local -A args_array 2024-04-04 20:21:30,876: DEBUG - + local file 2024-04-04 20:21:30,877: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,878: DEBUG - + set +o xtrace 2024-04-04 20:21:30,921: DEBUG - + test -n /wallabag 2024-04-04 20:21:30,922: DEBUG - + local path_url_slash_less=/wallabag 2024-04-04 20:21:30,923: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,925: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:30,926: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:30,927: DEBUG - + local -A args_array 2024-04-04 20:21:30,927: DEBUG - + local match_string 2024-04-04 20:21:30,928: DEBUG - + local replace_string 2024-04-04 20:21:30,929: DEBUG - + local target_file 2024-04-04 20:21:30,930: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:30,931: DEBUG - + set +o xtrace 2024-04-04 20:21:31,247: DEBUG - + set +o xtrace 2024-04-04 20:21:31,248: DEBUG - + sed --in-place $'s\001__PATH__/\001/wallabag/\001g' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,258: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,260: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:31,261: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:31,262: DEBUG - + local -A args_array 2024-04-04 20:21:31,263: DEBUG - + local match_string 2024-04-04 20:21:31,264: DEBUG - + local replace_string 2024-04-04 20:21:31,265: DEBUG - + local target_file 2024-04-04 20:21:31,266: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,267: DEBUG - + set +o xtrace 2024-04-04 20:21:31,601: DEBUG - + set +o xtrace 2024-04-04 20:21:31,602: DEBUG - + sed --in-place $'s\001__PATH__\001/wallabag\001g' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,612: DEBUG - + test -n wallabag2 2024-04-04 20:21:31,614: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,616: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:31,617: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:31,618: DEBUG - + local -A args_array 2024-04-04 20:21:31,619: DEBUG - + local match_string 2024-04-04 20:21:31,620: DEBUG - + local replace_string 2024-04-04 20:21:31,621: DEBUG - + local target_file 2024-04-04 20:21:31,622: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,623: DEBUG - + set +o xtrace 2024-04-04 20:21:31,944: DEBUG - + set +o xtrace 2024-04-04 20:21:31,946: DEBUG - + sed --in-place $'s\001__NAME__\001wallabag2\001g' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,955: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,957: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:31,958: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:31,959: DEBUG - + local -A args_array 2024-04-04 20:21:31,961: DEBUG - + local match_string 2024-04-04 20:21:31,961: DEBUG - + local replace_string 2024-04-04 20:21:31,962: DEBUG - + local target_file 2024-04-04 20:21:31,963: DEBUG - + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:31,964: DEBUG - + set +o xtrace 2024-04-04 20:21:32,290: DEBUG - + set +o xtrace 2024-04-04 20:21:32,291: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001wallabag2\001g' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,300: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,302: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:32,303: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:32,304: DEBUG - + local -A args_array 2024-04-04 20:21:32,305: DEBUG - + local match_string 2024-04-04 20:21:32,306: DEBUG - + local replace_string 2024-04-04 20:21:32,307: DEBUG - + local target_file 2024-04-04 20:21:32,309: DEBUG - + ynh_handle_getopts_args --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,310: DEBUG - + set +o xtrace 2024-04-04 20:21:32,629: DEBUG - + set +o xtrace 2024-04-04 20:21:32,630: DEBUG - + sed --in-place $'s\001__USER__\001wallabag2\001g' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,639: DEBUG - + test -n '' 2024-04-04 20:21:32,641: DEBUG - + dpkg --compare-versions 2.0 lt 2 2024-04-04 20:21:32,648: DEBUG - + test -n '' 2024-04-04 20:21:32,653: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,655: DEBUG - ++ sort --unique 2024-04-04 20:21:32,658: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2024-04-04 20:21:32,675: DEBUG - + uniques_vars=('install_dir' 'phpversion') 2024-04-04 20:21:32,676: DEBUG - + local uniques_vars 2024-04-04 20:21:32,677: DEBUG - + set +o xtrace 2024-04-04 20:21:32,694: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,695: DEBUG - + local legacy_args=f 2024-04-04 20:21:32,697: DEBUG - + args_array=(['f']='file=' ['u']='update_only') 2024-04-04 20:21:32,698: DEBUG - + local -A args_array 2024-04-04 20:21:32,699: DEBUG - + local file 2024-04-04 20:21:32,700: DEBUG - + local update_only 2024-04-04 20:21:32,701: DEBUG - + update_only=0 2024-04-04 20:21:32,702: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,703: DEBUG - + set +o xtrace 2024-04-04 20:21:32,787: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 2024-04-04 20:21:32,788: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:32,792: DEBUG - ++ md5sum /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:32,793: DEBUG - ++ cut '--delimiter= ' --fields=1 2024-04-04 20:21:32,804: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf --value=4bce5820d1bd0a739aecda46c2a75c15 2024-04-04 20:21:32,806: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:32,807: DEBUG - + local legacy_args=akv 2024-04-04 20:21:32,809: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:32,810: DEBUG - + local -A args_array 2024-04-04 20:21:32,811: DEBUG - + local app 2024-04-04 20:21:32,812: DEBUG - + local key 2024-04-04 20:21:32,813: DEBUG - + local value 2024-04-04 20:21:32,814: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf --value=4bce5820d1bd0a739aecda46c2a75c15 2024-04-04 20:21:32,815: DEBUG - + set +o xtrace 2024-04-04 20:21:33,137: DEBUG - + app=wallabag2 2024-04-04 20:21:33,138: DEBUG - + [[ checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:33,139: DEBUG - + ynh_app_setting set wallabag2 checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 4bce5820d1bd0a739aecda46c2a75c15 2024-04-04 20:21:33,141: DEBUG - + set +o xtrace 2024-04-04 20:21:33,536: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:33,537: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:33,539: DEBUG - + unset backup_file_checksum 2024-04-04 20:21:33,540: DEBUG - + '[' /wallabag '!=' / ']' 2024-04-04 20:21:33,541: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:33,542: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:33,543: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:33,544: DEBUG - + local -A args_array 2024-04-04 20:21:33,545: DEBUG - + local match_string 2024-04-04 20:21:33,546: DEBUG - + local replace_string 2024-04-04 20:21:33,547: DEBUG - + local target_file 2024-04-04 20:21:33,548: DEBUG - + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:33,549: DEBUG - + set +o xtrace 2024-04-04 20:21:33,880: DEBUG - + set +o xtrace 2024-04-04 20:21:33,881: DEBUG - + sed --in-place 's^#sub_path_onlyg' /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:33,891: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:33,892: DEBUG - + local legacy_args=f 2024-04-04 20:21:33,894: DEBUG - + args_array=(['f']='file=' ['u']='update_only') 2024-04-04 20:21:33,895: DEBUG - + local -A args_array 2024-04-04 20:21:33,896: DEBUG - + local file 2024-04-04 20:21:33,897: DEBUG - + local update_only 2024-04-04 20:21:33,898: DEBUG - + update_only=0 2024-04-04 20:21:33,899: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:33,900: DEBUG - + set +o xtrace 2024-04-04 20:21:33,985: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 2024-04-04 20:21:33,986: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:33,990: DEBUG - ++ md5sum /etc/nginx/conf.d/cloud.mydomain.com.d/wallabag2.conf 2024-04-04 20:21:33,992: DEBUG - ++ cut '--delimiter= ' --fields=1 2024-04-04 20:21:34,003: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf --value=90e15c5ba204ebb9766addcf0db45508 2024-04-04 20:21:34,005: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:34,006: DEBUG - + local legacy_args=akv 2024-04-04 20:21:34,008: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:34,009: DEBUG - + local -A args_array 2024-04-04 20:21:34,010: DEBUG - + local app 2024-04-04 20:21:34,011: DEBUG - + local key 2024-04-04 20:21:34,012: DEBUG - + local value 2024-04-04 20:21:34,013: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf --value=90e15c5ba204ebb9766addcf0db45508 2024-04-04 20:21:34,014: DEBUG - + set +o xtrace 2024-04-04 20:21:34,343: DEBUG - + app=wallabag2 2024-04-04 20:21:34,345: DEBUG - + [[ checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:34,346: DEBUG - + ynh_app_setting set wallabag2 checksum__etc_nginx_conf.d_cloud.mydomain.com.d_wallabag2.conf 90e15c5ba204ebb9766addcf0db45508 2024-04-04 20:21:34,347: DEBUG - + set +o xtrace 2024-04-04 20:21:34,705: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:34,707: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:34,708: DEBUG - + unset backup_file_checksum 2024-04-04 20:21:34,710: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2024-04-04 20:21:34,711: DEBUG - + local legacy_args=nalpte 2024-04-04 20:21:34,712: DEBUG - + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=') 2024-04-04 20:21:34,713: DEBUG - + local -A args_array 2024-04-04 20:21:34,714: DEBUG - + local service_name 2024-04-04 20:21:34,715: DEBUG - + local action 2024-04-04 20:21:34,716: DEBUG - + local line_match 2024-04-04 20:21:34,717: DEBUG - + local length 2024-04-04 20:21:34,718: DEBUG - + local log_path 2024-04-04 20:21:34,719: DEBUG - + local timeout 2024-04-04 20:21:34,720: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload 2024-04-04 20:21:34,721: DEBUG - + set +o xtrace 2024-04-04 20:21:35,149: DEBUG - + service_name=nginx 2024-04-04 20:21:35,151: DEBUG - + action=reload 2024-04-04 20:21:35,152: DEBUG - + line_match= 2024-04-04 20:21:35,153: DEBUG - + length=20 2024-04-04 20:21:35,155: DEBUG - + log_path=/var/log/nginx/nginx.log 2024-04-04 20:21:35,157: DEBUG - + timeout=300 2024-04-04 20:21:35,158: DEBUG - + '[' reload == stop ']' 2024-04-04 20:21:35,159: DEBUG - + [[ -n '' ]] 2024-04-04 20:21:35,160: DEBUG - + '[' reload == reload ']' 2024-04-04 20:21:35,162: DEBUG - + action=reload-or-restart 2024-04-04 20:21:35,163: DEBUG - ++ date --utc --rfc-3339=seconds 2024-04-04 20:21:35,164: DEBUG - ++ cut -d+ -f1 2024-04-04 20:21:35,168: DEBUG - + local 'time_start=2024-04-04 19:21:35 UTC' 2024-04-04 20:21:35,169: DEBUG - + systemctl reload-or-restart nginx 2024-04-04 20:21:36,121: DEBUG - + [[ -n '' ]] 2024-04-04 20:21:36,122: DEBUG - + ynh_add_fpm_config 2024-04-04 20:21:36,124: DEBUG - + local _globalphpversion=7.4 2024-04-04 20:21:36,125: DEBUG - + local legacy_args=vufpdg 2024-04-04 20:21:36,126: DEBUG - + args_array=(['v']='phpversion=' ['u']='usage=' ['f']='footprint=' ['p']='package=' ['d']='dedicated_service' ['g']='group=') 2024-04-04 20:21:36,129: DEBUG - + local -A args_array 2024-04-04 20:21:36,130: DEBUG - + local group 2024-04-04 20:21:36,131: DEBUG - + local phpversion 2024-04-04 20:21:36,133: DEBUG - + local usage 2024-04-04 20:21:36,134: DEBUG - + local footprint 2024-04-04 20:21:36,134: DEBUG - + local package 2024-04-04 20:21:36,135: DEBUG - + local dedicated_service 2024-04-04 20:21:36,137: DEBUG - + ynh_handle_getopts_args 2024-04-04 20:21:36,138: DEBUG - + set +o xtrace 2024-04-04 20:21:36,139: DEBUG - + package= 2024-04-04 20:21:36,140: DEBUG - + group= 2024-04-04 20:21:36,141: DEBUG - + local autogenconf=false 2024-04-04 20:21:36,142: DEBUG - + usage= 2024-04-04 20:21:36,144: DEBUG - + footprint= 2024-04-04 20:21:36,145: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:36,146: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:36,147: DEBUG - + [[ -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/extra_php-fpm.conf ]] 2024-04-04 20:21:36,148: DEBUG - + autogenconf=true 2024-04-04 20:21:36,149: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=fpm_usage 2024-04-04 20:21:36,150: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:36,151: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:36,152: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:36,153: DEBUG - ++ local -A args_array 2024-04-04 20:21:36,154: DEBUG - ++ local app 2024-04-04 20:21:36,154: DEBUG - ++ local key 2024-04-04 20:21:36,155: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=fpm_usage 2024-04-04 20:21:36,156: DEBUG - ++ set +o xtrace 2024-04-04 20:21:36,294: DEBUG - ++ app=wallabag2 2024-04-04 20:21:36,296: DEBUG - ++ [[ fpm_usage =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:36,297: DEBUG - ++ ynh_app_setting get wallabag2 fpm_usage 2024-04-04 20:21:36,298: DEBUG - ++ set +o xtrace 2024-04-04 20:21:36,644: DEBUG - + local fpm_usage_in_setting= 2024-04-04 20:21:36,646: DEBUG - + '[' -z '' ']' 2024-04-04 20:21:36,647: DEBUG - + usage=low 2024-04-04 20:21:36,648: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=fpm_usage --value=low 2024-04-04 20:21:36,649: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:36,650: DEBUG - + local legacy_args=akv 2024-04-04 20:21:36,651: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:36,652: DEBUG - + local -A args_array 2024-04-04 20:21:36,653: DEBUG - + local app 2024-04-04 20:21:36,654: DEBUG - + local key 2024-04-04 20:21:36,655: DEBUG - + local value 2024-04-04 20:21:36,656: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=fpm_usage --value=low 2024-04-04 20:21:36,657: DEBUG - + set +o xtrace 2024-04-04 20:21:36,980: DEBUG - + app=wallabag2 2024-04-04 20:21:36,981: DEBUG - + [[ fpm_usage =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:36,983: DEBUG - + ynh_app_setting set wallabag2 fpm_usage low 2024-04-04 20:21:36,984: DEBUG - + set +o xtrace 2024-04-04 20:21:37,356: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=fpm_footprint 2024-04-04 20:21:37,358: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:37,359: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:37,361: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:37,362: DEBUG - ++ local -A args_array 2024-04-04 20:21:37,363: DEBUG - ++ local app 2024-04-04 20:21:37,363: DEBUG - ++ local key 2024-04-04 20:21:37,364: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=fpm_footprint 2024-04-04 20:21:37,365: DEBUG - ++ set +o xtrace 2024-04-04 20:21:37,533: DEBUG - ++ app=wallabag2 2024-04-04 20:21:37,536: DEBUG - ++ [[ fpm_footprint =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:37,538: DEBUG - ++ ynh_app_setting get wallabag2 fpm_footprint 2024-04-04 20:21:37,539: DEBUG - ++ set +o xtrace 2024-04-04 20:21:37,894: DEBUG - + local fpm_footprint_in_setting= 2024-04-04 20:21:37,896: DEBUG - + '[' -z '' ']' 2024-04-04 20:21:37,897: DEBUG - + footprint=low 2024-04-04 20:21:37,899: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=fpm_footprint --value=low 2024-04-04 20:21:37,900: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:37,901: DEBUG - + local legacy_args=akv 2024-04-04 20:21:37,902: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:37,903: DEBUG - + local -A args_array 2024-04-04 20:21:37,904: DEBUG - + local app 2024-04-04 20:21:37,905: DEBUG - + local key 2024-04-04 20:21:37,906: DEBUG - + local value 2024-04-04 20:21:37,908: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=fpm_footprint --value=low 2024-04-04 20:21:37,909: DEBUG - + set +o xtrace 2024-04-04 20:21:38,250: DEBUG - + app=wallabag2 2024-04-04 20:21:38,252: DEBUG - + [[ fpm_footprint =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:38,254: DEBUG - + ynh_app_setting set wallabag2 fpm_footprint low 2024-04-04 20:21:38,255: DEBUG - + set +o xtrace 2024-04-04 20:21:38,635: DEBUG - + dedicated_service=0 2024-04-04 20:21:38,636: DEBUG - + dpkg --compare-versions 2.0 lt 2 2024-04-04 20:21:38,643: DEBUG - + phpversion=7.4 2024-04-04 20:21:38,646: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=phpversion 2024-04-04 20:21:38,648: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:38,649: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:38,651: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:38,652: DEBUG - ++ local -A args_array 2024-04-04 20:21:38,653: DEBUG - ++ local app 2024-04-04 20:21:38,655: DEBUG - ++ local key 2024-04-04 20:21:38,656: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=phpversion 2024-04-04 20:21:38,657: DEBUG - ++ set +o xtrace 2024-04-04 20:21:38,833: DEBUG - ++ app=wallabag2 2024-04-04 20:21:38,835: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:38,837: DEBUG - ++ ynh_app_setting get wallabag2 phpversion 2024-04-04 20:21:38,838: DEBUG - ++ set +o xtrace 2024-04-04 20:21:39,209: DEBUG - + local old_phpversion=7.4 2024-04-04 20:21:39,210: DEBUG - + '[' -n 7.4 ']' 2024-04-04 20:21:39,211: DEBUG - + '[' 7.4 '!=' 7.4 ']' 2024-04-04 20:21:39,212: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:39,214: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:39,215: DEBUG - + local fpm_service=php7.4-fpm 2024-04-04 20:21:39,215: DEBUG - + local fpm_config_dir=/etc/php/7.4/fpm 2024-04-04 20:21:39,216: DEBUG - + mkdir --parents /etc/php/7.4/fpm/pool.d 2024-04-04 20:21:39,218: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=fpm_config_dir --value=/etc/php/7.4/fpm 2024-04-04 20:21:39,219: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:39,221: DEBUG - + local legacy_args=akv 2024-04-04 20:21:39,222: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:39,223: DEBUG - + local -A args_array 2024-04-04 20:21:39,223: DEBUG - + local app 2024-04-04 20:21:39,224: DEBUG - + local key 2024-04-04 20:21:39,225: DEBUG - + local value 2024-04-04 20:21:39,226: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=fpm_config_dir --value=/etc/php/7.4/fpm 2024-04-04 20:21:39,227: DEBUG - + set +o xtrace 2024-04-04 20:21:39,563: DEBUG - + app=wallabag2 2024-04-04 20:21:39,564: DEBUG - + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:39,566: DEBUG - + ynh_app_setting set wallabag2 fpm_config_dir /etc/php/7.4/fpm 2024-04-04 20:21:39,567: DEBUG - + set +o xtrace 2024-04-04 20:21:39,929: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=fpm_service --value=php7.4-fpm 2024-04-04 20:21:39,931: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:39,932: DEBUG - + local legacy_args=akv 2024-04-04 20:21:39,933: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:39,935: DEBUG - + local -A args_array 2024-04-04 20:21:39,936: DEBUG - + local app 2024-04-04 20:21:39,937: DEBUG - + local key 2024-04-04 20:21:39,938: DEBUG - + local value 2024-04-04 20:21:39,939: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=fpm_service --value=php7.4-fpm 2024-04-04 20:21:39,940: DEBUG - + set +o xtrace 2024-04-04 20:21:40,280: DEBUG - + app=wallabag2 2024-04-04 20:21:40,282: DEBUG - + [[ fpm_service =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:40,283: DEBUG - + ynh_app_setting set wallabag2 fpm_service php7.4-fpm 2024-04-04 20:21:40,284: DEBUG - + set +o xtrace 2024-04-04 20:21:40,650: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=fpm_dedicated_service --value=0 2024-04-04 20:21:40,651: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:40,652: DEBUG - + local legacy_args=akv 2024-04-04 20:21:40,653: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:40,654: DEBUG - + local -A args_array 2024-04-04 20:21:40,655: DEBUG - + local app 2024-04-04 20:21:40,656: DEBUG - + local key 2024-04-04 20:21:40,657: DEBUG - + local value 2024-04-04 20:21:40,658: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=fpm_dedicated_service --value=0 2024-04-04 20:21:40,659: DEBUG - + set +o xtrace 2024-04-04 20:21:40,999: DEBUG - + app=wallabag2 2024-04-04 20:21:41,016: DEBUG - + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:41,017: DEBUG - + ynh_app_setting set wallabag2 fpm_dedicated_service 0 2024-04-04 20:21:41,018: DEBUG - + set +o xtrace 2024-04-04 20:21:41,386: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=phpversion --value=7.4 2024-04-04 20:21:41,387: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:41,389: DEBUG - + local legacy_args=akv 2024-04-04 20:21:41,390: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:41,391: DEBUG - + local -A args_array 2024-04-04 20:21:41,392: DEBUG - + local app 2024-04-04 20:21:41,393: DEBUG - + local key 2024-04-04 20:21:41,394: DEBUG - + local value 2024-04-04 20:21:41,395: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=phpversion --value=7.4 2024-04-04 20:21:41,396: DEBUG - + set +o xtrace 2024-04-04 20:21:41,746: DEBUG - + app=wallabag2 2024-04-04 20:21:41,747: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:41,749: DEBUG - + ynh_app_setting set wallabag2 phpversion 7.4 2024-04-04 20:21:41,750: DEBUG - + set +o xtrace 2024-04-04 20:21:42,121: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:42,123: DEBUG - + '[' true == false ']' 2024-04-04 20:21:42,124: DEBUG - + ynh_get_scalable_phpfpm --usage=low --footprint=low 2024-04-04 20:21:42,125: DEBUG - + local legacy_args=ufp 2024-04-04 20:21:42,127: DEBUG - + args_array=(['u']='usage=' ['f']='footprint=' ['p']='print') 2024-04-04 20:21:42,128: DEBUG - + local -A args_array 2024-04-04 20:21:42,128: DEBUG - + local usage 2024-04-04 20:21:42,130: DEBUG - + local footprint 2024-04-04 20:21:42,131: DEBUG - + local print 2024-04-04 20:21:42,132: DEBUG - + ynh_handle_getopts_args --usage=low --footprint=low 2024-04-04 20:21:42,133: DEBUG - + set +o xtrace 2024-04-04 20:21:42,356: DEBUG - + footprint=low 2024-04-04 20:21:42,358: DEBUG - + usage=low 2024-04-04 20:21:42,363: DEBUG - + print=0 2024-04-04 20:21:42,364: DEBUG - + '[' low = low ']' 2024-04-04 20:21:42,366: DEBUG - + footprint=20 2024-04-04 20:21:42,367: DEBUG - + '[' 20 -le 20 ']' 2024-04-04 20:21:42,368: DEBUG - + min_spare_servers_factor=8 2024-04-04 20:21:42,369: DEBUG - + '[' low = low ']' 2024-04-04 20:21:42,369: DEBUG - + php_pm=ondemand 2024-04-04 20:21:42,370: DEBUG - ++ ynh_get_ram --total --ignore_swap 2024-04-04 20:21:42,371: DEBUG - ++ local legacy_args=ftso 2024-04-04 20:21:42,372: DEBUG - ++ args_array=(['f']='free' ['t']='total' ['s']='ignore_swap' ['o']='only_swap') 2024-04-04 20:21:42,374: DEBUG - ++ local -A args_array 2024-04-04 20:21:42,374: DEBUG - ++ local free 2024-04-04 20:21:42,377: DEBUG - ++ local total 2024-04-04 20:21:42,379: DEBUG - ++ local ignore_swap 2024-04-04 20:21:42,380: DEBUG - ++ local only_swap 2024-04-04 20:21:42,381: DEBUG - ++ ynh_handle_getopts_args --total --ignore_swap 2024-04-04 20:21:42,382: DEBUG - ++ set +o xtrace 2024-04-04 20:21:42,648: DEBUG - ++ ignore_swap=1 2024-04-04 20:21:42,650: DEBUG - ++ only_swap=0 2024-04-04 20:21:42,651: DEBUG - ++ free=0 2024-04-04 20:21:42,653: DEBUG - ++ total=1 2024-04-04 20:21:42,656: DEBUG - ++ '[' 0 -eq 1 ']' 2024-04-04 20:21:42,658: DEBUG - ++ '[' 0 -eq 1 ']' 2024-04-04 20:21:42,661: DEBUG - ++ '[' 1 -eq 1 ']' 2024-04-04 20:21:42,662: DEBUG - +++ LC_ALL=C 2024-04-04 20:21:42,663: DEBUG - +++ vmstat --stats --unit M 2024-04-04 20:21:42,665: DEBUG - +++ awk '{print $1}' 2024-04-04 20:21:42,666: DEBUG - +++ grep 'total memory' 2024-04-04 20:21:42,758: DEBUG - ++ local total_ram=909 2024-04-04 20:21:42,761: DEBUG - +++ LC_ALL=C 2024-04-04 20:21:42,764: DEBUG - +++ grep 'total swap' 2024-04-04 20:21:42,766: DEBUG - +++ vmstat --stats --unit M 2024-04-04 20:21:42,770: DEBUG - +++ awk '{print $1}' 2024-04-04 20:21:42,782: DEBUG - ++ local total_swap=999 2024-04-04 20:21:42,783: DEBUG - ++ local total_ram_swap=1908 2024-04-04 20:21:42,785: DEBUG - ++ local ram=1908 2024-04-04 20:21:42,787: DEBUG - ++ '[' 1 -eq 1 ']' 2024-04-04 20:21:42,788: DEBUG - ++ ram=909 2024-04-04 20:21:42,789: DEBUG - ++ echo 909 2024-04-04 20:21:42,790: DEBUG - + local max_ram=909 2024-04-04 20:21:42,795: DEBUG - + php_max_children=22 2024-04-04 20:21:42,797: DEBUG - + '[' ondemand = static ']' 2024-04-04 20:21:42,798: DEBUG - ++ at_least_one 22 2024-04-04 20:21:42,799: DEBUG - ++ '[' 22 -le 0 ']' 2024-04-04 20:21:42,800: DEBUG - ++ echo 22 2024-04-04 20:21:42,801: DEBUG - + php_max_children=22 2024-04-04 20:21:42,802: DEBUG - ++ nproc 2024-04-04 20:21:42,812: DEBUG - + local core_number=4 2024-04-04 20:21:42,813: DEBUG - + local max_proc=16 2024-04-04 20:21:42,814: DEBUG - + '[' 22 -gt 16 ']' 2024-04-04 20:21:42,815: DEBUG - + php_max_children=16 2024-04-04 20:21:42,817: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=php_forced_max_children 2024-04-04 20:21:42,818: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:42,820: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:42,821: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:42,822: DEBUG - ++ local -A args_array 2024-04-04 20:21:42,823: DEBUG - ++ local app 2024-04-04 20:21:42,824: DEBUG - ++ local key 2024-04-04 20:21:42,824: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=php_forced_max_children 2024-04-04 20:21:42,825: DEBUG - ++ set +o xtrace 2024-04-04 20:21:42,985: DEBUG - ++ app=wallabag2 2024-04-04 20:21:42,987: DEBUG - ++ [[ php_forced_max_children =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:42,988: DEBUG - ++ ynh_app_setting get wallabag2 php_forced_max_children 2024-04-04 20:21:42,989: DEBUG - ++ set +o xtrace 2024-04-04 20:21:43,344: DEBUG - + local php_forced_max_children= 2024-04-04 20:21:43,346: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:43,348: DEBUG - + '[' ondemand = dynamic ']' 2024-04-04 20:21:43,351: DEBUG - + php_min_spare_servers=0 2024-04-04 20:21:43,353: DEBUG - + php_max_spare_servers=0 2024-04-04 20:21:43,355: DEBUG - + php_start_servers=0 2024-04-04 20:21:43,357: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:43,360: DEBUG - ++ [[ -n '' ]] 2024-04-04 20:21:43,361: DEBUG - ++ echo wallabag2 2024-04-04 20:21:43,362: DEBUG - + local phpfpm_group=wallabag2 2024-04-04 20:21:43,363: DEBUG - + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf 2024-04-04 20:21:43,365: DEBUG - + echo ' 2024-04-04 20:21:43,366: DEBUG - [__APP__] 2024-04-04 20:21:43,367: DEBUG - 2024-04-04 20:21:43,370: DEBUG - user = __APP__ 2024-04-04 20:21:43,373: DEBUG - group = __PHPFPM_GROUP__ 2024-04-04 20:21:43,374: DEBUG - 2024-04-04 20:21:43,375: DEBUG - chdir = __INSTALL_DIR__ 2024-04-04 20:21:43,377: DEBUG - 2024-04-04 20:21:43,378: DEBUG - listen = /var/run/php/php__PHPVERSION__-fpm-__APP__.sock 2024-04-04 20:21:43,379: DEBUG - listen.owner = www-data 2024-04-04 20:21:43,380: DEBUG - listen.group = www-data 2024-04-04 20:21:43,381: DEBUG - 2024-04-04 20:21:43,382: DEBUG - pm = __PHP_PM__ 2024-04-04 20:21:43,383: DEBUG - pm.max_children = __PHP_MAX_CHILDREN__ 2024-04-04 20:21:43,386: DEBUG - pm.max_requests = 500 2024-04-04 20:21:43,387: DEBUG - request_terminate_timeout = 1d 2024-04-04 20:21:43,389: DEBUG - ' 2024-04-04 20:21:43,391: DEBUG - + '[' ondemand = dynamic ']' 2024-04-04 20:21:43,392: DEBUG - + '[' ondemand = ondemand ']' 2024-04-04 20:21:43,394: DEBUG - + echo ' 2024-04-04 20:21:43,395: DEBUG - pm.process_idle_timeout = 10s 2024-04-04 20:21:43,396: DEBUG - ' 2024-04-04 20:21:43,397: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/extra_php-fpm.conf ']' 2024-04-04 20:21:43,399: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/extra_php-fpm.conf 2024-04-04 20:21:43,400: DEBUG - + local finalphpconf=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:43,401: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf --destination=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:43,402: DEBUG - + local legacy_args=tdv 2024-04-04 20:21:43,403: DEBUG - + args_array=(['t']='template=' ['d']='destination=') 2024-04-04 20:21:43,405: DEBUG - + local -A args_array 2024-04-04 20:21:43,406: DEBUG - + local template 2024-04-04 20:21:43,407: DEBUG - + local destination 2024-04-04 20:21:43,408: DEBUG - + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf --destination=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:43,410: DEBUG - + set +o xtrace 2024-04-04 20:21:43,558: DEBUG - + local template_path 2024-04-04 20:21:43,560: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf//var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf ']' 2024-04-04 20:21:43,561: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf ']' 2024-04-04 20:21:43,562: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf 2024-04-04 20:21:43,563: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:43,564: DEBUG - + local legacy_args=f 2024-04-04 20:21:43,565: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:43,566: DEBUG - + local -A args_array 2024-04-04 20:21:43,567: DEBUG - + local file 2024-04-04 20:21:43,568: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:43,569: DEBUG - + set +o xtrace 2024-04-04 20:21:43,614: DEBUG - + local checksum_setting_name=checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf 2024-04-04 20:21:43,618: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf 2024-04-04 20:21:43,620: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:43,621: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:43,622: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:43,623: DEBUG - ++ local -A args_array 2024-04-04 20:21:43,625: DEBUG - ++ local app 2024-04-04 20:21:43,626: DEBUG - ++ local key 2024-04-04 20:21:43,626: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf 2024-04-04 20:21:43,627: DEBUG - ++ set +o xtrace 2024-04-04 20:21:43,792: DEBUG - ++ app=wallabag2 2024-04-04 20:21:43,794: DEBUG - ++ [[ checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:43,795: DEBUG - ++ ynh_app_setting get wallabag2 checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf 2024-04-04 20:21:43,797: DEBUG - ++ set +o xtrace 2024-04-04 20:21:44,156: DEBUG - + local checksum_value=c98e8c449c321218cb6bd7f5611ef8df 2024-04-04 20:21:44,158: DEBUG - + backup_file_checksum= 2024-04-04 20:21:44,159: DEBUG - + '[' -n c98e8c449c321218cb6bd7f5611ef8df ']' 2024-04-04 20:21:44,161: DEBUG - + '[' -e /etc/php/7.4/fpm/pool.d/wallabag2.conf ']' 2024-04-04 20:21:44,161: DEBUG - + echo 'c98e8c449c321218cb6bd7f5611ef8df /etc/php/7.4/fpm/pool.d/wallabag2.conf' 2024-04-04 20:21:44,162: DEBUG - + md5sum --check --status 2024-04-04 20:21:44,170: DEBUG - + touch /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,179: DEBUG - + chown root:root /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,186: DEBUG - + chmod 640 /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,193: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.conf /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,203: DEBUG - + _ynh_apply_default_permissions /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,204: DEBUG - + local target=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,210: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2024-04-04 20:21:44,211: DEBUG - ++ tr -d '<>= ' 2024-04-04 20:21:44,213: DEBUG - ++ local legacy_args=mk 2024-04-04 20:21:44,215: DEBUG - ++ args_array=(['m']='manifest=' ['k']='manifest_key=') 2024-04-04 20:21:44,216: DEBUG - ++ local -A args_array 2024-04-04 20:21:44,218: DEBUG - ++ local manifest 2024-04-04 20:21:44,219: DEBUG - ++ local manifest_key 2024-04-04 20:21:44,220: DEBUG - ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost 2024-04-04 20:21:44,221: DEBUG - ++ set +o xtrace 2024-04-04 20:21:44,314: DEBUG - ++ '[' '!' -e '' ']' 2024-04-04 20:21:44,315: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.json ']' 2024-04-04 20:21:44,317: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml ']' 2024-04-04 20:21:44,319: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:44,321: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:44,322: DEBUG - ++ grep -q '\.json$' 2024-04-04 20:21:44,331: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:44,333: DEBUG - ++ jq .requirements.yunohost --raw-output 2024-04-04 20:21:44,336: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:21:44,769: DEBUG - + local ynh_requirement=null 2024-04-04 20:21:44,770: DEBUG - + dpkg --compare-versions 2.0 ge 2 2024-04-04 20:21:44,778: DEBUG - + chmod o-rwx /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,784: DEBUG - + chmod g-w /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,790: DEBUG - + chown -R root:root /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,797: DEBUG - + ynh_system_user_exists wallabag2 2024-04-04 20:21:44,799: DEBUG - + local legacy_args=u 2024-04-04 20:21:44,800: DEBUG - + args_array=(['u']='username=') 2024-04-04 20:21:44,801: DEBUG - + local -A args_array 2024-04-04 20:21:44,802: DEBUG - + local username 2024-04-04 20:21:44,803: DEBUG - + ynh_handle_getopts_args wallabag2 2024-04-04 20:21:44,804: DEBUG - + set +o xtrace 2024-04-04 20:21:44,840: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:21:44,842: DEBUG - + set +x 2024-04-04 20:21:44,851: DEBUG - + getent passwd wallabag2 2024-04-04 20:21:44,859: DEBUG - + chown wallabag2:wallabag2 /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,868: DEBUG - + echo /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,871: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2024-04-04 20:21:44,880: DEBUG - + chmod 400 /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,885: DEBUG - + chown root:root /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,892: DEBUG - + ynh_replace_vars --file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,895: DEBUG - + local legacy_args=f 2024-04-04 20:21:44,896: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:44,897: DEBUG - + local -A args_array 2024-04-04 20:21:44,898: DEBUG - + local file 2024-04-04 20:21:44,899: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,900: DEBUG - + set +o xtrace 2024-04-04 20:21:44,946: DEBUG - + test -n /wallabag 2024-04-04 20:21:44,948: DEBUG - + local path_url_slash_less=/wallabag 2024-04-04 20:21:44,949: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,950: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:44,951: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:44,952: DEBUG - + local -A args_array 2024-04-04 20:21:44,953: DEBUG - + local match_string 2024-04-04 20:21:44,954: DEBUG - + local replace_string 2024-04-04 20:21:44,955: DEBUG - + local target_file 2024-04-04 20:21:44,956: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:44,957: DEBUG - + set +o xtrace 2024-04-04 20:21:45,290: DEBUG - + set +o xtrace 2024-04-04 20:21:45,292: DEBUG - + sed --in-place $'s\001__PATH__/\001/wallabag/\001g' /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:45,302: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:45,304: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:45,305: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:45,307: DEBUG - + local -A args_array 2024-04-04 20:21:45,308: DEBUG - + local match_string 2024-04-04 20:21:45,310: DEBUG - + local replace_string 2024-04-04 20:21:45,311: DEBUG - + local target_file 2024-04-04 20:21:45,312: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:45,313: DEBUG - + set +o xtrace 2024-04-04 20:21:45,654: DEBUG - + set +o xtrace 2024-04-04 20:21:45,655: DEBUG - + sed --in-place $'s\001__PATH__\001/wallabag\001g' /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:45,664: DEBUG - + test -n wallabag2 2024-04-04 20:21:45,666: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:45,667: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:45,668: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:45,670: DEBUG - + local -A args_array 2024-04-04 20:21:45,671: DEBUG - + local match_string 2024-04-04 20:21:45,672: DEBUG - + local replace_string 2024-04-04 20:21:45,673: DEBUG - + local target_file 2024-04-04 20:21:45,674: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:45,675: DEBUG - + set +o xtrace 2024-04-04 20:21:46,019: DEBUG - + set +o xtrace 2024-04-04 20:21:46,026: DEBUG - + sed --in-place $'s\001__NAME__\001wallabag2\001g' /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,031: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,032: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:46,034: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:46,035: DEBUG - + local -A args_array 2024-04-04 20:21:46,037: DEBUG - + local match_string 2024-04-04 20:21:46,037: DEBUG - + local replace_string 2024-04-04 20:21:46,038: DEBUG - + local target_file 2024-04-04 20:21:46,039: DEBUG - + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,040: DEBUG - + set +o xtrace 2024-04-04 20:21:46,388: DEBUG - + set +o xtrace 2024-04-04 20:21:46,389: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001wallabag2\001g' /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,399: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,401: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:46,403: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:46,405: DEBUG - + local -A args_array 2024-04-04 20:21:46,406: DEBUG - + local match_string 2024-04-04 20:21:46,407: DEBUG - + local replace_string 2024-04-04 20:21:46,409: DEBUG - + local target_file 2024-04-04 20:21:46,410: DEBUG - + ynh_handle_getopts_args --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,411: DEBUG - + set +o xtrace 2024-04-04 20:21:46,745: DEBUG - + set +o xtrace 2024-04-04 20:21:46,747: DEBUG - + sed --in-place $'s\001__USER__\001wallabag2\001g' /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,758: DEBUG - + test -n '' 2024-04-04 20:21:46,759: DEBUG - + dpkg --compare-versions 2.0 lt 2 2024-04-04 20:21:46,766: DEBUG - + test -n '' 2024-04-04 20:21:46,771: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,773: DEBUG - ++ sort --unique 2024-04-04 20:21:46,775: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2024-04-04 20:21:46,786: DEBUG - + uniques_vars=('app' 'install_dir' 'phpfpm_group' 'php_max_children' 'php_pm' 'phpversion') 2024-04-04 20:21:46,788: DEBUG - + local uniques_vars 2024-04-04 20:21:46,789: DEBUG - + set +o xtrace 2024-04-04 20:21:46,848: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,850: DEBUG - + local legacy_args=f 2024-04-04 20:21:46,852: DEBUG - + args_array=(['f']='file=' ['u']='update_only') 2024-04-04 20:21:46,853: DEBUG - + local -A args_array 2024-04-04 20:21:46,854: DEBUG - + local file 2024-04-04 20:21:46,855: DEBUG - + local update_only 2024-04-04 20:21:46,856: DEBUG - + update_only=0 2024-04-04 20:21:46,857: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,857: DEBUG - + set +o xtrace 2024-04-04 20:21:46,947: DEBUG - + local checksum_setting_name=checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf 2024-04-04 20:21:46,948: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:46,951: DEBUG - ++ md5sum /etc/php/7.4/fpm/pool.d/wallabag2.conf 2024-04-04 20:21:46,953: DEBUG - ++ cut '--delimiter= ' --fields=1 2024-04-04 20:21:46,963: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf --value=1648eeb4fedd215488a70c9d271478d6 2024-04-04 20:21:46,965: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:46,966: DEBUG - + local legacy_args=akv 2024-04-04 20:21:46,967: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:46,969: DEBUG - + local -A args_array 2024-04-04 20:21:46,970: DEBUG - + local app 2024-04-04 20:21:46,970: DEBUG - + local key 2024-04-04 20:21:46,971: DEBUG - + local value 2024-04-04 20:21:46,972: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf --value=1648eeb4fedd215488a70c9d271478d6 2024-04-04 20:21:46,973: DEBUG - + set +o xtrace 2024-04-04 20:21:47,324: DEBUG - + app=wallabag2 2024-04-04 20:21:47,325: DEBUG - + [[ checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:47,327: DEBUG - + ynh_app_setting set wallabag2 checksum__etc_php_7.4_fpm_pool.d_wallabag2.conf 1648eeb4fedd215488a70c9d271478d6 2024-04-04 20:21:47,329: DEBUG - + set +o xtrace 2024-04-04 20:21:47,692: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:47,694: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:47,695: DEBUG - + unset backup_file_checksum 2024-04-04 20:21:47,696: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/php-fpm.ini ']' 2024-04-04 20:21:47,697: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:47,698: DEBUG - + php-fpm7.4 --test 2024-04-04 20:21:48,260: DEBUG - + ynh_systemd_action --service_name=php7.4-fpm --action=reload 2024-04-04 20:21:48,261: DEBUG - + local legacy_args=nalpte 2024-04-04 20:21:48,263: DEBUG - + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=') 2024-04-04 20:21:48,264: DEBUG - + local -A args_array 2024-04-04 20:21:48,265: DEBUG - + local service_name 2024-04-04 20:21:48,266: DEBUG - + local action 2024-04-04 20:21:48,267: DEBUG - + local line_match 2024-04-04 20:21:48,267: DEBUG - + local length 2024-04-04 20:21:48,268: DEBUG - + local log_path 2024-04-04 20:21:48,269: DEBUG - + local timeout 2024-04-04 20:21:48,270: DEBUG - + ynh_handle_getopts_args --service_name=php7.4-fpm --action=reload 2024-04-04 20:21:48,271: DEBUG - + set +o xtrace 2024-04-04 20:21:48,731: DEBUG - + service_name=php7.4-fpm 2024-04-04 20:21:48,732: DEBUG - + action=reload 2024-04-04 20:21:48,733: DEBUG - + line_match= 2024-04-04 20:21:48,734: DEBUG - + length=20 2024-04-04 20:21:48,736: DEBUG - + log_path=/var/log/php7.4-fpm/php7.4-fpm.log 2024-04-04 20:21:48,739: DEBUG - + timeout=300 2024-04-04 20:21:48,740: DEBUG - + '[' reload == stop ']' 2024-04-04 20:21:48,741: DEBUG - + [[ -n '' ]] 2024-04-04 20:21:48,742: DEBUG - + '[' reload == reload ']' 2024-04-04 20:21:48,744: DEBUG - + action=reload-or-restart 2024-04-04 20:21:48,745: DEBUG - ++ date --utc --rfc-3339=seconds 2024-04-04 20:21:48,746: DEBUG - ++ cut -d+ -f1 2024-04-04 20:21:48,747: DEBUG - + local 'time_start=2024-04-04 19:21:48 UTC' 2024-04-04 20:21:48,748: DEBUG - + systemctl reload-or-restart php7.4-fpm 2024-04-04 20:21:48,815: DEBUG - + [[ -n '' ]] 2024-04-04 20:21:48,816: DEBUG - + ynh_use_logrotate --non-append --logfile=/var/www/wallabag2/var/logs/prod.log 2024-04-04 20:21:48,818: DEBUG - + all_args=('--non-append' '--logfile=/var/www/wallabag2/var/logs/prod.log') 2024-04-04 20:21:48,820: DEBUG - + local all_args 2024-04-04 20:21:48,821: DEBUG - ++ seq 0 1 2024-04-04 20:21:48,827: DEBUG - + for I in $(seq 0 $(($# - 1))) 2024-04-04 20:21:48,829: DEBUG - + [[ --non-append == \-\-\n\o\n\-\a\p\p\e\n\d ]] 2024-04-04 20:21:48,830: DEBUG - + unset 'all_args[0]' 2024-04-04 20:21:48,831: DEBUG - + for I in $(seq 0 $(($# - 1))) 2024-04-04 20:21:48,832: DEBUG - + [[ --logfile=/var/www/wallabag2/var/logs/prod.log == \-\-\n\o\n\-\a\p\p\e\n\d ]] 2024-04-04 20:21:48,833: DEBUG - + [[ --logfile=/var/www/wallabag2/var/logs/prod.log == \-\-\n\o\n\a\p\p\e\n\d ]] 2024-04-04 20:21:48,834: DEBUG - + set -- --logfile=/var/www/wallabag2/var/logs/prod.log 2024-04-04 20:21:48,835: DEBUG - + local legacy_args=lu 2024-04-04 20:21:48,836: DEBUG - + args_array=(['l']='logfile=' ['u']='specific_user=') 2024-04-04 20:21:48,837: DEBUG - + local -A args_array 2024-04-04 20:21:48,838: DEBUG - + local logfile 2024-04-04 20:21:48,839: DEBUG - + local specific_user 2024-04-04 20:21:48,841: DEBUG - + ynh_handle_getopts_args --logfile=/var/www/wallabag2/var/logs/prod.log 2024-04-04 20:21:48,842: DEBUG - + set +o xtrace 2024-04-04 20:21:48,928: DEBUG - + logfile=/var/www/wallabag2/var/logs/prod.log 2024-04-04 20:21:48,930: DEBUG - + specific_user= 2024-04-04 20:21:48,931: DEBUG - + set -o noglob 2024-04-04 20:21:48,932: DEBUG - + [[ -z /var/www/wallabag2/var/logs/prod.log ]] 2024-04-04 20:21:48,933: DEBUG - + [[ log != \l\o\g ]] 2024-04-04 20:21:48,934: DEBUG - + set +o noglob 2024-04-04 20:21:48,935: DEBUG - + for stuff in $logfile 2024-04-04 20:21:48,936: DEBUG - ++ dirname /var/www/wallabag2/var/logs/prod.log 2024-04-04 20:21:48,940: DEBUG - + mkdir --parents /var/www/wallabag2/var/logs 2024-04-04 20:21:48,947: DEBUG - + local su_directive= 2024-04-04 20:21:48,948: DEBUG - + [[ -n '' ]] 2024-04-04 20:21:48,950: DEBUG - ++ mktemp 2024-04-04 20:21:48,962: DEBUG - + local tempconf=/tmp/tmp.cvXUbVJcMT 2024-04-04 20:21:48,963: DEBUG - + cat 2024-04-04 20:21:48,972: DEBUG - + [[ true == \t\r\u\e ]] 2024-04-04 20:21:48,974: DEBUG - + cat /tmp/tmp.cvXUbVJcMT 2024-04-04 20:21:48,987: DEBUG - + FIRST_CALL_TO_LOGROTATE=false 2024-04-04 20:21:48,988: DEBUG - + chmod 644 /etc/logrotate.d/wallabag2 2024-04-04 20:21:48,992: DEBUG - + mkdir -p /var/log/wallabag2 2024-04-04 20:21:49,003: DEBUG - + chmod 750 /var/log/wallabag2 2024-04-04 20:21:49,010: DEBUG - + ynh_add_fail2ban_config --logpath=/var/www/wallabag2/var/logs/prod.log '--failregex=app.ERROR: Authentication failure for user "([\w]+)?", from IP ""' --max_retry=5 2024-04-04 20:21:49,011: DEBUG - + local legacy_args=lrmptv 2024-04-04 20:21:49,013: DEBUG - + args_array=(['l']='logpath=' ['r']='failregex=' ['m']='max_retry=' ['p']='ports=' ['t']='use_template') 2024-04-04 20:21:49,014: DEBUG - + local -A args_array 2024-04-04 20:21:49,015: DEBUG - + local logpath 2024-04-04 20:21:49,016: DEBUG - + local failregex 2024-04-04 20:21:49,017: DEBUG - + local max_retry 2024-04-04 20:21:49,017: DEBUG - + local ports 2024-04-04 20:21:49,018: DEBUG - + local use_template 2024-04-04 20:21:49,019: DEBUG - + ynh_handle_getopts_args --logpath=/var/www/wallabag2/var/logs/prod.log '--failregex=app.ERROR: Authentication failure for user "([\w]+)?", from IP ""' --max_retry=5 2024-04-04 20:21:49,021: DEBUG - + set +o xtrace 2024-04-04 20:21:49,604: DEBUG - + max_retry=5 2024-04-04 20:21:49,607: DEBUG - + ports=http,https 2024-04-04 20:21:49,609: DEBUG - + use_template=0 2024-04-04 20:21:49,610: DEBUG - + '[' 0 -ne 1 ']' 2024-04-04 20:21:49,611: DEBUG - + test -n /var/www/wallabag2/var/logs/prod.log 2024-04-04 20:21:49,612: DEBUG - + test -n 'app.ERROR: Authentication failure for user "([\w]+)?", from IP ""' 2024-04-04 20:21:49,613: DEBUG - + echo ' 2024-04-04 20:21:49,614: DEBUG - [__APP__] 2024-04-04 20:21:49,615: DEBUG - enabled = true 2024-04-04 20:21:49,616: DEBUG - port = __PORTS__ 2024-04-04 20:21:49,617: DEBUG - filter = __APP__ 2024-04-04 20:21:49,618: DEBUG - logpath = __LOGPATH__ 2024-04-04 20:21:49,619: DEBUG - maxretry = __MAX_RETRY__ 2024-04-04 20:21:49,620: DEBUG - ' 2024-04-04 20:21:49,621: DEBUG - + echo ' 2024-04-04 20:21:49,623: DEBUG - [INCLUDES] 2024-04-04 20:21:49,624: DEBUG - before = common.conf 2024-04-04 20:21:49,626: DEBUG - [Definition] 2024-04-04 20:21:49,627: DEBUG - failregex = __FAILREGEX__ 2024-04-04 20:21:49,627: DEBUG - ignoreregex = 2024-04-04 20:21:49,628: DEBUG - ' 2024-04-04 20:21:49,629: DEBUG - + ynh_add_config --template=f2b_jail.conf --destination=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:49,630: DEBUG - + local legacy_args=tdv 2024-04-04 20:21:49,631: DEBUG - + args_array=(['t']='template=' ['d']='destination=') 2024-04-04 20:21:49,632: DEBUG - + local -A args_array 2024-04-04 20:21:49,634: DEBUG - + local template 2024-04-04 20:21:49,635: DEBUG - + local destination 2024-04-04 20:21:49,636: DEBUG - + ynh_handle_getopts_args --template=f2b_jail.conf --destination=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:49,637: DEBUG - + set +o xtrace 2024-04-04 20:21:49,788: DEBUG - + local template_path 2024-04-04 20:21:49,790: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/f2b_jail.conf ']' 2024-04-04 20:21:49,791: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/f2b_jail.conf 2024-04-04 20:21:49,792: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:49,793: DEBUG - + local legacy_args=f 2024-04-04 20:21:49,794: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:49,795: DEBUG - + local -A args_array 2024-04-04 20:21:49,796: DEBUG - + local file 2024-04-04 20:21:49,797: DEBUG - + ynh_handle_getopts_args --file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:49,798: DEBUG - + set +o xtrace 2024-04-04 20:21:49,845: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_jail.d_wallabag2.conf 2024-04-04 20:21:49,848: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=checksum__etc_fail2ban_jail.d_wallabag2.conf 2024-04-04 20:21:49,850: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:49,851: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:49,853: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:49,854: DEBUG - ++ local -A args_array 2024-04-04 20:21:49,855: DEBUG - ++ local app 2024-04-04 20:21:49,856: DEBUG - ++ local key 2024-04-04 20:21:49,857: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_fail2ban_jail.d_wallabag2.conf 2024-04-04 20:21:49,858: DEBUG - ++ set +o xtrace 2024-04-04 20:21:50,028: DEBUG - ++ app=wallabag2 2024-04-04 20:21:50,030: DEBUG - ++ [[ checksum__etc_fail2ban_jail.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:50,031: DEBUG - ++ ynh_app_setting get wallabag2 checksum__etc_fail2ban_jail.d_wallabag2.conf 2024-04-04 20:21:50,033: DEBUG - ++ set +o xtrace 2024-04-04 20:21:50,381: DEBUG - + local checksum_value=ece9a6cf0b21a299c550af90697fead6 2024-04-04 20:21:50,382: DEBUG - + backup_file_checksum= 2024-04-04 20:21:50,384: DEBUG - + '[' -n ece9a6cf0b21a299c550af90697fead6 ']' 2024-04-04 20:21:50,386: DEBUG - + '[' -e /etc/fail2ban/jail.d/wallabag2.conf ']' 2024-04-04 20:21:50,387: DEBUG - + echo 'ece9a6cf0b21a299c550af90697fead6 /etc/fail2ban/jail.d/wallabag2.conf' 2024-04-04 20:21:50,388: DEBUG - + md5sum --check --status 2024-04-04 20:21:50,394: DEBUG - + touch /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,401: DEBUG - + chown root:root /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,409: DEBUG - + chmod 640 /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,414: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/f2b_jail.conf /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,423: DEBUG - + _ynh_apply_default_permissions /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,425: DEBUG - + local target=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,429: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2024-04-04 20:21:50,431: DEBUG - ++ tr -d '<>= ' 2024-04-04 20:21:50,433: DEBUG - ++ local legacy_args=mk 2024-04-04 20:21:50,435: DEBUG - ++ args_array=(['m']='manifest=' ['k']='manifest_key=') 2024-04-04 20:21:50,436: DEBUG - ++ local -A args_array 2024-04-04 20:21:50,437: DEBUG - ++ local manifest 2024-04-04 20:21:50,439: DEBUG - ++ local manifest_key 2024-04-04 20:21:50,440: DEBUG - ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost 2024-04-04 20:21:50,441: DEBUG - ++ set +o xtrace 2024-04-04 20:21:50,536: DEBUG - ++ '[' '!' -e '' ']' 2024-04-04 20:21:50,538: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.json ']' 2024-04-04 20:21:50,539: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml ']' 2024-04-04 20:21:50,541: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:50,542: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:50,543: DEBUG - ++ grep -q '\.json$' 2024-04-04 20:21:50,553: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:50,555: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:21:50,559: DEBUG - ++ jq .requirements.yunohost --raw-output 2024-04-04 20:21:50,975: DEBUG - + local ynh_requirement=null 2024-04-04 20:21:50,976: DEBUG - + dpkg --compare-versions 2.0 ge 2 2024-04-04 20:21:50,983: DEBUG - + chmod o-rwx /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,987: DEBUG - + chmod g-w /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:50,993: DEBUG - + chown -R root:root /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,000: DEBUG - + ynh_system_user_exists wallabag2 2024-04-04 20:21:51,001: DEBUG - + local legacy_args=u 2024-04-04 20:21:51,003: DEBUG - + args_array=(['u']='username=') 2024-04-04 20:21:51,005: DEBUG - + local -A args_array 2024-04-04 20:21:51,006: DEBUG - + local username 2024-04-04 20:21:51,007: DEBUG - + ynh_handle_getopts_args wallabag2 2024-04-04 20:21:51,008: DEBUG - + set +o xtrace 2024-04-04 20:21:51,048: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:21:51,065: DEBUG - + set +x 2024-04-04 20:21:51,066: DEBUG - + getent passwd wallabag2 2024-04-04 20:21:51,068: DEBUG - + chown wallabag2:wallabag2 /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,078: DEBUG - + echo /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,080: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2024-04-04 20:21:51,092: DEBUG - + chmod 400 /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,098: DEBUG - + chown root:root /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,106: DEBUG - + ynh_replace_vars --file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,107: DEBUG - + local legacy_args=f 2024-04-04 20:21:51,109: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:51,110: DEBUG - + local -A args_array 2024-04-04 20:21:51,111: DEBUG - + local file 2024-04-04 20:21:51,112: DEBUG - + ynh_handle_getopts_args --file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,113: DEBUG - + set +o xtrace 2024-04-04 20:21:51,163: DEBUG - + test -n /wallabag 2024-04-04 20:21:51,165: DEBUG - + local path_url_slash_less=/wallabag 2024-04-04 20:21:51,167: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,169: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:51,170: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:51,172: DEBUG - + local -A args_array 2024-04-04 20:21:51,173: DEBUG - + local match_string 2024-04-04 20:21:51,174: DEBUG - + local replace_string 2024-04-04 20:21:51,175: DEBUG - + local target_file 2024-04-04 20:21:51,176: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,177: DEBUG - + set +o xtrace 2024-04-04 20:21:51,522: DEBUG - + set +o xtrace 2024-04-04 20:21:51,523: DEBUG - + sed --in-place $'s\001__PATH__/\001/wallabag/\001g' /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,533: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,535: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:51,537: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:51,538: DEBUG - + local -A args_array 2024-04-04 20:21:51,540: DEBUG - + local match_string 2024-04-04 20:21:51,540: DEBUG - + local replace_string 2024-04-04 20:21:51,541: DEBUG - + local target_file 2024-04-04 20:21:51,542: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,543: DEBUG - + set +o xtrace 2024-04-04 20:21:51,893: DEBUG - + set +o xtrace 2024-04-04 20:21:51,895: DEBUG - + sed --in-place $'s\001__PATH__\001/wallabag\001g' /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,905: DEBUG - + test -n wallabag2 2024-04-04 20:21:51,907: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,909: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:51,910: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:51,911: DEBUG - + local -A args_array 2024-04-04 20:21:51,912: DEBUG - + local match_string 2024-04-04 20:21:51,913: DEBUG - + local replace_string 2024-04-04 20:21:51,914: DEBUG - + local target_file 2024-04-04 20:21:51,915: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:51,916: DEBUG - + set +o xtrace 2024-04-04 20:21:52,280: DEBUG - + set +o xtrace 2024-04-04 20:21:52,281: DEBUG - + sed --in-place $'s\001__NAME__\001wallabag2\001g' /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:52,290: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:52,292: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:52,293: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:52,294: DEBUG - + local -A args_array 2024-04-04 20:21:52,295: DEBUG - + local match_string 2024-04-04 20:21:52,296: DEBUG - + local replace_string 2024-04-04 20:21:52,297: DEBUG - + local target_file 2024-04-04 20:21:52,298: DEBUG - + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:52,300: DEBUG - + set +o xtrace 2024-04-04 20:21:52,659: DEBUG - + set +o xtrace 2024-04-04 20:21:52,660: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001wallabag2\001g' /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:52,669: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:52,671: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:52,672: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:52,673: DEBUG - + local -A args_array 2024-04-04 20:21:52,675: DEBUG - + local match_string 2024-04-04 20:21:52,677: DEBUG - + local replace_string 2024-04-04 20:21:52,678: DEBUG - + local target_file 2024-04-04 20:21:52,679: DEBUG - + ynh_handle_getopts_args --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:52,679: DEBUG - + set +o xtrace 2024-04-04 20:21:53,034: DEBUG - + set +o xtrace 2024-04-04 20:21:53,035: DEBUG - + sed --in-place $'s\001__USER__\001wallabag2\001g' /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:53,045: DEBUG - + test -n '' 2024-04-04 20:21:53,046: DEBUG - + dpkg --compare-versions 2.0 lt 2 2024-04-04 20:21:53,054: DEBUG - + test -n '' 2024-04-04 20:21:53,059: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:53,061: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2024-04-04 20:21:53,065: DEBUG - ++ sort --unique 2024-04-04 20:21:53,075: DEBUG - + uniques_vars=('app' 'logpath' 'max_retry' 'ports') 2024-04-04 20:21:53,077: DEBUG - + local uniques_vars 2024-04-04 20:21:53,078: DEBUG - + set +o xtrace 2024-04-04 20:21:53,118: DEBUG - + ynh_store_file_checksum --file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:53,120: DEBUG - + local legacy_args=f 2024-04-04 20:21:53,121: DEBUG - + args_array=(['f']='file=' ['u']='update_only') 2024-04-04 20:21:53,122: DEBUG - + local -A args_array 2024-04-04 20:21:53,123: DEBUG - + local file 2024-04-04 20:21:53,125: DEBUG - + local update_only 2024-04-04 20:21:53,125: DEBUG - + update_only=0 2024-04-04 20:21:53,126: DEBUG - + ynh_handle_getopts_args --file=/etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:53,127: DEBUG - + set +o xtrace 2024-04-04 20:21:53,216: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_jail.d_wallabag2.conf 2024-04-04 20:21:53,217: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:53,220: DEBUG - ++ md5sum /etc/fail2ban/jail.d/wallabag2.conf 2024-04-04 20:21:53,223: DEBUG - ++ cut '--delimiter= ' --fields=1 2024-04-04 20:21:53,234: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=checksum__etc_fail2ban_jail.d_wallabag2.conf --value=ece9a6cf0b21a299c550af90697fead6 2024-04-04 20:21:53,236: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:53,237: DEBUG - + local legacy_args=akv 2024-04-04 20:21:53,239: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:53,240: DEBUG - + local -A args_array 2024-04-04 20:21:53,241: DEBUG - + local app 2024-04-04 20:21:53,242: DEBUG - + local key 2024-04-04 20:21:53,242: DEBUG - + local value 2024-04-04 20:21:53,243: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_fail2ban_jail.d_wallabag2.conf --value=ece9a6cf0b21a299c550af90697fead6 2024-04-04 20:21:53,244: DEBUG - + set +o xtrace 2024-04-04 20:21:53,625: DEBUG - + app=wallabag2 2024-04-04 20:21:53,626: DEBUG - + [[ checksum__etc_fail2ban_jail.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:53,628: DEBUG - + ynh_app_setting set wallabag2 checksum__etc_fail2ban_jail.d_wallabag2.conf ece9a6cf0b21a299c550af90697fead6 2024-04-04 20:21:53,629: DEBUG - + set +o xtrace 2024-04-04 20:21:54,054: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:54,056: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:54,057: DEBUG - + unset backup_file_checksum 2024-04-04 20:21:54,058: DEBUG - + ynh_add_config --template=f2b_filter.conf --destination=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,059: DEBUG - + local legacy_args=tdv 2024-04-04 20:21:54,061: DEBUG - + args_array=(['t']='template=' ['d']='destination=') 2024-04-04 20:21:54,061: DEBUG - + local -A args_array 2024-04-04 20:21:54,062: DEBUG - + local template 2024-04-04 20:21:54,064: DEBUG - + local destination 2024-04-04 20:21:54,065: DEBUG - + ynh_handle_getopts_args --template=f2b_filter.conf --destination=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,066: DEBUG - + set +o xtrace 2024-04-04 20:21:54,230: DEBUG - + local template_path 2024-04-04 20:21:54,232: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/f2b_filter.conf ']' 2024-04-04 20:21:54,233: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/f2b_filter.conf 2024-04-04 20:21:54,234: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,235: DEBUG - + local legacy_args=f 2024-04-04 20:21:54,236: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:54,237: DEBUG - + local -A args_array 2024-04-04 20:21:54,238: DEBUG - + local file 2024-04-04 20:21:54,239: DEBUG - + ynh_handle_getopts_args --file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,240: DEBUG - + set +o xtrace 2024-04-04 20:21:54,287: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_wallabag2.conf 2024-04-04 20:21:54,290: DEBUG - ++ ynh_app_setting_get --app=wallabag2 --key=checksum__etc_fail2ban_filter.d_wallabag2.conf 2024-04-04 20:21:54,291: DEBUG - ++ local _globalapp=wallabag2 2024-04-04 20:21:54,293: DEBUG - ++ local legacy_args=ak 2024-04-04 20:21:54,294: DEBUG - ++ args_array=(['a']='app=' ['k']='key=') 2024-04-04 20:21:54,295: DEBUG - ++ local -A args_array 2024-04-04 20:21:54,297: DEBUG - ++ local app 2024-04-04 20:21:54,298: DEBUG - ++ local key 2024-04-04 20:21:54,299: DEBUG - ++ ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_fail2ban_filter.d_wallabag2.conf 2024-04-04 20:21:54,300: DEBUG - ++ set +o xtrace 2024-04-04 20:21:54,475: DEBUG - ++ app=wallabag2 2024-04-04 20:21:54,476: DEBUG - ++ [[ checksum__etc_fail2ban_filter.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:54,477: DEBUG - ++ ynh_app_setting get wallabag2 checksum__etc_fail2ban_filter.d_wallabag2.conf 2024-04-04 20:21:54,480: DEBUG - ++ set +o xtrace 2024-04-04 20:21:54,841: DEBUG - + local checksum_value=cbb3279a8a8372043354c5a8f222c486 2024-04-04 20:21:54,843: DEBUG - + backup_file_checksum= 2024-04-04 20:21:54,844: DEBUG - + '[' -n cbb3279a8a8372043354c5a8f222c486 ']' 2024-04-04 20:21:54,846: DEBUG - + '[' -e /etc/fail2ban/filter.d/wallabag2.conf ']' 2024-04-04 20:21:54,847: DEBUG - + echo 'cbb3279a8a8372043354c5a8f222c486 /etc/fail2ban/filter.d/wallabag2.conf' 2024-04-04 20:21:54,848: DEBUG - + md5sum --check --status 2024-04-04 20:21:54,856: DEBUG - + touch /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,862: DEBUG - + chown root:root /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,868: DEBUG - + chmod 640 /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,874: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/conf/f2b_filter.conf /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,882: DEBUG - + _ynh_apply_default_permissions /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,884: DEBUG - + local target=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:54,888: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2024-04-04 20:21:54,889: DEBUG - ++ tr -d '<>= ' 2024-04-04 20:21:54,891: DEBUG - ++ local legacy_args=mk 2024-04-04 20:21:54,893: DEBUG - ++ args_array=(['m']='manifest=' ['k']='manifest_key=') 2024-04-04 20:21:54,894: DEBUG - ++ local -A args_array 2024-04-04 20:21:54,896: DEBUG - ++ local manifest 2024-04-04 20:21:54,898: DEBUG - ++ local manifest_key 2024-04-04 20:21:54,899: DEBUG - ++ ynh_handle_getopts_args --manifest_key=requirements.yunohost 2024-04-04 20:21:54,899: DEBUG - ++ set +o xtrace 2024-04-04 20:21:54,994: DEBUG - ++ '[' '!' -e '' ']' 2024-04-04 20:21:54,995: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.json ']' 2024-04-04 20:21:54,997: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml ']' 2024-04-04 20:21:54,999: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:55,000: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:55,001: DEBUG - ++ grep -q '\.json$' 2024-04-04 20:21:55,011: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9rh1i11j/manifest.toml 2024-04-04 20:21:55,014: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2024-04-04 20:21:55,017: DEBUG - ++ jq .requirements.yunohost --raw-output 2024-04-04 20:21:55,432: DEBUG - + local ynh_requirement=null 2024-04-04 20:21:55,434: DEBUG - + dpkg --compare-versions 2.0 ge 2 2024-04-04 20:21:55,441: DEBUG - + chmod o-rwx /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,446: DEBUG - + chmod g-w /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,452: DEBUG - + chown -R root:root /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,458: DEBUG - + ynh_system_user_exists wallabag2 2024-04-04 20:21:55,460: DEBUG - + local legacy_args=u 2024-04-04 20:21:55,462: DEBUG - + args_array=(['u']='username=') 2024-04-04 20:21:55,463: DEBUG - + local -A args_array 2024-04-04 20:21:55,464: DEBUG - + local username 2024-04-04 20:21:55,465: DEBUG - + ynh_handle_getopts_args wallabag2 2024-04-04 20:21:55,465: DEBUG - + set +o xtrace 2024-04-04 20:21:55,504: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:21:55,505: DEBUG - + set +x 2024-04-04 20:21:55,515: DEBUG - + getent passwd wallabag2 2024-04-04 20:21:55,522: DEBUG - + chown wallabag2:wallabag2 /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,530: DEBUG - + echo /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,532: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2024-04-04 20:21:55,542: DEBUG - + chmod 400 /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,548: DEBUG - + chown root:root /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,555: DEBUG - + ynh_replace_vars --file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,557: DEBUG - + local legacy_args=f 2024-04-04 20:21:55,558: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:21:55,559: DEBUG - + local -A args_array 2024-04-04 20:21:55,561: DEBUG - + local file 2024-04-04 20:21:55,562: DEBUG - + ynh_handle_getopts_args --file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,563: DEBUG - + set +o xtrace 2024-04-04 20:21:55,613: DEBUG - + test -n /wallabag 2024-04-04 20:21:55,614: DEBUG - + local path_url_slash_less=/wallabag 2024-04-04 20:21:55,616: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,617: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:55,618: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:55,619: DEBUG - + local -A args_array 2024-04-04 20:21:55,620: DEBUG - + local match_string 2024-04-04 20:21:55,621: DEBUG - + local replace_string 2024-04-04 20:21:55,621: DEBUG - + local target_file 2024-04-04 20:21:55,622: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/wallabag/ --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,623: DEBUG - + set +o xtrace 2024-04-04 20:21:55,973: DEBUG - + set +o xtrace 2024-04-04 20:21:55,974: DEBUG - + sed --in-place $'s\001__PATH__/\001/wallabag/\001g' /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,986: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,988: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:55,990: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:55,991: DEBUG - + local -A args_array 2024-04-04 20:21:55,992: DEBUG - + local match_string 2024-04-04 20:21:55,993: DEBUG - + local replace_string 2024-04-04 20:21:55,994: DEBUG - + local target_file 2024-04-04 20:21:55,995: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/wallabag --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:55,996: DEBUG - + set +o xtrace 2024-04-04 20:21:56,352: DEBUG - + set +o xtrace 2024-04-04 20:21:56,360: DEBUG - + sed --in-place $'s\001__PATH__\001/wallabag\001g' /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:56,363: DEBUG - + test -n wallabag2 2024-04-04 20:21:56,365: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:56,365: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:56,367: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:56,369: DEBUG - + local -A args_array 2024-04-04 20:21:56,370: DEBUG - + local match_string 2024-04-04 20:21:56,371: DEBUG - + local replace_string 2024-04-04 20:21:56,372: DEBUG - + local target_file 2024-04-04 20:21:56,373: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=wallabag2 --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:56,374: DEBUG - + set +o xtrace 2024-04-04 20:21:56,739: DEBUG - + set +o xtrace 2024-04-04 20:21:56,741: DEBUG - + sed --in-place $'s\001__NAME__\001wallabag2\001g' /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:56,749: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:56,751: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:56,752: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:56,753: DEBUG - + local -A args_array 2024-04-04 20:21:56,754: DEBUG - + local match_string 2024-04-04 20:21:56,755: DEBUG - + local replace_string 2024-04-04 20:21:56,756: DEBUG - + local target_file 2024-04-04 20:21:56,757: DEBUG - + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=wallabag2 --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:56,758: DEBUG - + set +o xtrace 2024-04-04 20:21:57,112: DEBUG - + set +o xtrace 2024-04-04 20:21:57,113: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001wallabag2\001g' /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,122: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,124: DEBUG - + local legacy_args=mrf 2024-04-04 20:21:57,126: DEBUG - + args_array=(['m']='match_string=' ['r']='replace_string=' ['f']='target_file=') 2024-04-04 20:21:57,127: DEBUG - + local -A args_array 2024-04-04 20:21:57,128: DEBUG - + local match_string 2024-04-04 20:21:57,129: DEBUG - + local replace_string 2024-04-04 20:21:57,130: DEBUG - + local target_file 2024-04-04 20:21:57,130: DEBUG - + ynh_handle_getopts_args --match_string=__USER__ --replace_string=wallabag2 --target_file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,131: DEBUG - + set +o xtrace 2024-04-04 20:21:57,484: DEBUG - + set +o xtrace 2024-04-04 20:21:57,485: DEBUG - + sed --in-place $'s\001__USER__\001wallabag2\001g' /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,495: DEBUG - + test -n '' 2024-04-04 20:21:57,496: DEBUG - + dpkg --compare-versions 2.0 lt 2 2024-04-04 20:21:57,504: DEBUG - + test -n '' 2024-04-04 20:21:57,510: DEBUG - ++ sort --unique 2024-04-04 20:21:57,511: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,513: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2024-04-04 20:21:57,526: DEBUG - + uniques_vars=('failregex') 2024-04-04 20:21:57,527: DEBUG - + local uniques_vars 2024-04-04 20:21:57,529: DEBUG - + set +o xtrace 2024-04-04 20:21:57,537: DEBUG - + ynh_store_file_checksum --file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,539: DEBUG - + local legacy_args=f 2024-04-04 20:21:57,540: DEBUG - + args_array=(['f']='file=' ['u']='update_only') 2024-04-04 20:21:57,541: DEBUG - + local -A args_array 2024-04-04 20:21:57,542: DEBUG - + local file 2024-04-04 20:21:57,543: DEBUG - + local update_only 2024-04-04 20:21:57,544: DEBUG - + update_only=0 2024-04-04 20:21:57,545: DEBUG - + ynh_handle_getopts_args --file=/etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,546: DEBUG - + set +o xtrace 2024-04-04 20:21:57,638: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_wallabag2.conf 2024-04-04 20:21:57,640: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:57,644: DEBUG - ++ md5sum /etc/fail2ban/filter.d/wallabag2.conf 2024-04-04 20:21:57,645: DEBUG - ++ cut '--delimiter= ' --fields=1 2024-04-04 20:21:57,655: DEBUG - + ynh_app_setting_set --app=wallabag2 --key=checksum__etc_fail2ban_filter.d_wallabag2.conf --value=cbb3279a8a8372043354c5a8f222c486 2024-04-04 20:21:57,657: DEBUG - + local _globalapp=wallabag2 2024-04-04 20:21:57,658: DEBUG - + local legacy_args=akv 2024-04-04 20:21:57,659: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=') 2024-04-04 20:21:57,660: DEBUG - + local -A args_array 2024-04-04 20:21:57,661: DEBUG - + local app 2024-04-04 20:21:57,662: DEBUG - + local key 2024-04-04 20:21:57,663: DEBUG - + local value 2024-04-04 20:21:57,664: DEBUG - + ynh_handle_getopts_args --app=wallabag2 --key=checksum__etc_fail2ban_filter.d_wallabag2.conf --value=cbb3279a8a8372043354c5a8f222c486 2024-04-04 20:21:57,666: DEBUG - + set +o xtrace 2024-04-04 20:21:58,018: DEBUG - + app=wallabag2 2024-04-04 20:21:58,019: DEBUG - + [[ checksum__etc_fail2ban_filter.d_wallabag2.conf =~ (unprotected|protected|skipped)_ ]] 2024-04-04 20:21:58,020: DEBUG - + ynh_app_setting set wallabag2 checksum__etc_fail2ban_filter.d_wallabag2.conf cbb3279a8a8372043354c5a8f222c486 2024-04-04 20:21:58,022: DEBUG - + set +o xtrace 2024-04-04 20:21:58,388: DEBUG - + '[' 0 -eq 1 ']' 2024-04-04 20:21:58,390: DEBUG - + '[' -n '' ']' 2024-04-04 20:21:58,391: DEBUG - + unset backup_file_checksum 2024-04-04 20:21:58,392: DEBUG - + '[' -z /var/www/wallabag2/var/logs/prod.log ']' 2024-04-04 20:21:58,393: DEBUG - + mkdir -p /var/log/wallabag2 2024-04-04 20:21:58,398: DEBUG - + '[' '!' -f /var/www/wallabag2/var/logs/prod.log ']' 2024-04-04 20:21:58,399: DEBUG - + chown -R wallabag2:wallabag2 /var/log/wallabag2 2024-04-04 20:21:58,406: DEBUG - + chmod -R u=rwX,g=rX,o= /var/log/wallabag2 2024-04-04 20:21:58,412: DEBUG - + ynh_systemd_action --service_name=fail2ban --action=reload '--line_match=(Started|Reloaded) Fail2Ban Service' --log_path=systemd 2024-04-04 20:21:58,414: DEBUG - + local legacy_args=nalpte 2024-04-04 20:21:58,415: DEBUG - + args_array=(['n']='service_name=' ['a']='action=' ['l']='line_match=' ['p']='log_path=' ['t']='timeout=' ['e']='length=') 2024-04-04 20:21:58,416: DEBUG - + local -A args_array 2024-04-04 20:21:58,418: DEBUG - + local service_name 2024-04-04 20:21:58,419: DEBUG - + local action 2024-04-04 20:21:58,420: DEBUG - + local line_match 2024-04-04 20:21:58,421: DEBUG - + local length 2024-04-04 20:21:58,422: DEBUG - + local log_path 2024-04-04 20:21:58,423: DEBUG - + local timeout 2024-04-04 20:21:58,424: DEBUG - + ynh_handle_getopts_args --service_name=fail2ban --action=reload '--line_match=(Started|Reloaded) Fail2Ban Service' --log_path=systemd 2024-04-04 20:21:58,425: DEBUG - + set +o xtrace 2024-04-04 20:21:59,307: DEBUG - + service_name=fail2ban 2024-04-04 20:21:59,309: DEBUG - + action=reload 2024-04-04 20:21:59,310: DEBUG - + line_match='(Started|Reloaded) Fail2Ban Service' 2024-04-04 20:21:59,311: DEBUG - + length=20 2024-04-04 20:21:59,312: DEBUG - + log_path=systemd 2024-04-04 20:21:59,313: DEBUG - + timeout=300 2024-04-04 20:21:59,314: DEBUG - + '[' reload == stop ']' 2024-04-04 20:21:59,315: DEBUG - + [[ -n (Started|Reloaded) Fail2Ban Service ]] 2024-04-04 20:21:59,316: DEBUG - ++ mktemp 2024-04-04 20:21:59,318: DEBUG - + local templog=/tmp/tmp.wOG2CwXWIR 2024-04-04 20:21:59,320: DEBUG - + '[' systemd == systemd ']' 2024-04-04 20:21:59,322: DEBUG - + local pid_tail=111990 2024-04-04 20:21:59,323: DEBUG - + journalctl --unit=fail2ban --follow --since=-0 --quiet 2024-04-04 20:21:59,325: DEBUG - + '[' reload == reload ']' 2024-04-04 20:21:59,326: DEBUG - + action=reload-or-restart 2024-04-04 20:21:59,329: DEBUG - ++ date --utc --rfc-3339=seconds 2024-04-04 20:21:59,331: DEBUG - ++ cut -d+ -f1 2024-04-04 20:21:59,339: DEBUG - + local 'time_start=2024-04-04 19:21:59 UTC' 2024-04-04 20:21:59,340: DEBUG - + systemctl reload-or-restart fail2ban 2024-04-04 20:22:06,903: DEBUG - + [[ -n (Started|Reloaded) Fail2Ban Service ]] 2024-04-04 20:22:06,909: DEBUG - + set +x 2024-04-04 20:22:07,073: DEBUG - + echo 'The service fail2ban has correctly executed the action reload-or-restart.' 2024-04-04 20:22:07,075: DEBUG - + break 2024-04-04 20:22:07,075: DEBUG - + set -x 2024-04-04 20:22:07,077: DEBUG - + '[' 1 -ge 3 ']' 2024-04-04 20:22:07,078: DEBUG - + '[' 1 -eq 300 ']' 2024-04-04 20:22:07,080: DEBUG - + ynh_clean_check_starting 2024-04-04 20:22:07,081: DEBUG - + '[' -n 111990 ']' 2024-04-04 20:22:07,083: DEBUG - + kill -SIGTERM 111990 2024-04-04 20:22:07,085: INFO - The service fail2ban has correctly executed the action reload-or-restart. 2024-04-04 20:22:07,088: DEBUG - + '[' -n /tmp/tmp.wOG2CwXWIR ']' 2024-04-04 20:22:07,089: DEBUG - + ynh_secure_remove --file=/tmp/tmp.wOG2CwXWIR 2024-04-04 20:22:07,090: DEBUG - + local legacy_args=f 2024-04-04 20:22:07,092: DEBUG - + args_array=(['f']='file=') 2024-04-04 20:22:07,093: DEBUG - + local -A args_array 2024-04-04 20:22:07,094: DEBUG - + local file 2024-04-04 20:22:07,095: DEBUG - + ynh_handle_getopts_args --file=/tmp/tmp.wOG2CwXWIR 2024-04-04 20:22:07,096: DEBUG - + set +o xtrace 2024-04-04 20:22:07,144: DEBUG - + set +o xtrace 2024-04-04 20:22:07,209: DEBUG - ++ journalctl --no-hostname --unit=fail2ban 2024-04-04 20:22:07,211: DEBUG - ++ tail --lines=50 2024-04-04 20:22:07,212: DEBUG - ++ grep 'WARNING.*wallabag2.*' 2024-04-04 20:22:09,513: DEBUG - + local fail2ban_error= 2024-04-04 20:22:09,514: DEBUG - + [[ -n '' ]] 2024-04-04 20:22:09,515: DEBUG - + ynh_script_progression '--message=Upgrade of wallabag2 completed' --last 2024-04-04 20:22:09,516: DEBUG - + set +o xtrace 2024-04-04 20:22:09,837: DEBUG - + set +o xtrace 2024-04-04 20:22:09,903: DEBUG - + echo '! Helper used in legacy mode !' 2024-04-04 20:22:09,904: DEBUG - + set +x 2024-04-04 20:22:09,914: DEBUG - + echo '[####################] > Upgrade of wallabag2 completed' 2024-04-04 20:22:09,915: INFO - [####################] > Upgrade of wallabag2 completed 2024-04-04 20:22:09,918: DEBUG - + set -o xtrace 2024-04-04 20:22:09,919: DEBUG - + ynh_exit_properly 2024-04-04 20:22:09,920: DEBUG - + local exit_code=0 2024-04-04 20:22:09,921: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]] 2024-04-04 20:22:09,922: DEBUG - + rm -rf /var/cache/yunohost/download/ 2024-04-04 20:22:09,926: DEBUG - + '[' 0 -eq 0 ']' 2024-04-04 20:22:09,927: DEBUG - + exit 0 2024-04-04 20:22:10,931: DEBUG - Checking that required services are up and running... 2024-04-04 20:22:16,998: SUCCESS - wallabag2 upgraded ```
nicofrand commented 5 months ago

Thanks for the feedback. So did you just just put them back from the backup where they should be?

Yes (untar the folder I wanted, in /web/assets/images IIRC)!

nicofrand commented 5 months ago

I don't understand what could change it in https://github.com/YunoHost-Apps/wallabag2_ynh/blob/master/scripts/upgrade

ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="app/config/parameters.yml var/logs" should also keep web/assets/images I guess

Salamandar commented 3 months ago

Was fixed by #204 . Sorry for the inconvenience.