What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12
What app is this about: Joplin
Describe your issue
Bonjour,
j’ai essayé d’installer plusieurs fois Joplin, mais ça échoue systématiquement vers la fin .
Je ne sais pas si c’est lié, mais j’ai un avertissement assez souvent quand j’installe une app.
“cat: /etc/yunohost/psql: Aucun fichier ou dossier de ce type”
Je partage les logs, si quelqu’un peut me dire quoi faire ^^, merci !
Share relevant logs or error messages
args:
app: joplin
force: false
label: Joplin
no_remove_on_failure: false
ended_at: 2025-04-20 23:16:47.727264
env:
YNH_APP_ACTION: install
YNH_APP_ARG_ADMIN: magicpotato
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_7e8cf881
YNH_APP_ID: joplin
YNH_APP_INSTANCE_NAME: joplin
YNH_APP_INSTANCE_NUMBER: '1'
YNH_APP_MANIFEST_VERSION: 3.3.4~ynh1
YNH_APP_PACKAGING_FORMAT: '2.0'
YNH_ARCH: amd64
YNH_DEBIAN_VERSION: bookworm
YNH_DEFAULT_PHP_VERSION: '8.2'
YNH_HELPERS_VERSION: '2'
error: Une erreur est survenue dans le script d'installation de l'application
interface: api
operation: app_install
parent: null
related_to:
- - app
- joplin
started_at: 2025-04-20 23:15:24.474025
success: false
yunohost_version: 12.0.14
============
2025-04-21 01:15:24,477: INFO - Installation de joplin…
2025-04-21 01:15:24,482: INFO - Provisioning sources...
2025-04-21 01:15:24,483: DEBUG - Prefetching asset main: https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz ...
2025-04-21 01:15:30,822: INFO - Provisioning system_user...
2025-04-21 01:15:31,193: INFO - Provisioning install_dir...
2025-04-21 01:15:31,197: INFO - Provisioning data_dir...
2025-04-21 01:15:31,200: INFO - Provisioning permissions...
2025-04-21 01:15:31,223: DEBUG - Permission 'joplin.main' mise à jour
2025-04-21 01:15:31,224: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-permission_url-joplin" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'joplin' </a>'
2025-04-21 01:15:31,240: DEBUG - Permission 'joplin.main' créée
2025-04-21 01:15:31,240: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-permission_create-joplin" style="text-decoration :underline"> Créer permission 'joplin' </a>'
2025-04-21 01:15:31,254: DEBUG - Permission 'joplin.main' mise à jour
2025-04-21 01:15:31,254: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-user_permission_update-joplin" style="text-decoration :underline"> Mise à jour des accès pour la permission 'joplin' </a>'
2025-04-21 01:15:31,261: DEBUG - Nothing to update in LDAP
2025-04-21 01:15:31,261: DEBUG - Permission 'joplin.main' mise à jour
2025-04-21 01:15:31,262: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-permission_url-joplin" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'joplin' </a>'
2025-04-21 01:15:31,278: DEBUG - Permission 'joplin.api' mise à jour
2025-04-21 01:15:31,279: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-permission_url-joplin" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'joplin' </a>'
2025-04-21 01:15:31,288: DEBUG - Permission 'joplin.api' créée
2025-04-21 01:15:31,288: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-permission_create-joplin" style="text-decoration :underline"> Créer permission 'joplin' </a>'
2025-04-21 01:15:31,299: DEBUG - Permission 'joplin.api' mise à jour
2025-04-21 01:15:31,299: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-user_permission_update-joplin" style="text-decoration :underline"> Mise à jour des accès pour la permission 'joplin' </a>'
2025-04-21 01:15:31,306: DEBUG - Nothing to update in LDAP
2025-04-21 01:15:31,307: DEBUG - Permission 'joplin.api' mise à jour
2025-04-21 01:15:31,307: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250420-231531-permission_url-joplin" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'joplin' </a>'
2025-04-21 01:15:31,317: DEBUG - The permission database has been resynchronized
2025-04-21 01:15:31,327: DEBUG - La configuration de SSOwat a été regénérée
2025-04-21 01:15:31,332: INFO - Provisioning ports...
2025-04-21 01:15:31,351: INFO - Provisioning apt...
2025-04-21 01:15:31,358: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']'
2025-04-21 01:15:31,362: DEBUG - + source /usr/share/yunohost/helpers
2025-04-21 01:15:31,363: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-04-21 01:15:31,364: DEBUG - +++ cd -- /usr/share/yunohost
2025-04-21 01:15:31,364: DEBUG - +++ pwd
2025-04-21 01:15:31,364: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-04-21 01:15:31,364: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-04-21 01:15:31,367: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-04-21 01:15:31,367: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-04-21 01:15:31,379: DEBUG - + ynh_abort_if_errors
2025-04-21 01:15:31,379: DEBUG - + trap ynh_exit_properly EXIT
2025-04-21 01:15:31,379: DEBUG - + ynh_install_app_dependencies postgresql postgresql-client python3-bcrypt rsync
2025-04-21 01:15:31,379: DEBUG - + local 'dependencies=postgresql postgresql-client python3-bcrypt rsync'
2025-04-21 01:15:31,380: DEBUG - ++ echo 'postgresql postgresql-client python3-bcrypt rsync'
2025-04-21 01:15:31,380: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-04-21 01:15:31,381: DEBUG - + dependencies='postgresql, postgresql-client, python3-bcrypt, rsync'
2025-04-21 01:15:31,381: DEBUG - + local 'dependencies=postgresql, postgresql-client, python3-bcrypt, rsync'
2025-04-21 01:15:31,382: DEBUG - ++ ynh_read_manifest --manifest_key=version
2025-04-21 01:15:31,398: DEBUG - ++ '[' '!' -e '' ']'
2025-04-21 01:15:31,398: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_6i5lsgri/manifest.json ']'
2025-04-21 01:15:31,398: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_6i5lsgri/manifest.toml ']'
2025-04-21 01:15:31,398: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_6i5lsgri/manifest.toml
2025-04-21 01:15:31,398: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_6i5lsgri/manifest.toml
2025-04-21 01:15:31,398: DEBUG - ++ grep -q '\.json$'
2025-04-21 01:15:31,400: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-04-21 01:15:31,400: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_6i5lsgri/manifest.toml
2025-04-21 01:15:31,400: DEBUG - ++ jq .version --raw-output
2025-04-21 01:15:31,417: DEBUG - + local version=3.3.4~ynh1
2025-04-21 01:15:31,417: DEBUG - + '[' -z 3.3.4~ynh1 ']'
2025-04-21 01:15:31,417: DEBUG - + '[' 3.3.4~ynh1 == null ']'
2025-04-21 01:15:31,417: DEBUG - + local dep_app=joplin
2025-04-21 01:15:31,417: DEBUG - + [[ postgresql, postgresql-client, python3-bcrypt, rsync =~ [<=>] ]]
2025-04-21 01:15:31,418: DEBUG - ++ echo postgresql, postgresql-client, python3-bcrypt, rsync
2025-04-21 01:15:31,418: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-04-21 01:15:31,418: DEBUG - ++ sort -u
2025-04-21 01:15:31,420: DEBUG - + local specific_php_version=
2025-04-21 01:15:31,420: DEBUG - + grep --quiet php
2025-04-21 01:15:31,422: DEBUG - ++ ynh_package_is_installed postgresql-15
2025-04-21 01:15:31,433: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-15
2025-04-21 01:15:31,433: DEBUG - ++ grep --count 'ok installed'
2025-04-21 01:15:31,439: DEBUG - ++ echo yes
2025-04-21 01:15:31,440: DEBUG - + local psql_installed=yes
2025-04-21 01:15:31,440: DEBUG - + [[ true == \t\r\u\e ]]
2025-04-21 01:15:31,440: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2025-04-21 01:15:31,440: DEBUG - + cat
2025-04-21 01:15:31,441: DEBUG - + ynh_package_install_from_equivs /tmp/joplin-ynh-deps.control
2025-04-21 01:15:31,441: DEBUG - + local controlfile=/tmp/joplin-ynh-deps.control
2025-04-21 01:15:31,442: DEBUG - ++ grep '^Package: ' /tmp/joplin-ynh-deps.control
2025-04-21 01:15:31,442: DEBUG - ++ cut '--delimiter= ' --fields=2
2025-04-21 01:15:31,443: DEBUG - + local pkgname=joplin-ynh-deps
2025-04-21 01:15:31,444: DEBUG - ++ grep '^Version: ' /tmp/joplin-ynh-deps.control
2025-04-21 01:15:31,444: DEBUG - ++ cut '--delimiter= ' --fields=2
2025-04-21 01:15:31,445: DEBUG - + local pkgversion=3.3.4~ynh1
2025-04-21 01:15:31,445: DEBUG - + [[ -z joplin-ynh-deps ]]
2025-04-21 01:15:31,446: DEBUG - + [[ -z 3.3.4~ynh1 ]]
2025-04-21 01:15:31,446: DEBUG - + ynh_package_update
2025-04-21 01:15:31,446: DEBUG - + ynh_apt update
2025-04-21 01:15:31,446: DEBUG - + ynh_wait_dpkg_free
2025-04-21 01:15:31,608: DEBUG - + return 0
2025-04-21 01:15:31,609: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-04-21 01:15:31,693: DEBUG - Hit:1 http://repo.yunohost.org/debian bookworm InRelease
2025-04-21 01:15:31,693: DEBUG - Hit:2 http://ftp.debian.org/debian bookworm InRelease
2025-04-21 01:15:31,693: DEBUG - Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
2025-04-21 01:15:31,706: DEBUG - Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
2025-04-21 01:15:31,706: DEBUG - Hit:5 https://dl.yarnpkg.com/debian stable InRelease
2025-04-21 01:15:31,733: DEBUG - Hit:6 https://packages.sury.org/php bookworm InRelease
2025-04-21 01:15:32,148: DEBUG - Fetched 48.0 kB in 0s (97.4 kB/s)
2025-04-21 01:15:32,425: DEBUG - Reading package lists...
2025-04-21 01:15:32,432: DEBUG - ++ mktemp --directory
2025-04-21 01:15:32,433: DEBUG - + local TMPDIR=/tmp/tmp.KtlEV5SOIP
2025-04-21 01:15:32,433: DEBUG - + mkdir -p /tmp/tmp.KtlEV5SOIP/joplin-ynh-deps/DEBIAN/
2025-04-21 01:15:32,435: DEBUG - + chmod -R 755 /tmp/tmp.KtlEV5SOIP/joplin-ynh-deps
2025-04-21 01:15:32,436: DEBUG - + ynh_wait_dpkg_free
2025-04-21 01:15:32,581: DEBUG - + return 0
2025-04-21 01:15:32,581: DEBUG - + cp /tmp/joplin-ynh-deps.control /tmp/tmp.KtlEV5SOIP/joplin-ynh-deps/DEBIAN/control
2025-04-21 01:15:32,583: DEBUG - + dpkg-deb --build /tmp/tmp.KtlEV5SOIP/joplin-ynh-deps /tmp/tmp.KtlEV5SOIP/joplin-ynh-deps.deb
2025-04-21 01:15:32,601: DEBUG - + dpkg --force-depends --install /tmp/tmp.KtlEV5SOIP/joplin-ynh-deps.deb
2025-04-21 01:15:32,601: DEBUG - + tee /tmp/tmp.KtlEV5SOIP/dpkg_log
2025-04-21 01:15:32,633: DEBUG - Selecting previously unselected package joplin-ynh-deps.
2025-04-21 01:15:32,651: DEBUG - (Reading database ... 75651 files and directories currently installed.)
2025-04-21 01:15:32,652: DEBUG - Preparing to unpack .../joplin-ynh-deps.deb ...
2025-04-21 01:15:32,660: DEBUG - Unpacking joplin-ynh-deps (3.3.4~ynh1) ...
2025-04-21 01:15:32,705: DEBUG - dpkg: joplin-ynh-deps: dependency problems, but configuring anyway as you requested:
2025-04-21 01:15:32,705: DEBUG - joplin-ynh-deps depends on python3-bcrypt; however:
2025-04-21 01:15:32,705: DEBUG - Package python3-bcrypt is not installed.
2025-04-21 01:15:32,705: DEBUG - joplin-ynh-deps depends on rsync; however:
2025-04-21 01:15:32,705: DEBUG - Package rsync is not installed.
2025-04-21 01:15:32,705: DEBUG -
2025-04-21 01:15:32,705: DEBUG - Setting up joplin-ynh-deps (3.3.4~ynh1) ...
2025-04-21 01:15:32,743: DEBUG - + ynh_package_install --fix-broken
2025-04-21 01:15:32,743: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-04-21 01:15:32,743: DEBUG - + ynh_wait_dpkg_free
2025-04-21 01:15:32,888: DEBUG - + return 0
2025-04-21 01:15:32,889: 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
2025-04-21 01:15:32,975: DEBUG - Reading package lists...
2025-04-21 01:15:33,058: DEBUG - Building dependency tree...
2025-04-21 01:15:33,059: DEBUG - Reading state information...
2025-04-21 01:15:33,088: DEBUG - Correcting dependencies... Done
2025-04-21 01:15:33,146: DEBUG - The following additional packages will be installed:
2025-04-21 01:15:33,146: DEBUG - python3-bcrypt rsync
2025-04-21 01:15:33,146: DEBUG - Suggested packages:
2025-04-21 01:15:33,147: DEBUG - python3-braceexpand
2025-04-21 01:15:33,152: DEBUG - The following NEW packages will be installed:
2025-04-21 01:15:33,152: DEBUG - python3-bcrypt rsync
2025-04-21 01:15:33,352: DEBUG - 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
2025-04-21 01:15:33,352: DEBUG - Need to get 0 B/451 kB of archives.
2025-04-21 01:15:33,352: DEBUG - After this operation, 890 kB of additional disk space will be used.
2025-04-21 01:15:33,386: DEBUG - Selecting previously unselected package rsync.
2025-04-21 01:15:33,404: DEBUG - (Reading database ... 75651 files and directories currently installed.)
2025-04-21 01:15:33,405: DEBUG - Preparing to unpack .../rsync_3.2.7-1+deb12u2_amd64.deb ...
2025-04-21 01:15:33,414: DEBUG - Unpacking rsync (3.2.7-1+deb12u2) ...
2025-04-21 01:15:33,475: DEBUG - Selecting previously unselected package python3-bcrypt.
2025-04-21 01:15:33,479: DEBUG - Preparing to unpack .../python3-bcrypt_3.2.2-1_amd64.deb ...
2025-04-21 01:15:33,486: DEBUG - Unpacking python3-bcrypt (3.2.2-1) ...
2025-04-21 01:15:33,548: DEBUG - Setting up python3-bcrypt (3.2.2-1) ...
2025-04-21 01:15:33,633: DEBUG - Setting up rsync (3.2.7-1+deb12u2) ...
2025-04-21 01:15:33,969: WARNING - rsync.service is a disabled or a static unit, not starting it.
2025-04-21 01:15:33,980: DEBUG - Processing triggers for man-db (2.11.2-2) ...
2025-04-21 01:15:34,589: DEBUG - + [[ -n /tmp/tmp.KtlEV5SOIP ]]
2025-04-21 01:15:34,589: DEBUG - + rm --recursive --force /tmp/tmp.KtlEV5SOIP
2025-04-21 01:15:34,590: DEBUG - + ynh_package_is_installed joplin-ynh-deps
2025-04-21 01:15:34,603: DEBUG - + dpkg-query --show '--showformat=${Status}' joplin-ynh-deps
2025-04-21 01:15:34,603: DEBUG - + grep --count 'ok installed'
2025-04-21 01:15:34,609: DEBUG - + rm /tmp/joplin-ynh-deps.control
2025-04-21 01:15:34,611: DEBUG - ++ ynh_package_is_installed postgresql-15
2025-04-21 01:15:34,624: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-15
2025-04-21 01:15:34,624: DEBUG - ++ grep --count 'ok installed'
2025-04-21 01:15:34,630: DEBUG - ++ echo yes
2025-04-21 01:15:34,630: DEBUG - + local psql_installed2=yes
2025-04-21 01:15:34,631: DEBUG - + [[ yes != \y\e\s ]]
2025-04-21 01:15:34,631: DEBUG - + ynh_exit_properly
2025-04-21 01:15:34,631: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-04-21 01:15:34,732: INFO - Provisioning database...
2025-04-21 01:15:34,918: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database" 7>&1']'
2025-04-21 01:15:34,921: DEBUG - + source /usr/share/yunohost/helpers
2025-04-21 01:15:34,922: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-04-21 01:15:34,922: DEBUG - +++ cd -- /usr/share/yunohost
2025-04-21 01:15:34,923: DEBUG - +++ pwd
2025-04-21 01:15:34,923: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-04-21 01:15:34,923: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-04-21 01:15:34,925: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-04-21 01:15:34,925: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-04-21 01:15:34,937: DEBUG - + ynh_abort_if_errors
2025-04-21 01:15:34,937: DEBUG - + trap ynh_exit_properly EXIT
2025-04-21 01:15:34,937: DEBUG - + ynh_psql_create_user joplin **********
2025-04-21 01:15:34,937: DEBUG - + local user=joplin
2025-04-21 01:15:34,937: DEBUG - + local pwd=**********
2025-04-21 01:15:34,937: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE USER joplin WITH ENCRYPTED PASSWORD '\''**********'\'''
2025-04-21 01:15:34,953: DEBUG - + database=
2025-04-21 01:15:34,954: DEBUG - + '[' -n '' ']'
2025-04-21 01:15:34,954: DEBUG - ++ cat /etc/yunohost/psql
2025-04-21 01:15:34,955: WARNING - cat: /etc/yunohost/psql: Aucun fichier ou dossier de ce type
2025-04-21 01:15:34,957: DEBUG - + ynh_psql_connect_as --user=postgres --password=
2025-04-21 01:15:34,992: DEBUG - + database=
2025-04-21 01:15:34,992: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD= psql ''
2025-04-21 01:15:35,145: DEBUG - CREATE ROLE
2025-04-21 01:15:35,148: DEBUG - + ynh_psql_create_db joplin joplin
2025-04-21 01:15:35,148: DEBUG - + local db=joplin
2025-04-21 01:15:35,148: DEBUG - + local user=joplin
2025-04-21 01:15:35,148: DEBUG - + local 'sql=CREATE DATABASE joplin;'
2025-04-21 01:15:35,149: DEBUG - + '[' -n joplin ']'
2025-04-21 01:15:35,149: DEBUG - + sql+='ALTER DATABASE joplin OWNER TO joplin;'
2025-04-21 01:15:35,149: DEBUG - + sql+='GRANT ALL PRIVILEGES ON DATABASE joplin TO joplin WITH GRANT OPTION;'
2025-04-21 01:15:35,149: 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;'
2025-04-21 01:15:35,165: DEBUG - + database=
2025-04-21 01:15:35,165: DEBUG - + '[' -n '' ']'
2025-04-21 01:15:35,165: DEBUG - ++ cat /etc/yunohost/psql
2025-04-21 01:15:35,166: WARNING - cat: /etc/yunohost/psql: Aucun fichier ou dossier de ce type
2025-04-21 01:15:35,168: DEBUG - + ynh_psql_connect_as --user=postgres --password=
2025-04-21 01:15:35,206: DEBUG - + database=
2025-04-21 01:15:35,206: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD= psql ''
2025-04-21 01:15:35,331: DEBUG - CREATE DATABASE
2025-04-21 01:15:35,332: DEBUG - ALTER DATABASE
2025-04-21 01:15:35,333: DEBUG - GRANT
2025-04-21 01:15:35,337: DEBUG - + ynh_exit_properly
2025-04-21 01:15:35,337: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2025-04-21 01:15:35,440: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']'
2025-04-21 01:15:35,443: DEBUG - + source _common.sh
2025-04-21 01:15:35,443: DEBUG - ++ nodejs_version=20
2025-04-21 01:15:35,444: DEBUG - + source /usr/share/yunohost/helpers
2025-04-21 01:15:35,444: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-04-21 01:15:35,445: DEBUG - +++ cd -- /usr/share/yunohost
2025-04-21 01:15:35,446: DEBUG - +++ pwd
2025-04-21 01:15:35,446: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-04-21 01:15:35,446: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-04-21 01:15:35,448: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-04-21 01:15:35,448: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-04-21 01:15:35,461: DEBUG - ++ ynh_string_random --length=24
2025-04-21 01:15:35,477: DEBUG - ++ length=24
2025-04-21 01:15:35,477: DEBUG - ++ filter=A-Za-z0-9
2025-04-21 01:15:35,477: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2025-04-21 01:15:35,477: DEBUG - ++ tr --complement --delete A-Za-z0-9
2025-04-21 01:15:35,477: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2025-04-21 01:15:35,479: DEBUG - + admin_pass=**********
2025-04-21 01:15:35,479: DEBUG - ++ ynh_user_get_info --username=magicpotato --key=mail
2025-04-21 01:15:35,507: DEBUG - ++ yunohost user info magicpotato --output-as json --quiet
2025-04-21 01:15:35,670: DEBUG - + admin_mail=magicpotato@maindomain.tld
2025-04-21 01:15:35,671: DEBUG - ++ ynh_user_get_info --username=magicpotato --key=fullname
2025-04-21 01:15:35,700: DEBUG - ++ yunohost user info magicpotato --output-as json --quiet
2025-04-21 01:15:35,855: DEBUG - + admin_name='Magic Potato'
2025-04-21 01:15:35,855: DEBUG - + ynh_app_setting_set --app=joplin --key=admin_pass --value=**********
2025-04-21 01:15:35,932: DEBUG - + ynh_app_setting_set --app=joplin --key=admin_mail --value=magicpotato@maindomain.tld
2025-04-21 01:15:36,085: INFO - [++++++..............] > Installing dependencies...
2025-04-21 01:15:36,087: DEBUG - + ynh_exec_warn_less ynh_install_nodejs --nodejs_version=20
2025-04-21 01:15:36,088: DEBUG - + [[ 2 -eq 1 ]]
2025-04-21 01:15:36,088: DEBUG - + ynh_install_nodejs --nodejs_version=20
2025-04-21 01:15:36,096: DEBUG - + mkdir --parents /opt/node_n
2025-04-21 01:15:36,097: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:36,098: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:36,098: DEBUG - ++ sed s@/usr/local/bin:@@
2025-04-21 01:15:36,100: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:36,100: DEBUG - + test -x /usr/bin/node
2025-04-21 01:15:36,100: DEBUG - + test -x /usr/bin/npm
2025-04-21 01:15:36,100: DEBUG - + mkdir -p /opt/node_n/bin/
2025-04-21 01:15:36,102: DEBUG - + cp /usr/share/yunohost/helpers.v2.d/vendor/n/n /opt/node_n/bin/n
2025-04-21 01:15:36,103: 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
2025-04-21 01:15:36,160: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:36,160: DEBUG - + test -x /usr/bin/node_n
2025-04-21 01:15:36,160: DEBUG - + test -x /usr/bin/npm_n
2025-04-21 01:15:36,160: DEBUG - ++ uname --machine
2025-04-21 01:15:36,161: DEBUG - + uname=x86_64
2025-04-21 01:15:36,162: DEBUG - + [[ x86_64 =~ aarch64 ]]
2025-04-21 01:15:36,162: DEBUG - + [[ x86_64 =~ arm64 ]]
2025-04-21 01:15:36,162: DEBUG - + n 20
2025-04-21 01:15:36,253: DEBUG - installing : node-v20.19.0
2025-04-21 01:15:36,423: DEBUG - mkdir : /opt/node_n/n/versions/node/20.19.0
2025-04-21 01:15:36,429: DEBUG - fetch : https://nodejs.org/dist/v20.19.0/node-v20.19.0-linux-x64.tar.xz
2025-04-21 01:15:37,591: DEBUG - copying : node/20.19.0
2025-04-21 01:15:37,986: DEBUG - installed : v20.19.0 (with npm 10.8.2)
2025-04-21 01:15:37,987: DEBUG - ++ sort --version-sort
2025-04-21 01:15:37,987: DEBUG - ++ find /opt/node_n/n/versions/node/20 /opt/node_n/n/versions/node/20.19.0 -maxdepth 0
2025-04-21 01:15:37,988: DEBUG - ++ tail --lines=1
2025-04-21 01:15:37,989: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/20.19.0
2025-04-21 01:15:37,990: DEBUG - ++ basename /opt/node_n/n/versions/node/20.19.0
2025-04-21 01:15:37,991: DEBUG - + real_nodejs_version=20.19.0
2025-04-21 01:15:37,991: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/20 ']'
2025-04-21 01:15:37,991: DEBUG - + tee --append /opt/node_n/ynh_app_version
2025-04-21 01:15:37,991: DEBUG - + echo joplin:20
2025-04-21 01:15:37,992: DEBUG - joplin:20
2025-04-21 01:15:37,992: DEBUG - + ynh_app_setting_set --app=joplin --key=nodejs_version --value=20
2025-04-21 01:15:38,071: DEBUG - + ynh_use_nodejs
2025-04-21 01:15:38,072: DEBUG - ++ ynh_app_setting_get --app=joplin --key=nodejs_version
2025-04-21 01:15:38,125: DEBUG - + nodejs_version=20
2025-04-21 01:15:38,125: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/20/bin
2025-04-21 01:15:38,125: DEBUG - + shopt -s expand_aliases
2025-04-21 01:15:38,125: DEBUG - + ynh_node=/opt/node_n/n/versions/node/20/bin/node
2025-04-21 01:15:38,125: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/20/bin/node
2025-04-21 01:15:38,125: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2025-04-21 01:15:38,125: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2025-04-21 01:15:38,125: 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\/\2\0\/\b\i\n* ]]
2025-04-21 01:15:38,125: DEBUG - + PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:38,125: DEBUG - + node_PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:38,126: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:38,126: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:38,126: DEBUG - + export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2025-04-21 01:15:38,126: DEBUG - + COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2025-04-21 01:15:38,192: INFO - [######..............] > Setting up source files...
2025-04-21 01:15:38,194: DEBUG - + ynh_setup_source --dest_dir=/var/www/joplin/src
2025-04-21 01:15:38,221: DEBUG - + keep=
2025-04-21 01:15:38,221: DEBUG - + full_replace=0
2025-04-21 01:15:38,221: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/manifest.toml
2025-04-21 01:15:38,221: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/manifest.toml
2025-04-21 01:15:38,221: DEBUG - + toml_to_json
2025-04-21 01:15:38,221: DEBUG - + jq -e .resources.sources
2025-04-21 01:15:38,221: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-04-21 01:15:38,239: DEBUG - + source_id=main
2025-04-21 01:15:38,239: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/manifest.toml
2025-04-21 01:15:38,240: DEBUG - ++ toml_to_json
2025-04-21 01:15:38,240: DEBUG - ++ jq '.resources.sources["main"]'
2025-04-21 01:15:38,240: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-04-21 01:15:38,258: DEBUG - + local 'sources_json={
2025-04-21 01:15:38,258: DEBUG - "url": "https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz",
2025-04-21 01:15:38,258: DEBUG - "sha256": "8f4ab6a5d6323642832487474b213b05efc0188e31e5b39e621e02e0aee20f73",
2025-04-21 01:15:38,258: DEBUG - "autoupdate": {
2025-04-21 01:15:38,258: DEBUG - "strategy": "latest_github_tag"
2025-04-21 01:15:38,258: DEBUG - }
2025-04-21 01:15:38,258: DEBUG - }'
2025-04-21 01:15:38,258: DEBUG - + jq -re .url
2025-04-21 01:15:38,270: DEBUG - https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz
2025-04-21 01:15:38,270: DEBUG - + local arch_prefix=
2025-04-21 01:15:38,284: DEBUG - + local src_url=https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz
2025-04-21 01:15:38,298: DEBUG - + local src_sum=8f4ab6a5d6323642832487474b213b05efc0188e31e5b39e621e02e0aee20f73
2025-04-21 01:15:38,298: DEBUG - + local src_sumprg=sha256sum
2025-04-21 01:15:38,312: DEBUG - + local src_format=
2025-04-21 01:15:38,325: DEBUG - + local src_in_subdir=
2025-04-21 01:15:38,338: DEBUG - + local src_extract=
2025-04-21 01:15:38,352: DEBUG - + local src_platform=
2025-04-21 01:15:38,366: DEBUG - + local src_rename=
2025-04-21 01:15:38,366: DEBUG - + [[ -n https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz ]]
2025-04-21 01:15:38,366: DEBUG - + [[ -n 8f4ab6a5d6323642832487474b213b05efc0188e31e5b39e621e02e0aee20f73 ]]
2025-04-21 01:15:38,366: DEBUG - + [[ -z '' ]]
2025-04-21 01:15:38,366: DEBUG - + [[ https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz =~ ^.*\.zip$ ]]
2025-04-21 01:15:38,366: DEBUG - + [[ https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz =~ ^.*/zipball/.*$ ]]
2025-04-21 01:15:38,366: DEBUG - + [[ https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz =~ ^.*\.tar\.gz$ ]]
2025-04-21 01:15:38,366: DEBUG - + src_format=tar.gz
2025-04-21 01:15:38,366: DEBUG - + src_sumprg=sha256sum
2025-04-21 01:15:38,367: DEBUG - + src_in_subdir=true
2025-04-21 01:15:38,367: DEBUG - + src_format=tar.gz
2025-04-21 01:15:38,367: DEBUG - ++ echo tar.gz
2025-04-21 01:15:38,367: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-04-21 01:15:38,369: DEBUG - + src_format=tar.gz
2025-04-21 01:15:38,369: DEBUG - + src_extract=true
2025-04-21 01:15:38,369: DEBUG - + [[ true != \t\r\u\e ]]
2025-04-21 01:15:38,369: DEBUG - + local local_src=/opt/yunohost-apps-src/joplin/main
2025-04-21 01:15:38,369: DEBUG - ++ dirname /var/cache/yunohost/download/joplin/main
2025-04-21 01:15:38,370: DEBUG - + mkdir -p /var/cache/yunohost/download/joplin
2025-04-21 01:15:38,371: DEBUG - + src_filename=/var/cache/yunohost/download/joplin/main
2025-04-21 01:15:38,371: DEBUG - + '[' tar.gz = docker ']'
2025-04-21 01:15:38,372: DEBUG - + test -e /opt/yunohost-apps-src/joplin/main
2025-04-21 01:15:38,372: DEBUG - + '[' -n https://github.com/laurent22/joplin/archive/refs/tags/v3.3.4.tar.gz ']'
2025-04-21 01:15:38,372: DEBUG - + '[' -e /var/cache/yunohost/download/joplin/main ']'
2025-04-21 01:15:38,372: DEBUG - + sha256sum --check --status
2025-04-21 01:15:38,589: DEBUG - + '[' '!' -e /var/cache/yunohost/download/joplin/main ']'
2025-04-21 01:15:38,589: DEBUG - + sha256sum --check --status
2025-04-21 01:15:38,803: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-04-21 01:15:38,804: DEBUG - + '[' -n '' ']'
2025-04-21 01:15:38,804: DEBUG - + mkdir --parents /var/www/joplin/src
2025-04-21 01:15:38,806: DEBUG - + '[' -n /var/www/joplin ']'
2025-04-21 01:15:38,806: DEBUG - + '[' /var/www/joplin/src == /var/www/joplin ']'
2025-04-21 01:15:38,806: DEBUG - + '[' -n '' ']'
2025-04-21 01:15:38,806: DEBUG - + [[ true == \f\a\l\s\e ]]
2025-04-21 01:15:38,806: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]]
2025-04-21 01:15:38,806: DEBUG - + [[ tar.gz == \z\i\p ]]
2025-04-21 01:15:38,806: DEBUG - + local strip=
2025-04-21 01:15:38,806: DEBUG - + '[' true '!=' false ']'
2025-04-21 01:15:38,807: DEBUG - + '[' true == true ']'
2025-04-21 01:15:38,807: DEBUG - + local sub_dirs=1
2025-04-21 01:15:38,807: DEBUG - + strip='--strip-components 1'
2025-04-21 01:15:38,807: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2025-04-21 01:15:38,807: DEBUG - + tar --extract --file=/var/cache/yunohost/download/joplin/main --directory=/var/www/joplin/src --strip-components 1
2025-04-21 01:15:39,647: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/joplin/main
2025-04-21 01:15:39,681: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/sources/patches/ ']'
2025-04-21 01:15:39,681: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/sources/extra_files/main
2025-04-21 01:15:39,681: DEBUG - + '[' -n '' ']'
2025-04-21 01:15:39,681: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-04-21 01:15:39,682: DEBUG - + chown -R joplin:www-data /var/www/joplin/src
2025-04-21 01:15:39,786: INFO - [######+++++++++.....] > Building joplin...
2025-04-21 01:15:39,788: DEBUG - + mkdir /var/www/joplin/build
2025-04-21 01:15:39,788: DEBUG - + mkdir /var/www/joplin/build/.yarn
2025-04-21 01:15:39,788: DEBUG - + mkdir /var/www/joplin/build/packages
2025-04-21 01:15:39,790: DEBUG - + chown -R joplin:www-data /var/www/joplin/build
2025-04-21 01:15:39,791: DEBUG - + mv /var/www/joplin/src/.yarn/plugins /var/www/joplin/build/.yarn/plugins
2025-04-21 01:15:39,792: DEBUG - + mv /var/www/joplin/src/.yarn/releases /var/www/joplin/build/.yarn/releases
2025-04-21 01:15:39,793: DEBUG - + mv /var/www/joplin/src/.yarn/patches /var/www/joplin/build/.yarn/patches
2025-04-21 01:15:39,795: DEBUG - + mv /var/www/joplin/src/package.json /var/www/joplin/build
2025-04-21 01:15:39,796: DEBUG - + mv /var/www/joplin/src/.yarnrc.yml /var/www/joplin/build
2025-04-21 01:15:39,798: DEBUG - + mv /var/www/joplin/src/yarn.lock /var/www/joplin/build
2025-04-21 01:15:39,799: DEBUG - + mv /var/www/joplin/src/gulpfile.js /var/www/joplin/build
2025-04-21 01:15:39,801: DEBUG - + mv /var/www/joplin/src/tsconfig.json /var/www/joplin/build
2025-04-21 01:15:39,803: DEBUG - + mv /var/www/joplin/src/packages/turndown /var/www/joplin/build/packages/turndown
2025-04-21 01:15:39,804: DEBUG - + mv /var/www/joplin/src/packages/turndown-plugin-gfm /var/www/joplin/build/packages/turndown-plugin-gfm
2025-04-21 01:15:39,805: DEBUG - + mv /var/www/joplin/src/packages/fork-htmlparser2 /var/www/joplin/build/packages/fork-htmlparser2
2025-04-21 01:15:39,807: DEBUG - + mv /var/www/joplin/src/packages/fork-sax /var/www/joplin/build/packages/fork-sax
2025-04-21 01:15:39,809: DEBUG - + mv /var/www/joplin/src/packages/fork-uslug /var/www/joplin/build/packages/fork-uslug
2025-04-21 01:15:39,810: DEBUG - + mv /var/www/joplin/src/packages/htmlpack /var/www/joplin/build/packages/htmlpack
2025-04-21 01:15:39,812: DEBUG - + mv /var/www/joplin/src/packages/renderer /var/www/joplin/build/packages/renderer
2025-04-21 01:15:39,814: DEBUG - + mv /var/www/joplin/src/packages/tools /var/www/joplin/build/packages/tools
2025-04-21 01:15:39,815: DEBUG - + mv /var/www/joplin/src/packages/utils /var/www/joplin/build/packages/utils
2025-04-21 01:15:39,816: DEBUG - + mv /var/www/joplin/src/packages/lib /var/www/joplin/build/packages/lib
2025-04-21 01:15:39,817: DEBUG - + mv /var/www/joplin/src/packages/server /var/www/joplin/build/packages/server
2025-04-21 01:15:39,819: DEBUG - + ynh_replace_string '--match_string=^.*onenote-converter.*$' '--replace_string= ' --target_file=/var/www/joplin/build/packages/lib/package.json
2025-04-21 01:15:39,875: DEBUG - + ynh_secure_remove --file=/var/www/joplin/src
2025-04-21 01:15:39,989: DEBUG - + pushd /var/www/joplin/build
2025-04-21 01:15:39,989: DEBUG - /var/www/joplin/build /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/scripts
2025-04-21 01:15:39,989: DEBUG - + ynh_use_nodejs
2025-04-21 01:15:39,989: DEBUG - ++ ynh_app_setting_get --app=joplin --key=nodejs_version
2025-04-21 01:15:40,044: DEBUG - + nodejs_version=20
2025-04-21 01:15:40,044: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/20/bin
2025-04-21 01:15:40,044: DEBUG - + shopt -s expand_aliases
2025-04-21 01:15:40,044: DEBUG - + ynh_node=/opt/node_n/n/versions/node/20/bin/node
2025-04-21 01:15:40,045: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/20/bin/node
2025-04-21 01:15:40,045: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2025-04-21 01:15:40,045: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2025-04-21 01:15:40,045: DEBUG - + [[ :/opt/node_n/n/versions/node/20/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\/\2\0\/\b\i\n* ]]
2025-04-21 01:15:40,045: DEBUG - + node_PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:40,045: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:40,045: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:15:40,045: DEBUG - + export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2025-04-21 01:15:40,045: DEBUG - + COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2025-04-21 01:15:40,045: DEBUG - + ynh_exec_warn_less corepack enable
2025-04-21 01:15:40,045: DEBUG - + [[ 2 -eq 1 ]]
2025-04-21 01:15:40,045: DEBUG - + corepack enable
2025-04-21 01:15:40,085: DEBUG - + corepack prepare yarn@3.8.3 --activate
2025-04-21 01:15:40,122: DEBUG - Preparing yarn@3.8.3 for immediate activation...
2025-04-21 01:15:40,128: DEBUG - + ynh_exec_warn_less ynh_exec_as joplin env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 BUILD_SEQUENCIAL=1 yarn install --inline-builds
2025-04-21 01:15:40,128: DEBUG - + [[ 9 -eq 1 ]]
2025-04-21 01:15:40,128: DEBUG - + ynh_exec_as joplin env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 BUILD_SEQUENCIAL=1 yarn install --inline-builds
2025-04-21 01:15:40,128: DEBUG - + local user=joplin
2025-04-21 01:15:40,128: DEBUG - + shift 1
2025-04-21 01:15:40,128: DEBUG - ++ whoami
2025-04-21 01:15:40,130: DEBUG - + [[ joplin = root ]]
2025-04-21 01:15:40,130: DEBUG - + sudo -u joplin env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 BUILD_SEQUENCIAL=1 yarn install --inline-builds
2025-04-21 01:15:40,961: DEBUG - ➤ YN0000: ┌ Resolution step
2025-04-21 01:15:41,260: DEBUG - ➤ YN0000: └ Completed in 0s 299ms
2025-04-21 01:15:41,260: DEBUG - ➤ YN0000: ┌ Fetch step
2025-04-21 01:15:53,129: DEBUG - ➤ YN0066: │ typescript@patch:typescript@npm%3A5.6.3#~builtin<compat/typescript>::version=5.6.3&hash=379a07: Cannot apply hunk #11
2025-04-21 01:16:07,077: DEBUG - ➤ YN0000: └ Completed in 25s 817ms
2025-04-21 01:16:07,193: DEBUG - ➤ YN0000: ┌ Link step
2025-04-21 01:16:19,830: DEBUG - ➤ YN0007: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. must be built because it never has been before or the last one failed
2025-04-21 01:16:19,832: DEBUG - ➤ YN0007: │ canvas@npm:2.11.2 must be built because it never has been before or the last one failed
2025-04-21 01:16:19,833: DEBUG - ➤ YN0007: │ sharp@npm:0.33.4 must be built because it never has been before or the last one failed
2025-04-21 01:16:19,833: DEBUG - ➤ YN0007: │ tesseract.js@npm:5.1.0 must be built because it never has been before or the last one failed
2025-04-21 01:16:19,833: DEBUG - ➤ YN0007: │ sqlite3@npm:5.1.6 [ea905] must be built because it never has been before or the last one failed
2025-04-21 01:16:19,834: DEBUG - ➤ YN0007: │ @fortawesome/fontawesome-free@npm:5.15.4 must be built because it never has been before or the last one failed
2025-04-21 01:16:19,834: DEBUG - ➤ YN0007: │ core-js@npm:3.33.1 must be built because it never has been before or the last one failed
2025-04-21 01:16:19,834: DEBUG - ➤ YN0007: │ core-js-pure@npm:3.33.1 must be built because it never has been before or the last one failed
2025-04-21 01:16:21,221: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
2025-04-21 01:16:21,221: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT The project needs your help! Please consider supporting core-js:
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT > https://opencollective.com/core-js
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT > https://patreon.com/zloirock
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT > https://boosty.to/zloirock
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ core-js-pure@npm:3.33.1 STDOUT
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ @fortawesome/fontawesome-free@npm:5.15.4 STDOUT Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ @fortawesome/fontawesome-free@npm:5.15.4 STDOUT License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2025-04-21 01:16:21,222: DEBUG - ➤ YN0000: │ @fortawesome/fontawesome-free@npm:5.15.4 STDOUT
2025-04-21 01:16:21,803: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info it worked if it ends with ok
2025-04-21 01:16:21,803: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info using node-pre-gyp@1.0.10
2025-04-21 01:16:21,803: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info using node@20.19.0 | linux | x64
2025-04-21 01:16:21,803: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-linux-glibc-x64.tar.gz
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT husky > Setting up git hooks
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT Command failed: git rev-parse --show-toplevel --git-common-dir
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT fatal : ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT husky > Failed to install
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info it worked if it ends with ok
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info using node-pre-gyp@1.0.10
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info using node@20.19.0 | linux | x64
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info check checked for "/var/www/joplin/build/packages/tools/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" (not found)
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.6/napi-v6-linux-glibc-x64.tar.gz
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ tesseract.js@npm:5.1.0 STDOUT e[96me[1mThank you for using tesseract.js!e[96me[1m
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ tesseract.js@npm:5.1.0 STDOUT e[0me[96mIf you rely on this package, please consider supporting our open collective:e[22me[39m
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ tesseract.js@npm:5.1.0 STDOUT > e[94mhttps://opencollective.com/tesseractjs/donatee[0m
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ tesseract.js@npm:5.1.0 STDOUT
2025-04-21 01:16:21,906: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info it worked if it ends with ok
2025-04-21 01:16:21,907: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info using node-pre-gyp@1.0.10
2025-04-21 01:16:21,907: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info using node@20.19.0 | linux | x64
2025-04-21 01:16:21,963: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info check checked for "/var/www/joplin/build/packages/lib/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" (not found)
2025-04-21 01:16:21,963: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.6/napi-v6-linux-glibc-x64.tar.gz
2025-04-21 01:16:21,963: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info it worked if it ends with ok
2025-04-21 01:16:21,963: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info using node-pre-gyp@1.0.10
2025-04-21 01:16:21,963: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info using node@20.19.0 | linux | x64
2025-04-21 01:16:22,016: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info check checked for "/var/www/joplin/build/packages/server/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" (not found)
2025-04-21 01:16:22,016: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.6/napi-v6-linux-glibc-x64.tar.gz
2025-04-21 01:16:22,116: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT e[96me[1mThank you for using husky!e[96me[1m
2025-04-21 01:16:22,116: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT e[0me[96mIf you rely on this package, please consider supporting our open collective:e[22me[39m
2025-04-21 01:16:22,116: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT > e[94mhttps://opencollective.com/husky/donatee[0m
2025-04-21 01:16:22,116: DEBUG - ➤ YN0000: │ husky@patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch::version=3.1.0&hash=d9603f&locator=root%40workspace%3A. STDOUT
2025-04-21 01:16:22,320: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/
2025-04-21 01:16:22,321: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info install unpacking napi-v6-linux-glibc-x64/node_sqlite3.node
2025-04-21 01:16:22,326: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libfontconfig.so.1
2025-04-21 01:16:22,329: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info install unpacking napi-v6-linux-glibc-x64/node_sqlite3.node
2025-04-21 01:16:22,362: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libglib-2.0.so.0
2025-04-21 01:16:22,364: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info install unpacking napi-v6-linux-glibc-x64/node_sqlite3.node
2025-04-21 01:16:22,382: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info extracted file count: 1
2025-04-21 01:16:22,382: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDOUT [sqlite3] Success: "/var/www/joplin/build/packages/tools/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" is installed via remote
2025-04-21 01:16:22,383: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info ok
2025-04-21 01:16:22,392: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info extracted file count: 1
2025-04-21 01:16:22,392: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDOUT [sqlite3] Success: "/var/www/joplin/build/packages/lib/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" is installed via remote
2025-04-21 01:16:22,393: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info ok
2025-04-21 01:16:22,413: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info extracted file count: 1
2025-04-21 01:16:22,413: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDOUT [sqlite3] Success: "/var/www/joplin/build/packages/server/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" is installed via remote
2025-04-21 01:16:22,413: DEBUG - ➤ YN0000: │ sqlite3@npm:5.1.6 [ea905] STDERR node-pre-gyp info ok
2025-04-21 01:16:22,443: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libgmodule-2.0.so.0
2025-04-21 01:16:22,444: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libstdc++.so.6
2025-04-21 01:16:22,470: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libz.so.1
2025-04-21 01:16:22,474: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/canvas.node
2025-04-21 01:16:22,483: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/
2025-04-21 01:16:22,484: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas.node
2025-04-21 01:16:22,485: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/
2025-04-21 01:16:22,486: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/
2025-04-21 01:16:22,487: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/init.o
2025-04-21 01:16:22,487: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/closure.o
2025-04-21 01:16:22,488: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/
2025-04-21 01:16:22,488: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/Backend.o
2025-04-21 01:16:22,490: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/PdfBackend.o
2025-04-21 01:16:22,491: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ImageBackend.o
2025-04-21 01:16:22,491: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/SvgBackend.o
2025-04-21 01:16:22,492: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/ImageData.o
2025-04-21 01:16:22,493: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/
2025-04-21 01:16:22,494: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/BMPParser.o
2025-04-21 01:16:22,495: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/Image.o
2025-04-21 01:16:22,497: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasGradient.o
2025-04-21 01:16:22,497: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/Canvas.o
2025-04-21 01:16:22,500: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/color.o
2025-04-21 01:16:22,501: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/Backends.o
2025-04-21 01:16:22,502: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasPattern.o
2025-04-21 01:16:22,502: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasRenderingContext2d.o
2025-04-21 01:16:22,506: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/obj.target/canvas/src/register_font.o
2025-04-21 01:16:22,507: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libjpeg.so.62
2025-04-21 01:16:22,515: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libexpat.so.1
2025-04-21 01:16:22,525: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libcairo.so.2
2025-04-21 01:16:22,610: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libgobject-2.0.so.0
2025-04-21 01:16:22,634: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libxml2.so.2
2025-04-21 01:16:22,710: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libpango-1.0.so.0
2025-04-21 01:16:22,726: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libpcre.so.1
2025-04-21 01:16:22,736: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libpng16.so.16
2025-04-21 01:16:22,748: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libfreetype.so.6
2025-04-21 01:16:22,790: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libgio-2.0.so.0
2025-04-21 01:16:22,910: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libgif.so.7
2025-04-21 01:16:22,911: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libpangoft2-1.0.so.0
2025-04-21 01:16:22,916: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libffi.so.7
2025-04-21 01:16:22,917: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libpangocairo-1.0.so.0
2025-04-21 01:16:22,920: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libfribidi.so.0
2025-04-21 01:16:22,923: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/librsvg-2.so.2
2025-04-21 01:16:23,738: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libcairo-gobject.so.2
2025-04-21 01:16:23,739: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libharfbuzz.so.0
2025-04-21 01:16:23,971: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libpixman-1.so.0
2025-04-21 01:16:24,038: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/libgdk_pixbuf-2.0.so.0
2025-04-21 01:16:24,049: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/
2025-04-21 01:16:24,051: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/
2025-04-21 01:16:24,052: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/
2025-04-21 01:16:24,052: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas.node.d
2025-04-21 01:16:24,052: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/
2025-04-21 01:16:24,053: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/
2025-04-21 01:16:24,053: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/color.o.d
2025-04-21 01:16:24,053: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/
2025-04-21 01:16:24,054: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d
2025-04-21 01:16:24,054: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d
2025-04-21 01:16:24,054: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d
2025-04-21 01:16:24,054: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d
2025-04-21 01:16:24,055: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d
2025-04-21 01:16:24,056: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Canvas.o.d
2025-04-21 01:16:24,057: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/
2025-04-21 01:16:24,057: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d
2025-04-21 01:16:24,057: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Image.o.d
2025-04-21 01:16:24,058: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/register_font.o.d
2025-04-21 01:16:24,058: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Backends.o.d
2025-04-21 01:16:24,058: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d
2025-04-21 01:16:24,058: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d
2025-04-21 01:16:24,059: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ImageData.o.d
2025-04-21 01:16:24,059: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/init.o.d
2025-04-21 01:16:24,060: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info extracted file count: 72
2025-04-21 01:16:24,061: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDOUT [canvas] Success: "/var/www/joplin/build/packages/lib/node_modules/canvas/build/Release/canvas.node" is installed via remote
2025-04-21 01:16:24,061: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info ok
2025-04-21 01:16:24,062: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/closure.o.d
2025-04-21 01:16:24,062: DEBUG - ➤ YN0000: │ canvas@npm:2.11.2 STDERR node-pre-gyp info install unpacking Release/.deps/Release/canvas.node.d
2025-04-21 01:16:24,095: DEBUG - ➤ YN0007: │ root@workspace:. must be built because it never has been before or the last one failed
2025-04-21 01:16:24,451: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT [01:16:24] Using gulpfile ~/build/gulpfile.js
2025-04-21 01:16:24,451: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT [01:16:24] Starting 'build'...
2025-04-21 01:16:24,452: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT > yarn run buildSequential
2025-04-21 01:16:25,416: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/fork-htmlparser2]: Process started
2025-04-21 01:16:27,966: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/fork-htmlparser2]: Process exited (exit code 0), completed in 2s 551ms
2025-04-21 01:16:27,967: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT
2025-04-21 01:16:27,967: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown]: Process started
2025-04-21 01:16:28,260: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown]: e[36m
2025-04-21 01:16:28,260: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown]: e[1msrc/turndown.jse[22m → e[1mlib/turndown.cjs.jse[22m...e[39m
2025-04-21 01:16:28,341: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown]: e[32mcreated e[1mlib/turndown.cjs.jse[22m in e[1m81mse[22me[39m
2025-04-21 01:16:28,351: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown]: Process exited (exit code 0), completed in 0s 384ms
2025-04-21 01:16:28,351: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT
2025-04-21 01:16:28,351: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown-plugin-gfm]: Process started
2025-04-21 01:16:28,632: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown-plugin-gfm]:
2025-04-21 01:16:28,633: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown-plugin-gfm]: src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
2025-04-21 01:16:28,661: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown-plugin-gfm]: created lib/turndown-plugin-gfm.cjs.js in 29ms
2025-04-21 01:16:28,665: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/turndown-plugin-gfm]: Process exited (exit code 0), completed in 0s 314ms
2025-04-21 01:16:28,665: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT
2025-04-21 01:16:28,665: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/utils]: Process started
2025-04-21 01:16:30,383: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/utils]: Process exited (exit code 0), completed in 1s 717ms
2025-04-21 01:16:30,383: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT
2025-04-21 01:16:30,383: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/renderer]: Process started
2025-04-21 01:16:31,267: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/renderer]: Process exited (exit code 0), completed in 0s 885ms
2025-04-21 01:16:31,267: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT
2025-04-21 01:16:31,267: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: Process started
2025-04-21 01:16:31,678: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: [01:16:31] Using gulpfile ~/build/packages/server/gulpfile.js
2025-04-21 01:16:31,679: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: [01:16:31] Starting 'build'...
2025-04-21 01:16:31,679: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: [01:16:31] Starting 'compilePackageInfo'...
2025-04-21 01:16:31,685: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: Warning: Could not get git info (it will not be displayed in About dialog box)
2025-04-21 01:16:31,688: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: Generated /var/www/joplin/build/packages/server/dist/packageInfo.js
2025-04-21 01:16:31,688: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: [01:16:31] Finished 'compilePackageInfo' after 8.95 ms
2025-04-21 01:16:31,688: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: [01:16:31] Finished 'build' after 9.93 ms
2025-04-21 01:16:31,694: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: Process exited (exit code 0), completed in 0s 427ms
2025-04-21 01:16:31,694: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: Done in 6s 280ms
2025-04-21 01:16:32,713: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/htmlpack]: Process started
2025-04-21 01:16:32,724: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/lib]: Process started
2025-04-21 01:16:32,728: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/renderer]: Process started
2025-04-21 01:16:32,733: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: Process started
2025-04-21 01:16:32,736: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/tools]: Process started
2025-04-21 01:16:32,741: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/utils]: Process started
2025-04-21 01:16:34,234: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/htmlpack]: Process exited (exit code 0), completed in 1s 519ms
2025-04-21 01:16:35,001: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/utils]: Process exited (exit code 0), completed in 2s 260ms
2025-04-21 01:16:35,124: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/renderer]: Process exited (exit code 0), completed in 2s 397ms
2025-04-21 01:16:37,201: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/tools]: Process exited (exit code 0), completed in 4s 465ms
2025-04-21 01:16:37,961: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/server]: Process exited (exit code 0), completed in 5s 228ms
2025-04-21 01:16:38,356: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: [@joplin/lib]: Process exited (exit code 0), completed in 5s 632ms
2025-04-21 01:16:38,356: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT ➤ YN0000: Done in 5s 644ms
2025-04-21 01:16:38,489: DEBUG - ➤ YN0000: │ root@workspace:. STDOUT [01:16:38] Finished 'build' after 14 s
2025-04-21 01:16:38,495: DEBUG - ➤ YN0000: └ Completed in 31s 302ms
2025-04-21 01:16:38,940: DEBUG - ➤ YN0000: Done with warnings in 57s 980ms
2025-04-21 01:16:39,292: DEBUG - + ynh_exec_warn_less ynh_exec_as joplin env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2025-04-21 01:16:39,293: DEBUG - + [[ 7 -eq 1 ]]
2025-04-21 01:16:39,293: DEBUG - + ynh_exec_as joplin env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2025-04-21 01:16:39,293: DEBUG - + local user=joplin
2025-04-21 01:16:39,293: DEBUG - + shift 1
2025-04-21 01:16:39,293: DEBUG - ++ whoami
2025-04-21 01:16:39,294: DEBUG - + [[ joplin = root ]]
2025-04-21 01:16:39,294: DEBUG - + sudo -u joplin env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2025-04-21 01:16:39,510: DEBUG - ➤ YN0000: Done in 0s 66ms
2025-04-21 01:16:39,521: DEBUG - + ynh_secure_remove --file=/var/www/joplin/build/.yarn/berry
2025-04-21 01:16:39,544: INFO - '/var/www/joplin/build/.yarn/berry' wasn't deleted because it doesn't exist.
2025-04-21 01:16:39,546: DEBUG - + popd
2025-04-21 01:16:39,546: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/scripts
2025-04-21 01:16:39,546: DEBUG - + mv /var/www/joplin/build/packages /var/www/joplin
2025-04-21 01:16:39,546: DEBUG - + ynh_secure_remove --file=/var/www/joplin/build
2025-04-21 01:16:40,791: INFO - [###############+....] > Adding system configurations related to joplin...
2025-04-21 01:16:40,793: DEBUG - + ynh_add_nginx_config
2025-04-21 01:16:40,793: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,793: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,832: DEBUG - + jinja=0
2025-04-21 01:16:40,832: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/nginx.conf ']'
2025-04-21 01:16:40,832: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/nginx.conf
2025-04-21 01:16:40,832: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,844: DEBUG - ++ ynh_app_setting_get --app=joplin --key=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf
2025-04-21 01:16:40,898: DEBUG - + local checksum_value=
2025-04-21 01:16:40,898: DEBUG - + backup_file_checksum=
2025-04-21 01:16:40,898: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:40,898: DEBUG - + touch /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,900: DEBUG - + chmod 640 /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,901: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,901: DEBUG - + local target=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,901: DEBUG - + chmod o-rwx /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,902: DEBUG - + chmod g-w /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,904: DEBUG - + chown -R root:root /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,905: DEBUG - + ynh_system_user_exists joplin
2025-04-21 01:16:40,917: DEBUG - + getent passwd joplin
2025-04-21 01:16:40,918: DEBUG - + chown joplin:joplin /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,921: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-04-21 01:16:40,923: DEBUG - + chmod 400 /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,924: DEBUG - + chown root:root /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,926: DEBUG - + [[ 0 == 1 ]]
2025-04-21 01:16:40,926: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/nginx.conf /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,929: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,941: DEBUG - + test -n /
2025-04-21 01:16:40,941: DEBUG - + local path_url_slash_less=
2025-04-21 01:16:40,941: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:40,999: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,059: DEBUG - + test -n joplin
2025-04-21 01:16:41,059: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=joplin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,116: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joplin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,175: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=joplin --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,234: DEBUG - + test -n ''
2025-04-21 01:16:41,234: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-04-21 01:16:41,236: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:16:41,236: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/20/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
2025-04-21 01:16:41,295: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,295: DEBUG - ++ sort --unique
2025-04-21 01:16:41,295: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-04-21 01:16:41,296: DEBUG - + uniques_vars=('port')
2025-04-21 01:16:41,299: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,299: DEBUG - + update_only=0
2025-04-21 01:16:41,318: DEBUG - ++ md5sum /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,319: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-04-21 01:16:41,320: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf --value=b38b344d831f4803be2d1b9920d50973
2025-04-21 01:16:41,399: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:41,399: DEBUG - + '[' / '!=' / ']'
2025-04-21 01:16:41,400: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,457: DEBUG - + sed -i '/fastcgi_param\s*REMOTE_USER/d' /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,458: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,459: DEBUG - + update_only=0
2025-04-21 01:16:41,477: DEBUG - ++ md5sum /etc/nginx/conf.d/notes.maindomain.tld.d/joplin.conf
2025-04-21 01:16:41,477: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-04-21 01:16:41,478: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__etc_nginx_conf.d_notes.maindomain.tld.d_joplin.conf --value=b38b344d831f4803be2d1b9920d50973
2025-04-21 01:16:41,558: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:41,559: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2025-04-21 01:16:41,633: DEBUG - + service_name=nginx
2025-04-21 01:16:41,633: DEBUG - + action=reload
2025-04-21 01:16:41,633: DEBUG - + line_match=
2025-04-21 01:16:41,634: DEBUG - + length=20
2025-04-21 01:16:41,634: DEBUG - + log_path=/var/log/nginx/nginx.log
2025-04-21 01:16:41,634: DEBUG - + timeout=300
2025-04-21 01:16:41,634: DEBUG - + '[' reload == stop ']'
2025-04-21 01:16:41,634: DEBUG - + '[' reload == reload ']'
2025-04-21 01:16:41,634: DEBUG - + action=reload-or-restart
2025-04-21 01:16:41,634: DEBUG - ++ date --utc --rfc-3339=seconds
2025-04-21 01:16:41,634: DEBUG - ++ cut -d+ -f1
2025-04-21 01:16:41,636: DEBUG - + local 'time_start=2025-04-20 23:16:41 UTC'
2025-04-21 01:16:41,636: DEBUG - + systemctl reload-or-restart nginx
2025-04-21 01:16:41,728: DEBUG - + ynh_add_systemd_config
2025-04-21 01:16:41,732: DEBUG - + service=joplin
2025-04-21 01:16:41,732: DEBUG - + template=systemd.service
2025-04-21 01:16:41,732: DEBUG - + ynh_add_config --template=systemd.service --destination=/etc/systemd/system/joplin.service
2025-04-21 01:16:41,767: DEBUG - + jinja=0
2025-04-21 01:16:41,767: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/systemd.service ']'
2025-04-21 01:16:41,767: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/systemd.service
2025-04-21 01:16:41,767: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/joplin.service
2025-04-21 01:16:41,773: DEBUG - ++ ynh_app_setting_get --app=joplin --key=checksum__etc_systemd_system_joplin.service
2025-04-21 01:16:41,818: DEBUG - + local checksum_value=
2025-04-21 01:16:41,818: DEBUG - + backup_file_checksum=
2025-04-21 01:16:41,818: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:41,818: DEBUG - + touch /etc/systemd/system/joplin.service
2025-04-21 01:16:41,819: DEBUG - + chmod 640 /etc/systemd/system/joplin.service
2025-04-21 01:16:41,820: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/joplin.service
2025-04-21 01:16:41,820: DEBUG - + local target=/etc/systemd/system/joplin.service
2025-04-21 01:16:41,820: DEBUG - + chmod o-rwx /etc/systemd/system/joplin.service
2025-04-21 01:16:41,821: DEBUG - + chmod g-w /etc/systemd/system/joplin.service
2025-04-21 01:16:41,822: DEBUG - + chown -R root:root /etc/systemd/system/joplin.service
2025-04-21 01:16:41,824: DEBUG - + ynh_system_user_exists joplin
2025-04-21 01:16:41,835: DEBUG - + getent passwd joplin
2025-04-21 01:16:41,836: DEBUG - + chown joplin:joplin /etc/systemd/system/joplin.service
2025-04-21 01:16:41,838: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-04-21 01:16:41,839: DEBUG - + chmod 400 /etc/systemd/system/joplin.service
2025-04-21 01:16:41,840: DEBUG - + chown root:root /etc/systemd/system/joplin.service
2025-04-21 01:16:41,842: DEBUG - + [[ 0 == 1 ]]
2025-04-21 01:16:41,842: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/systemd.service /etc/systemd/system/joplin.service
2025-04-21 01:16:41,845: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/joplin.service
2025-04-21 01:16:41,856: DEBUG - + test -n /
2025-04-21 01:16:41,856: DEBUG - + local path_url_slash_less=
2025-04-21 01:16:41,856: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/systemd/system/joplin.service
2025-04-21 01:16:41,911: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/systemd/system/joplin.service
2025-04-21 01:16:41,970: DEBUG - + test -n joplin
2025-04-21 01:16:41,971: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=joplin --target_file=/etc/systemd/system/joplin.service
2025-04-21 01:16:42,033: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joplin --target_file=/etc/systemd/system/joplin.service
2025-04-21 01:16:42,094: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=joplin --target_file=/etc/systemd/system/joplin.service
2025-04-21 01:16:42,154: DEBUG - + test -n ''
2025-04-21 01:16:42,154: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-04-21 01:16:42,155: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:16:42,156: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/joplin.service
2025-04-21 01:16:42,216: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/joplin.service
2025-04-21 01:16:42,216: DEBUG - ++ sort --unique
2025-04-21 01:16:42,217: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-04-21 01:16:42,218: DEBUG - + uniques_vars=('app' 'install_dir' 'nodejs_path')
2025-04-21 01:16:42,224: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/joplin.service
2025-04-21 01:16:42,224: DEBUG - + update_only=0
2025-04-21 01:16:42,244: DEBUG - ++ md5sum /etc/systemd/system/joplin.service
2025-04-21 01:16:42,244: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-04-21 01:16:42,245: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__etc_systemd_system_joplin.service --value=a3a3372d8b7c76e1310c6b4e7e8f09a6
2025-04-21 01:16:42,326: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:42,326: DEBUG - + systemctl enable joplin --quiet
2025-04-21 01:16:42,445: DEBUG - + systemctl daemon-reload
2025-04-21 01:16:42,548: DEBUG - + yunohost service add joplin '--description=Note-taking appliction' --log=/var/log/joplin/joplin.log
2025-04-21 01:16:42,670: DEBUG - SUCCESS Le service 'joplin' a été ajouté
2025-04-21 01:16:42,746: INFO - [################+...] > Adding a configuration file...
2025-04-21 01:16:42,747: DEBUG - + ynh_add_config --template=.env --destination=/var/www/joplin/.env
2025-04-21 01:16:42,786: DEBUG - + jinja=0
2025-04-21 01:16:42,786: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/.env ']'
2025-04-21 01:16:42,786: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/.env
2025-04-21 01:16:42,786: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/joplin/.env
2025-04-21 01:16:42,796: DEBUG - ++ ynh_app_setting_get --app=joplin --key=checksum__var_www_joplin_.env
2025-04-21 01:16:42,844: DEBUG - + local checksum_value=
2025-04-21 01:16:42,845: DEBUG - + backup_file_checksum=
2025-04-21 01:16:42,845: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:42,845: DEBUG - + touch /var/www/joplin/.env
2025-04-21 01:16:42,846: DEBUG - + chmod 640 /var/www/joplin/.env
2025-04-21 01:16:42,847: DEBUG - + _ynh_apply_default_permissions /var/www/joplin/.env
2025-04-21 01:16:42,847: DEBUG - + local target=/var/www/joplin/.env
2025-04-21 01:16:42,847: DEBUG - + chmod o-rwx /var/www/joplin/.env
2025-04-21 01:16:42,849: DEBUG - + chmod g-w /var/www/joplin/.env
2025-04-21 01:16:42,850: DEBUG - + chown -R root:root /var/www/joplin/.env
2025-04-21 01:16:42,851: DEBUG - + ynh_system_user_exists joplin
2025-04-21 01:16:42,863: DEBUG - + getent passwd joplin
2025-04-21 01:16:42,864: DEBUG - + chown joplin:joplin /var/www/joplin/.env
2025-04-21 01:16:42,866: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-04-21 01:16:42,867: DEBUG - + [[ 0 == 1 ]]
2025-04-21 01:16:42,867: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_7e8cf881/conf/.env /var/www/joplin/.env
2025-04-21 01:16:42,868: DEBUG - + ynh_replace_vars --file=/var/www/joplin/.env
2025-04-21 01:16:42,878: DEBUG - + test -n /
2025-04-21 01:16:42,878: DEBUG - + local path_url_slash_less=
2025-04-21 01:16:42,878: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/var/www/joplin/.env
2025-04-21 01:16:42,933: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/var/www/joplin/.env
2025-04-21 01:16:42,990: DEBUG - + test -n joplin
2025-04-21 01:16:42,990: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=joplin --target_file=/var/www/joplin/.env
2025-04-21 01:16:43,050: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=joplin --target_file=/var/www/joplin/.env
2025-04-21 01:16:43,107: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=joplin --target_file=/var/www/joplin/.env
2025-04-21 01:16:43,167: DEBUG - + test -n ''
2025-04-21 01:16:43,167: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-04-21 01:16:43,168: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-04-21 01:16:43,168: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/var/www/joplin/.env
2025-04-21 01:16:43,232: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/joplin/.env
2025-04-21 01:16:43,232: DEBUG - ++ sort --unique
2025-04-21 01:16:43,232: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-04-21 01:16:43,233: DEBUG - + uniques_vars=('app' 'data_dir' 'db_name' 'db_pwd' 'db_user' 'domain' 'mail_pwd' 'port')
2025-04-21 01:16:43,248: DEBUG - + ynh_store_file_checksum --file=/var/www/joplin/.env
2025-04-21 01:16:43,248: DEBUG - + update_only=0
2025-04-21 01:16:43,267: DEBUG - ++ md5sum /var/www/joplin/.env
2025-04-21 01:16:43,267: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-04-21 01:16:43,269: DEBUG - + ynh_app_setting_set --app=joplin --key=checksum__var_www_joplin_.env --value=e4475879e4c1039b7ce0b1c0a896e604
2025-04-21 01:16:43,350: DEBUG - + '[' -n '' ']'
2025-04-21 01:16:43,350: DEBUG - + chmod 400 /var/www/joplin/.env
2025-04-21 01:16:43,351: DEBUG - + chown joplin:joplin /var/www/joplin/.env
2025-04-21 01:16:43,420: INFO - [#################+..] > Starting a systemd service...
2025-04-21 01:16:43,422: DEBUG - + ynh_systemd_action --service_name=joplin --action=start --log_path=systemd '--line_match=App: Call this for testing'
2025-04-21 01:16:43,557: DEBUG - + service_name=joplin
2025-04-21 01:16:43,557: DEBUG - + action=start
2025-04-21 01:16:43,557: DEBUG - + line_match='App: Call this for testing'
2025-04-21 01:16:43,557: DEBUG - + length=20
2025-04-21 01:16:43,557: DEBUG - + log_path=systemd
2025-04-21 01:16:43,557: DEBUG - + timeout=300
2025-04-21 01:16:43,557: DEBUG - + '[' start == stop ']'
2025-04-21 01:16:43,557: DEBUG - + [[ -n App: Call this for testing ]]
2025-04-21 01:16:43,558: DEBUG - ++ mktemp
2025-04-21 01:16:43,559: DEBUG - + local templog=/tmp/tmp.R2xLxUuey4
2025-04-21 01:16:43,559: DEBUG - + '[' systemd == systemd ']'
2025-04-21 01:16:43,559: DEBUG - + local pid_tail=41394
2025-04-21 01:16:43,559: DEBUG - + '[' start == reload ']'
2025-04-21 01:16:43,559: DEBUG - + journalctl --unit=joplin --follow --since=-0 --quiet
2025-04-21 01:16:43,560: DEBUG - ++ date --utc --rfc-3339=seconds
2025-04-21 01:16:43,560: DEBUG - ++ cut -d+ -f1
2025-04-21 01:16:43,562: DEBUG - + local 'time_start=2025-04-20 23:16:43 UTC'
2025-04-21 01:16:43,562: DEBUG - + systemctl start joplin
2025-04-21 01:16:43,614: DEBUG - + [[ -n App: Call this for testing ]]
2025-04-21 01:16:46,660: INFO - The service joplin has correctly executed the action start.
2025-04-21 01:16:46,662: DEBUG -
2025-04-21 01:16:46,662: DEBUG - + '[' 4 -ge 3 ']'
2025-04-21 01:16:46,662: DEBUG - + '[' 4 -eq 300 ']'
2025-04-21 01:16:46,662: DEBUG - + ynh_clean_check_starting
2025-04-21 01:16:46,662: DEBUG - + '[' -n 41394 ']'
2025-04-21 01:16:46,662: DEBUG - + kill -SIGTERM 41394
2025-04-21 01:16:46,662: DEBUG - + '[' -n /tmp/tmp.R2xLxUuey4 ']'
2025-04-21 01:16:46,662: DEBUG - + ynh_secure_remove --file=/tmp/tmp.R2xLxUuey4
2025-04-21 01:16:46,749: INFO - [##################+.] > Changing default admin password...
2025-04-21 01:16:46,751: DEBUG - ++ bcrypt_password **********
2025-04-21 01:16:46,751: DEBUG - ++ echo -n **********
2025-04-21 01:16:46,751: DEBUG - ++ python3 -c 'import bcrypt; import sys; print(bcrypt.hashpw(bytes(sys.stdin.read(), '\''ascii'\''), bcrypt.gensalt(rounds=10)).decode('\''ascii'\''))'
2025-04-21 01:16:46,804: DEBUG - + hashed_pwd=**********
2025-04-21 01:16:46,804: DEBUG - + ynh_psql_connect_as --user=joplin --password=********** --database=joplin
2025-04-21 01:16:46,864: DEBUG - + database=joplin
2025-04-21 01:16:46,864: DEBUG - + sudo --login --user=postgres PGUSER=joplin PGPASSWORD=********** psql joplin
2025-04-21 01:16:47,114: WARNING - psql: erreur : la connexion au serveur sur le socket « /var/run/postgresql/.s.PGSQL.5432 » a échoué : FATAL: authentification peer échouée pour l'utilisateur « joplin »
2025-04-21 01:16:47,118: DEBUG - + ynh_exit_properly
2025-04-21 01:16:47,118: DEBUG - + local exit_code=2
2025-04-21 01:16:47,118: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2025-04-21 01:16:47,120: DEBUG - + '[' 2 -eq 0 ']'
2025-04-21 01:16:47,724: ERROR - Impossible d'installer joplin : Une erreur est survenue dans le script d'installation de l'application