Hardware: AMD64
YunoHost version: 11.2.11.3 (stable).
I have access to my server : Yes
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : Yes - it’s behind a openVPN Server
description of my issue
Just tried to install a custom web app then this happened:
args:
app: my_webapp
force: false
label: undefined
no_remove_on_failure: false
ended_at: 2024-05-12 19:32:21.102895
env:
YNH_APP_ACTION: install
YNH_APP_ARG_DATABASE: mysql
YNH_APP_ARG_DOMAIN: domain2.tld
YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
YNH_APP_ARG_PATH: /
YNH_APP_ARG_PHPVERSION: '8.2'
YNH_APP_ARG_WITH_SFTP: '1'
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_6nzbkt9b
YNH_APP_ID: my_webapp
YNH_APP_INSTANCE_NAME: my_webapp__2
YNH_APP_INSTANCE_NUMBER: '2'
YNH_APP_MANIFEST_VERSION: 1.0~ynh15
YNH_APP_PACKAGING_FORMAT: '2.0'
YNH_ARCH: amd64
YNH_DEBIAN_VERSION: bullseye
error: Er is een fout opgetreden in het installatiescript van de app
interface: api
operation: app_install
parent: null
related_to:
- - app
- my_webapp
started_at: 2024-05-12 19:32:00.446627
success: false
yunohost_version: 11.2.11.3
============
2024-05-12 21:32:00,453: INFO - Bezig met installeren van my_webapp…
2024-05-12 21:32:00,465: INFO - Provisioning system_user...
2024-05-12 21:32:00,546: INFO - Provisioning install_dir...
2024-05-12 21:32:00,554: INFO - Provisioning permissions...
2024-05-12 21:32:01,064: DEBUG - Permission 'my_webapp__2.main' updated
2024-05-12 21:32:01,272: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240512-193201-permission_url-my_webapp__2" style="text-decoration:underline">Update URL related to permission 'my_webapp__2'</a>'
2024-05-12 21:32:01,737: DEBUG - Permission 'my_webapp__2.main' created
2024-05-12 21:32:01,737: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240512-193200-permission_create-my_webapp__2" style="text-decoration:underline">Create permission 'my_webapp__2'</a>'
2024-05-12 21:32:02,481: DEBUG - Permission 'my_webapp__2.main' updated
2024-05-12 21:32:02,481: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240512-193201-user_permission_update-my_webapp__2" style="text-decoration:underline">Update accesses for permission 'my_webapp__2'</a>'
2024-05-12 21:32:03,046: DEBUG - Nothing to update in LDAP
2024-05-12 21:32:03,046: DEBUG - Permission 'my_webapp__2.main' updated
2024-05-12 21:32:03,273: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240512-193203-permission_url-my_webapp__2" style="text-decoration:underline">Update URL related to permission 'my_webapp__2'</a>'
2024-05-12 21:32:03,571: DEBUG - The permission database has been resynchronized
2024-05-12 21:32:04,382: DEBUG - SSOwat configuration regenerated
2024-05-12 21:32:04,389: INFO - Provisioning apt...
2024-05-12 21:32:04,396: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']'
2024-05-12 21:32:04,402: DEBUG - + source /usr/share/yunohost/helpers
2024-05-12 21:32:04,402: DEBUG - +++ set +o
2024-05-12 21:32:04,402: DEBUG - +++ grep xtrace
2024-05-12 21:32:04,403: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-05-12 21:32:04,404: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-05-12 21:32:04,418: DEBUG - + ynh_abort_if_errors
2024-05-12 21:32:04,420: DEBUG - + trap ynh_exit_properly EXIT
2024-05-12 21:32:04,420: DEBUG - + ynh_install_app_dependencies nginx mariadb-server php8.2-mysql php8.2-fpm
2024-05-12 21:32:04,420: DEBUG - + local 'dependencies=nginx mariadb-server php8.2-mysql php8.2-fpm'
2024-05-12 21:32:04,420: DEBUG - ++ echo 'nginx mariadb-server php8.2-mysql php8.2-fpm'
2024-05-12 21:32:04,420: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2024-05-12 21:32:04,420: DEBUG - + dependencies='nginx, mariadb-server, php8.2-mysql, php8.2-fpm'
2024-05-12 21:32:04,420: DEBUG - + local 'dependencies=nginx, mariadb-server, php8.2-mysql, php8.2-fpm'
2024-05-12 21:32:04,421: DEBUG - ++ ynh_read_manifest --manifest_key=version
2024-05-12 21:32:04,430: DEBUG - ++ '[' '!' -e '' ']'
2024-05-12 21:32:04,430: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_15tw4n_9/manifest.json ']'
2024-05-12 21:32:04,430: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_15tw4n_9/manifest.toml ']'
2024-05-12 21:32:04,431: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_15tw4n_9/manifest.toml
2024-05-12 21:32:04,431: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_15tw4n_9/manifest.toml
2024-05-12 21:32:04,431: DEBUG - ++ grep -q '\.json$'
2024-05-12 21:32:04,431: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_15tw4n_9/manifest.toml
2024-05-12 21:32:04,432: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-05-12 21:32:04,432: DEBUG - ++ jq .version --raw-output
2024-05-12 21:32:04,504: DEBUG - + local version=1.0~ynh15
2024-05-12 21:32:04,504: DEBUG - + '[' -z 1.0~ynh15 ']'
2024-05-12 21:32:04,504: DEBUG - + '[' 1.0~ynh15 == null ']'
2024-05-12 21:32:04,504: DEBUG - + local dep_app=my-webapp--2
2024-05-12 21:32:04,505: DEBUG - + [[ nginx, mariadb-server, php8.2-mysql, php8.2-fpm =~ [<=>] ]]
2024-05-12 21:32:04,505: DEBUG - ++ echo nginx, mariadb-server, php8.2-mysql, php8.2-fpm
2024-05-12 21:32:04,505: DEBUG - ++ sort -u
2024-05-12 21:32:04,505: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2024-05-12 21:32:04,509: DEBUG - + local specific_php_version=8.2
2024-05-12 21:32:04,510: DEBUG - + [[ -n 8.2 ]]
2024-05-12 21:32:04,510: DEBUG - ++ echo 8.2
2024-05-12 21:32:04,510: DEBUG - ++ wc -l
2024-05-12 21:32:04,511: DEBUG - + [[ 1 -eq 1 ]]
2024-05-12 21:32:04,511: DEBUG - + dependencies+=', php8.2, php8.2-fpm, php8.2-common'
2024-05-12 21:32:04,511: DEBUG - ++ ynh_app_setting_get --app=my_webapp__2 --key=phpversion
2024-05-12 21:32:04,511: DEBUG - ++ local _globalapp=my_webapp__2
2024-05-12 21:32:04,528: DEBUG - ++ app=my_webapp__2
2024-05-12 21:32:04,528: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2024-05-12 21:32:04,528: DEBUG - ++ ynh_app_setting get my_webapp__2 phpversion
2024-05-12 21:32:04,572: DEBUG - + local old_phpversion=8.2
2024-05-12 21:32:04,572: DEBUG - + '[' -n 8.2 ']'
2024-05-12 21:32:04,572: DEBUG - + '[' 8.2 '!=' 8.2 ']'
2024-05-12 21:32:04,572: DEBUG - + ynh_app_setting_set --app=my_webapp__2 --key=phpversion --value=8.2
2024-05-12 21:32:04,572: DEBUG - + local _globalapp=my_webapp__2
2024-05-12 21:32:04,606: DEBUG - + app=my_webapp__2
2024-05-12 21:32:04,606: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2024-05-12 21:32:04,606: DEBUG - + ynh_app_setting set my_webapp__2 phpversion 8.2
2024-05-12 21:32:04,641: DEBUG - + test -e /usr/bin/php7.4
2024-05-12 21:32:04,641: DEBUG - + update-alternatives --set php /usr/bin/php7.4
2024-05-12 21:32:04,644: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-05-12 21:32:04,650: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-05-12 21:32:04,650: DEBUG - ++ grep --count 'ok installed'
2024-05-12 21:32:04,669: DEBUG - ++ echo yes
2024-05-12 21:32:04,669: DEBUG - + local psql_installed=yes
2024-05-12 21:32:04,669: DEBUG - + [[ true == \t\r\u\e ]]
2024-05-12 21:32:04,670: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2024-05-12 21:32:04,670: DEBUG - + cat
2024-05-12 21:32:04,670: DEBUG - + ynh_package_install_from_equivs /tmp/my-webapp--2-ynh-deps.control
2024-05-12 21:32:04,671: DEBUG - + local controlfile=/tmp/my-webapp--2-ynh-deps.control
2024-05-12 21:32:04,671: DEBUG - ++ grep '^Package: ' /tmp/my-webapp--2-ynh-deps.control
2024-05-12 21:32:04,671: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-05-12 21:32:04,672: DEBUG - + local pkgname=my-webapp--2-ynh-deps
2024-05-12 21:32:04,673: DEBUG - ++ grep '^Version: ' /tmp/my-webapp--2-ynh-deps.control
2024-05-12 21:32:04,673: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-05-12 21:32:04,674: DEBUG - + local pkgversion=1.0~ynh15
2024-05-12 21:32:04,674: DEBUG - + [[ -z my-webapp--2-ynh-deps ]]
2024-05-12 21:32:04,674: DEBUG - + [[ -z 1.0~ynh15 ]]
2024-05-12 21:32:04,674: DEBUG - + ynh_package_update
2024-05-12 21:32:04,675: DEBUG - + ynh_apt update
2024-05-12 21:32:04,675: DEBUG - + ynh_wait_dpkg_free
2024-05-12 21:32:04,957: DEBUG - + return 0
2024-05-12 21:32:04,957: DEBUG - + LC_ALL=C
2024-05-12 21:32:04,958: DEBUG - + DEBIAN_FRONTEND=noninteractive
2024-05-12 21:32:04,958: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-05-12 21:32:05,133: DEBUG - Hit:1 http://deb.debian.org/debian bullseye InRelease
2024-05-12 21:32:05,133: DEBUG - Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
2024-05-12 21:32:05,140: DEBUG - Get:3 http://forge.yunohost.org/debian bullseye InRelease [18.4 kB]
2024-05-12 21:32:05,148: DEBUG - Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
2024-05-12 21:32:05,274: DEBUG - Hit:5 https://packages.sury.org/php bullseye InRelease
2024-05-12 21:32:05,537: DEBUG - Get:6 http://security.debian.org/debian-security bullseye-security/main Sources [174 kB]
2024-05-12 21:32:05,616: DEBUG - Get:7 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [273 kB]
2024-05-12 21:32:05,721: DEBUG - Get:8 http://security.debian.org/debian-security bullseye-security/main Translation-en [176 kB]
2024-05-12 21:32:05,779: DEBUG - Fetched 734 kB in 1s (945 kB/s)
2024-05-12 21:32:07,476: DEBUG - Reading package lists...
2024-05-12 21:32:07,485: DEBUG - ++ mktemp --directory
2024-05-12 21:32:07,486: DEBUG - + local TMPDIR=/tmp/tmp.9Ogl1au9Ss
2024-05-12 21:32:07,486: DEBUG - + rm -f /usr/share/equivs/template/debian/compat
2024-05-12 21:32:07,487: DEBUG - + ynh_wait_dpkg_free
2024-05-12 21:32:07,756: DEBUG - + return 0
2024-05-12 21:32:07,757: DEBUG - + cp /tmp/my-webapp--2-ynh-deps.control /tmp/tmp.9Ogl1au9Ss/control
2024-05-12 21:32:07,758: DEBUG - + cd /tmp/tmp.9Ogl1au9Ss
2024-05-12 21:32:07,758: DEBUG - + LC_ALL=C
2024-05-12 21:32:07,758: DEBUG - + equivs-build ./control
2024-05-12 21:32:07,929: DEBUG - dpkg-buildpackage: info: source package my-webapp--2-ynh-deps
2024-05-12 21:32:07,929: DEBUG - dpkg-buildpackage: info: source version 1.0~ynh15
2024-05-12 21:32:07,930: DEBUG - dpkg-buildpackage: info: source distribution unstable
2024-05-12 21:32:07,930: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@ECZ-SRV-01.ECZ>
2024-05-12 21:32:07,967: DEBUG - dpkg-source --before-build .
2024-05-12 21:32:07,967: DEBUG - dpkg-buildpackage: info: host architecture amd64
2024-05-12 21:32:08,063: DEBUG - debian/rules clean
2024-05-12 21:32:08,067: DEBUG - dh clean
2024-05-12 21:32:08,152: DEBUG - dh_clean
2024-05-12 21:32:08,212: DEBUG - debian/rules binary
2024-05-12 21:32:08,213: DEBUG - dh binary
2024-05-12 21:32:08,304: DEBUG - dh_update_autotools_config
2024-05-12 21:32:08,358: DEBUG - dh_autoreconf
2024-05-12 21:32:08,402: DEBUG - create-stamp debian/debhelper-build-stamp
2024-05-12 21:32:08,403: DEBUG - dh_prep
2024-05-12 21:32:08,435: DEBUG - dh_install
2024-05-12 21:32:08,469: DEBUG - dh_installdocs
2024-05-12 21:32:08,503: DEBUG - dh_installchangelogs
2024-05-12 21:32:08,593: DEBUG - dh_perl
2024-05-12 21:32:08,634: DEBUG - dh_link
2024-05-12 21:32:08,668: DEBUG - dh_strip_nondeterminism
2024-05-12 21:32:08,760: DEBUG - dh_compress
2024-05-12 21:32:08,808: DEBUG - dh_fixperms
2024-05-12 21:32:08,845: DEBUG - dh_missing
2024-05-12 21:32:08,875: DEBUG - dh_installdeb
2024-05-12 21:32:08,910: DEBUG - dh_gencontrol
2024-05-12 21:32:09,040: DEBUG - dh_md5sums
2024-05-12 21:32:09,090: DEBUG - dh_builddeb
2024-05-12 21:32:09,146: DEBUG - dpkg-deb: building package 'my-webapp--2-ynh-deps' in '../my-webapp--2-ynh-deps_1.0~ynh15_all.deb'.
2024-05-12 21:32:09,199: DEBUG - dpkg-genbuildinfo --build=binary
2024-05-12 21:32:10,149: DEBUG - dpkg-genchanges --build=binary >../my-webapp--2-ynh-deps_1.0~ynh15_amd64.changes
2024-05-12 21:32:10,290: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included)
2024-05-12 21:32:10,294: DEBUG - dpkg-source --after-build .
2024-05-12 21:32:10,414: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included)
2024-05-12 21:32:10,419: DEBUG -
2024-05-12 21:32:10,419: DEBUG - The package has been created.
2024-05-12 21:32:10,420: DEBUG - Attention, the package has been created in the current directory,
2024-05-12 21:32:10,420: DEBUG - not in ".." as indicated by the message above!
2024-05-12 21:32:10,420: DEBUG - + tee ./dpkg_log
2024-05-12 21:32:10,420: DEBUG - + LC_ALL=C
2024-05-12 21:32:10,420: DEBUG - + dpkg --force-depends --install ./my-webapp--2-ynh-deps_1.0~ynh15_all.deb
2024-05-12 21:32:10,953: DEBUG - Selecting previously unselected package my-webapp--2-ynh-deps.
2024-05-12 21:32:10,997: DEBUG - (Reading database ... 135697 files and directories currently installed.)
2024-05-12 21:32:11,001: DEBUG - Preparing to unpack .../my-webapp--2-ynh-deps_1.0~ynh15_all.deb ...
2024-05-12 21:32:11,166: DEBUG - Unpacking my-webapp--2-ynh-deps (1.0~ynh15) ...
2024-05-12 21:32:11,955: DEBUG - Setting up my-webapp--2-ynh-deps (1.0~ynh15) ...
2024-05-12 21:32:13,175: DEBUG - + ynh_package_install --fix-broken
2024-05-12 21:32:13,176: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2024-05-12 21:32:13,176: DEBUG - + ynh_wait_dpkg_free
2024-05-12 21:32:13,547: DEBUG - + return 0
2024-05-12 21:32:13,547: DEBUG - + LC_ALL=C
2024-05-12 21:32:13,547: DEBUG - + DEBIAN_FRONTEND=noninteractive
2024-05-12 21:32:13,547: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2024-05-12 21:32:17,994: DEBUG - Reading package lists...
2024-05-12 21:32:18,178: DEBUG - Building dependency tree...
2024-05-12 21:32:18,255: DEBUG - Reading state information...
2024-05-12 21:32:18,422: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
2024-05-12 21:32:18,422: DEBUG - + [[ -n /tmp/tmp.9Ogl1au9Ss ]]
2024-05-12 21:32:18,422: DEBUG - + rm --recursive --force /tmp/tmp.9Ogl1au9Ss
2024-05-12 21:32:18,423: DEBUG - + ynh_package_is_installed my-webapp--2-ynh-deps
2024-05-12 21:32:18,429: DEBUG - + dpkg-query --show '--showformat=${Status}' my-webapp--2-ynh-deps
2024-05-12 21:32:18,429: DEBUG - + grep --count 'ok installed'
2024-05-12 21:32:18,472: DEBUG - + rm /tmp/my-webapp--2-ynh-deps.control
2024-05-12 21:32:18,474: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-05-12 21:32:18,482: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-05-12 21:32:18,482: DEBUG - ++ grep --count 'ok installed'
2024-05-12 21:32:18,501: DEBUG - ++ echo yes
2024-05-12 21:32:18,501: DEBUG - + local psql_installed2=yes
2024-05-12 21:32:18,501: DEBUG - + [[ yes != \y\e\s ]]
2024-05-12 21:32:18,502: DEBUG - + ynh_exit_properly
2024-05-12 21:32:18,502: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2024-05-12 21:32:19,508: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']'
2024-05-12 21:32:19,513: DEBUG - + source _common.sh
2024-05-12 21:32:19,513: DEBUG - + source /usr/share/yunohost/helpers
2024-05-12 21:32:19,513: DEBUG - +++ set +o
2024-05-12 21:32:19,513: DEBUG - +++ grep xtrace
2024-05-12 21:32:19,515: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-05-12 21:32:19,515: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-05-12 21:32:19,531: DEBUG - + password=
2024-05-12 21:32:19,532: DEBUG - + app_nb=2
2024-05-12 21:32:19,532: DEBUG - ++ grep '^Port' /etc/ssh/sshd_config
2024-05-12 21:32:19,532: DEBUG - ++ awk '{print $2}'
2024-05-12 21:32:19,534: DEBUG - + ssh_port=222
2024-05-12 21:32:19,588: INFO - [+++.................] > Validating installation parameters...
2024-05-12 21:32:19,589: DEBUG - + '[' '' '!=' '' ']'
2024-05-12 21:32:19,589: DEBUG - + ynh_die '--message=You need to set a password to enable SFTP'
2024-05-12 21:32:19,599: DEBUG - + ynh_exit_properly
2024-05-12 21:32:19,599: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2024-05-12 21:32:19,602: WARNING - You need to set a password to enable SFTP
2024-05-12 21:32:21,102: ERROR - Kan my_webapp niet installeren: Er is een fout opgetreden in het installatiescript van de app
Any suggestions?