args: app: https://github.com/YunoHost-Apps/joplin_ynh/ force: false label: undefined no_remove_on_failure: false ended_at: 2023-12-09 21:13:49.691408 env: YNH_APP_ACTION: install YNH_APP_ARG_DOMAIN: notes.maindomain.tld YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr YNH_APP_ID: joplin YNH_APP_INSTANCE_NAME: joplin YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 2.13.8~ynh1 YNH_APP_PACKAGING_FORMAT: '2.0' YNH_ARCH: amd64 YNH_DEBIAN_VERSION: bullseye error: An error occurred inside the app installation script interface: api operation: app_install parent: null related_to: - - app - joplin started_at: 2023-12-09 21:01:32.154277 success: false yunohost_version: 11.2.8 ============ 2023-12-09 21:01:32,164: INFO - Installing joplin... 2023-12-09 21:01:32,172: INFO - Provisioning sources... 2023-12-09 21:01:32,172: DEBUG - Prefetching asset main: https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz ... 2023-12-09 21:01:40,111: INFO - Provisioning system_user... 2023-12-09 21:01:40,462: INFO - Provisioning install_dir... 2023-12-09 21:01:40,475: INFO - Provisioning permissions... 2023-12-09 21:01:40,994: DEBUG - Permission 'joplin.main' updated 2023-12-09 21:01:41,194: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210140-permission_url-joplin" style="text-decoration:underline">Update URL related to permission 'joplin'</a>' 2023-12-09 21:01:41,728: DEBUG - Permission 'joplin.main' created 2023-12-09 21:01:41,729: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210140-permission_create-joplin" style="text-decoration:underline">Create permission 'joplin'</a>' 2023-12-09 21:01:42,550: DEBUG - Permission 'joplin.main' updated 2023-12-09 21:01:42,551: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210141-user_permission_update-joplin" style="text-decoration:underline">Update accesses for permission 'joplin'</a>' 2023-12-09 21:01:43,035: DEBUG - Nothing to update in LDAP 2023-12-09 21:01:43,035: DEBUG - Permission 'joplin.main' updated 2023-12-09 21:01:43,247: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210143-permission_url-joplin" style="text-decoration:underline">Update URL related to permission 'joplin'</a>' 2023-12-09 21:01:43,843: DEBUG - Permission 'joplin.api' updated 2023-12-09 21:01:44,081: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210143-permission_url-joplin" style="text-decoration:underline">Update URL related to permission 'joplin'</a>' 2023-12-09 21:01:44,712: DEBUG - Permission 'joplin.api' created 2023-12-09 21:01:44,712: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210143-permission_create-joplin" style="text-decoration:underline">Create permission 'joplin'</a>' 2023-12-09 21:01:45,417: DEBUG - Permission 'joplin.api' updated 2023-12-09 21:01:45,417: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210144-user_permission_update-joplin" style="text-decoration:underline">Update accesses for permission 'joplin'</a>' 2023-12-09 21:01:45,892: DEBUG - Nothing to update in LDAP 2023-12-09 21:01:45,893: DEBUG - Permission 'joplin.api' updated 2023-12-09 21:01:46,082: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231209-210145-permission_url-joplin" style="text-decoration:underline">Update URL related to permission 'joplin'</a>' 2023-12-09 21:01:46,406: DEBUG - The permission database has been resynchronized 2023-12-09 21:01:46,696: DEBUG - SSOwat configuration regenerated 2023-12-09 21:01:46,702: INFO - Provisioning ports... 2023-12-09 21:01:46,742: INFO - Provisioning apt... 2023-12-09 21:01:46,765: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']' 2023-12-09 21:01:46,773: DEBUG - + source /usr/share/yunohost/helpers 2023-12-09 21:01:46,774: DEBUG - +++ grep xtrace 2023-12-09 21:01:46,775: DEBUG - +++ set +o 2023-12-09 21:01:46,777: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2023-12-09 21:01:46,777: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2023-12-09 21:01:46,798: DEBUG - + ynh_abort_if_errors 2023-12-09 21:01:46,799: DEBUG - + trap ynh_exit_properly EXIT 2023-12-09 21:01:46,799: DEBUG - + ynh_install_app_dependencies postgresql postgresql-client 2023-12-09 21:01:46,799: DEBUG - + local 'dependencies=postgresql postgresql-client' 2023-12-09 21:01:46,800: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2023-12-09 21:01:46,802: DEBUG - ++ echo 'postgresql postgresql-client' 2023-12-09 21:01:46,803: DEBUG - + dependencies='postgresql, postgresql-client' 2023-12-09 21:01:46,803: DEBUG - + local 'dependencies=postgresql, postgresql-client' 2023-12-09 21:01:46,804: DEBUG - ++ ynh_read_manifest --manifest_key=version 2023-12-09 21:01:46,826: DEBUG - ++ '[' '!' -e '' ']' 2023-12-09 21:01:46,827: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.json ']' 2023-12-09 21:01:46,827: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml ']' 2023-12-09 21:01:46,827: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml 2023-12-09 21:01:46,827: DEBUG - ++ grep -q '\.json$' 2023-12-09 21:01:46,829: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml 2023-12-09 21:01:46,830: DEBUG - ++ jq .version --raw-output 2023-12-09 21:01:46,831: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:01:46,832: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml 2023-12-09 21:01:46,954: DEBUG - + local version=2.13.8~ynh1 2023-12-09 21:01:46,954: DEBUG - + '[' -z 2.13.8~ynh1 ']' 2023-12-09 21:01:46,954: DEBUG - + '[' 2.13.8~ynh1 == null ']' 2023-12-09 21:01:46,955: DEBUG - + local dep_app=joplin 2023-12-09 21:01:46,955: DEBUG - + [[ postgresql, postgresql-client =~ [<=>] ]] 2023-12-09 21:01:46,956: DEBUG - ++ sort -u 2023-12-09 21:01:46,957: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)' 2023-12-09 21:01:46,959: DEBUG - ++ echo postgresql, postgresql-client 2023-12-09 21:01:46,961: DEBUG - + local specific_php_version= 2023-12-09 21:01:46,961: DEBUG - + grep --quiet php 2023-12-09 21:01:46,963: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-12-09 21:01:46,978: DEBUG - ++ ynh_wait_dpkg_free 2023-12-09 21:01:47,125: DEBUG - ++ return 0 2023-12-09 21:01:47,125: DEBUG - ++ grep --count 'ok installed' 2023-12-09 21:01:47,127: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-12-09 21:01:47,149: DEBUG - ++ echo yes 2023-12-09 21:01:47,150: DEBUG - + local psql_installed=yes 2023-12-09 21:01:47,150: DEBUG - + [[ true == \t\r\u\e ]] 2023-12-09 21:01:47,150: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2023-12-09 21:01:47,150: DEBUG - + cat 2023-12-09 21:01:47,152: DEBUG - + ynh_package_install_from_equivs /tmp/joplin-ynh-deps.control 2023-12-09 21:01:47,152: DEBUG - + local controlfile=/tmp/joplin-ynh-deps.control 2023-12-09 21:01:47,153: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-12-09 21:01:47,155: DEBUG - ++ grep '^Package: ' /tmp/joplin-ynh-deps.control 2023-12-09 21:01:47,157: DEBUG - + local pkgname=joplin-ynh-deps 2023-12-09 21:01:47,158: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-12-09 21:01:47,159: DEBUG - ++ grep '^Version: ' /tmp/joplin-ynh-deps.control 2023-12-09 21:01:47,162: DEBUG - + local pkgversion=2.13.8~ynh1 2023-12-09 21:01:47,162: DEBUG - + [[ -z joplin-ynh-deps ]] 2023-12-09 21:01:47,162: DEBUG - + [[ -z 2.13.8~ynh1 ]] 2023-12-09 21:01:47,162: DEBUG - + ynh_package_update 2023-12-09 21:01:47,162: DEBUG - + ynh_apt update 2023-12-09 21:01:47,162: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:01:47,346: DEBUG - + return 0 2023-12-09 21:01:47,346: DEBUG - + LC_ALL=C 2023-12-09 21:01:47,346: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:01:47,346: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2023-12-09 21:01:47,456: DEBUG - Get:1 http://forge.yunohost.org/debian bullseye InRelease [18.4 kB] 2023-12-09 21:01:47,476: DEBUG - Hit:2 http://deb.debian.org/debian bullseye InRelease 2023-12-09 21:01:47,476: DEBUG - Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] 2023-12-09 21:01:47,490: DEBUG - Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] 2023-12-09 21:01:47,536: DEBUG - Hit:5 https://packages.sury.org/php bullseye InRelease 2023-12-09 21:01:47,565: DEBUG - Get:6 http://forge.yunohost.org/debian bullseye/stable amd64 Packages [4137 B] 2023-12-09 21:01:52,080: DEBUG - Fetched 115 kB in 1s (171 kB/s) 2023-12-09 21:01:53,049: DEBUG - Reading package lists... 2023-12-09 21:01:53,064: DEBUG - ++ mktemp --directory 2023-12-09 21:01:53,066: DEBUG - + local TMPDIR=/tmp/tmp.6ltdNtPXVI 2023-12-09 21:01:53,066: DEBUG - + rm -f /usr/share/equivs/template/debian/compat 2023-12-09 21:01:53,069: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:01:53,262: DEBUG - + return 0 2023-12-09 21:01:53,263: DEBUG - + cp /tmp/joplin-ynh-deps.control /tmp/tmp.6ltdNtPXVI/control 2023-12-09 21:01:53,273: DEBUG - + cd /tmp/tmp.6ltdNtPXVI 2023-12-09 21:01:53,273: DEBUG - + LC_ALL=C 2023-12-09 21:01:53,273: DEBUG - + equivs-build ./control 2023-12-09 21:01:53,532: DEBUG - dpkg-buildpackage: info: source package joplin-ynh-deps 2023-12-09 21:01:53,532: DEBUG - dpkg-buildpackage: info: source version 2.13.8~ynh1 2023-12-09 21:01:53,532: DEBUG - dpkg-buildpackage: info: source distribution unstable 2023-12-09 21:01:53,532: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@maindomain.tld> 2023-12-09 21:01:53,592: DEBUG - dpkg-source --before-build . 2023-12-09 21:01:53,592: DEBUG - dpkg-buildpackage: info: host architecture amd64 2023-12-09 21:01:53,767: DEBUG - debian/rules clean 2023-12-09 21:01:53,770: DEBUG - dh clean 2023-12-09 21:01:53,903: DEBUG - dh_clean 2023-12-09 21:01:53,949: DEBUG - debian/rules binary 2023-12-09 21:01:53,950: DEBUG - dh binary 2023-12-09 21:01:54,059: DEBUG - dh_update_autotools_config 2023-12-09 21:01:54,101: DEBUG - dh_autoreconf 2023-12-09 21:01:54,168: DEBUG - create-stamp debian/debhelper-build-stamp 2023-12-09 21:01:54,168: DEBUG - dh_prep 2023-12-09 21:01:54,208: DEBUG - dh_install 2023-12-09 21:01:54,314: DEBUG - dh_installdocs 2023-12-09 21:01:54,419: DEBUG - dh_installchangelogs 2023-12-09 21:01:54,556: DEBUG - dh_perl 2023-12-09 21:01:54,623: DEBUG - dh_link 2023-12-09 21:01:54,673: DEBUG - dh_strip_nondeterminism 2023-12-09 21:01:54,767: DEBUG - dh_compress 2023-12-09 21:01:54,825: DEBUG - dh_fixperms 2023-12-09 21:01:54,884: DEBUG - dh_missing 2023-12-09 21:01:54,924: DEBUG - dh_installdeb 2023-12-09 21:01:54,972: DEBUG - dh_gencontrol 2023-12-09 21:01:55,154: DEBUG - dh_md5sums 2023-12-09 21:01:55,207: DEBUG - dh_builddeb 2023-12-09 21:01:55,294: DEBUG - dpkg-deb: building package 'joplin-ynh-deps' in '../joplin-ynh-deps_2.13.8~ynh1_all.deb'. 2023-12-09 21:01:55,320: DEBUG - dpkg-genbuildinfo --build=binary 2023-12-09 21:01:55,982: DEBUG - dpkg-genchanges --build=binary >../joplin-ynh-deps_2.13.8~ynh1_amd64.changes 2023-12-09 21:01:56,109: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included) 2023-12-09 21:01:56,113: DEBUG - dpkg-source --after-build . 2023-12-09 21:01:56,360: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included) 2023-12-09 21:01:56,360: DEBUG - 2023-12-09 21:01:56,361: DEBUG - The package has been created. 2023-12-09 21:01:56,361: DEBUG - Attention, the package has been created in the current directory, 2023-12-09 21:01:56,361: DEBUG - not in ".." as indicated by the message above! 2023-12-09 21:01:56,366: DEBUG - + tee ./dpkg_log 2023-12-09 21:01:56,367: DEBUG - + LC_ALL=C 2023-12-09 21:01:56,367: DEBUG - + dpkg --force-depends --install ./joplin-ynh-deps_2.13.8~ynh1_all.deb 2023-12-09 21:01:56,451: DEBUG - Selecting previously unselected package joplin-ynh-deps. 2023-12-09 21:01:56,756: DEBUG - (Reading database ... 88075 files and directories currently installed.) 2023-12-09 21:01:56,760: DEBUG - Preparing to unpack .../joplin-ynh-deps_2.13.8~ynh1_all.deb ... 2023-12-09 21:01:56,764: DEBUG - Unpacking joplin-ynh-deps (2.13.8~ynh1) ... 2023-12-09 21:01:56,780: DEBUG - Setting up joplin-ynh-deps (2.13.8~ynh1) ... 2023-12-09 21:01:56,800: DEBUG - + ynh_package_install --fix-broken 2023-12-09 21:01:56,800: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2023-12-09 21:01:56,801: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:01:56,932: DEBUG - + return 0 2023-12-09 21:01:56,932: DEBUG - + LC_ALL=C 2023-12-09 21:01:56,932: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:01:56,932: 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 2023-12-09 21:01:57,112: DEBUG - Reading package lists... 2023-12-09 21:01:57,373: DEBUG - Building dependency tree... 2023-12-09 21:01:57,375: DEBUG - Reading state information... 2023-12-09 21:01:57,650: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 2023-12-09 21:01:57,651: DEBUG - + [[ -n /tmp/tmp.6ltdNtPXVI ]] 2023-12-09 21:01:57,651: DEBUG - + rm --recursive --force /tmp/tmp.6ltdNtPXVI 2023-12-09 21:01:57,653: DEBUG - + ynh_package_is_installed joplin-ynh-deps 2023-12-09 21:01:57,663: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:01:57,787: DEBUG - + return 0 2023-12-09 21:01:57,787: DEBUG - + grep --count 'ok installed' 2023-12-09 21:01:57,789: DEBUG - + dpkg-query --show '--showformat=${Status}' joplin-ynh-deps 2023-12-09 21:01:57,812: DEBUG - + rm /tmp/joplin-ynh-deps.control 2023-12-09 21:01:57,815: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-12-09 21:01:57,828: DEBUG - ++ ynh_wait_dpkg_free 2023-12-09 21:01:57,956: DEBUG - ++ return 0 2023-12-09 21:01:57,956: DEBUG - ++ grep --count 'ok installed' 2023-12-09 21:01:57,958: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-12-09 21:01:57,975: DEBUG - ++ echo yes 2023-12-09 21:01:57,975: DEBUG - + local psql_installed2=yes 2023-12-09 21:01:57,976: DEBUG - + [[ yes != \y\e\s ]] 2023-12-09 21:01:57,976: DEBUG - + ynh_install_extra_app_dependencies '--repo=deb https://dl.yarnpkg.com/debian/ stable main' --key=https://dl.yarnpkg.com/debian/pubkey.gpg --package=yarn 2023-12-09 21:01:58,065: DEBUG - + name=joplin 2023-12-09 21:01:58,065: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg 2023-12-09 21:01:58,065: DEBUG - + '[' -n https://dl.yarnpkg.com/debian/pubkey.gpg ']' 2023-12-09 21:01:58,066: DEBUG - + key=--key=https://dl.yarnpkg.com/debian/pubkey.gpg 2023-12-09 21:01:58,066: DEBUG - + ynh_install_extra_repo '--repo=deb https://dl.yarnpkg.com/debian/ stable main' --key=https://dl.yarnpkg.com/debian/pubkey.gpg --priority=995 --name=joplin 2023-12-09 21:01:58,219: DEBUG - + name=joplin 2023-12-09 21:01:58,219: DEBUG - + append=0 2023-12-09 21:01:58,219: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg 2023-12-09 21:01:58,219: DEBUG - + priority=995 2023-12-09 21:01:58,220: DEBUG - + append= 2023-12-09 21:01:58,220: DEBUG - + wget_append=tee 2023-12-09 21:01:58,220: DEBUG - + repo='https://dl.yarnpkg.com/debian/ stable main' 2023-12-09 21:01:58,226: DEBUG - ++ awk '{ print $1 }' 2023-12-09 21:01:58,231: DEBUG - ++ echo 'https://dl.yarnpkg.com/debian/ stable main' 2023-12-09 21:01:58,236: DEBUG - + local uri=https://dl.yarnpkg.com/debian/ 2023-12-09 21:01:58,240: DEBUG - ++ awk '{ print $2 }' 2023-12-09 21:01:58,246: DEBUG - ++ echo 'https://dl.yarnpkg.com/debian/ stable main' 2023-12-09 21:01:58,250: DEBUG - + local suite=stable 2023-12-09 21:01:58,250: DEBUG - + local component=main 2023-12-09 21:01:58,250: DEBUG - + ynh_add_repo --uri=https://dl.yarnpkg.com/debian/ --suite=stable --component=main --name=joplin 2023-12-09 21:01:58,565: DEBUG - + name=joplin 2023-12-09 21:01:58,566: DEBUG - + append=0 2023-12-09 21:01:58,566: DEBUG - + append=tee 2023-12-09 21:01:58,567: DEBUG - + mkdir --parents /etc/apt/sources.list.d 2023-12-09 21:01:58,569: DEBUG - + tee /etc/apt/sources.list.d/joplin.list 2023-12-09 21:01:58,573: DEBUG - deb https://dl.yarnpkg.com/debian/ stable main 2023-12-09 21:01:58,574: DEBUG - + local pin=dl.yarnpkg.com/debian/ 2023-12-09 21:01:58,575: DEBUG - + pin=dl.yarnpkg.com 2023-12-09 21:01:58,575: DEBUG - + '[' -n 995 ']' 2023-12-09 21:01:58,575: DEBUG - + priority=--priority=995 2023-12-09 21:01:58,575: DEBUG - + ynh_pin_repo '--package=*' '--pin=origin "dl.yarnpkg.com"' --priority=995 --name=joplin 2023-12-09 21:01:58,730: DEBUG - + package='*' 2023-12-09 21:01:58,730: DEBUG - + priority=995 2023-12-09 21:01:58,731: DEBUG - + name=joplin 2023-12-09 21:01:58,731: DEBUG - + append=0 2023-12-09 21:01:58,731: DEBUG - + append=tee 2023-12-09 21:01:58,731: DEBUG - + [[ joplin != \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]] 2023-12-09 21:01:58,731: DEBUG - + mkdir --parents /etc/apt/preferences.d 2023-12-09 21:01:58,733: DEBUG - + tee /etc/apt/preferences.d/joplin 2023-12-09 21:01:58,735: DEBUG - Pin: origin "dl.yarnpkg.com" 2023-12-09 21:01:58,735: DEBUG - Pin-Priority: 995 2023-12-09 21:01:58,735: DEBUG - ' 2023-12-09 21:01:58,736: DEBUG - Package: * 2023-12-09 21:01:58,736: DEBUG - Pin: origin "dl.yarnpkg.com" 2023-12-09 21:01:58,736: DEBUG - Pin-Priority: 995 2023-12-09 21:01:58,736: DEBUG - 2023-12-09 21:01:58,737: DEBUG - + '[' -n https://dl.yarnpkg.com/debian/pubkey.gpg ']' 2023-12-09 21:01:58,737: DEBUG - + mkdir --parents /etc/apt/trusted.gpg.d 2023-12-09 21:01:58,740: DEBUG - + tee /etc/apt/trusted.gpg.d/joplin.gpg 2023-12-09 21:01:58,742: DEBUG - + gpg --dearmor 2023-12-09 21:01:58,744: DEBUG - + wget --timeout 900 --quiet https://dl.yarnpkg.com/debian/pubkey.gpg --output-document=- 2023-12-09 21:01:58,839: DEBUG - + ynh_package_update 2023-12-09 21:01:58,839: DEBUG - + ynh_apt update 2023-12-09 21:01:58,839: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:01:59,008: DEBUG - + return 0 2023-12-09 21:01:59,008: DEBUG - + LC_ALL=C 2023-12-09 21:01:59,009: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:01:59,009: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2023-12-09 21:01:59,159: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease 2023-12-09 21:01:59,159: DEBUG - Hit:2 http://deb.debian.org/debian bullseye InRelease 2023-12-09 21:01:59,159: DEBUG - Hit:3 http://security.debian.org/debian-security bullseye-security InRelease 2023-12-09 21:01:59,165: DEBUG - Hit:4 http://deb.debian.org/debian bullseye-updates InRelease 2023-12-09 21:01:59,194: DEBUG - Get:5 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB] 2023-12-09 21:01:59,229: DEBUG - Hit:6 https://packages.sury.org/php bullseye InRelease 2023-12-09 21:01:59,828: DEBUG - Get:7 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB] 2023-12-09 21:01:59,884: DEBUG - Get:8 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB] 2023-12-09 21:02:04,627: DEBUG - Fetched 38.9 kB in 1s (43.6 kB/s) 2023-12-09 21:02:05,430: DEBUG - Reading package lists... 2023-12-09 21:02:05,443: DEBUG - + ynh_install_app_dependencies yarn 2023-12-09 21:02:05,443: DEBUG - + local dependencies=yarn 2023-12-09 21:02:05,444: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2023-12-09 21:02:05,445: DEBUG - ++ echo yarn 2023-12-09 21:02:05,447: DEBUG - + dependencies=yarn 2023-12-09 21:02:05,447: DEBUG - + local dependencies=yarn 2023-12-09 21:02:05,447: DEBUG - ++ ynh_read_manifest --manifest_key=version 2023-12-09 21:02:05,463: DEBUG - ++ '[' '!' -e '' ']' 2023-12-09 21:02:05,464: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.json ']' 2023-12-09 21:02:05,464: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml ']' 2023-12-09 21:02:05,464: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml 2023-12-09 21:02:05,464: DEBUG - ++ grep -q '\.json$' 2023-12-09 21:02:05,465: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml 2023-12-09 21:02:05,467: DEBUG - ++ jq .version --raw-output 2023-12-09 21:02:05,467: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:05,469: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_n74_47fq/manifest.toml 2023-12-09 21:02:05,566: DEBUG - + local version=2.13.8~ynh1 2023-12-09 21:02:05,566: DEBUG - + '[' -z 2.13.8~ynh1 ']' 2023-12-09 21:02:05,566: DEBUG - + '[' 2.13.8~ynh1 == null ']' 2023-12-09 21:02:05,566: DEBUG - + local dep_app=joplin 2023-12-09 21:02:05,566: DEBUG - + [[ yarn =~ [<=>] ]] 2023-12-09 21:02:05,567: DEBUG - ++ sort -u 2023-12-09 21:02:05,569: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)' 2023-12-09 21:02:05,571: DEBUG - ++ echo yarn 2023-12-09 21:02:05,572: DEBUG - + local specific_php_version= 2023-12-09 21:02:05,572: DEBUG - + grep --quiet php 2023-12-09 21:02:05,574: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-12-09 21:02:05,584: DEBUG - ++ ynh_wait_dpkg_free 2023-12-09 21:02:05,711: DEBUG - ++ return 0 2023-12-09 21:02:05,711: DEBUG - ++ grep --count 'ok installed' 2023-12-09 21:02:05,713: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-12-09 21:02:05,729: DEBUG - ++ echo yes 2023-12-09 21:02:05,730: DEBUG - + local psql_installed=yes 2023-12-09 21:02:05,730: DEBUG - + [[ false == \t\r\u\e ]] 2023-12-09 21:02:05,730: DEBUG - + local current_dependencies= 2023-12-09 21:02:05,730: DEBUG - + ynh_package_is_installed --package=joplin-ynh-deps 2023-12-09 21:02:05,740: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:05,847: DEBUG - + return 0 2023-12-09 21:02:05,847: DEBUG - + grep --count 'ok installed' 2023-12-09 21:02:05,849: DEBUG - + dpkg-query --show '--showformat=${Status}' joplin-ynh-deps 2023-12-09 21:02:05,865: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' joplin-ynh-deps 2023-12-09 21:02:05,883: DEBUG - + current_dependencies='postgresql, postgresql-client ' 2023-12-09 21:02:05,883: DEBUG - + current_dependencies='postgresql, postgresql-client ' 2023-12-09 21:02:05,883: DEBUG - + dependencies='postgresql, postgresql-client , yarn' 2023-12-09 21:02:05,883: DEBUG - + cat 2023-12-09 21:02:05,886: DEBUG - + ynh_package_install_from_equivs /tmp/joplin-ynh-deps.control 2023-12-09 21:02:05,887: DEBUG - + local controlfile=/tmp/joplin-ynh-deps.control 2023-12-09 21:02:05,888: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-12-09 21:02:05,889: DEBUG - ++ grep '^Package: ' /tmp/joplin-ynh-deps.control 2023-12-09 21:02:05,894: DEBUG - + local pkgname=joplin-ynh-deps 2023-12-09 21:02:05,895: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-12-09 21:02:05,897: DEBUG - ++ grep '^Version: ' /tmp/joplin-ynh-deps.control 2023-12-09 21:02:05,900: DEBUG - + local pkgversion=2.13.8~ynh1 2023-12-09 21:02:05,900: DEBUG - + [[ -z joplin-ynh-deps ]] 2023-12-09 21:02:05,900: DEBUG - + [[ -z 2.13.8~ynh1 ]] 2023-12-09 21:02:05,900: DEBUG - + ynh_package_update 2023-12-09 21:02:05,900: DEBUG - + ynh_apt update 2023-12-09 21:02:05,900: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:06,012: DEBUG - + return 0 2023-12-09 21:02:06,013: DEBUG - + LC_ALL=C 2023-12-09 21:02:06,013: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:02:06,013: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2023-12-09 21:02:06,112: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease 2023-12-09 21:02:06,112: DEBUG - Hit:2 http://deb.debian.org/debian bullseye InRelease 2023-12-09 21:02:06,112: DEBUG - Hit:3 http://security.debian.org/debian-security bullseye-security InRelease 2023-12-09 21:02:06,124: DEBUG - Hit:4 http://deb.debian.org/debian bullseye-updates InRelease 2023-12-09 21:02:06,143: DEBUG - Hit:5 https://dl.yarnpkg.com/debian stable InRelease 2023-12-09 21:02:06,187: DEBUG - Hit:6 https://packages.sury.org/php bullseye InRelease 2023-12-09 21:02:10,631: DEBUG - Reading package lists... 2023-12-09 21:02:10,650: DEBUG - ++ mktemp --directory 2023-12-09 21:02:10,652: DEBUG - + local TMPDIR=/tmp/tmp.C8rqsIbu04 2023-12-09 21:02:10,652: DEBUG - + rm -f /usr/share/equivs/template/debian/compat 2023-12-09 21:02:10,654: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:10,806: DEBUG - + return 0 2023-12-09 21:02:10,806: DEBUG - + cp /tmp/joplin-ynh-deps.control /tmp/tmp.C8rqsIbu04/control 2023-12-09 21:02:10,808: DEBUG - + cd /tmp/tmp.C8rqsIbu04 2023-12-09 21:02:10,809: DEBUG - + LC_ALL=C 2023-12-09 21:02:10,809: DEBUG - + equivs-build ./control 2023-12-09 21:02:11,018: DEBUG - dpkg-buildpackage: info: source package joplin-ynh-deps 2023-12-09 21:02:11,018: DEBUG - dpkg-buildpackage: info: source version 2.13.8~ynh1 2023-12-09 21:02:11,018: DEBUG - dpkg-buildpackage: info: source distribution unstable 2023-12-09 21:02:11,019: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@maindomain.tld> 2023-12-09 21:02:11,067: DEBUG - dpkg-source --before-build . 2023-12-09 21:02:11,067: DEBUG - dpkg-buildpackage: info: host architecture amd64 2023-12-09 21:02:11,253: DEBUG - debian/rules clean 2023-12-09 21:02:11,259: DEBUG - dh clean 2023-12-09 21:02:11,399: DEBUG - dh_clean 2023-12-09 21:02:11,442: DEBUG - debian/rules binary 2023-12-09 21:02:11,444: DEBUG - dh binary 2023-12-09 21:02:11,543: DEBUG - dh_update_autotools_config 2023-12-09 21:02:11,579: DEBUG - dh_autoreconf 2023-12-09 21:02:11,651: DEBUG - create-stamp debian/debhelper-build-stamp 2023-12-09 21:02:11,651: DEBUG - dh_prep 2023-12-09 21:02:11,696: DEBUG - dh_install 2023-12-09 21:02:11,759: DEBUG - dh_installdocs 2023-12-09 21:02:11,830: DEBUG - dh_installchangelogs 2023-12-09 21:02:11,948: DEBUG - dh_perl 2023-12-09 21:02:11,999: DEBUG - dh_link 2023-12-09 21:02:12,069: DEBUG - dh_strip_nondeterminism 2023-12-09 21:02:12,152: DEBUG - dh_compress 2023-12-09 21:02:12,204: DEBUG - dh_fixperms 2023-12-09 21:02:12,355: DEBUG - dh_missing 2023-12-09 21:02:12,405: DEBUG - dh_installdeb 2023-12-09 21:02:12,452: DEBUG - dh_gencontrol 2023-12-09 21:02:12,682: DEBUG - dh_md5sums 2023-12-09 21:02:12,735: DEBUG - dh_builddeb 2023-12-09 21:02:12,774: DEBUG - dpkg-deb: building package 'joplin-ynh-deps' in '../joplin-ynh-deps_2.13.8~ynh1_all.deb'. 2023-12-09 21:02:12,800: DEBUG - dpkg-genbuildinfo --build=binary 2023-12-09 21:02:13,592: DEBUG - dpkg-genchanges --build=binary >../joplin-ynh-deps_2.13.8~ynh1_amd64.changes 2023-12-09 21:02:13,739: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included) 2023-12-09 21:02:13,744: DEBUG - dpkg-source --after-build . 2023-12-09 21:02:13,897: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included) 2023-12-09 21:02:13,900: DEBUG - 2023-12-09 21:02:13,900: DEBUG - The package has been created. 2023-12-09 21:02:13,901: DEBUG - Attention, the package has been created in the current directory, 2023-12-09 21:02:13,901: DEBUG - not in ".." as indicated by the message above! 2023-12-09 21:02:13,902: DEBUG - + tee ./dpkg_log 2023-12-09 21:02:13,904: DEBUG - + LC_ALL=C 2023-12-09 21:02:13,904: DEBUG - + dpkg --force-depends --install ./joplin-ynh-deps_2.13.8~ynh1_all.deb 2023-12-09 21:02:13,973: DEBUG - (Reading database ... 88079 files and directories currently installed.) 2023-12-09 21:02:13,977: DEBUG - Preparing to unpack .../joplin-ynh-deps_2.13.8~ynh1_all.deb ... 2023-12-09 21:02:13,983: DEBUG - Unpacking joplin-ynh-deps (2.13.8~ynh1) over (2.13.8~ynh1) ... 2023-12-09 21:02:14,008: DEBUG - dpkg: joplin-ynh-deps: dependency problems, but configuring anyway as you requested: 2023-12-09 21:02:14,008: DEBUG - joplin-ynh-deps depends on yarn; however: 2023-12-09 21:02:14,008: DEBUG - Package yarn is not installed. 2023-12-09 21:02:14,008: DEBUG - 2023-12-09 21:02:14,008: DEBUG - Setting up joplin-ynh-deps (2.13.8~ynh1) ... 2023-12-09 21:02:14,030: DEBUG - + ynh_package_install --fix-broken 2023-12-09 21:02:14,030: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2023-12-09 21:02:14,031: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:14,160: DEBUG - + return 0 2023-12-09 21:02:14,160: DEBUG - + LC_ALL=C 2023-12-09 21:02:14,160: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:02:14,160: 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 2023-12-09 21:02:14,362: DEBUG - Reading package lists... 2023-12-09 21:02:14,595: DEBUG - Building dependency tree... 2023-12-09 21:02:14,597: DEBUG - Reading state information... 2023-12-09 21:02:14,704: DEBUG - Correcting dependencies... Done 2023-12-09 21:02:14,848: DEBUG - The following additional packages will be installed: 2023-12-09 21:02:14,849: DEBUG - libjs-highlight.js libnode72 nodejs nodejs-doc yarn 2023-12-09 21:02:14,851: DEBUG - Suggested packages: 2023-12-09 21:02:14,851: DEBUG - npm 2023-12-09 21:02:14,865: DEBUG - The following NEW packages will be installed: 2023-12-09 21:02:14,867: DEBUG - libjs-highlight.js libnode72 nodejs nodejs-doc yarn 2023-12-09 21:02:15,475: DEBUG - 0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded. 2023-12-09 21:02:15,475: DEBUG - Need to get 0 B/12.3 MB of archives. 2023-12-09 21:02:15,476: DEBUG - After this operation, 55.8 MB of additional disk space will be used. 2023-12-09 21:02:15,510: DEBUG - Selecting previously unselected package libjs-highlight.js. 2023-12-09 21:02:15,562: DEBUG - (Reading database ... 88079 files and directories currently installed.) 2023-12-09 21:02:15,566: DEBUG - Preparing to unpack .../libjs-highlight.js_9.18.5+dfsg1-1_all.deb ... 2023-12-09 21:02:15,569: DEBUG - Unpacking libjs-highlight.js (9.18.5+dfsg1-1) ... 2023-12-09 21:02:15,686: DEBUG - Selecting previously unselected package libnode72:amd64. 2023-12-09 21:02:15,695: DEBUG - Preparing to unpack .../libnode72_12.22.12~dfsg-1~deb11u4_amd64.deb ... 2023-12-09 21:02:15,699: DEBUG - Unpacking libnode72:amd64 (12.22.12~dfsg-1~deb11u4) ... 2023-12-09 21:02:17,036: DEBUG - Selecting previously unselected package nodejs. 2023-12-09 21:02:17,047: DEBUG - Preparing to unpack .../nodejs_12.22.12~dfsg-1~deb11u4_amd64.deb ... 2023-12-09 21:02:17,049: DEBUG - Unpacking nodejs (12.22.12~dfsg-1~deb11u4) ... 2023-12-09 21:02:17,130: DEBUG - Selecting previously unselected package nodejs-doc. 2023-12-09 21:02:17,139: DEBUG - Preparing to unpack .../nodejs-doc_12.22.12~dfsg-1~deb11u4_all.deb ... 2023-12-09 21:02:17,142: DEBUG - Unpacking nodejs-doc (12.22.12~dfsg-1~deb11u4) ... 2023-12-09 21:02:17,529: DEBUG - Selecting previously unselected package yarn. 2023-12-09 21:02:17,536: DEBUG - Preparing to unpack .../yarn_1.22.19-1_all.deb ... 2023-12-09 21:02:17,538: DEBUG - Unpacking yarn (1.22.19-1) ... 2023-12-09 21:02:17,718: DEBUG - Setting up libnode72:amd64 (12.22.12~dfsg-1~deb11u4) ... 2023-12-09 21:02:17,723: DEBUG - Setting up libjs-highlight.js (9.18.5+dfsg1-1) ... 2023-12-09 21:02:17,728: DEBUG - Setting up yarn (1.22.19-1) ... 2023-12-09 21:02:17,733: DEBUG - Setting up nodejs (12.22.12~dfsg-1~deb11u4) ... 2023-12-09 21:02:17,745: DEBUG - update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode 2023-12-09 21:02:17,749: DEBUG - Setting up nodejs-doc (12.22.12~dfsg-1~deb11u4) ... 2023-12-09 21:02:17,754: DEBUG - Processing triggers for man-db (2.9.4-2) ... 2023-12-09 21:02:18,708: DEBUG - Processing triggers for libc-bin (2.31-13+deb11u7) ... 2023-12-09 21:02:18,877: DEBUG - Updating coolwsd systemplate 2023-12-09 21:02:19,453: DEBUG - + [[ -n /tmp/tmp.C8rqsIbu04 ]] 2023-12-09 21:02:19,454: DEBUG - + rm --recursive --force /tmp/tmp.C8rqsIbu04 2023-12-09 21:02:19,456: DEBUG - + ynh_package_is_installed joplin-ynh-deps 2023-12-09 21:02:19,470: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:19,602: DEBUG - + return 0 2023-12-09 21:02:19,602: DEBUG - + grep --count 'ok installed' 2023-12-09 21:02:19,603: DEBUG - + dpkg-query --show '--showformat=${Status}' joplin-ynh-deps 2023-12-09 21:02:19,627: DEBUG - + rm /tmp/joplin-ynh-deps.control 2023-12-09 21:02:19,629: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-12-09 21:02:19,644: DEBUG - ++ ynh_wait_dpkg_free 2023-12-09 21:02:19,802: DEBUG - ++ return 0 2023-12-09 21:02:19,803: DEBUG - ++ grep --count 'ok installed' 2023-12-09 21:02:19,804: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-12-09 21:02:19,825: DEBUG - ++ echo yes 2023-12-09 21:02:19,826: DEBUG - + local psql_installed2=yes 2023-12-09 21:02:19,826: DEBUG - + [[ yes != \y\e\s ]] 2023-12-09 21:02:19,826: DEBUG - ++ apt-mark showauto yarn 2023-12-09 21:02:20,087: DEBUG - + local apps_auto_installed=yarn 2023-12-09 21:02:20,087: DEBUG - + ynh_package_install yarn 2023-12-09 21:02:20,087: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install yarn 2023-12-09 21:02:20,087: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:20,194: DEBUG - + return 0 2023-12-09 21:02:20,194: DEBUG - + LC_ALL=C 2023-12-09 21:02:20,195: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:02:20,195: 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 yarn 2023-12-09 21:02:20,218: DEBUG - Reading package lists... 2023-12-09 21:02:20,526: DEBUG - Building dependency tree... 2023-12-09 21:02:20,527: DEBUG - Reading state information... 2023-12-09 21:02:20,762: DEBUG - yarn is already the newest version (1.22.19-1). 2023-12-09 21:02:20,762: DEBUG - yarn set to manually installed. 2023-12-09 21:02:20,763: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 2023-12-09 21:02:20,764: DEBUG - + '[' -z yarn ']' 2023-12-09 21:02:20,764: DEBUG - + apt-mark auto yarn 2023-12-09 21:02:21,037: DEBUG - yarn set to automatically installed. 2023-12-09 21:02:21,039: DEBUG - + ynh_remove_extra_repo --name=joplin 2023-12-09 21:02:21,049: DEBUG - + name=joplin 2023-12-09 21:02:21,049: DEBUG - + ynh_secure_remove --file=/etc/apt/sources.list.d/joplin.list 2023-12-09 21:02:21,069: DEBUG - + [[ joplin == \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]] 2023-12-09 21:02:21,070: DEBUG - + ynh_secure_remove /etc/apt/preferences.d/joplin 2023-12-09 21:02:21,092: DEBUG - + '[' -e /etc/apt/trusted.gpg.d/joplin.gpg ']' 2023-12-09 21:02:21,092: DEBUG - + ynh_secure_remove --file=/etc/apt/trusted.gpg.d/joplin.gpg 2023-12-09 21:02:21,114: DEBUG - + '[' -e /etc/apt/trusted.gpg.d/joplin.asc ']' 2023-12-09 21:02:21,115: DEBUG - + ynh_package_update 2023-12-09 21:02:21,115: DEBUG - + ynh_apt update 2023-12-09 21:02:21,115: DEBUG - + ynh_wait_dpkg_free 2023-12-09 21:02:21,245: DEBUG - + return 0 2023-12-09 21:02:21,245: DEBUG - + LC_ALL=C 2023-12-09 21:02:21,245: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-12-09 21:02:21,245: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2023-12-09 21:02:21,355: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease 2023-12-09 21:02:21,355: DEBUG - Hit:2 http://deb.debian.org/debian bullseye InRelease 2023-12-09 21:02:21,356: DEBUG - Hit:3 http://security.debian.org/debian-security bullseye-security InRelease 2023-12-09 21:02:21,371: DEBUG - Hit:4 http://deb.debian.org/debian bullseye-updates InRelease 2023-12-09 21:02:21,424: DEBUG - Hit:5 https://packages.sury.org/php bullseye InRelease 2023-12-09 21:02:26,179: DEBUG - Reading package lists... 2023-12-09 21:02:26,194: DEBUG - + ynh_exit_properly 2023-12-09 21:02:26,195: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]] 2023-12-09 21:02:27,196: INFO - Provisioning database... 2023-12-09 21:02:27,400: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database" 7>&1']' 2023-12-09 21:02:27,407: DEBUG - + source /usr/share/yunohost/helpers 2023-12-09 21:02:27,409: DEBUG - +++ grep xtrace 2023-12-09 21:02:27,410: DEBUG - +++ set +o 2023-12-09 21:02:27,411: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2023-12-09 21:02:27,411: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2023-12-09 21:02:27,434: DEBUG - + ynh_abort_if_errors 2023-12-09 21:02:27,435: DEBUG - + trap ynh_exit_properly EXIT 2023-12-09 21:02:27,435: DEBUG - + ynh_psql_create_user joplin eea3c4f6ac9ba8f01777d404 2023-12-09 21:02:27,435: DEBUG - + local user=joplin 2023-12-09 21:02:27,436: DEBUG - + local pwd=********** 2023-12-09 21:02:27,436: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE USER joplin WITH ENCRYPTED PASSWORD '\''**********'\''' 2023-12-09 21:02:27,452: DEBUG - + database= 2023-12-09 21:02:27,452: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:27,453: DEBUG - ++ cat /etc/yunohost/psql 2023-12-09 21:02:27,455: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** 2023-12-09 21:02:27,494: DEBUG - + database= 2023-12-09 21:02:27,494: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql '' 2023-12-09 21:02:27,576: DEBUG - CREATE ROLE 2023-12-09 21:02:27,580: DEBUG - + ynh_psql_create_db joplin joplin 2023-12-09 21:02:27,580: DEBUG - + local db=joplin 2023-12-09 21:02:27,580: DEBUG - + local user=joplin 2023-12-09 21:02:27,581: DEBUG - + local 'sql=CREATE DATABASE joplin;' 2023-12-09 21:02:27,581: DEBUG - + '[' -n joplin ']' 2023-12-09 21:02:27,581: DEBUG - + sql+='ALTER DATABASE joplin OWNER TO joplin;' 2023-12-09 21:02:27,581: DEBUG - + sql+='GRANT ALL PRIVILEGES ON DATABASE joplin TO joplin WITH GRANT OPTION;' 2023-12-09 21:02:27,581: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE DATABASE joplin;ALTER DATABASE joplin OWNER TO joplin;GRANT ALL PRIVILEGES ON DATABASE joplin TO joplin WITH GRANT OPTION;' 2023-12-09 21:02:27,602: DEBUG - + database= 2023-12-09 21:02:27,602: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:27,602: DEBUG - ++ cat /etc/yunohost/psql 2023-12-09 21:02:27,604: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** 2023-12-09 21:02:27,645: DEBUG - + database= 2023-12-09 21:02:27,646: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql '' 2023-12-09 21:02:27,870: DEBUG - CREATE DATABASE 2023-12-09 21:02:27,871: DEBUG - ALTER DATABASE 2023-12-09 21:02:27,875: DEBUG - GRANT 2023-12-09 21:02:27,877: DEBUG - + ynh_exit_properly 2023-12-09 21:02:27,878: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]] 2023-12-09 21:02:28,896: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 2023-12-09 21:02:28,901: DEBUG - + source _common.sh 2023-12-09 21:02:28,902: DEBUG - ++ nodejs_version=18 2023-12-09 21:02:28,902: DEBUG - + source /usr/share/yunohost/helpers 2023-12-09 21:02:28,903: DEBUG - +++ grep xtrace 2023-12-09 21:02:28,904: DEBUG - +++ set +o 2023-12-09 21:02:28,905: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2023-12-09 21:02:28,905: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2023-12-09 21:02:29,001: DEBUG - + ynh_exec_warn_less ynh_install_nodejs --nodejs_version=18 2023-12-09 21:02:29,001: DEBUG - + [[ 2 -eq 1 ]] 2023-12-09 21:02:29,001: DEBUG - + ynh_install_nodejs --nodejs_version=18 2023-12-09 21:02:29,002: INFO - [++++++..............] > Installing dependencies... 2023-12-09 21:02:29,013: DEBUG - + mkdir --parents /opt/node_n 2023-12-09 21:02:29,015: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:29,016: DEBUG - ++ sed s@/usr/local/bin:@@ 2023-12-09 21:02:29,018: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:29,019: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:29,019: DEBUG - + test -x /usr/bin/node 2023-12-09 21:02:29,020: DEBUG - + mv /usr/bin/node /usr/bin/node_n 2023-12-09 21:02:29,022: DEBUG - + test -x /usr/bin/npm 2023-12-09 21:02:29,022: DEBUG - + mkdir -p /opt/node_n/bin/ 2023-12-09 21:02:29,023: DEBUG - + cp /usr/share/yunohost/helpers.d/vendor/n/n /opt/node_n/bin/n 2023-12-09 21:02:29,027: DEBUG - + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n 2023-12-09 21:02:29,089: DEBUG - + sed --in-place 's^N_PREFIX=${N_PREFIX-.*}$N_PREFIX=${N_PREFIX-/opt/node_n}g' /opt/node_n/bin/n 2023-12-09 21:02:29,092: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:29,092: DEBUG - + test -x /usr/bin/node_n 2023-12-09 21:02:29,092: DEBUG - + mv /usr/bin/node_n /usr/bin/node 2023-12-09 21:02:29,094: DEBUG - + test -x /usr/bin/npm_n 2023-12-09 21:02:29,094: DEBUG - ++ uname --machine 2023-12-09 21:02:29,096: DEBUG - + uname=x86_64 2023-12-09 21:02:29,096: DEBUG - + [[ x86_64 =~ aarch64 ]] 2023-12-09 21:02:29,096: DEBUG - + [[ x86_64 =~ arm64 ]] 2023-12-09 21:02:29,096: DEBUG - + n 18 2023-12-09 21:02:29,190: DEBUG - installing : node-v18.19.0 2023-12-09 21:02:29,244: DEBUG - mkdir : /opt/node_n/n/versions/node/18.19.0 2023-12-09 21:02:29,254: DEBUG - fetch : https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.xz 2023-12-09 21:02:33,497: DEBUG - copying : node/18.19.0 2023-12-09 21:02:35,090: DEBUG - installed : v18.19.0 (with npm 10.2.3) 2023-12-09 21:02:35,091: DEBUG - ++ tail --lines=1 2023-12-09 21:02:35,093: DEBUG - ++ sort --version-sort 2023-12-09 21:02:35,094: DEBUG - ++ find /opt/node_n/n/versions/node/18 /opt/node_n/n/versions/node/18.19.0 -maxdepth 0 2023-12-09 21:02:35,097: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/18.19.0 2023-12-09 21:02:35,098: DEBUG - ++ basename /opt/node_n/n/versions/node/18.19.0 2023-12-09 21:02:35,100: DEBUG - + real_nodejs_version=18.19.0 2023-12-09 21:02:35,100: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/18 ']' 2023-12-09 21:02:35,101: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/18.19.0 /opt/node_n/n/versions/node/18 2023-12-09 21:02:35,102: DEBUG - + tee --append /opt/node_n/ynh_app_version 2023-12-09 21:02:35,103: DEBUG - + echo joplin:18 2023-12-09 21:02:35,104: DEBUG - joplin:18 2023-12-09 21:02:35,105: DEBUG - + ynh_app_setting_set --app=joplin --key=nodejs_version --value=18 2023-12-09 21:02:35,106: DEBUG - + local _globalapp=joplin 2023-12-09 21:02:35,178: DEBUG - + app=joplin 2023-12-09 21:02:35,178: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:35,178: DEBUG - + ynh_app_setting set joplin nodejs_version 18 2023-12-09 21:02:35,286: DEBUG - + ynh_cron_upgrade_node 2023-12-09 21:02:35,286: DEBUG - + cat 2023-12-09 21:02:35,287: DEBUG - + chmod +x /opt/node_n/node_update.sh 2023-12-09 21:02:35,289: DEBUG - + cat 2023-12-09 21:02:35,290: DEBUG - + chmod +x /etc/cron.daily/node_update 2023-12-09 21:02:35,291: DEBUG - + ynh_use_nodejs 2023-12-09 21:02:35,292: DEBUG - ++ ynh_app_setting_get --app=joplin --key=nodejs_version 2023-12-09 21:02:35,292: DEBUG - ++ local _globalapp=joplin 2023-12-09 21:02:35,328: DEBUG - ++ app=joplin 2023-12-09 21:02:35,328: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:35,329: DEBUG - ++ ynh_app_setting get joplin nodejs_version 2023-12-09 21:02:35,381: DEBUG - + nodejs_version=18 2023-12-09 21:02:35,382: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/18/bin 2023-12-09 21:02:35,382: DEBUG - + shopt -s expand_aliases 2023-12-09 21:02:35,382: DEBUG - + ynh_node=/opt/node_n/n/versions/node/18/bin/node 2023-12-09 21:02:35,382: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/18/bin/node 2023-12-09 21:02:35,382: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/18/bin/npm 2023-12-09 21:02:35,382: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/18/bin/npm 2023-12-09 21:02:35,382: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\8\/\b\i\n* ]] 2023-12-09 21:02:35,382: DEBUG - + PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:35,382: DEBUG - + node_PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:35,383: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:35,383: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:35,444: DEBUG - + ynh_setup_source --dest_dir=/var/www/joplin 2023-12-09 21:02:35,445: INFO - [######+.............] > Setting up source files... 2023-12-09 21:02:35,474: DEBUG - + keep= 2023-12-09 21:02:35,474: DEBUG - + full_replace=0 2023-12-09 21:02:35,474: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:35,475: DEBUG - + jq -e .resources.sources 2023-12-09 21:02:35,475: DEBUG - + toml_to_json 2023-12-09 21:02:35,476: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:35,476: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:35,577: DEBUG - + source_id=main 2023-12-09 21:02:35,578: DEBUG - ++ jq '.resources.sources["main"]' 2023-12-09 21:02:35,580: DEBUG - ++ toml_to_json 2023-12-09 21:02:35,580: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:35,581: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:35,663: DEBUG - + local 'sources_json={ 2023-12-09 21:02:35,663: DEBUG - "url": "https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz", 2023-12-09 21:02:35,663: DEBUG - "sha256": "4ea9ab601ba5d2edf6fb452638ba10404544e59ad05ff428db31764592ab012c", 2023-12-09 21:02:35,663: DEBUG - "autoupdate": { 2023-12-09 21:02:35,664: DEBUG - "strategy": "latest_github_tag" 2023-12-09 21:02:35,664: DEBUG - } 2023-12-09 21:02:35,664: DEBUG - }' 2023-12-09 21:02:35,664: DEBUG - + jq -re .url 2023-12-09 21:02:35,703: DEBUG - https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz 2023-12-09 21:02:35,703: DEBUG - + local arch_prefix= 2023-12-09 21:02:35,704: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:35,705: DEBUG - ++ jq -r .url 2023-12-09 21:02:35,747: DEBUG - + local src_url=https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz 2023-12-09 21:02:35,748: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:35,750: DEBUG - ++ jq -r .sha256 2023-12-09 21:02:35,794: DEBUG - + local src_sum=4ea9ab601ba5d2edf6fb452638ba10404544e59ad05ff428db31764592ab012c 2023-12-09 21:02:35,794: DEBUG - + local src_sumprg=sha256sum 2023-12-09 21:02:35,795: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:35,796: DEBUG - ++ jq -r .format 2023-12-09 21:02:35,848: DEBUG - + local src_format= 2023-12-09 21:02:35,849: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:35,851: DEBUG - ++ jq -r .in_subdir 2023-12-09 21:02:35,901: DEBUG - + local src_in_subdir= 2023-12-09 21:02:35,902: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:35,904: DEBUG - ++ jq -r .extract 2023-12-09 21:02:35,949: DEBUG - + local src_extract= 2023-12-09 21:02:35,950: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:35,951: DEBUG - ++ jq -r .platform 2023-12-09 21:02:35,996: DEBUG - + local src_platform= 2023-12-09 21:02:35,997: DEBUG - ++ sed 's/^null$//' 2023-12-09 21:02:36,000: DEBUG - ++ jq -r .rename 2023-12-09 21:02:36,050: DEBUG - + local src_rename= 2023-12-09 21:02:36,050: DEBUG - + [[ -n https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz ]] 2023-12-09 21:02:36,050: DEBUG - + [[ -n 4ea9ab601ba5d2edf6fb452638ba10404544e59ad05ff428db31764592ab012c ]] 2023-12-09 21:02:36,050: DEBUG - + [[ -z '' ]] 2023-12-09 21:02:36,050: DEBUG - + [[ https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz =~ ^.*\.zip$ ]] 2023-12-09 21:02:36,051: DEBUG - + [[ https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz =~ ^.*/zipball/.*$ ]] 2023-12-09 21:02:36,051: DEBUG - + [[ https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz =~ ^.*\.tar\.gz$ ]] 2023-12-09 21:02:36,051: DEBUG - + src_format=tar.gz 2023-12-09 21:02:36,051: DEBUG - + src_sumprg=sha256sum 2023-12-09 21:02:36,051: DEBUG - + src_in_subdir=true 2023-12-09 21:02:36,051: DEBUG - + src_format=tar.gz 2023-12-09 21:02:36,052: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2023-12-09 21:02:36,054: DEBUG - ++ echo tar.gz 2023-12-09 21:02:36,055: DEBUG - + src_format=tar.gz 2023-12-09 21:02:36,055: DEBUG - + src_extract=true 2023-12-09 21:02:36,055: DEBUG - + [[ true != \t\r\u\e ]] 2023-12-09 21:02:36,055: DEBUG - + local local_src=/opt/yunohost-apps-src/joplin/main 2023-12-09 21:02:36,056: DEBUG - ++ dirname /var/cache/yunohost/download/joplin/main 2023-12-09 21:02:36,058: DEBUG - + mkdir -p /var/cache/yunohost/download/joplin 2023-12-09 21:02:36,060: DEBUG - + src_filename=/var/cache/yunohost/download/joplin/main 2023-12-09 21:02:36,060: DEBUG - + '[' tar.gz = docker ']' 2023-12-09 21:02:36,060: DEBUG - + test -e /opt/yunohost-apps-src/joplin/main 2023-12-09 21:02:36,060: DEBUG - + '[' -n https://github.com/laurent22/joplin/archive/refs/tags/v2.13.8.tar.gz ']' 2023-12-09 21:02:36,061: DEBUG - + '[' -e /var/cache/yunohost/download/joplin/main ']' 2023-12-09 21:02:36,061: DEBUG - + sha256sum --check --status 2023-12-09 21:02:36,786: DEBUG - + '[' '!' -e /var/cache/yunohost/download/joplin/main ']' 2023-12-09 21:02:36,787: DEBUG - + sha256sum --check --status 2023-12-09 21:02:37,494: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2023-12-09 21:02:37,495: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:37,496: DEBUG - + mkdir --parents /var/www/joplin 2023-12-09 21:02:37,498: DEBUG - + '[' -n /var/www/joplin ']' 2023-12-09 21:02:37,498: DEBUG - + '[' /var/www/joplin == /var/www/joplin ']' 2023-12-09 21:02:37,498: DEBUG - + _ynh_apply_default_permissions /var/www/joplin 2023-12-09 21:02:37,498: DEBUG - + local target=/var/www/joplin 2023-12-09 21:02:37,499: DEBUG - ++ tr -d '<>= ' 2023-12-09 21:02:37,500: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-12-09 21:02:37,516: DEBUG - ++ '[' '!' -e '' ']' 2023-12-09 21:02:37,516: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.json ']' 2023-12-09 21:02:37,516: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml ']' 2023-12-09 21:02:37,516: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:37,516: DEBUG - ++ grep -q '\.json$' 2023-12-09 21:02:37,517: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:37,519: DEBUG - ++ jq .requirements.yunohost --raw-output 2023-12-09 21:02:37,522: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:37,525: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:37,605: DEBUG - + local ynh_requirement=null 2023-12-09 21:02:37,605: DEBUG - + dpkg --compare-versions 2.0 ge 2 2023-12-09 21:02:37,609: DEBUG - + chmod o-rwx /var/www/joplin 2023-12-09 21:02:37,610: DEBUG - + chmod g-w /var/www/joplin 2023-12-09 21:02:37,612: DEBUG - + chown -R root:root /var/www/joplin 2023-12-09 21:02:37,614: DEBUG - + ynh_system_user_exists joplin 2023-12-09 21:02:37,623: DEBUG - + getent passwd joplin 2023-12-09 21:02:37,626: DEBUG - + chown joplin:joplin /var/www/joplin 2023-12-09 21:02:37,630: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-12-09 21:02:37,632: DEBUG - + echo /var/www/joplin 2023-12-09 21:02:37,633: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:37,633: DEBUG - + [[ true == \f\a\l\s\e ]] 2023-12-09 21:02:37,634: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]] 2023-12-09 21:02:37,634: DEBUG - + [[ tar.gz == \z\i\p ]] 2023-12-09 21:02:37,634: DEBUG - + local strip= 2023-12-09 21:02:37,634: DEBUG - + '[' true '!=' false ']' 2023-12-09 21:02:37,634: DEBUG - + '[' true == true ']' 2023-12-09 21:02:37,634: DEBUG - + local sub_dirs=1 2023-12-09 21:02:37,634: DEBUG - + strip='--strip-components 1' 2023-12-09 21:02:37,634: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2023-12-09 21:02:37,634: DEBUG - + tar --extract --file=/var/cache/yunohost/download/joplin/main --directory=/var/www/joplin --strip-components 1 2023-12-09 21:02:39,776: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/joplin/main 2023-12-09 21:02:39,803: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/sources/patches/ ']' 2023-12-09 21:02:39,804: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/sources/patches/ 2023-12-09 21:02:39,805: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/sources/patches 2023-12-09 21:02:39,806: DEBUG - ++ wc --lines 2023-12-09 21:02:39,807: DEBUG - ++ find /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/sources/patches -type f -name 'main-*.patch' 2023-12-09 21:02:39,810: DEBUG - + (( 0 > 0 )) 2023-12-09 21:02:39,810: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/sources/extra_files/main 2023-12-09 21:02:39,810: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:39,811: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2023-12-09 21:02:39,812: DEBUG - + chown -R joplin:www-data /var/www/joplin 2023-12-09 21:02:39,924: DEBUG - + ynh_add_nginx_config 2023-12-09 21:02:39,925: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:39,925: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:39,926: INFO - [#######+............] > Adding system configurations related to joplin... 2023-12-09 21:02:39,958: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/nginx.conf ']' 2023-12-09 21:02:39,958: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/nginx.conf 2023-12-09 21:02:39,958: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:39,968: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf 2023-12-09 21:02:39,968: DEBUG - ++ ynh_app_setting_get --app=joplin --key=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf 2023-12-09 21:02:39,969: DEBUG - ++ local _globalapp=joplin 2023-12-09 21:02:39,999: DEBUG - ++ app=joplin 2023-12-09 21:02:40,000: DEBUG - ++ [[ checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:40,000: DEBUG - ++ ynh_app_setting get joplin checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf 2023-12-09 21:02:40,058: DEBUG - + local checksum_value= 2023-12-09 21:02:40,058: DEBUG - + backup_file_checksum= 2023-12-09 21:02:40,059: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:40,059: DEBUG - + touch /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,061: DEBUG - + chown root:root /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,063: DEBUG - + chmod 640 /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,064: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/nginx.conf /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,068: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,068: DEBUG - + local target=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,069: DEBUG - ++ tr -d '<>= ' 2023-12-09 21:02:40,071: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-12-09 21:02:40,099: DEBUG - ++ '[' '!' -e '' ']' 2023-12-09 21:02:40,099: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.json ']' 2023-12-09 21:02:40,100: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml ']' 2023-12-09 21:02:40,100: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:40,100: DEBUG - ++ grep -q '\.json$' 2023-12-09 21:02:40,102: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:40,105: DEBUG - ++ jq .requirements.yunohost --raw-output 2023-12-09 21:02:40,106: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:40,114: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:40,208: DEBUG - + local ynh_requirement=null 2023-12-09 21:02:40,208: DEBUG - + dpkg --compare-versions 2.0 ge 2 2023-12-09 21:02:40,210: DEBUG - + chmod o-rwx /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,211: DEBUG - + chmod g-w /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,212: DEBUG - + chown -R root:root /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,214: DEBUG - + ynh_system_user_exists joplin 2023-12-09 21:02:40,239: DEBUG - + getent passwd joplin 2023-12-09 21:02:40,246: DEBUG - + chown joplin:joplin /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,253: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-12-09 21:02:40,256: DEBUG - + echo /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,262: DEBUG - + chmod 400 /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,267: DEBUG - + chown root:root /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,275: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,317: DEBUG - + test -n / 2023-12-09 21:02:40,318: DEBUG - + local path_url_slash_less= 2023-12-09 21:02:40,318: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,449: DEBUG - + sed --in-place $'s\001__PATH__/\001/\001g' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,451: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,523: DEBUG - + sed --in-place $'s\001__PATH__\001/\001g' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,527: DEBUG - + test -n joplin 2023-12-09 21:02:40,527: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=joplin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,592: DEBUG - + sed --in-place $'s\001__NAME__\001joplin\001g' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,595: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joplin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,669: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001joplin\001g' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,671: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=joplin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,735: DEBUG - + sed --in-place $'s\001__USER__\001joplin\001g' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,737: DEBUG - + test -n '' 2023-12-09 21:02:40,737: DEBUG - + dpkg --compare-versions 2.0 lt 2 2023-12-09 21:02:40,739: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:40,739: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,809: DEBUG - + sed --in-place $'s\001__YNH_NODE_LOAD_PATH__\001PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\001g' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,812: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-12-09 21:02:40,814: DEBUG - ++ sort --unique 2023-12-09 21:02:40,817: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,820: DEBUG - + uniques_vars=('port') 2023-12-09 21:02:40,820: DEBUG - + local delimit=@ 2023-12-09 21:02:40,820: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:40,820: DEBUG - + [[ -v port ]] 2023-12-09 21:02:40,821: DEBUG - + match_string=__PORT__ 2023-12-09 21:02:40,821: DEBUG - + match_string=__PORT__ 2023-12-09 21:02:40,821: DEBUG - + replace_string=22300 2023-12-09 21:02:40,821: DEBUG - + replace_string=22300 2023-12-09 21:02:40,821: DEBUG - + replace_string=22300 2023-12-09 21:02:40,822: DEBUG - + sed --in-place s@__PORT__@22300@g /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,824: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,825: DEBUG - + update_only=0 2023-12-09 21:02:40,847: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf 2023-12-09 21:02:40,848: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-12-09 21:02:40,849: DEBUG - ++ md5sum /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:40,852: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf --value=b38b344d831f4803be2d1b9920d50973 2023-12-09 21:02:40,852: DEBUG - + local _globalapp=joplin 2023-12-09 21:02:40,922: DEBUG - + app=joplin 2023-12-09 21:02:40,923: DEBUG - + [[ checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:40,923: DEBUG - + ynh_app_setting set joplin checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf b38b344d831f4803be2d1b9920d50973 2023-12-09 21:02:40,988: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:40,988: DEBUG - + unset backup_file_checksum 2023-12-09 21:02:40,988: DEBUG - + '[' / '!=' / ']' 2023-12-09 21:02:40,988: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:41,066: DEBUG - + sed --in-place 's^#root_path_onlyg' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:41,068: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:41,069: DEBUG - + update_only=0 2023-12-09 21:02:41,088: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf 2023-12-09 21:02:41,090: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-12-09 21:02:41,091: DEBUG - ++ md5sum /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf 2023-12-09 21:02:41,094: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf --value=b38b344d831f4803be2d1b9920d50973 2023-12-09 21:02:41,094: DEBUG - + local _globalapp=joplin 2023-12-09 21:02:41,157: DEBUG - + app=joplin 2023-12-09 21:02:41,157: DEBUG - + [[ checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:41,157: DEBUG - + ynh_app_setting set joplin checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf b38b344d831f4803be2d1b9920d50973 2023-12-09 21:02:41,240: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:41,240: DEBUG - + unset backup_file_checksum 2023-12-09 21:02:41,240: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2023-12-09 21:02:41,355: DEBUG - + service_name=nginx 2023-12-09 21:02:41,356: DEBUG - + action=reload 2023-12-09 21:02:41,356: DEBUG - + line_match= 2023-12-09 21:02:41,356: DEBUG - + length=20 2023-12-09 21:02:41,356: DEBUG - + log_path=/var/log/nginx/nginx.log 2023-12-09 21:02:41,356: DEBUG - + timeout=300 2023-12-09 21:02:41,356: DEBUG - + '[' reload == stop ']' 2023-12-09 21:02:41,357: DEBUG - + '[' reload == reload ']' 2023-12-09 21:02:41,357: DEBUG - + action=reload-or-restart 2023-12-09 21:02:41,358: DEBUG - ++ cut -d+ -f1 2023-12-09 21:02:41,360: DEBUG - ++ date --utc --rfc-3339=seconds 2023-12-09 21:02:41,363: DEBUG - + local 'time_start=2023-12-09 21:02:41 UTC' 2023-12-09 21:02:41,363: DEBUG - + systemctl reload-or-restart nginx 2023-12-09 21:02:41,646: DEBUG - + ynh_add_systemd_config 2023-12-09 21:02:41,647: DEBUG - + service=joplin 2023-12-09 21:02:41,647: DEBUG - + template=systemd.service 2023-12-09 21:02:41,647: DEBUG - + ynh_add_config --template=systemd.service --destination=/etc/systemd/system/joplin.service 2023-12-09 21:02:41,702: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/systemd.service ']' 2023-12-09 21:02:41,702: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/systemd.service 2023-12-09 21:02:41,702: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/joplin.service 2023-12-09 21:02:41,716: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_joplin.service 2023-12-09 21:02:41,717: DEBUG - ++ ynh_app_setting_get --app=joplin --key=checksum__etc_systemd_system_joplin.service 2023-12-09 21:02:41,717: DEBUG - ++ local _globalapp=joplin 2023-12-09 21:02:41,753: DEBUG - ++ app=joplin 2023-12-09 21:02:41,753: DEBUG - ++ [[ checksum__etc_systemd_system_joplin.service =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:41,753: DEBUG - ++ ynh_app_setting get joplin checksum__etc_systemd_system_joplin.service 2023-12-09 21:02:41,828: DEBUG - + local checksum_value= 2023-12-09 21:02:41,828: DEBUG - + backup_file_checksum= 2023-12-09 21:02:41,829: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:41,829: DEBUG - + touch /etc/systemd/system/joplin.service 2023-12-09 21:02:41,831: DEBUG - + chown root:root /etc/systemd/system/joplin.service 2023-12-09 21:02:41,833: DEBUG - + chmod 640 /etc/systemd/system/joplin.service 2023-12-09 21:02:41,835: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/systemd.service /etc/systemd/system/joplin.service 2023-12-09 21:02:41,838: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/joplin.service 2023-12-09 21:02:41,839: DEBUG - + local target=/etc/systemd/system/joplin.service 2023-12-09 21:02:41,840: DEBUG - ++ tr -d '<>= ' 2023-12-09 21:02:41,842: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-12-09 21:02:41,871: DEBUG - ++ '[' '!' -e '' ']' 2023-12-09 21:02:41,872: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.json ']' 2023-12-09 21:02:41,872: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml ']' 2023-12-09 21:02:41,872: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:41,872: DEBUG - ++ grep -q '\.json$' 2023-12-09 21:02:41,874: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:41,875: DEBUG - ++ jq .requirements.yunohost --raw-output 2023-12-09 21:02:41,878: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:41,882: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:41,972: DEBUG - + local ynh_requirement=null 2023-12-09 21:02:41,972: DEBUG - + dpkg --compare-versions 2.0 ge 2 2023-12-09 21:02:41,973: DEBUG - + chmod o-rwx /etc/systemd/system/joplin.service 2023-12-09 21:02:41,975: DEBUG - + chmod g-w /etc/systemd/system/joplin.service 2023-12-09 21:02:41,976: DEBUG - + chown -R root:root /etc/systemd/system/joplin.service 2023-12-09 21:02:41,977: DEBUG - + ynh_system_user_exists joplin 2023-12-09 21:02:41,989: DEBUG - + getent passwd joplin 2023-12-09 21:02:41,991: DEBUG - + chown joplin:joplin /etc/systemd/system/joplin.service 2023-12-09 21:02:41,992: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-12-09 21:02:41,995: DEBUG - + echo /etc/systemd/system/joplin.service 2023-12-09 21:02:41,996: DEBUG - + chmod 400 /etc/systemd/system/joplin.service 2023-12-09 21:02:41,997: DEBUG - + chown root:root /etc/systemd/system/joplin.service 2023-12-09 21:02:41,999: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,011: DEBUG - + test -n / 2023-12-09 21:02:42,011: DEBUG - + local path_url_slash_less= 2023-12-09 21:02:42,011: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,074: DEBUG - + sed --in-place $'s\001__PATH__/\001/\001g' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,077: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,150: DEBUG - + sed --in-place $'s\001__PATH__\001/\001g' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,152: DEBUG - + test -n joplin 2023-12-09 21:02:42,152: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=joplin --target_file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,228: DEBUG - + sed --in-place $'s\001__NAME__\001joplin\001g' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,233: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joplin --target_file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,388: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001joplin\001g' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,391: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=joplin --target_file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,449: DEBUG - + sed --in-place $'s\001__USER__\001joplin\001g' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,451: DEBUG - + test -n '' 2023-12-09 21:02:42,451: DEBUG - + dpkg --compare-versions 2.0 lt 2 2023-12-09 21:02:42,453: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:42,453: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,512: DEBUG - + sed --in-place $'s\001__YNH_NODE_LOAD_PATH__\001PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\001g' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,515: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-12-09 21:02:42,517: DEBUG - ++ sort --unique 2023-12-09 21:02:42,519: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/joplin.service 2023-12-09 21:02:42,521: DEBUG - + uniques_vars=('app' 'db_name' 'db_pwd' 'db_user' 'domain' 'install_dir' 'port') 2023-12-09 21:02:42,522: DEBUG - + local delimit=@ 2023-12-09 21:02:42,522: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,522: DEBUG - + [[ -v app ]] 2023-12-09 21:02:42,522: DEBUG - + match_string=__APP__ 2023-12-09 21:02:42,522: DEBUG - + match_string=__APP__ 2023-12-09 21:02:42,522: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,522: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,522: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,522: DEBUG - + sed --in-place s@__APP__@joplin@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,524: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,524: DEBUG - + [[ -v db_name ]] 2023-12-09 21:02:42,524: DEBUG - + match_string=__DB_NAME__ 2023-12-09 21:02:42,525: DEBUG - + match_string=__DB_NAME__ 2023-12-09 21:02:42,525: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,525: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,525: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,525: DEBUG - + sed --in-place s@__DB_NAME__@joplin@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,527: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,527: DEBUG - + [[ -v db_pwd ]] 2023-12-09 21:02:42,527: DEBUG - + match_string=__DB_PWD__ 2023-12-09 21:02:42,527: DEBUG - + match_string=__DB_PWD__ 2023-12-09 21:02:42,528: DEBUG - + replace_string=********** 2023-12-09 21:02:42,528: DEBUG - + replace_string=********** 2023-12-09 21:02:42,528: DEBUG - + replace_string=********** 2023-12-09 21:02:42,528: DEBUG - + sed --in-place s@__DB_PWD__@**********@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,530: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,530: DEBUG - + [[ -v db_user ]] 2023-12-09 21:02:42,530: DEBUG - + match_string=__DB_USER__ 2023-12-09 21:02:42,530: DEBUG - + match_string=__DB_USER__ 2023-12-09 21:02:42,530: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,531: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,531: DEBUG - + replace_string=joplin 2023-12-09 21:02:42,531: DEBUG - + sed --in-place s@__DB_USER__@joplin@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,533: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,533: DEBUG - + [[ -v domain ]] 2023-12-09 21:02:42,533: DEBUG - + match_string=__DOMAIN__ 2023-12-09 21:02:42,533: DEBUG - + match_string=__DOMAIN__ 2023-12-09 21:02:42,533: DEBUG - + replace_string=notes.maindomain.tld 2023-12-09 21:02:42,533: DEBUG - + replace_string=notes.maindomain.tld 2023-12-09 21:02:42,533: DEBUG - + replace_string=notes.maindomain.tld 2023-12-09 21:02:42,533: DEBUG - + sed --in-place s@__DOMAIN__@notes.maindomain.tld@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,535: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,535: DEBUG - + [[ -v install_dir ]] 2023-12-09 21:02:42,535: DEBUG - + match_string=__INSTALL_DIR__ 2023-12-09 21:02:42,535: DEBUG - + match_string=__INSTALL_DIR__ 2023-12-09 21:02:42,535: DEBUG - + replace_string=/var/www/joplin 2023-12-09 21:02:42,536: DEBUG - + replace_string=/var/www/joplin 2023-12-09 21:02:42,536: DEBUG - + replace_string=/var/www/joplin 2023-12-09 21:02:42,536: DEBUG - + sed --in-place s@__INSTALL_DIR__@/var/www/joplin@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,538: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:42,538: DEBUG - + [[ -v port ]] 2023-12-09 21:02:42,538: DEBUG - + match_string=__PORT__ 2023-12-09 21:02:42,538: DEBUG - + match_string=__PORT__ 2023-12-09 21:02:42,538: DEBUG - + replace_string=22300 2023-12-09 21:02:42,538: DEBUG - + replace_string=22300 2023-12-09 21:02:42,538: DEBUG - + replace_string=22300 2023-12-09 21:02:42,539: DEBUG - + sed --in-place s@__PORT__@22300@g /etc/systemd/system/joplin.service 2023-12-09 21:02:42,541: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/joplin.service 2023-12-09 21:02:42,542: DEBUG - + update_only=0 2023-12-09 21:02:42,564: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_joplin.service 2023-12-09 21:02:42,565: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-12-09 21:02:42,567: DEBUG - ++ md5sum /etc/systemd/system/joplin.service 2023-12-09 21:02:42,569: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__etc_systemd_system_joplin.service --value=89c331e5a476a4aabb41cf4a3931621b 2023-12-09 21:02:42,569: DEBUG - + local _globalapp=joplin 2023-12-09 21:02:42,631: DEBUG - + app=joplin 2023-12-09 21:02:42,631: DEBUG - + [[ checksum__etc_systemd_system_joplin.service =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:42,631: DEBUG - + ynh_app_setting set joplin checksum__etc_systemd_system_joplin.service 89c331e5a476a4aabb41cf4a3931621b 2023-12-09 21:02:42,684: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:42,684: DEBUG - + unset backup_file_checksum 2023-12-09 21:02:42,685: DEBUG - + systemctl enable joplin --quiet 2023-12-09 21:02:43,086: DEBUG - + systemctl daemon-reload 2023-12-09 21:02:43,495: DEBUG - + yunohost service add joplin '--description=Note-taking appliction' --log=/var/log/joplin/joplin.log 2023-12-09 21:02:43,952: DEBUG - The service 'joplin' was added 2023-12-09 21:02:44,055: DEBUG - + ynh_add_config --template=.env --destination=/var/www/joplin/.env 2023-12-09 21:02:44,057: INFO - [########+...........] > Adding a configuration file... 2023-12-09 21:02:44,091: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/.env ']' 2023-12-09 21:02:44,091: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/.env 2023-12-09 21:02:44,091: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/joplin/.env 2023-12-09 21:02:44,102: DEBUG - + local checksum_setting_name=checksum__var_www_joplin_.env 2023-12-09 21:02:44,103: DEBUG - ++ ynh_app_setting_get --app=joplin --key=checksum__var_www_joplin_.env 2023-12-09 21:02:44,103: DEBUG - ++ local _globalapp=joplin 2023-12-09 21:02:44,137: DEBUG - ++ app=joplin 2023-12-09 21:02:44,137: DEBUG - ++ [[ checksum__var_www_joplin_.env =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:44,137: DEBUG - ++ ynh_app_setting get joplin checksum__var_www_joplin_.env 2023-12-09 21:02:44,203: DEBUG - + local checksum_value= 2023-12-09 21:02:44,203: DEBUG - + backup_file_checksum= 2023-12-09 21:02:44,204: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:44,204: DEBUG - + touch /var/www/joplin/.env 2023-12-09 21:02:44,205: DEBUG - + chown root:root /var/www/joplin/.env 2023-12-09 21:02:44,206: DEBUG - + chmod 640 /var/www/joplin/.env 2023-12-09 21:02:44,208: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/conf/.env /var/www/joplin/.env 2023-12-09 21:02:44,210: DEBUG - + _ynh_apply_default_permissions /var/www/joplin/.env 2023-12-09 21:02:44,210: DEBUG - + local target=/var/www/joplin/.env 2023-12-09 21:02:44,211: DEBUG - ++ tr -d '<>= ' 2023-12-09 21:02:44,213: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-12-09 21:02:44,266: DEBUG - ++ '[' '!' -e '' ']' 2023-12-09 21:02:44,267: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.json ']' 2023-12-09 21:02:44,267: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml ']' 2023-12-09 21:02:44,267: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:44,270: DEBUG - ++ grep -q '\.json$' 2023-12-09 21:02:44,271: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:44,278: DEBUG - ++ jq .requirements.yunohost --raw-output 2023-12-09 21:02:44,282: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))' 2023-12-09 21:02:44,283: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/manifest.toml 2023-12-09 21:02:44,441: DEBUG - + local ynh_requirement=null 2023-12-09 21:02:44,441: DEBUG - + dpkg --compare-versions 2.0 ge 2 2023-12-09 21:02:44,445: DEBUG - + chmod o-rwx /var/www/joplin/.env 2023-12-09 21:02:44,447: DEBUG - + chmod g-w /var/www/joplin/.env 2023-12-09 21:02:44,448: DEBUG - + chown -R root:root /var/www/joplin/.env 2023-12-09 21:02:44,450: DEBUG - + ynh_system_user_exists joplin 2023-12-09 21:02:44,461: DEBUG - + getent passwd joplin 2023-12-09 21:02:44,463: DEBUG - + chown joplin:joplin /var/www/joplin/.env 2023-12-09 21:02:44,465: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-12-09 21:02:44,467: DEBUG - + echo /var/www/joplin/.env 2023-12-09 21:02:44,468: DEBUG - + ynh_replace_vars --file=/var/www/joplin/.env 2023-12-09 21:02:44,478: DEBUG - + test -n / 2023-12-09 21:02:44,478: DEBUG - + local path_url_slash_less= 2023-12-09 21:02:44,478: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/var/www/joplin/.env 2023-12-09 21:02:44,535: DEBUG - + sed --in-place $'s\001__PATH__/\001/\001g' /var/www/joplin/.env 2023-12-09 21:02:44,537: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/var/www/joplin/.env 2023-12-09 21:02:44,599: DEBUG - + sed --in-place $'s\001__PATH__\001/\001g' /var/www/joplin/.env 2023-12-09 21:02:44,601: DEBUG - + test -n joplin 2023-12-09 21:02:44,601: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=joplin --target_file=/var/www/joplin/.env 2023-12-09 21:02:44,664: DEBUG - + sed --in-place $'s\001__NAME__\001joplin\001g' /var/www/joplin/.env 2023-12-09 21:02:44,667: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joplin --target_file=/var/www/joplin/.env 2023-12-09 21:02:44,731: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001joplin\001g' /var/www/joplin/.env 2023-12-09 21:02:44,735: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=joplin --target_file=/var/www/joplin/.env 2023-12-09 21:02:44,801: DEBUG - + sed --in-place $'s\001__USER__\001joplin\001g' /var/www/joplin/.env 2023-12-09 21:02:44,804: DEBUG - + test -n '' 2023-12-09 21:02:44,804: DEBUG - + dpkg --compare-versions 2.0 lt 2 2023-12-09 21:02:44,807: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:44,807: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/var/www/joplin/.env 2023-12-09 21:02:44,880: DEBUG - + sed --in-place $'s\001__YNH_NODE_LOAD_PATH__\001PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\001g' /var/www/joplin/.env 2023-12-09 21:02:44,883: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-12-09 21:02:44,885: DEBUG - ++ sort --unique 2023-12-09 21:02:44,886: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/joplin/.env 2023-12-09 21:02:44,889: DEBUG - + uniques_vars=('app' 'db_name' 'db_pwd' 'db_user' 'domain' 'mail_pwd' 'port') 2023-12-09 21:02:44,890: DEBUG - + local delimit=@ 2023-12-09 21:02:44,890: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,890: DEBUG - + [[ -v app ]] 2023-12-09 21:02:44,890: DEBUG - + match_string=__APP__ 2023-12-09 21:02:44,890: DEBUG - + match_string=__APP__ 2023-12-09 21:02:44,890: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,890: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,890: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,890: DEBUG - + sed --in-place s@__APP__@joplin@g /var/www/joplin/.env 2023-12-09 21:02:44,892: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,893: DEBUG - + [[ -v db_name ]] 2023-12-09 21:02:44,893: DEBUG - + match_string=__DB_NAME__ 2023-12-09 21:02:44,893: DEBUG - + match_string=__DB_NAME__ 2023-12-09 21:02:44,893: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,893: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,893: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,893: DEBUG - + sed --in-place s@__DB_NAME__@joplin@g /var/www/joplin/.env 2023-12-09 21:02:44,895: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,895: DEBUG - + [[ -v db_pwd ]] 2023-12-09 21:02:44,895: DEBUG - + match_string=__DB_PWD__ 2023-12-09 21:02:44,896: DEBUG - + match_string=__DB_PWD__ 2023-12-09 21:02:44,896: DEBUG - + replace_string=********** 2023-12-09 21:02:44,896: DEBUG - + replace_string=********** 2023-12-09 21:02:44,896: DEBUG - + replace_string=********** 2023-12-09 21:02:44,896: DEBUG - + sed --in-place s@__DB_PWD__@**********@g /var/www/joplin/.env 2023-12-09 21:02:44,898: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,898: DEBUG - + [[ -v db_user ]] 2023-12-09 21:02:44,898: DEBUG - + match_string=__DB_USER__ 2023-12-09 21:02:44,899: DEBUG - + match_string=__DB_USER__ 2023-12-09 21:02:44,899: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,899: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,899: DEBUG - + replace_string=joplin 2023-12-09 21:02:44,899: DEBUG - + sed --in-place s@__DB_USER__@joplin@g /var/www/joplin/.env 2023-12-09 21:02:44,901: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,901: DEBUG - + [[ -v domain ]] 2023-12-09 21:02:44,901: DEBUG - + match_string=__DOMAIN__ 2023-12-09 21:02:44,901: DEBUG - + match_string=__DOMAIN__ 2023-12-09 21:02:44,902: DEBUG - + replace_string=notes.maindomain.tld 2023-12-09 21:02:44,902: DEBUG - + replace_string=notes.maindomain.tld 2023-12-09 21:02:44,902: DEBUG - + replace_string=notes.maindomain.tld 2023-12-09 21:02:44,902: DEBUG - + sed --in-place s@__DOMAIN__@notes.maindomain.tld@g /var/www/joplin/.env 2023-12-09 21:02:44,904: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,904: DEBUG - + [[ -v mail_pwd ]] 2023-12-09 21:02:44,904: DEBUG - + match_string=__MAIL_PWD__ 2023-12-09 21:02:44,904: DEBUG - + match_string=__MAIL_PWD__ 2023-12-09 21:02:44,905: DEBUG - + replace_string=6a9735294772373c0ddb2762 2023-12-09 21:02:44,905: DEBUG - + replace_string=6a9735294772373c0ddb2762 2023-12-09 21:02:44,905: DEBUG - + replace_string=6a9735294772373c0ddb2762 2023-12-09 21:02:44,905: DEBUG - + sed --in-place s@__MAIL_PWD__@6a9735294772373c0ddb2762@g /var/www/joplin/.env 2023-12-09 21:02:44,907: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-12-09 21:02:44,907: DEBUG - + [[ -v port ]] 2023-12-09 21:02:44,907: DEBUG - + match_string=__PORT__ 2023-12-09 21:02:44,907: DEBUG - + match_string=__PORT__ 2023-12-09 21:02:44,907: DEBUG - + replace_string=22300 2023-12-09 21:02:44,908: DEBUG - + replace_string=22300 2023-12-09 21:02:44,908: DEBUG - + replace_string=22300 2023-12-09 21:02:44,908: DEBUG - + sed --in-place s@__PORT__@22300@g /var/www/joplin/.env 2023-12-09 21:02:44,910: DEBUG - + ynh_store_file_checksum --file=/var/www/joplin/.env 2023-12-09 21:02:44,910: DEBUG - + update_only=0 2023-12-09 21:02:44,927: DEBUG - + local checksum_setting_name=checksum__var_www_joplin_.env 2023-12-09 21:02:44,928: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-12-09 21:02:44,929: DEBUG - ++ md5sum /var/www/joplin/.env 2023-12-09 21:02:44,931: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__var_www_joplin_.env --value=24a5c94015cfd9c87f8c268ce40cf315 2023-12-09 21:02:44,931: DEBUG - + local _globalapp=joplin 2023-12-09 21:02:45,017: DEBUG - + app=joplin 2023-12-09 21:02:45,017: DEBUG - + [[ checksum__var_www_joplin_.env =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:45,017: DEBUG - + ynh_app_setting set joplin checksum__var_www_joplin_.env 24a5c94015cfd9c87f8c268ce40cf315 2023-12-09 21:02:45,071: DEBUG - + '[' -n '' ']' 2023-12-09 21:02:45,071: DEBUG - + unset backup_file_checksum 2023-12-09 21:02:45,072: DEBUG - + chmod 400 /var/www/joplin/.env 2023-12-09 21:02:45,073: DEBUG - + chown joplin:joplin /var/www/joplin/.env 2023-12-09 21:02:45,145: DEBUG - + pushd /var/www/joplin 2023-12-09 21:02:45,145: DEBUG - /var/www/joplin /var/cache/yunohost/app_tmp_work_dirs/app_ytdp15wr/scripts 2023-12-09 21:02:45,145: DEBUG - + ynh_use_nodejs 2023-12-09 21:02:45,146: INFO - [#########+++++++++..] > Installing joplin... 2023-12-09 21:02:45,146: DEBUG - ++ ynh_app_setting_get --app=joplin --key=nodejs_version 2023-12-09 21:02:45,147: DEBUG - ++ local _globalapp=joplin 2023-12-09 21:02:45,177: DEBUG - ++ app=joplin 2023-12-09 21:02:45,177: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2023-12-09 21:02:45,177: DEBUG - ++ ynh_app_setting get joplin nodejs_version 2023-12-09 21:02:45,275: DEBUG - + nodejs_version=18 2023-12-09 21:02:45,276: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/18/bin 2023-12-09 21:02:45,276: DEBUG - + shopt -s expand_aliases 2023-12-09 21:02:45,276: DEBUG - + ynh_node=/opt/node_n/n/versions/node/18/bin/node 2023-12-09 21:02:45,276: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/18/bin/node 2023-12-09 21:02:45,276: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/18/bin/npm 2023-12-09 21:02:45,276: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/18/bin/npm 2023-12-09 21:02:45,276: DEBUG - + [[ :/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\8\/\b\i\n* ]] 2023-12-09 21:02:45,276: DEBUG - + node_PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:45,277: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:45,277: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-12-09 21:02:45,277: DEBUG - + sudo -u joplin env PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BUILD_SEQUENCIAL=1 yarn install --inline-builds 2023-12-09 21:02:47,675: DEBUG - ➤ YN0000: ┌ Resolution step 2023-12-09 21:02:50,826: DEBUG - ➤ YN0000: └ Completed in 3s 149ms 2023-12-09 21:02:50,828: DEBUG - ➤ YN0000: ┌ Fetch step 2023-12-09 21:13:19,552: DEBUG - ➤ YN0000: └ Completed in 10m 29s 2023-12-09 21:13:20,316: DEBUG - ➤ YN0000: ┌ Link step 2023-12-09 21:13:45,743: DEBUG - ➤ YN0001: │ Error: While persisting /var/www/joplin/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip/node_modules/mkdirp/ -> /var/www/joplin/packages/turndown/node_modules/mkdirp ENOENT: no such file or directory, mkdir '/var/www/joplin/packages/turndown/node_modules/mkdirp/lib' 2023-12-09 21:13:45,746: DEBUG - ➤ YN0000: └ Completed in 25s 427ms 2023-12-09 21:13:45,747: DEBUG - ➤ YN0000: Failed with errors in 10m 59s 2023-12-09 21:13:48,054: DEBUG - + ynh_exit_properly 2023-12-09 21:13:48,062: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]] 2023-12-09 21:13:49,623: ERROR - Unable to install joplin: An error occurred inside the app installation script