dendrite installation script error

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.17
What app is this about: dendrite

Describe your issue

Installation fails with an internal installation script error. Inspecting the full log I do not find anything that can lead me towards solving the error.

Similar, but different installation error here: I do not get the same error about the unknown ‘matrix-synapse’ user as here: LINK censored.

The computer has plenty of disk space and 16gb of ram. It also runs a nextcloud app.

Share relevant logs or error messages

args:
  app: dendrite
  force: false
  label: Dendrite
  no_remove_on_failure: false
ended_at: 2025-07-13 11:37:15.931950
env:
  YNH_APP_ACTION: install
  YNH_APP_ARG_DOMAIN: domain2.tld
  YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
  YNH_APP_ARG_REGISTRATION: '0'
  YNH_APP_ARG_SERVER_NAME: domain2.tld
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m
  YNH_APP_ID: dendrite
  YNH_APP_INSTANCE_NAME: dendrite
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 0.14.1~ynh3
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bookworm
  YNH_DEFAULT_PHP_VERSION: '8.2'
  YNH_HELPERS_VERSION: '2'
error: An error occurred inside the app installation script
interface: api
operation: app_install
parent: null
related_to:
- - app
  - dendrite
started_at: 2025-07-13 11:34:21.947471
success: false
yunohost_version: 12.0.17

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

2025-07-13 13:34:21,950: INFO - Installing dendrite…
2025-07-13 13:34:21,955: INFO - Provisioning sources...
2025-07-13 13:34:21,956: DEBUG - Prefetching asset main: https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz ...
2025-07-13 13:34:23,452: INFO - Provisioning system_user...
2025-07-13 13:34:23,603: INFO - Provisioning install_dir...
2025-07-13 13:34:23,611: INFO - Provisioning permissions...
2025-07-13 13:34:23,647: DEBUG - Permission 'dendrite.main' updated
2025-07-13 13:34:23,649: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_url-dendrite" style="text-decoration:underline">Update URL related to permission 'dendrite'</a>'
2025-07-13 13:34:23,665: DEBUG - Permission 'dendrite.main' created
2025-07-13 13:34:23,666: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_create-dendrite" style="text-decoration:underline">Create permission 'dendrite'</a>'
2025-07-13 13:34:23,692: DEBUG - Nothing to update in LDAP
2025-07-13 13:34:23,694: DEBUG - Permission 'dendrite.main' updated
2025-07-13 13:34:23,694: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-user_permission_update-dendrite" style="text-decoration:underline">Update accesses for permission 'dendrite'</a>'
2025-07-13 13:34:23,716: DEBUG - Nothing to update in LDAP
2025-07-13 13:34:23,716: DEBUG - Permission 'dendrite.main' updated
2025-07-13 13:34:23,718: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_url-dendrite" style="text-decoration:underline">Update URL related to permission 'dendrite'</a>'
2025-07-13 13:34:23,759: DEBUG - Permission 'dendrite.server_api' updated
2025-07-13 13:34:23,760: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_url-dendrite" style="text-decoration:underline">Update URL related to permission 'dendrite'</a>'
2025-07-13 13:34:23,777: DEBUG - Permission 'dendrite.server_api' created
2025-07-13 13:34:23,778: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_create-dendrite" style="text-decoration:underline">Create permission 'dendrite'</a>'
2025-07-13 13:34:23,804: DEBUG - Permission 'dendrite.server_api' updated
2025-07-13 13:34:23,804: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-user_permission_update-dendrite" style="text-decoration:underline">Update accesses for permission 'dendrite'</a>'
2025-07-13 13:34:23,826: DEBUG - Nothing to update in LDAP
2025-07-13 13:34:23,826: DEBUG - Permission 'dendrite.server_api' updated
2025-07-13 13:34:23,828: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_url-dendrite" style="text-decoration:underline">Update URL related to permission 'dendrite'</a>'
2025-07-13 13:34:23,869: DEBUG - Permission 'dendrite.server_client_infos' updated
2025-07-13 13:34:23,871: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_url-dendrite" style="text-decoration:underline">Update URL related to permission 'dendrite'</a>'
2025-07-13 13:34:23,888: DEBUG - Permission 'dendrite.server_client_infos' created
2025-07-13 13:34:23,889: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_create-dendrite" style="text-decoration:underline">Create permission 'dendrite'</a>'
2025-07-13 13:34:23,915: DEBUG - Permission 'dendrite.server_client_infos' updated
2025-07-13 13:34:23,916: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-user_permission_update-dendrite" style="text-decoration:underline">Update accesses for permission 'dendrite'</a>'
2025-07-13 13:34:23,937: DEBUG - Nothing to update in LDAP
2025-07-13 13:34:23,938: DEBUG - Permission 'dendrite.server_client_infos' updated
2025-07-13 13:34:23,940: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250713-113423-permission_url-dendrite" style="text-decoration:underline">Update URL related to permission 'dendrite'</a>'
2025-07-13 13:34:23,951: DEBUG - The permission database has been resynchronized
2025-07-13 13:34:23,982: DEBUG - SSO and portal configurations regenerated
2025-07-13 13:34:23,989: INFO - Provisioning ports...
2025-07-13 13:34:24,465: DEBUG - Running 'systemctl restart fail2ban'
2025-07-13 13:34:25,454: SUCCESS - Firewall reloaded
2025-07-13 13:34:25,459: INFO - Provisioning apt...
2025-07-13 13:34:25,467: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2025-07-13 13:34:25,470: DEBUG - + source /usr/share/yunohost/helpers
2025-07-13 13:34:25,470: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-07-13 13:34:25,471: DEBUG - +++ cd -- /usr/share/yunohost
2025-07-13 13:34:25,471: DEBUG - +++ pwd
2025-07-13 13:34:25,471: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-07-13 13:34:25,471: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-07-13 13:34:25,473: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-07-13 13:34:25,473: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-07-13 13:34:25,494: DEBUG - + ynh_abort_if_errors
2025-07-13 13:34:25,494: DEBUG - + trap ynh_exit_properly EXIT
2025-07-13 13:34:25,494: DEBUG - + ynh_install_app_dependencies postgresql
2025-07-13 13:34:25,494: DEBUG - + local dependencies=postgresql
2025-07-13 13:34:25,494: DEBUG - ++ echo postgresql
2025-07-13 13:34:25,494: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-07-13 13:34:25,496: DEBUG - + dependencies=postgresql
2025-07-13 13:34:25,496: DEBUG - + local dependencies=postgresql
2025-07-13 13:34:25,496: DEBUG - ++ ynh_read_manifest --manifest_key=version
2025-07-13 13:34:25,511: DEBUG - ++ '[' '!' -e '' ']'
2025-07-13 13:34:25,511: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fyhanche/manifest.json ']'
2025-07-13 13:34:25,511: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fyhanche/manifest.toml ']'
2025-07-13 13:34:25,511: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fyhanche/manifest.toml
2025-07-13 13:34:25,511: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fyhanche/manifest.toml
2025-07-13 13:34:25,511: DEBUG - ++ grep -q '\.json$'
2025-07-13 13:34:25,513: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_fyhanche/manifest.toml
2025-07-13 13:34:25,513: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-07-13 13:34:25,513: DEBUG - ++ jq .version --raw-output
2025-07-13 13:34:25,550: DEBUG - + local version=0.14.1~ynh3
2025-07-13 13:34:25,550: DEBUG - + '[' -z 0.14.1~ynh3 ']'
2025-07-13 13:34:25,550: DEBUG - + '[' 0.14.1~ynh3 == null ']'
2025-07-13 13:34:25,550: DEBUG - + local dep_app=dendrite
2025-07-13 13:34:25,550: DEBUG - + [[ postgresql =~ [<=>] ]]
2025-07-13 13:34:25,550: DEBUG - ++ echo postgresql
2025-07-13 13:34:25,551: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-07-13 13:34:25,551: DEBUG - ++ sort -u
2025-07-13 13:34:25,552: DEBUG - + local specific_php_version=
2025-07-13 13:34:25,552: DEBUG - + grep --quiet php
2025-07-13 13:34:25,554: DEBUG - ++ ynh_package_is_installed postgresql-15
2025-07-13 13:34:25,563: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-15
2025-07-13 13:34:25,563: DEBUG - ++ grep --count 'ok installed'
2025-07-13 13:34:25,572: DEBUG - ++ echo yes
2025-07-13 13:34:25,573: DEBUG - + local psql_installed=yes
2025-07-13 13:34:25,573: DEBUG - + [[ true == \t\r\u\e ]]
2025-07-13 13:34:25,573: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2025-07-13 13:34:25,573: DEBUG - + cat
2025-07-13 13:34:25,574: DEBUG - + ynh_package_install_from_equivs /tmp/dendrite-ynh-deps.control
2025-07-13 13:34:25,574: DEBUG - + local controlfile=/tmp/dendrite-ynh-deps.control
2025-07-13 13:34:25,575: DEBUG - ++ grep '^Package: ' /tmp/dendrite-ynh-deps.control
2025-07-13 13:34:25,575: DEBUG - ++ cut '--delimiter= ' --fields=2
2025-07-13 13:34:25,576: DEBUG - + local pkgname=dendrite-ynh-deps
2025-07-13 13:34:25,576: DEBUG - ++ grep '^Version: ' /tmp/dendrite-ynh-deps.control
2025-07-13 13:34:25,577: DEBUG - ++ cut '--delimiter= ' --fields=2
2025-07-13 13:34:25,578: DEBUG - + local pkgversion=0.14.1~ynh3
2025-07-13 13:34:25,578: DEBUG - + [[ -z dendrite-ynh-deps ]]
2025-07-13 13:34:25,578: DEBUG - + [[ -z 0.14.1~ynh3 ]]
2025-07-13 13:34:25,578: DEBUG - + ynh_package_update
2025-07-13 13:34:25,578: DEBUG - + ynh_apt update
2025-07-13 13:34:25,578: DEBUG - + ynh_wait_dpkg_free
2025-07-13 13:34:25,703: DEBUG - + return 0
2025-07-13 13:34:25,703: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-07-13 13:34:25,890: DEBUG - Hit:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-13 13:34:25,890: DEBUG - Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-13 13:34:25,893: DEBUG - Hit:3 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-13 13:34:25,906: DEBUG - Hit:4 https://packages.sury.org/php bookworm InRelease
2025-07-13 13:34:26,010: DEBUG - Hit:5 http://repo.yunohost.org/debian bookworm InRelease
2025-07-13 13:34:26,049: DEBUG - Hit:6 https://dl.yarnpkg.com/debian stable InRelease
2025-07-13 13:34:27,680: DEBUG - Reading package lists...
2025-07-13 13:34:27,690: DEBUG - ++ mktemp --directory
2025-07-13 13:34:27,691: DEBUG - + local TMPDIR=/tmp/tmp.TdU7NeuOYU
2025-07-13 13:34:27,691: DEBUG - + mkdir -p /tmp/tmp.TdU7NeuOYU/dendrite-ynh-deps/DEBIAN/
2025-07-13 13:34:27,692: DEBUG - + chmod -R 755 /tmp/tmp.TdU7NeuOYU/dendrite-ynh-deps
2025-07-13 13:34:27,693: DEBUG - + ynh_wait_dpkg_free
2025-07-13 13:34:27,819: DEBUG - + return 0
2025-07-13 13:34:27,819: DEBUG - + cp /tmp/dendrite-ynh-deps.control /tmp/tmp.TdU7NeuOYU/dendrite-ynh-deps/DEBIAN/control
2025-07-13 13:34:27,820: DEBUG - + dpkg-deb --build /tmp/tmp.TdU7NeuOYU/dendrite-ynh-deps /tmp/tmp.TdU7NeuOYU/dendrite-ynh-deps.deb
2025-07-13 13:34:27,833: DEBUG - + dpkg --force-depends --install /tmp/tmp.TdU7NeuOYU/dendrite-ynh-deps.deb
2025-07-13 13:34:27,833: DEBUG - + tee /tmp/tmp.TdU7NeuOYU/dpkg_log
2025-07-13 13:34:27,864: DEBUG - Selecting previously unselected package dendrite-ynh-deps.
2025-07-13 13:34:27,895: DEBUG - (Reading database ... 61308 files and directories currently installed.)
2025-07-13 13:34:27,897: DEBUG - Preparing to unpack .../dendrite-ynh-deps.deb ...
2025-07-13 13:34:27,901: DEBUG - Unpacking dendrite-ynh-deps (0.14.1~ynh3) ...
2025-07-13 13:34:27,922: DEBUG - dpkg: dendrite-ynh-deps: dependency problems, but configuring anyway as you requested:
2025-07-13 13:34:27,922: DEBUG -  dendrite-ynh-deps depends on postgresql; however:
2025-07-13 13:34:27,923: DEBUG -   Package postgresql is not installed.
2025-07-13 13:34:27,923: DEBUG - 
2025-07-13 13:34:27,923: DEBUG - Setting up dendrite-ynh-deps (0.14.1~ynh3) ...
2025-07-13 13:34:27,946: DEBUG - + ynh_package_install --fix-broken
2025-07-13 13:34:27,946: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-07-13 13:34:27,946: DEBUG - + ynh_wait_dpkg_free
2025-07-13 13:34:28,061: DEBUG - + return 0
2025-07-13 13:34:28,062: 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-07-13 13:34:28,243: DEBUG - Reading package lists...
2025-07-13 13:34:28,367: DEBUG - Building dependency tree...
2025-07-13 13:34:28,368: DEBUG - Reading state information...
2025-07-13 13:34:28,418: DEBUG - Correcting dependencies... Done
2025-07-13 13:34:28,526: DEBUG - The following additional packages will be installed:
2025-07-13 13:34:28,527: DEBUG -   postgresql
2025-07-13 13:34:28,528: DEBUG - Suggested packages:
2025-07-13 13:34:28,528: DEBUG -   postgresql-doc
2025-07-13 13:34:28,537: DEBUG - The following NEW packages will be installed:
2025-07-13 13:34:28,537: DEBUG -   postgresql
2025-07-13 13:34:28,851: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2025-07-13 13:34:28,851: DEBUG - Need to get 0 B/10.1 kB of archives.
2025-07-13 13:34:28,851: DEBUG - After this operation, 15.4 kB of additional disk space will be used.
2025-07-13 13:34:28,873: DEBUG - Selecting previously unselected package postgresql.
2025-07-13 13:34:28,900: DEBUG - (Reading database ... 61308 files and directories currently installed.)
2025-07-13 13:34:28,902: DEBUG - Preparing to unpack .../postgresql_15+248_all.deb ...
2025-07-13 13:34:28,905: DEBUG - Unpacking postgresql (15+248) ...
2025-07-13 13:34:28,958: DEBUG - Setting up postgresql (15+248) ...
2025-07-13 13:34:29,091: DEBUG - + [[ -n /tmp/tmp.TdU7NeuOYU ]]
2025-07-13 13:34:29,091: DEBUG - + rm --recursive --force /tmp/tmp.TdU7NeuOYU
2025-07-13 13:34:29,092: DEBUG - + ynh_package_is_installed dendrite-ynh-deps
2025-07-13 13:34:29,101: DEBUG - + dpkg-query --show '--showformat=${Status}' dendrite-ynh-deps
2025-07-13 13:34:29,101: DEBUG - + grep --count 'ok installed'
2025-07-13 13:34:29,110: DEBUG - + rm /tmp/dendrite-ynh-deps.control
2025-07-13 13:34:29,111: DEBUG - ++ ynh_package_is_installed postgresql-15
2025-07-13 13:34:29,121: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-15
2025-07-13 13:34:29,121: DEBUG - ++ grep --count 'ok installed'
2025-07-13 13:34:29,130: DEBUG - ++ echo yes
2025-07-13 13:34:29,130: DEBUG - + local psql_installed2=yes
2025-07-13 13:34:29,130: DEBUG - + [[ yes != \y\e\s ]]
2025-07-13 13:34:29,130: DEBUG - + ynh_exit_properly
2025-07-13 13:34:29,131: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-07-13 13:34:29,232: INFO - Provisioning database...
2025-07-13 13:34:29,654: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database"  7>&1']'
2025-07-13 13:34:29,656: DEBUG - + source /usr/share/yunohost/helpers
2025-07-13 13:34:29,657: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-07-13 13:34:29,658: DEBUG - +++ cd -- /usr/share/yunohost
2025-07-13 13:34:29,658: DEBUG - +++ pwd
2025-07-13 13:34:29,658: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-07-13 13:34:29,658: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-07-13 13:34:29,660: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-07-13 13:34:29,660: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-07-13 13:34:29,681: DEBUG - + ynh_abort_if_errors
2025-07-13 13:34:29,681: DEBUG - + trap ynh_exit_properly EXIT
2025-07-13 13:34:29,681: DEBUG - + ynh_psql_create_user dendrite **********
2025-07-13 13:34:29,681: DEBUG - + local user=dendrite
2025-07-13 13:34:29,681: DEBUG - + local pwd=**********
2025-07-13 13:34:29,681: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE USER dendrite WITH ENCRYPTED PASSWORD '\''**********'\'''
2025-07-13 13:34:29,695: DEBUG - + database=
2025-07-13 13:34:29,696: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:29,696: DEBUG - ++ cat /etc/yunohost/psql
2025-07-13 13:34:29,697: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
2025-07-13 13:34:29,751: DEBUG - + database=
2025-07-13 13:34:29,751: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2025-07-13 13:34:30,192: DEBUG - CREATE ROLE
2025-07-13 13:34:30,195: DEBUG - + ynh_psql_create_db dendrite dendrite
2025-07-13 13:34:30,195: DEBUG - + local db=dendrite
2025-07-13 13:34:30,195: DEBUG - + local user=dendrite
2025-07-13 13:34:30,195: DEBUG - + local 'sql=CREATE DATABASE dendrite;'
2025-07-13 13:34:30,196: DEBUG - + '[' -n dendrite ']'
2025-07-13 13:34:30,196: DEBUG - + sql+='ALTER DATABASE dendrite OWNER TO dendrite;'
2025-07-13 13:34:30,196: DEBUG - + sql+='GRANT ALL PRIVILEGES ON DATABASE dendrite TO dendrite WITH GRANT OPTION;'
2025-07-13 13:34:30,196: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE DATABASE dendrite;ALTER DATABASE dendrite OWNER TO dendrite;GRANT ALL PRIVILEGES ON DATABASE dendrite TO dendrite WITH GRANT OPTION;'
2025-07-13 13:34:30,210: DEBUG - + database=
2025-07-13 13:34:30,210: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:30,210: DEBUG - ++ cat /etc/yunohost/psql
2025-07-13 13:34:30,211: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
2025-07-13 13:34:30,247: DEBUG - + database=
2025-07-13 13:34:30,247: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2025-07-13 13:34:30,696: DEBUG - CREATE DATABASE
2025-07-13 13:34:30,697: DEBUG - ALTER DATABASE
2025-07-13 13:34:30,699: DEBUG - GRANT
2025-07-13 13:34:30,705: DEBUG - + ynh_exit_properly
2025-07-13 13:34:30,705: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2025-07-13 13:34:30,817: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
2025-07-13 13:34:30,826: DEBUG - + source _common.sh
2025-07-13 13:34:30,826: DEBUG - ++ GO_VERSION=1.22
2025-07-13 13:34:30,826: DEBUG - ++ psql_version=
2025-07-13 13:34:30,827: DEBUG - + source /usr/share/yunohost/helpers
2025-07-13 13:34:30,828: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-07-13 13:34:30,831: DEBUG - +++ cd -- /usr/share/yunohost
2025-07-13 13:34:30,831: DEBUG - +++ pwd
2025-07-13 13:34:30,832: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-07-13 13:34:30,832: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-07-13 13:34:30,838: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-07-13 13:34:30,838: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-07-13 13:34:30,904: DEBUG - + registration_disabled=true
2025-07-13 13:34:30,904: DEBUG - + really_enable_open_registration=
2025-07-13 13:34:30,904: DEBUG - + disable_federation=false
2025-07-13 13:34:30,904: DEBUG - + ynh_app_setting_set --app=dendrite --key=server_name --value=domain2.tld
2025-07-13 13:34:31,031: DEBUG - + ynh_app_setting_set --app=dendrite --key=domain --value=domain2.tld
2025-07-13 13:34:31,120: DEBUG - + usermod -a -G ssl-cert dendrite
2025-07-13 13:34:31,216: INFO - [++..................] > Setting up source files...
2025-07-13 13:34:31,220: DEBUG - + ynh_setup_source --dest_dir=/var/www/dendrite/build
2025-07-13 13:34:31,294: DEBUG - + keep=
2025-07-13 13:34:31,294: DEBUG - + full_replace=0
2025-07-13 13:34:31,295: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/manifest.toml
2025-07-13 13:34:31,295: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/manifest.toml
2025-07-13 13:34:31,296: DEBUG - + toml_to_json
2025-07-13 13:34:31,296: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-07-13 13:34:31,296: DEBUG - + jq -e .resources.sources
2025-07-13 13:34:31,358: DEBUG - + source_id=main
2025-07-13 13:34:31,359: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/manifest.toml
2025-07-13 13:34:31,359: DEBUG - ++ toml_to_json
2025-07-13 13:34:31,359: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-07-13 13:34:31,359: DEBUG - ++ jq '.resources.sources["main"]'
2025-07-13 13:34:31,394: DEBUG - + local 'sources_json={
2025-07-13 13:34:31,394: DEBUG -   "url": "https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz",
2025-07-13 13:34:31,395: DEBUG -   "sha256": "400aca67b3ed558c8e9d1fb40588589d39e8f67102c6233a5c4d3675ed2a71ea",
2025-07-13 13:34:31,395: DEBUG -   "autoupdate": {
2025-07-13 13:34:31,395: DEBUG -     "strategy": "latest_github_tag"
2025-07-13 13:34:31,395: DEBUG -   }
2025-07-13 13:34:31,395: DEBUG - }'
2025-07-13 13:34:31,395: DEBUG - + jq -re .url
2025-07-13 13:34:31,429: DEBUG - https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz
2025-07-13 13:34:31,429: DEBUG - + local arch_prefix=
2025-07-13 13:34:31,465: DEBUG - + local src_url=https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz
2025-07-13 13:34:31,500: DEBUG - + local src_sum=400aca67b3ed558c8e9d1fb40588589d39e8f67102c6233a5c4d3675ed2a71ea
2025-07-13 13:34:31,500: DEBUG - + local src_sumprg=sha256sum
2025-07-13 13:34:31,537: DEBUG - + local src_format=
2025-07-13 13:34:31,573: DEBUG - + local src_in_subdir=
2025-07-13 13:34:31,609: DEBUG - + local src_extract=
2025-07-13 13:34:31,644: DEBUG - + local src_platform=
2025-07-13 13:34:31,680: DEBUG - + local src_rename=
2025-07-13 13:34:31,680: DEBUG - + [[ -n https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz ]]
2025-07-13 13:34:31,680: DEBUG - + [[ -n 400aca67b3ed558c8e9d1fb40588589d39e8f67102c6233a5c4d3675ed2a71ea ]]
2025-07-13 13:34:31,681: DEBUG - + [[ -z '' ]]
2025-07-13 13:34:31,681: DEBUG - + [[ https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz =~ ^.*\.zip$ ]]
2025-07-13 13:34:31,681: DEBUG - + [[ https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz =~ ^.*/zipball/.*$ ]]
2025-07-13 13:34:31,681: DEBUG - + [[ https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz =~ ^.*\.tar\.gz$ ]]
2025-07-13 13:34:31,681: DEBUG - + src_format=tar.gz
2025-07-13 13:34:31,681: DEBUG - + src_sumprg=sha256sum
2025-07-13 13:34:31,681: DEBUG - + src_in_subdir=true
2025-07-13 13:34:31,681: DEBUG - + src_format=tar.gz
2025-07-13 13:34:31,681: DEBUG - ++ echo tar.gz
2025-07-13 13:34:31,681: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-07-13 13:34:31,682: DEBUG - + src_format=tar.gz
2025-07-13 13:34:31,683: DEBUG - + src_extract=true
2025-07-13 13:34:31,683: DEBUG - + [[ true != \t\r\u\e ]]
2025-07-13 13:34:31,683: DEBUG - + local local_src=/opt/yunohost-apps-src/dendrite/main
2025-07-13 13:34:31,683: DEBUG - ++ dirname /var/cache/yunohost/download/dendrite/main
2025-07-13 13:34:31,684: DEBUG - + mkdir -p /var/cache/yunohost/download/dendrite
2025-07-13 13:34:31,685: DEBUG - + src_filename=/var/cache/yunohost/download/dendrite/main
2025-07-13 13:34:31,685: DEBUG - + '[' tar.gz = docker ']'
2025-07-13 13:34:31,685: DEBUG - + test -e /opt/yunohost-apps-src/dendrite/main
2025-07-13 13:34:31,685: DEBUG - + '[' -n https://github.com/element-hq/dendrite/archive/refs/tags/v0.14.1.tar.gz ']'
2025-07-13 13:34:31,685: DEBUG - + '[' -e /var/cache/yunohost/download/dendrite/main ']'
2025-07-13 13:34:31,686: DEBUG - + sha256sum --check --status
2025-07-13 13:34:31,693: DEBUG - + '[' '!' -e /var/cache/yunohost/download/dendrite/main ']'
2025-07-13 13:34:31,694: DEBUG - + sha256sum --check --status
2025-07-13 13:34:31,701: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-07-13 13:34:31,702: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:31,702: DEBUG - + mkdir --parents /var/www/dendrite/build
2025-07-13 13:34:31,703: DEBUG - + '[' -n /var/www/dendrite ']'
2025-07-13 13:34:31,703: DEBUG - + '[' /var/www/dendrite/build == /var/www/dendrite ']'
2025-07-13 13:34:31,704: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:31,704: DEBUG - + [[ true == \f\a\l\s\e ]]
2025-07-13 13:34:31,704: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]]
2025-07-13 13:34:31,704: DEBUG - + [[ tar.gz == \z\i\p ]]
2025-07-13 13:34:31,704: DEBUG - + local strip=
2025-07-13 13:34:31,704: DEBUG - + '[' true '!=' false ']'
2025-07-13 13:34:31,704: DEBUG - + '[' true == true ']'
2025-07-13 13:34:31,704: DEBUG - + local sub_dirs=1
2025-07-13 13:34:31,704: DEBUG - + strip='--strip-components 1'
2025-07-13 13:34:31,704: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2025-07-13 13:34:31,704: DEBUG - + tar --extract --file=/var/cache/yunohost/download/dendrite/main --directory=/var/www/dendrite/build --strip-components 1
2025-07-13 13:34:31,748: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/dendrite/main
2025-07-13 13:34:31,766: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/sources/patches/ ']'
2025-07-13 13:34:31,766: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/sources/extra_files/main
2025-07-13 13:34:31,766: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:31,766: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-07-13 13:34:31,767: DEBUG - + chmod -R o-rwx /var/www/dendrite
2025-07-13 13:34:31,774: DEBUG - + chown -R dendrite:root /var/www/dendrite
2025-07-13 13:34:31,890: INFO - [##+.................] > Configuring NGINX web server...
2025-07-13 13:34:31,895: DEBUG - + ynh_add_nginx_config
2025-07-13 13:34:31,896: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:31,896: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,007: DEBUG - + jinja=0
2025-07-13 13:34:32,008: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/conf/nginx.conf ']'
2025-07-13 13:34:32,008: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/conf/nginx.conf
2025-07-13 13:34:32,008: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,040: DEBUG - ++ ynh_app_setting_get --app=dendrite --key=checksum__etc_nginx_conf.d_domain2.tld.d_dendrite.conf
2025-07-13 13:34:32,195: DEBUG - + local checksum_value=
2025-07-13 13:34:32,195: DEBUG - + backup_file_checksum=
2025-07-13 13:34:32,195: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:32,195: DEBUG - + touch /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,196: DEBUG - + chmod 640 /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,197: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,197: DEBUG - + local target=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,197: DEBUG - + chmod o-rwx /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,198: DEBUG - + chmod g-w /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,199: DEBUG - + chown -R root:root /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,200: DEBUG - + ynh_system_user_exists dendrite
2025-07-13 13:34:32,210: DEBUG - + getent passwd dendrite
2025-07-13 13:34:32,211: DEBUG - + chown dendrite:dendrite /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,214: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-07-13 13:34:32,216: DEBUG - + chmod 400 /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,216: DEBUG - + chown root:root /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,218: DEBUG - + [[ 0 == 1 ]]
2025-07-13 13:34:32,218: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/conf/nginx.conf /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,219: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,229: DEBUG - + test -n /
2025-07-13 13:34:32,229: DEBUG - + local path_url_slash_less=
2025-07-13 13:34:32,229: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,280: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,339: DEBUG - + test -n dendrite
2025-07-13 13:34:32,339: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=dendrite --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,477: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=dendrite --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,632: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=dendrite --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,789: DEBUG - + test -n ''
2025-07-13 13:34:32,789: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-07-13 13:34:32,793: DEBUG - + test -n ''
2025-07-13 13:34:32,796: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,796: DEBUG - ++ sort --unique
2025-07-13 13:34:32,796: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-07-13 13:34:32,801: DEBUG - + uniques_vars=('port')
2025-07-13 13:34:32,806: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,807: DEBUG - + update_only=0
2025-07-13 13:34:32,854: DEBUG - ++ md5sum /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:32,855: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-07-13 13:34:32,858: DEBUG - + ynh_app_setting_set --app=dendrite --key=checksum__etc_nginx_conf.d_domain2.tld.d_dendrite.conf --value=5b3f9110b6ff6757b4e02a29859852ec
2025-07-13 13:34:33,083: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:33,083: DEBUG - + '[' / '!=' / ']'
2025-07-13 13:34:33,083: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:33,136: DEBUG - + sed -i '/fastcgi_param\s*REMOTE_USER/d' /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:33,138: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:33,139: DEBUG - + update_only=0
2025-07-13 13:34:33,160: DEBUG - ++ md5sum /etc/nginx/conf.d/domain2.tld.d/dendrite.conf
2025-07-13 13:34:33,160: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-07-13 13:34:33,162: DEBUG - + ynh_app_setting_set --app=dendrite --key=checksum__etc_nginx_conf.d_domain2.tld.d_dendrite.conf --value=5b3f9110b6ff6757b4e02a29859852ec
2025-07-13 13:34:33,373: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:33,373: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2025-07-13 13:34:33,455: DEBUG - + service_name=nginx
2025-07-13 13:34:33,455: DEBUG - + action=reload
2025-07-13 13:34:33,455: DEBUG - + line_match=
2025-07-13 13:34:33,456: DEBUG - + length=20
2025-07-13 13:34:33,456: DEBUG - + log_path=/var/log/nginx/nginx.log
2025-07-13 13:34:33,456: DEBUG - + timeout=300
2025-07-13 13:34:33,456: DEBUG - + '[' reload == stop ']'
2025-07-13 13:34:33,456: DEBUG - + '[' reload == reload ']'
2025-07-13 13:34:33,457: DEBUG - + action=reload-or-restart
2025-07-13 13:34:33,457: DEBUG - ++ date --utc --rfc-3339=seconds
2025-07-13 13:34:33,457: DEBUG - ++ cut -d+ -f1
2025-07-13 13:34:33,460: DEBUG - + local 'time_start=2025-07-13 11:34:33 UTC'
2025-07-13 13:34:33,461: DEBUG - + systemctl reload-or-restart nginx
2025-07-13 13:34:33,625: DEBUG - + yunohost --output-as plain domain list
2025-07-13 13:34:33,625: DEBUG - + grep -q '^domain2.tld$'
2025-07-13 13:34:33,827: DEBUG - + ynh_add_config --template=server_name.conf --destination=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,864: DEBUG - + jinja=0
2025-07-13 13:34:33,864: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/conf/server_name.conf ']'
2025-07-13 13:34:33,864: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/conf/server_name.conf
2025-07-13 13:34:33,864: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,874: DEBUG - ++ ynh_app_setting_get --app=dendrite --key=checksum__etc_nginx_conf.d_domain2.tld.d_dendrite_server_name.conf
2025-07-13 13:34:33,959: DEBUG - + local checksum_value=
2025-07-13 13:34:33,959: DEBUG - + backup_file_checksum=
2025-07-13 13:34:33,959: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:33,960: DEBUG - + touch /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,960: DEBUG - + chmod 640 /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,961: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,962: DEBUG - + local target=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,962: DEBUG - + chmod o-rwx /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,962: DEBUG - + chmod g-w /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,963: DEBUG - + chown -R root:root /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,964: DEBUG - + ynh_system_user_exists dendrite
2025-07-13 13:34:33,974: DEBUG - + getent passwd dendrite
2025-07-13 13:34:33,975: DEBUG - + chown dendrite:dendrite /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,977: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-07-13 13:34:33,978: DEBUG - + chmod 400 /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,979: DEBUG - + chown root:root /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,980: DEBUG - + [[ 0 == 1 ]]
2025-07-13 13:34:33,980: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/conf/server_name.conf /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,982: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:33,992: DEBUG - + test -n /
2025-07-13 13:34:33,992: DEBUG - + local path_url_slash_less=
2025-07-13 13:34:33,992: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,047: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,155: DEBUG - + test -n dendrite
2025-07-13 13:34:34,155: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=dendrite --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,313: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=dendrite --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,470: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=dendrite --target_file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,626: DEBUG - + test -n ''
2025-07-13 13:34:34,627: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-07-13 13:34:34,630: DEBUG - + test -n ''
2025-07-13 13:34:34,632: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,633: DEBUG - ++ sort --unique
2025-07-13 13:34:34,633: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-07-13 13:34:34,638: DEBUG - + uniques_vars=('domain' 'port_tls')
2025-07-13 13:34:34,648: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,649: DEBUG - + update_only=0
2025-07-13 13:34:34,697: DEBUG - ++ md5sum /etc/nginx/conf.d/domain2.tld.d/dendrite_server_name.conf
2025-07-13 13:34:34,697: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-07-13 13:34:34,700: DEBUG - + ynh_app_setting_set --app=dendrite --key=checksum__etc_nginx_conf.d_domain2.tld.d_dendrite_server_name.conf --value=5c5d0b113b7da73f9ee777c366e66c4e
2025-07-13 13:34:34,925: DEBUG - + '[' -n '' ']'
2025-07-13 13:34:34,997: INFO - [###++++++++.........] > Building the sources (it will take some time)...
2025-07-13 13:34:35,002: DEBUG - + ynh_exec_warn_less ynh_install_go --go_version=1.22
2025-07-13 13:34:35,002: DEBUG - + [[ 2 -eq 1 ]]
2025-07-13 13:34:35,002: DEBUG - + ynh_install_go --go_version=1.22
2025-07-13 13:34:35,026: DEBUG - + local CLEAR_PATH=/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-07-13 13:34:35,028: DEBUG - ++ echo /opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-07-13 13:34:35,028: DEBUG - ++ sed s@/usr/local/bin:@@
2025-07-13 13:34:35,032: DEBUG - + PATH=/opt/goenv/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2025-07-13 13:34:35,033: DEBUG - + test -x /usr/bin/go
2025-07-13 13:34:35,033: DEBUG - + mkdir -p /opt/goenv
2025-07-13 13:34:35,036: DEBUG - + pushd /opt/goenv
2025-07-13 13:34:35,037: DEBUG - /opt/goenv /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:35,037: DEBUG - + '[' -x /opt/goenv/bin/goenv ']'
2025-07-13 13:34:35,037: DEBUG - + ynh_print_info '--message=Updating goenv...'
2025-07-13 13:34:35,066: INFO - Updating goenv...
2025-07-13 13:34:35,071: DEBUG - + git fetch -q --tags --prune origin
2025-07-13 13:34:35,567: DEBUG - +++ git rev-list --tags --max-count=1
2025-07-13 13:34:35,572: DEBUG - ++ git describe --tags 30eab56a3a2146917e4110a4e75e20312ac39417
2025-07-13 13:34:35,575: DEBUG - + local git_latest_tag=2.2.26
2025-07-13 13:34:35,575: DEBUG - + git checkout -q 2.2.26
2025-07-13 13:34:35,584: DEBUG - + ynh_go_try_bash_extension
2025-07-13 13:34:35,584: DEBUG - + '[' -x src/configure ']'
2025-07-13 13:34:35,584: DEBUG - + src/configure
2025-07-13 13:34:35,587: DEBUG - warning: gcc not found; using CC=cc
2025-07-13 13:34:35,587: DEBUG - aborted: compiler not found: cc
2025-07-13 13:34:35,587: DEBUG - + ynh_print_info '--message=Optional bash extension failed to build, but things will still work normally.'
2025-07-13 13:34:35,602: INFO - Optional bash extension failed to build, but things will still work normally.
2025-07-13 13:34:35,605: DEBUG - + goenv=/opt/goenv/bin/goenv
2025-07-13 13:34:35,605: DEBUG - + popd
2025-07-13 13:34:35,605: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:35,605: DEBUG - + goenv_latest_dir=/opt/goenv/plugins/xxenv-latest
2025-07-13 13:34:35,605: DEBUG - + mkdir -p /opt/goenv/plugins/xxenv-latest
2025-07-13 13:34:35,606: DEBUG - + pushd /opt/goenv/plugins/xxenv-latest
2025-07-13 13:34:35,606: DEBUG - /opt/goenv/plugins/xxenv-latest /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:35,606: DEBUG - + '[' -x /opt/goenv/plugins/xxenv-latest/bin/goenv-latest ']'
2025-07-13 13:34:35,606: DEBUG - + ynh_print_info '--message=Updating xxenv-latest...'
2025-07-13 13:34:35,630: INFO - Updating xxenv-latest...
2025-07-13 13:34:35,635: DEBUG - + git fetch -q --tags --prune origin
2025-07-13 13:34:36,062: DEBUG - +++ git rev-list --tags --max-count=1
2025-07-13 13:34:36,064: DEBUG - ++ git describe --tags 21948fe4eb2e9ce15c11f494a93c3e91af7ac131
2025-07-13 13:34:36,066: DEBUG - + local git_latest_tag=v0.2.1
2025-07-13 13:34:36,066: DEBUG - + git checkout -q v0.2.1
2025-07-13 13:34:36,069: DEBUG - + popd
2025-07-13 13:34:36,069: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:36,069: DEBUG - + mkdir -p /opt/goenv/cache
2025-07-13 13:34:36,070: DEBUG - + mkdir -p /opt/goenv/shims
2025-07-13 13:34:36,072: DEBUG - + PATH=/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-07-13 13:34:36,072: DEBUG - + test -x /usr/bin/go_goenv
2025-07-13 13:34:36,073: DEBUG - ++ /opt/goenv/plugins/xxenv-latest/bin/goenv-latest --print 1.22
2025-07-13 13:34:37,470: DEBUG - + local final_go_version=1.22.12
2025-07-13 13:34:37,470: DEBUG - + ynh_print_info '--message=Installation of Go-1.22.12'
2025-07-13 13:34:37,500: INFO - Installation of Go-1.22.12
2025-07-13 13:34:37,505: DEBUG - + goenv install --skip-existing 1.22.12
2025-07-13 13:34:37,555: DEBUG - + ynh_app_setting_set --app=dendrite --key=go_version --value=1.22.12
2025-07-13 13:34:37,780: DEBUG - + ynh_cleanup_go
2025-07-13 13:34:37,781: DEBUG - ++ yunohost app list --output-as json --quiet
2025-07-13 13:34:37,988: DEBUG - + local 'installed_apps=dendrite
2025-07-13 13:34:37,988: DEBUG - nextcloud'
2025-07-13 13:34:37,988: DEBUG - + local required_go_versions=
2025-07-13 13:34:37,989: DEBUG - + for installed_app in $installed_apps
2025-07-13 13:34:37,989: DEBUG - ++ ynh_app_setting_get --app=dendrite --key=go_version
2025-07-13 13:34:38,055: DEBUG - + local installed_app_go_version=1.22.12
2025-07-13 13:34:38,055: DEBUG - + [[ -n 1.22.12 ]]
2025-07-13 13:34:38,055: DEBUG - + required_go_versions='1.22.12\n'
2025-07-13 13:34:38,055: DEBUG - + for installed_app in $installed_apps
2025-07-13 13:34:38,055: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=go_version
2025-07-13 13:34:38,122: DEBUG - + local installed_app_go_version=
2025-07-13 13:34:38,123: DEBUG - ++ goenv versions --bare --skip-aliases
2025-07-13 13:34:38,123: DEBUG - ++ grep -Ev /
2025-07-13 13:34:38,137: DEBUG - + local installed_go_versions=1.22.12
2025-07-13 13:34:38,138: DEBUG - + for installed_go_version in $installed_go_versions
2025-07-13 13:34:38,138: DEBUG - ++ echo '1.22.12\n'
2025-07-13 13:34:38,138: DEBUG - ++ grep 1.22.12
2025-07-13 13:34:38,140: DEBUG - + [[ ! -n 1.22.12\n ]]
2025-07-13 13:34:38,140: DEBUG - export GOENV_ROOT=/opt/goenv
2025-07-13 13:34:38,140: DEBUG - export PATH="/opt/goenv/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
2025-07-13 13:34:38,140: DEBUG - eval "$(goenv init -)"
2025-07-13 13:34:38,140: DEBUG - #goenv'
2025-07-13 13:34:38,140: DEBUG - ++ goenv init -
2025-07-13 13:34:38,188: DEBUG - + HOME=/var/www/dendrite
2025-07-13 13:34:38,188: DEBUG - + eval 'export GOENV_SHELL=bash
2025-07-13 13:34:38,188: DEBUG - export GOENV_ROOT=/opt/goenv
2025-07-13 13:34:38,188: DEBUG - if [ -z "${GOENV_RC_FILE:-}" ]; then
2025-07-13 13:34:38,188: DEBUG -   GOENV_RC_FILE="${HOME}/.goenvrc"
2025-07-13 13:34:38,188: DEBUG - fi
2025-07-13 13:34:38,188: DEBUG - if [ -e "${GOENV_RC_FILE:-}" ]; then
2025-07-13 13:34:38,188: DEBUG -   source "${GOENV_RC_FILE}"
2025-07-13 13:34:38,188: DEBUG - fi
2025-07-13 13:34:38,188: DEBUG - if [ "${PATH#*$GOENV_ROOT/shims}" = "${PATH}" ]; then
2025-07-13 13:34:38,188: DEBUG -   if [ "${GOENV_PATH_ORDER:-}" = "front" ] ; then
2025-07-13 13:34:38,188: DEBUG -     export PATH="${GOENV_ROOT}/shims:${PATH}"
2025-07-13 13:34:38,189: DEBUG -   else
2025-07-13 13:34:38,189: DEBUG -     export PATH="${PATH}:${GOENV_ROOT}/shims"
2025-07-13 13:34:38,189: DEBUG -   fi
2025-07-13 13:34:38,189: DEBUG - fi
2025-07-13 13:34:38,189: DEBUG - source '\''/opt/goenv/libexec/../completions/goenv.bash'\''
2025-07-13 13:34:38,189: DEBUG - command goenv rehash 2>/dev/null
2025-07-13 13:34:38,189: DEBUG - goenv() {
2025-07-13 13:34:38,189: DEBUG -   command="$1"
2025-07-13 13:34:38,189: DEBUG -   if [ "$#" -gt 0 ]; then
2025-07-13 13:34:38,189: DEBUG -     shift
2025-07-13 13:34:38,189: DEBUG -   fi
2025-07-13 13:34:38,189: DEBUG - 
2025-07-13 13:34:38,189: DEBUG -   case "$command" in
2025-07-13 13:34:38,189: DEBUG -   rehash|shell)
2025-07-13 13:34:38,189: DEBUG -     eval "$(goenv "sh-$command" "$@")";;
2025-07-13 13:34:38,189: DEBUG -   *)
2025-07-13 13:34:38,189: DEBUG -     command goenv "$command" "$@";;
2025-07-13 13:34:38,189: DEBUG -   esac
2025-07-13 13:34:38,190: DEBUG - }
2025-07-13 13:34:38,190: DEBUG -   goenv rehash --only-manage-paths'
2025-07-13 13:34:38,190: DEBUG - ++ export GOENV_SHELL=bash
2025-07-13 13:34:38,190: DEBUG - ++ GOENV_SHELL=bash
2025-07-13 13:34:38,190: DEBUG - ++ export GOENV_ROOT=/opt/goenv
2025-07-13 13:34:38,190: DEBUG - ++ GOENV_ROOT=/opt/goenv
2025-07-13 13:34:38,190: DEBUG - ++ '[' -z '' ']'
2025-07-13 13:34:38,190: DEBUG - ++ GOENV_RC_FILE=/var/www/dendrite/.goenvrc
2025-07-13 13:34:38,190: DEBUG - ++ '[' -e /var/www/dendrite/.goenvrc ']'
2025-07-13 13:34:38,190: DEBUG - ++ '[' /opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin = /opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ']'
2025-07-13 13:34:38,190: DEBUG - ++ '[' '' = front ']'
2025-07-13 13:34:38,190: DEBUG - ++ export PATH=/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims
2025-07-13 13:34:38,190: DEBUG - ++ PATH=/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims
2025-07-13 13:34:38,190: DEBUG - ++ source /opt/goenv/libexec/../completions/goenv.bash
2025-07-13 13:34:38,190: DEBUG - +++ complete -F _goenv goenv
2025-07-13 13:34:38,190: DEBUG - ++ command goenv rehash
2025-07-13 13:34:38,219: DEBUG - ++ goenv rehash --only-manage-paths
2025-07-13 13:34:38,220: DEBUG - ++ command=rehash
2025-07-13 13:34:38,220: DEBUG - ++ '[' 2 -gt 0 ']'
2025-07-13 13:34:38,220: DEBUG - ++ shift
2025-07-13 13:34:38,220: DEBUG - ++ case "$command" in
2025-07-13 13:34:38,220: DEBUG - +++ goenv sh-rehash --only-manage-paths
2025-07-13 13:34:38,221: DEBUG - +++ command=sh-rehash
2025-07-13 13:34:38,221: DEBUG - +++ '[' 2 -gt 0 ']'
2025-07-13 13:34:38,221: DEBUG - +++ shift
2025-07-13 13:34:38,221: DEBUG - +++ case "$command" in
2025-07-13 13:34:38,221: DEBUG - +++ command goenv sh-rehash --only-manage-paths
2025-07-13 13:34:38,256: DEBUG - ++ case "$command" in
2025-07-13 13:34:38,256: DEBUG - ++ eval ''
2025-07-13 13:34:38,256: DEBUG - + pushd /var/www/dendrite/build
2025-07-13 13:34:38,257: DEBUG - /var/www/dendrite/build /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:38,257: DEBUG - + ynh_use_go
2025-07-13 13:34:38,258: DEBUG - ++ ynh_app_setting_get --app=dendrite --key=go_version
2025-07-13 13:34:38,403: DEBUG - + go_version=1.22.12
2025-07-13 13:34:38,403: DEBUG - + go_path=/opt/goenv/versions/1.22.12/bin
2025-07-13 13:34:38,403: DEBUG - + shopt -s expand_aliases
2025-07-13 13:34:38,404: DEBUG - + ynh_go=/opt/goenv/versions/1.22.12/bin/go
2025-07-13 13:34:38,404: DEBUG - + alias ynh_go=/opt/goenv/versions/1.22.12/bin/go
2025-07-13 13:34:38,404: DEBUG - + [[ :/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims: != *\:\/\o\p\t\/\g\o\e\n\v\/\v\e\r\s\i\o\n\s\/\1\.\2\2\.\1\2\/\b\i\n* ]]
2025-07-13 13:34:38,404: DEBUG - + PATH=/opt/goenv/versions/1.22.12/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims
2025-07-13 13:34:38,404: DEBUG - + ynh_go_load_path=PATH=/opt/goenv/versions/1.22.12/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims
2025-07-13 13:34:38,404: DEBUG - + pushd /var/www/dendrite
2025-07-13 13:34:38,404: DEBUG - /var/www/dendrite /var/www/dendrite/build /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:38,404: DEBUG - + /opt/goenv/bin/goenv local 1.22.12
2025-07-13 13:34:38,437: DEBUG - + popd
2025-07-13 13:34:38,437: DEBUG - /var/www/dendrite/build /var/cache/yunohost/app_tmp_work_dirs/app_18sqgq0m/scripts
2025-07-13 13:34:38,437: DEBUG - + export GOPATH=/var/www/dendrite/build/go
2025-07-13 13:34:38,437: DEBUG - + GOPATH=/var/www/dendrite/build/go
2025-07-13 13:34:38,437: DEBUG - + export GOCACHE=/var/www/dendrite/build/.cache
2025-07-13 13:34:38,438: DEBUG - + GOCACHE=/var/www/dendrite/build/.cache
2025-07-13 13:34:38,438: DEBUG - + CGO_ENABLED=1
2025-07-13 13:34:38,438: DEBUG - + go build -trimpath -v -o /var/www/dendrite/bin/ ./cmd/dendrite
2025-07-13 13:37:15,321: DEBUG - + ynh_exit_properly
2025-07-13 13:37:15,321: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2025-07-13 13:37:15,926: ERROR - Unable to install dendrite: An error occurred inside the app installation script

The build is interrupted after 3 minutes.

Does dmesg | grep -Ei 'killed process|oom|out of memory' return something ?

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