The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 30.0.4
- Operating system and version (e.g., Ubuntu 24.04):
- Debian 12
- Web server and version (e.g, Apache 2.4.25):
- NGINX 1.22.1-9
- Reverse proxy and version _(e.g. nginx 1.27.2)
- NGINX 1.22.1-9
- PHP version (e.g, 8.3):
- 8.3
- Is this the first time you’ve seen this error? (Yes / No):
- No
- When did this problem seem to first start?
- Don’t know
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Installation script
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- No
Summary of the issue you are facing:
The installation fails for a reason i couldn’t identify.
Steps to replicate it (hint: details matter!):
- Execute the install script (the script commands are visible in the log)
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
args:
app: nextcloud
force: false
label: Cloud
no_remove_on_failure: false
ended_at: 2025-01-05 20:48:03.397804
env:
YNH_APP_ACTION: install
YNH_APP_ARG_ADMIN: stemy
YNH_APP_ARG_DOMAIN: cloud.maindomain.tld
YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
YNH_APP_ARG_PATH: /
YNH_APP_ARG_USER_HOME: '1'
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz
YNH_APP_ID: nextcloud
YNH_APP_INSTANCE_NAME: nextcloud
YNH_APP_INSTANCE_NUMBER: '1'
YNH_APP_MANIFEST_VERSION: 30.0.4~ynh2
YNH_APP_PACKAGING_FORMAT: '2.0'
YNH_ARCH: arm64
YNH_DEBIAN_VERSION: bookworm
YNH_DEFAULT_PHP_VERSION: '8.2'
YNH_HELPERS_VERSION: '2.1'
error: 'Une erreur est survenue dans le script d''installation de l''application :
Unable to install nextcloud'
interface: api
operation: app_install
parent: null
related_to:
- - app
- nextcloud
started_at: 2025-01-05 20:36:04.134743
success: false
yunohost_version: 12.0.9.1
============
2025-01-05 20:36:04,519: INFO - Installation de nextcloud…
2025-01-05 20:36:04,527: INFO - Provisioning sources...
2025-01-05 20:36:04,529: DEBUG - Prefetching asset main: https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 ...
2025-01-05 20:39:28,959: INFO - Provisioning system_user...
2025-01-05 20:39:36,384: INFO - Provisioning install_dir...
2025-01-05 20:39:36,391: INFO - Provisioning data_dir...
2025-01-05 20:39:36,399: INFO - Provisioning permissions...
2025-01-05 20:39:39,303: DEBUG - Permission 'nextcloud.main' mise à jour
2025-01-05 20:39:39,305: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203938-permission_url-nextcloud" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'nextcloud' </a>'
2025-01-05 20:39:39,935: DEBUG - Permission 'nextcloud.main' créée
2025-01-05 20:39:39,935: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203936-permission_create-nextcloud" style="text-decoration :underline"> Créer permission 'nextcloud' </a>'
2025-01-05 20:39:39,974: DEBUG - Permission 'nextcloud.main' mise à jour
2025-01-05 20:39:39,975: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203939-user_permission_update-nextcloud" style="text-decoration :underline"> Mise à jour des accès pour la permission 'nextcloud' </a>'
2025-01-05 20:39:39,991: DEBUG - Nothing to update in LDAP
2025-01-05 20:39:39,991: DEBUG - Permission 'nextcloud.main' mise à jour
2025-01-05 20:39:39,993: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203939-permission_url-nextcloud" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'nextcloud' </a>'
2025-01-05 20:39:41,771: DEBUG - Permission 'nextcloud.api' mise à jour
2025-01-05 20:39:41,774: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203941-permission_url-nextcloud" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'nextcloud' </a>'
2025-01-05 20:39:42,966: DEBUG - Permission 'nextcloud.api' créée
2025-01-05 20:39:42,967: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203939-permission_create-nextcloud" style="text-decoration :underline"> Créer permission 'nextcloud' </a>'
2025-01-05 20:39:43,009: DEBUG - Permission 'nextcloud.api' mise à jour
2025-01-05 20:39:43,009: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203942-user_permission_update-nextcloud" style="text-decoration :underline"> Mise à jour des accès pour la permission 'nextcloud' </a>'
2025-01-05 20:39:43,024: DEBUG - Nothing to update in LDAP
2025-01-05 20:39:43,024: DEBUG - Permission 'nextcloud.api' mise à jour
2025-01-05 20:39:43,026: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250105-203943-permission_url-nextcloud" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'nextcloud' </a>'
2025-01-05 20:39:44,869: DEBUG - The permission database has been resynchronized
2025-01-05 20:39:44,936: DEBUG - La configuration de SSOwat a été regénérée
2025-01-05 20:39:44,944: INFO - Provisioning apt...
2025-01-05 20:39:44,952: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']'
2025-01-05 20:39:44,955: DEBUG - + source /usr/share/yunohost/helpers
2025-01-05 20:39:44,956: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-01-05 20:39:44,956: DEBUG - +++ cd -- /usr/share/yunohost
2025-01-05 20:39:44,956: DEBUG - +++ pwd
2025-01-05 20:39:44,957: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-01-05 20:39:44,957: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-01-05 20:39:44,958: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-01-05 20:39:44,958: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-01-05 20:39:44,970: DEBUG - + ynh_abort_if_errors
2025-01-05 20:39:44,971: DEBUG - + trap ynh_exit_properly EXIT
2025-01-05 20:39:44,971: DEBUG - + ynh_apt_install_dependencies mariadb-server imagemagick libmagickcore-6.q16-6-extra acl tar smbclient at redis-server php8.3-fpm php8.3-bz2 php8.3-imap php8.3-gmp php8.3-gd php8.3-intl php8.3-curl php8.3-apcu php8.3-redis php8.3-ldap php8.3-imagick php8.3-zip php8.3-mbstring php8.3-xml php8.3-mysql php8.3-igbinary php8.3-bcmath
2025-01-05 20:39:44,971: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-01-05 20:39:44,972: DEBUG - ++ sed 's/|/ | /'
2025-01-05 20:39:44,974: DEBUG - + local 'dependencies=mariadb-server, imagemagick, libmagickcore-6.q16-6-extra, acl, tar, smbclient, at, redis-server, php8.3-fpm, php8.3-bz2, php8.3-imap, php8.3-gmp, php8.3-gd, php8.3-intl, php8.3-curl, php8.3-apcu, php8.3-redis, php8.3-ldap, php8.3-imagick, php8.3-zip, php8.3-mbstring, php8.3-xml, php8.3-mysql, php8.3-igbinary, php8.3-bcmath'
2025-01-05 20:39:44,974: DEBUG - ++ ynh_read_manifest version
2025-01-05 20:39:44,975: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_847_rpep/manifest.toml
2025-01-05 20:39:44,977: DEBUG - ++ toml_to_json
2025-01-05 20:39:44,977: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-01-05 20:39:44,977: DEBUG - ++ jq .version --raw-output
2025-01-05 20:39:45,028: DEBUG - + local version=30.0.4~ynh2
2025-01-05 20:39:45,028: DEBUG - + local app_ynh_deps=nextcloud-ynh-deps
2025-01-05 20:39:45,028: DEBUG - + grep '[<=>]'
2025-01-05 20:39:45,030: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-01-05 20:39:45,031: DEBUG - ++ sort -u
2025-01-05 20:39:45,032: DEBUG - + local specific_php_version=8.3
2025-01-05 20:39:45,032: DEBUG - + [[ -n 8.3 ]]
2025-01-05 20:39:45,032: DEBUG - ++ echo 8.3
2025-01-05 20:39:45,032: DEBUG - ++ wc -l
2025-01-05 20:39:45,035: DEBUG - + [[ 1 -eq 1 ]]
2025-01-05 20:39:45,035: DEBUG - + dependencies+=', php8.3, php8.3-fpm, php8.3-common'
2025-01-05 20:39:45,035: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-01-05 20:39:45,093: DEBUG - + local old_php_version=
2025-01-05 20:39:45,093: DEBUG - + '[' -n '' ']'
2025-01-05 20:39:45,094: DEBUG - + ynh_app_setting_set --key=php_version --value=8.3
2025-01-05 20:39:45,173: DEBUG - + test -e /usr/bin/php7.4
2025-01-05 20:39:45,173: DEBUG - ++ _ynh_apt_package_is_installed postgresql-13
2025-01-05 20:39:45,174: DEBUG - ++ local package=postgresql-13
2025-01-05 20:39:45,174: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-13
2025-01-05 20:39:45,174: DEBUG - ++ grep --quiet '^installed$'
2025-01-05 20:39:45,195: DEBUG - ++ echo no
2025-01-05 20:39:45,195: DEBUG - + local psql_installed=no
2025-01-05 20:39:45,195: DEBUG - + [[ true == \t\r\u\e ]]
2025-01-05 20:39:45,195: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-01-05 20:39:45,195: DEBUG - ++ mktemp --directory
2025-01-05 20:39:45,196: DEBUG - + local TMPDIR=/tmp/tmp.Yql32ejQ8J
2025-01-05 20:39:45,196: DEBUG - + mkdir -p /tmp/tmp.Yql32ejQ8J/nextcloud-ynh-deps/DEBIAN
2025-01-05 20:39:45,197: DEBUG - + chmod -R 755 /tmp/tmp.Yql32ejQ8J/nextcloud-ynh-deps
2025-01-05 20:39:45,198: DEBUG - + cat
2025-01-05 20:39:45,199: DEBUG - + _ynh_apt update
2025-01-05 20:39:45,199: DEBUG - + _ynh_wait_dpkg_free
2025-01-05 20:39:45,343: DEBUG - + return 0
2025-01-05 20:39:45,343: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-01-05 20:39:45,663: DEBUG - Hit:2 http://archive.raspberrypi.com/debian bookworm InRelease
2025-01-05 20:39:45,774: DEBUG - Hit:3 https://packages.sury.org/php bookworm InRelease
2025-01-05 20:39:45,892: DEBUG - Hit:4 http://deb.debian.org/debian bookworm InRelease
2025-01-05 20:39:45,952: DEBUG - Hit:1 https://forge.yunohost.org/debian bookworm InRelease
2025-01-05 20:39:45,955: DEBUG - Hit:5 http://deb.debian.org/debian-security bookworm-security InRelease
2025-01-05 20:39:45,990: DEBUG - Hit:6 http://deb.debian.org/debian bookworm-updates InRelease
2025-01-05 20:39:46,005: DEBUG - Hit:7 https://dl.yarnpkg.com/debian stable InRelease
2025-01-05 20:39:47,998: DEBUG - Reading package lists...
2025-01-05 20:39:48,025: DEBUG - + _ynh_wait_dpkg_free
2025-01-05 20:39:48,177: DEBUG - + return 0
2025-01-05 20:39:48,178: DEBUG - + dpkg-deb --build /tmp/tmp.Yql32ejQ8J/nextcloud-ynh-deps /tmp/tmp.Yql32ejQ8J/nextcloud-ynh-deps.deb
2025-01-05 20:39:48,553: DEBUG - + dpkg --force-depends --install /tmp/tmp.Yql32ejQ8J/nextcloud-ynh-deps.deb
2025-01-05 20:39:48,553: DEBUG - + tee /tmp/tmp.Yql32ejQ8J/dpkg_log
2025-01-05 20:39:49,171: DEBUG - Selecting previously unselected package nextcloud-ynh-deps.
2025-01-05 20:39:49,248: DEBUG - (Reading database ... 149749 files and directories currently installed.)
2025-01-05 20:39:49,258: DEBUG - Preparing to unpack .../nextcloud-ynh-deps.deb ...
2025-01-05 20:39:49,270: DEBUG - Unpacking nextcloud-ynh-deps (30.0.4~ynh2) ...
2025-01-05 20:39:49,328: DEBUG - Setting up nextcloud-ynh-deps (30.0.4~ynh2) ...
2025-01-05 20:39:49,434: DEBUG - + _ynh_apt_install --fix-broken
2025-01-05 20:39:49,434: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-01-05 20:39:49,434: DEBUG - + _ynh_wait_dpkg_free
2025-01-05 20:39:49,571: DEBUG - + return 0
2025-01-05 20:39:49,572: 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-01-05 20:39:51,999: DEBUG - Reading package lists...
2025-01-05 20:39:52,446: DEBUG - Building dependency tree...
2025-01-05 20:39:52,448: DEBUG - Reading state information...
2025-01-05 20:39:53,109: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2025-01-05 20:39:53,110: DEBUG - + rm --recursive --force /tmp/tmp.Yql32ejQ8J
2025-01-05 20:39:53,112: DEBUG - + _ynh_apt_package_is_installed nextcloud-ynh-deps
2025-01-05 20:39:53,113: DEBUG - + local package=nextcloud-ynh-deps
2025-01-05 20:39:53,114: DEBUG - + dpkg-query --show '--showformat=${db:Status-Status}' nextcloud-ynh-deps
2025-01-05 20:39:53,114: DEBUG - + grep --quiet '^installed$'
2025-01-05 20:39:53,134: DEBUG - ++ _ynh_apt_package_is_installed postgresql-13
2025-01-05 20:39:53,135: DEBUG - ++ local package=postgresql-13
2025-01-05 20:39:53,136: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-13
2025-01-05 20:39:53,136: DEBUG - ++ grep --quiet '^installed$'
2025-01-05 20:39:53,156: DEBUG - ++ echo no
2025-01-05 20:39:53,156: DEBUG - + local psql_installed2=no
2025-01-05 20:39:53,157: DEBUG - + [[ no != \n\o ]]
2025-01-05 20:39:53,157: DEBUG - + ynh_exit_properly
2025-01-05 20:39:53,157: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-01-05 20:39:53,259: INFO - Provisioning database...
2025-01-05 20:39:53,505: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database" 7>&1']'
2025-01-05 20:39:53,507: DEBUG - + source /usr/share/yunohost/helpers
2025-01-05 20:39:53,508: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-01-05 20:39:53,508: DEBUG - +++ cd -- /usr/share/yunohost
2025-01-05 20:39:53,508: DEBUG - +++ pwd
2025-01-05 20:39:53,508: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-01-05 20:39:53,508: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-01-05 20:39:53,510: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-01-05 20:39:53,510: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-01-05 20:39:53,522: DEBUG - + ynh_abort_if_errors
2025-01-05 20:39:53,523: DEBUG - + trap ynh_exit_properly EXIT
2025-01-05 20:39:53,523: DEBUG - + ynh_mysql_create_db nextcloud nextcloud **********
2025-01-05 20:39:53,523: DEBUG - + local db=nextcloud
2025-01-05 20:39:53,523: DEBUG - + local 'sql=CREATE DATABASE nextcloud;'
2025-01-05 20:39:53,523: DEBUG - + [[ 3 -gt 1 ]]
2025-01-05 20:39:53,524: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'''
2025-01-05 20:39:53,524: DEBUG - + [[ -n ********** ]]
2025-01-05 20:39:53,524: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2025-01-05 20:39:53,524: DEBUG - + sql+=' WITH GRANT OPTION;'
2025-01-05 20:39:53,524: DEBUG - + mysql -B
2025-01-05 20:39:53,533: DEBUG - + ynh_exit_properly
2025-01-05 20:39:53,534: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2025-01-05 20:39:53,638: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']'
2025-01-05 20:39:53,640: DEBUG - + source _common.sh
2025-01-05 20:39:53,641: DEBUG - + source /usr/share/yunohost/helpers
2025-01-05 20:39:53,641: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-01-05 20:39:53,641: DEBUG - +++ cd -- /usr/share/yunohost
2025-01-05 20:39:53,642: DEBUG - +++ pwd
2025-01-05 20:39:53,642: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-01-05 20:39:53,642: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-01-05 20:39:53,643: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-01-05 20:39:53,643: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-01-05 20:39:53,655: DEBUG - + ynh_app_setting_set --key=php_upload_max_filesize --value=10G
2025-01-05 20:39:53,742: DEBUG - + ynh_app_setting_set --key=php_memory_limit --value=512M
2025-01-05 20:39:54,087: DEBUG - + ynh_app_setting_set --key=fpm_footprint --value=high
2025-01-05 20:39:54,171: DEBUG - + ynh_app_setting_set --key=fpm_usage --value=medium
2025-01-05 20:39:58,280: DEBUG - + phpflags='--define apc.enable_cli=1'
2025-01-05 20:39:58,281: DEBUG - + ynh_app_setting_set --key=phpflags '--value=--define apc.enable_cli=1'
2025-01-05 20:39:59,381: DEBUG - + enable_notify_push=0
2025-01-05 20:39:59,382: DEBUG - + ynh_app_setting_set --key=enable_notify_push --value=0
2025-01-05 20:40:01,768: DEBUG - + system_addressbook_exposed=0
2025-01-05 20:40:01,768: DEBUG - + ynh_app_setting_set --key=system_addressbook_exposed --value=0
2025-01-05 20:40:02,915: INFO - [++..................] > Migrate MySQL database to utf8...
2025-01-05 20:40:02,921: DEBUG - + ynh_mysql_db_shell
2025-01-05 20:40:02,921: DEBUG - + local database=nextcloud
2025-01-05 20:40:02,921: DEBUG - + local default_character_set=
2025-01-05 20:40:02,921: DEBUG - + [[ -n nextcloud ]]
2025-01-05 20:40:02,921: DEBUG - ++ mysql -B nextcloud
2025-01-05 20:40:02,922: DEBUG - ++ cut -f2
2025-01-05 20:40:02,922: DEBUG - ++ tail -n1
2025-01-05 20:40:02,929: DEBUG - + default_character_set=utf8mb4
2025-01-05 20:40:02,929: DEBUG - + default_character_set=--default-character-set=utf8mb4
2025-01-05 20:40:02,929: DEBUG - + mysql --default-character-set=utf8mb4 -B nextcloud
2025-01-05 20:40:02,943: INFO - [##++................] > Setting up source files...
2025-01-05 20:40:02,946: DEBUG - + ynh_setup_source --dest_dir=/var/www/nextcloud
2025-01-05 20:40:02,981: DEBUG - + keep=
2025-01-05 20:40:02,983: DEBUG - + full_replace=0
2025-01-05 20:40:02,983: DEBUG - + source_id=main
2025-01-05 20:40:02,983: DEBUG - ++ ynh_read_manifest 'resources.sources["main"]'
2025-01-05 20:40:02,984: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/manifest.toml
2025-01-05 20:40:02,984: DEBUG - ++ toml_to_json
2025-01-05 20:40:02,984: DEBUG - ++ jq '.resources.sources["main"]' --raw-output
2025-01-05 20:40:02,984: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-01-05 20:40:03,051: DEBUG - + local 'sources_json={
2025-01-05 20:40:03,051: DEBUG - "url": "https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2",
2025-01-05 20:40:03,051: DEBUG - "sha256": "eb6aaba9acef442f2b3e4a996b7ee8a5ed24442f9bba681237fb28ed970e1fa5"
2025-01-05 20:40:03,052: DEBUG - }'
2025-01-05 20:40:03,052: DEBUG - + jq -re .url
2025-01-05 20:40:03,091: DEBUG - https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2
2025-01-05 20:40:03,091: DEBUG - + local arch_prefix=
2025-01-05 20:40:03,133: DEBUG - + local src_url=https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2
2025-01-05 20:40:03,175: DEBUG - + local src_sum=eb6aaba9acef442f2b3e4a996b7ee8a5ed24442f9bba681237fb28ed970e1fa5
2025-01-05 20:40:03,228: DEBUG - + local src_format=
2025-01-05 20:40:03,266: DEBUG - + local src_in_subdir=
2025-01-05 20:40:03,266: DEBUG - + src_in_subdir=true
2025-01-05 20:40:03,303: DEBUG - + local src_extract=
2025-01-05 20:40:03,342: DEBUG - + local src_platform=
2025-01-05 20:40:03,381: DEBUG - + local src_rename=
2025-01-05 20:40:03,381: DEBUG - + [[ -n https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 ]]
2025-01-05 20:40:03,381: DEBUG - + [[ -n eb6aaba9acef442f2b3e4a996b7ee8a5ed24442f9bba681237fb28ed970e1fa5 ]]
2025-01-05 20:40:03,381: DEBUG - + [[ -z '' ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*\.zip$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*/zipball/.*$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*\.tar\.gz$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*\.tgz$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*/tar\.gz/.*$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*/tarball/.*$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*\.tar\.xz$ ]]
2025-01-05 20:40:03,382: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 =~ ^.*\.tar\.bz2$ ]]
2025-01-05 20:40:03,382: DEBUG - + src_format=tar.bz2
2025-01-05 20:40:03,382: DEBUG - + src_format=tar.bz2
2025-01-05 20:40:03,383: DEBUG - ++ echo tar.bz2
2025-01-05 20:40:03,383: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-01-05 20:40:03,383: DEBUG - + src_format=tar.bz2
2025-01-05 20:40:03,383: DEBUG - + src_extract=true
2025-01-05 20:40:03,383: DEBUG - + [[ true != \t\r\u\e ]]
2025-01-05 20:40:03,384: DEBUG - ++ dirname /var/cache/yunohost/download/nextcloud/main
2025-01-05 20:40:03,385: DEBUG - + mkdir -p /var/cache/yunohost/download/nextcloud
2025-01-05 20:40:03,386: DEBUG - + src_filename=/var/cache/yunohost/download/nextcloud/main
2025-01-05 20:40:03,386: DEBUG - + '[' tar.bz2 = docker ']'
2025-01-05 20:40:03,386: DEBUG - + '[' -n https://download.nextcloud.com/server/releases/nextcloud-30.0.4.tar.bz2 ']'
2025-01-05 20:40:03,386: DEBUG - + '[' -e /var/cache/yunohost/download/nextcloud/main ']'
2025-01-05 20:40:03,387: DEBUG - + sha256sum --check --status
2025-01-05 20:40:04,202: DEBUG - + '[' '!' -e /var/cache/yunohost/download/nextcloud/main ']'
2025-01-05 20:40:04,203: DEBUG - + sha256sum --check --status
2025-01-05 20:40:05,022: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-01-05 20:40:05,756: DEBUG - + '[' -n '' ']'
2025-01-05 20:40:05,756: DEBUG - + mkdir --parents /var/www/nextcloud
2025-01-05 20:40:05,756: DEBUG - + [[ true == \f\a\l\s\e ]]
2025-01-05 20:40:05,756: DEBUG - + [[ tar.bz2 == \d\o\c\k\e\r ]]
2025-01-05 20:40:05,756: DEBUG - + [[ tar.bz2 == \z\i\p ]]
2025-01-05 20:40:05,756: DEBUG - + local strip=
2025-01-05 20:40:05,756: DEBUG - + '[' true '!=' false ']'
2025-01-05 20:40:05,756: DEBUG - + '[' true == true ']'
2025-01-05 20:40:05,756: DEBUG - + local sub_dirs=1
2025-01-05 20:40:05,756: DEBUG - + strip='--strip-components 1'
2025-01-05 20:40:05,756: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz|tar$ ]]
2025-01-05 20:40:05,757: DEBUG - + tar --extract --file=/var/cache/yunohost/download/nextcloud/main --directory=/var/www/nextcloud --strip-components 1
2025-01-05 20:41:32,285: DEBUG - + ynh_safe_rm /var/cache/yunohost/download/nextcloud/main
2025-01-05 20:41:32,286: DEBUG - + local target=/var/cache/yunohost/download/nextcloud/main
2025-01-05 20:41:32,661: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/patches/main ']'
2025-01-05 20:41:32,661: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/patches/main
2025-01-05 20:41:32,662: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/patches/main
2025-01-05 20:41:32,663: DEBUG - + pushd /var/www/nextcloud
2025-01-05 20:41:32,663: DEBUG - /var/www/nextcloud /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/scripts
2025-01-05 20:41:32,663: DEBUG - + for patchfile in "$patches_folder/"*.patch
2025-01-05 20:41:32,663: DEBUG - Applying /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/patches/main/00-add-logout_url-conf.patch
2025-01-05 20:41:32,663: DEBUG - + patch --strip=1
2025-01-05 20:41:37,060: DEBUG - patching file core/Controller/LoginController.php
2025-01-05 20:41:56,124: DEBUG - + for patchfile in "$patches_folder/"*.patch
2025-01-05 20:41:56,125: DEBUG - Applying /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/patches/main/01-disable-CSPv3-nonce_and_allow-YNH-fonts.patch
2025-01-05 20:41:56,125: DEBUG - + patch --strip=1
2025-01-05 20:42:00,160: DEBUG - patching file lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
2025-01-05 20:42:00,160: DEBUG - patching file lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
2025-01-05 20:42:01,219: DEBUG - + for patchfile in "$patches_folder/"*.patch
2025-01-05 20:42:01,220: DEBUG - Applying /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/patches/main/02-Allow-for-eval-in-JS-scripts-for-YunoHost-tile.patch
2025-01-05 20:42:01,220: DEBUG - + patch --strip=1
2025-01-05 20:42:05,969: DEBUG - patching file lib/public/AppFramework/Http/ContentSecurityPolicy.php
2025-01-05 20:42:05,969: DEBUG - Hunk #1 succeeded at 25 (offset -17 lines).
2025-01-05 20:42:05,969: DEBUG - + popd
2025-01-05 20:42:05,969: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/scripts
2025-01-05 20:42:05,969: DEBUG - + '[' -n '' ']'
2025-01-05 20:42:05,969: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-01-05 20:42:05,970: DEBUG - + '[' -n /var/www/nextcloud ']'
2025-01-05 20:42:05,970: DEBUG - + '[' /var/www/nextcloud == /var/www/nextcloud ']'
2025-01-05 20:42:05,970: DEBUG - + _ynh_apply_default_permissions /var/www/nextcloud
2025-01-05 20:42:05,970: DEBUG - + local target=/var/www/nextcloud
2025-01-05 20:42:05,971: DEBUG - + ynh_system_user_exists --username=nextcloud
2025-01-05 20:42:05,980: DEBUG - + getent passwd nextcloud
2025-01-05 20:42:05,983: DEBUG - + '[' -f /var/www/nextcloud ']'
2025-01-05 20:42:05,983: DEBUG - + '[' /var/www/nextcloud == /var/www/nextcloud ']'
2025-01-05 20:42:05,984: DEBUG - ++ ynh_read_manifest resources.install_dir.group
2025-01-05 20:42:05,985: DEBUG - ++ sed s/null//g
2025-01-05 20:42:05,985: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/manifest.toml
2025-01-05 20:42:05,985: DEBUG - ++ sed s/__APP__/nextcloud/g
2025-01-05 20:42:05,986: DEBUG - ++ cut -f1 -d:
2025-01-05 20:42:05,988: DEBUG - ++ toml_to_json
2025-01-05 20:42:05,988: DEBUG - ++ jq .resources.install_dir.group --raw-output
2025-01-05 20:42:05,989: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-01-05 20:42:06,058: DEBUG - + local group=www-data
2025-01-05 20:42:06,058: DEBUG - + [[ -z www-data ]]
2025-01-05 20:42:06,058: DEBUG - + chmod -R u=rwX,g=rX,o=--- /var/www/nextcloud
2025-01-05 20:42:06,201: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
2025-01-05 20:42:06,338: DEBUG - + return
2025-01-05 20:42:11,865: INFO - [####++..............] > Configuring PHP-FPM...
2025-01-05 20:42:11,870: DEBUG - + ynh_config_add_phpfpm
2025-01-05 20:42:11,870: DEBUG - + [[ -n 8.3 ]]
2025-01-05 20:42:11,870: DEBUG - + local php_group=nextcloud
2025-01-05 20:42:11,871: DEBUG - + local php_upload_max_filesize=50M
2025-01-05 20:42:11,871: DEBUG - + local php_process_management=ondemand
2025-01-05 20:42:11,871: DEBUG - ++ _default_php_max_children
2025-01-05 20:42:11,871: DEBUG - +++ ynh_get_ram --total
2025-01-05 20:42:11,891: DEBUG - +++ free=0
2025-01-05 20:42:11,891: DEBUG - +++ total=1
2025-01-05 20:42:11,894: DEBUG - ++++ grep 'total memory'
2025-01-05 20:42:11,894: DEBUG - ++++ LC_ALL=C
2025-01-05 20:42:11,894: DEBUG - ++++ vmstat --stats --unit M
2025-01-05 20:42:11,895: DEBUG - ++++ awk '{print $1}'
2025-01-05 20:42:18,962: DEBUG - +++ local total_ram=8048
2025-01-05 20:42:18,965: DEBUG - ++++ LC_ALL=C
2025-01-05 20:42:18,965: DEBUG - ++++ vmstat --stats --unit M
2025-01-05 20:42:18,965: DEBUG - ++++ grep 'total swap'
2025-01-05 20:42:18,965: DEBUG - ++++ awk '{print $1}'
2025-01-05 20:42:18,967: DEBUG - +++ local total_swap=2047
2025-01-05 20:42:18,967: DEBUG - +++ local total_ram_swap=10095
2025-01-05 20:42:18,967: DEBUG - +++ local ram=10095
2025-01-05 20:42:18,967: DEBUG - +++ echo 10095
2025-01-05 20:42:18,968: DEBUG - ++ local total_ram=10095
2025-01-05 20:42:18,969: DEBUG - ++ local php_max_children=252
2025-01-05 20:42:18,969: DEBUG - ++ '[' 252 -le 0 ']'
2025-01-05 20:42:18,969: DEBUG - +++ nproc
2025-01-05 20:42:24,884: DEBUG - ++ '[' 252 -gt 16 ']'
2025-01-05 20:42:24,884: DEBUG - +++ nproc
2025-01-05 20:42:24,886: DEBUG - ++ php_max_children=16
2025-01-05 20:42:24,886: DEBUG - ++ echo 16
2025-01-05 20:42:24,887: DEBUG - + local php_max_children=16
2025-01-05 20:42:24,888: DEBUG - + local php_memory_limit=128M
2025-01-05 20:42:24,888: DEBUG - ++ mktemp
2025-01-05 20:42:24,890: DEBUG - + local phpfpm_template=/tmp/tmp.cIO1tym0z3
2025-01-05 20:42:24,891: DEBUG - + cat
2025-01-05 20:42:24,892: DEBUG - + '[' ondemand = dynamic ']'
2025-01-05 20:42:24,892: DEBUG - + '[' ondemand = ondemand ']'
2025-01-05 20:42:24,892: DEBUG - + cat
2025-01-05 20:42:24,893: DEBUG - + cat
2025-01-05 20:42:24,894: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/conf/extra_php-fpm.conf ']'
2025-01-05 20:42:24,894: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/conf/extra_php-fpm.conf
2025-01-05 20:42:24,895: DEBUG - + mkdir --parents /etc/php/8.3/fpm/pool.d
2025-01-05 20:42:24,896: DEBUG - + ynh_config_add --template=/tmp/tmp.cIO1tym0z3 --destination=/etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:24,942: DEBUG - + jinja=0
2025-01-05 20:42:24,943: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/conf//tmp/tmp.cIO1tym0z3 ']'
2025-01-05 20:42:24,943: DEBUG - + '[' -f /tmp/tmp.cIO1tym0z3 ']'
2025-01-05 20:42:24,943: DEBUG - + template_path=/tmp/tmp.cIO1tym0z3
2025-01-05 20:42:24,943: DEBUG - + ynh_backup_if_checksum_is_different /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:25,023: DEBUG - + touch /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,568: DEBUG - + chmod 640 /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,571: DEBUG - + _ynh_apply_default_permissions /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,571: DEBUG - + local target=/etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,571: DEBUG - + ynh_system_user_exists --username=nextcloud
2025-01-05 20:42:27,581: DEBUG - + getent passwd nextcloud
2025-01-05 20:42:27,582: DEBUG - + '[' -f /etc/php/8.3/fpm/pool.d/nextcloud.conf ']'
2025-01-05 20:42:27,582: DEBUG - + is_in_dir /etc/php/8.3/fpm/pool.d/nextcloud.conf /var/www/nextcloud
2025-01-05 20:42:27,583: DEBUG - + '[' -n /var/www/nextcloud ']'
2025-01-05 20:42:27,583: DEBUG - ++ realpath /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,584: DEBUG - + local child=/etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,585: DEBUG - ++ realpath /var/www/nextcloud
2025-01-05 20:42:27,586: DEBUG - + local parent=/var/www/nextcloud
2025-01-05 20:42:27,586: DEBUG - + [[ /etc/php/8.3/fpm/pool.d/nextcloud.conf =~ ^/var/www/nextcloud ]]
2025-01-05 20:42:27,586: DEBUG - + is_in_dir /etc/php/8.3/fpm/pool.d/nextcloud.conf /home/yunohost.app/nextcloud
2025-01-05 20:42:27,586: DEBUG - + '[' -n /home/yunohost.app/nextcloud ']'
2025-01-05 20:42:27,587: DEBUG - ++ realpath /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,588: DEBUG - + local child=/etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,588: DEBUG - ++ realpath /home/yunohost.app/nextcloud
2025-01-05 20:42:27,590: DEBUG - + local parent=/home/yunohost.app/nextcloud
2025-01-05 20:42:27,590: DEBUG - + [[ /etc/php/8.3/fpm/pool.d/nextcloud.conf =~ ^/home/yunohost.app/nextcloud ]]
2025-01-05 20:42:27,590: DEBUG - + is_in_dir /etc/php/8.3/fpm/pool.d/nextcloud.conf /etc/nextcloud
2025-01-05 20:42:27,590: DEBUG - + '[' -n /etc/nextcloud ']'
2025-01-05 20:42:27,590: DEBUG - ++ realpath /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,591: DEBUG - + local child=/etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,592: DEBUG - ++ realpath /etc/nextcloud
2025-01-05 20:42:27,593: DEBUG - + local parent=/etc/nextcloud
2025-01-05 20:42:27,593: DEBUG - + [[ /etc/php/8.3/fpm/pool.d/nextcloud.conf =~ ^/etc/nextcloud ]]
2025-01-05 20:42:27,593: DEBUG - + '[' /etc/php/8.3/fpm/pool.d/nextcloud.conf == /var/www/nextcloud ']'
2025-01-05 20:42:27,594: DEBUG - + '[' /etc/php/8.3/fpm/pool.d/nextcloud.conf == /home/yunohost.app/nextcloud ']'
2025-01-05 20:42:27,594: DEBUG - + chmod 400 /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,594: DEBUG - + chown root:root /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:27,596: DEBUG - + [[ 0 == 1 ]]
2025-01-05 20:42:27,596: DEBUG - + cp -f /tmp/tmp.cIO1tym0z3 /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:28,490: DEBUG - + _ynh_replace_vars /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:28,490: DEBUG - + local file=/etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:28,491: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:42:28,492: DEBUG - ++ sort --unique
2025-01-05 20:42:28,492: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-01-05 20:42:28,494: DEBUG - + uniques_vars=('app' 'install_dir' 'php_group' 'php_max_children' 'php_memory_limit' 'php_process_management' 'php_upload_max_filesize' 'php_version')
2025-01-05 20:44:03,699: DEBUG - + ynh_store_file_checksum /etc/php/8.3/fpm/pool.d/nextcloud.conf
2025-01-05 20:44:11,285: DEBUG - + php-fpm8.3 --test
2025-01-05 20:44:33,353: DEBUG - + ynh_systemctl --service=php8.3-fpm --action=reload
2025-01-05 20:44:33,439: DEBUG - + service=php8.3-fpm
2025-01-05 20:44:33,439: DEBUG - + action=reload
2025-01-05 20:44:33,440: DEBUG - + wait_until=
2025-01-05 20:44:33,440: DEBUG - + length=20
2025-01-05 20:44:33,440: DEBUG - + log_path=/var/log/php8.3-fpm/php8.3-fpm.log
2025-01-05 20:44:33,440: DEBUG - + timeout=60
2025-01-05 20:44:33,440: DEBUG - + ynh_in_ci_tests
2025-01-05 20:44:33,440: DEBUG - + '[' reload == stop ']'
2025-01-05 20:44:33,440: DEBUG - + '[' reload == reload ']'
2025-01-05 20:44:33,440: DEBUG - + action=reload-or-restart
2025-01-05 20:44:33,441: DEBUG - ++ date --utc --rfc-3339=seconds
2025-01-05 20:44:33,441: DEBUG - ++ cut -d+ -f1
2025-01-05 20:44:33,441: DEBUG - + local 'time_start=2025-01-05 20:44:33 UTC'
2025-01-05 20:44:33,441: DEBUG - + systemctl reload-or-restart php8.3-fpm
2025-01-05 20:44:37,145: INFO - [######++............] > Configuring NGINX web server...
2025-01-05 20:44:37,149: DEBUG - + is_url_handled --domain=cloud.maindomain.tld --path=/.well-known/caldav
2025-01-05 20:44:37,149: DEBUG - + declare -Ar args_array
2025-01-05 20:44:37,188: DEBUG - ++ curl --insecure --silent --output /dev/null --write-out '%{http_code};%{redirect_url}' https://127.0.0.1/.well-known/caldav --header 'Host: cloud.maindomain.tld' --resolve cloud.maindomain.tld:443:127.0.0.1
2025-01-05 20:44:42,682: DEBUG - + local 'curl_output=404;'
2025-01-05 20:44:42,683: DEBUG - + local http_code=404
2025-01-05 20:44:42,683: DEBUG - + local redirection=
2025-01-05 20:44:42,683: DEBUG - + '[' 404 = 404 ']'
2025-01-05 20:44:42,684: DEBUG - + return 1
2025-01-05 20:44:42,684: DEBUG - + is_url_handled --domain=cloud.maindomain.tld --path=/.well-known/carddav
2025-01-05 20:44:42,684: DEBUG - + declare -Ar args_array
2025-01-05 20:44:42,714: DEBUG - ++ curl --insecure --silent --output /dev/null --write-out '%{http_code};%{redirect_url}' https://127.0.0.1/.well-known/carddav --header 'Host: cloud.maindomain.tld' --resolve cloud.maindomain.tld:443:127.0.0.1
2025-01-05 20:44:42,730: DEBUG - + local 'curl_output=404;'
2025-01-05 20:44:42,730: DEBUG - + local http_code=404
2025-01-05 20:44:42,731: DEBUG - + local redirection=
2025-01-05 20:44:42,731: DEBUG - + '[' 404 = 404 ']'
2025-01-05 20:44:42,731: DEBUG - + return 1
2025-01-05 20:44:42,731: DEBUG - + nginx_extra_conf_dir=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.d
2025-01-05 20:44:42,731: DEBUG - + mkdir -p /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.d
2025-01-05 20:44:42,732: DEBUG - + ynh_config_add_nginx
2025-01-05 20:44:42,733: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,733: DEBUG - + ynh_config_add --template=nginx.conf --destination=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,769: DEBUG - + jinja=0
2025-01-05 20:44:42,770: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/conf/nginx.conf ']'
2025-01-05 20:44:42,770: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/conf/nginx.conf
2025-01-05 20:44:42,770: DEBUG - + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,833: DEBUG - + touch /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,834: DEBUG - + chmod 640 /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,835: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,835: DEBUG - + local target=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,835: DEBUG - + ynh_system_user_exists --username=nextcloud
2025-01-05 20:44:42,844: DEBUG - + getent passwd nextcloud
2025-01-05 20:44:42,845: DEBUG - + '[' -f /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf ']'
2025-01-05 20:44:42,845: DEBUG - + is_in_dir /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf /var/www/nextcloud
2025-01-05 20:44:42,846: DEBUG - + '[' -n /var/www/nextcloud ']'
2025-01-05 20:44:42,846: DEBUG - ++ realpath /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,847: DEBUG - + local child=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,848: DEBUG - ++ realpath /var/www/nextcloud
2025-01-05 20:44:42,849: DEBUG - + local parent=/var/www/nextcloud
2025-01-05 20:44:42,849: DEBUG - + [[ /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf =~ ^/var/www/nextcloud ]]
2025-01-05 20:44:42,849: DEBUG - + is_in_dir /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf /home/yunohost.app/nextcloud
2025-01-05 20:44:42,849: DEBUG - + '[' -n /home/yunohost.app/nextcloud ']'
2025-01-05 20:44:42,849: DEBUG - ++ realpath /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,850: DEBUG - + local child=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,851: DEBUG - ++ realpath /home/yunohost.app/nextcloud
2025-01-05 20:44:42,852: DEBUG - + local parent=/home/yunohost.app/nextcloud
2025-01-05 20:44:42,852: DEBUG - + [[ /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf =~ ^/home/yunohost.app/nextcloud ]]
2025-01-05 20:44:42,853: DEBUG - + is_in_dir /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf /etc/nextcloud
2025-01-05 20:44:42,853: DEBUG - + '[' -n /etc/nextcloud ']'
2025-01-05 20:44:42,853: DEBUG - ++ realpath /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,854: DEBUG - + local child=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,854: DEBUG - ++ realpath /etc/nextcloud
2025-01-05 20:44:42,856: DEBUG - + local parent=/etc/nextcloud
2025-01-05 20:44:42,856: DEBUG - + [[ /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf =~ ^/etc/nextcloud ]]
2025-01-05 20:44:42,856: DEBUG - + '[' /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf == /var/www/nextcloud ']'
2025-01-05 20:44:42,856: DEBUG - + '[' /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf == /home/yunohost.app/nextcloud ']'
2025-01-05 20:44:42,857: DEBUG - + chmod 400 /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,857: DEBUG - + chown root:root /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:42,858: DEBUG - + [[ 0 == 1 ]]
2025-01-05 20:44:42,858: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_xvmyjliz/conf/nginx.conf /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:49,252: DEBUG - + _ynh_replace_vars /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:49,252: DEBUG - + local file=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:49,255: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:44:49,255: DEBUG - ++ sort --unique
2025-01-05 20:44:49,255: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-01-05 20:44:49,256: DEBUG - + uniques_vars=('app' 'domain' 'install_dir' 'path' 'php_version')
2025-01-05 20:46:22,285: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:46:27,418: DEBUG - + '[' / '!=' / ']'
2025-01-05 20:46:27,419: DEBUG - + ynh_replace '--match=^#root_path_only' --replace= --file=/etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:46:27,979: DEBUG - + sed -i '/fastcgi_param\s*REMOTE_USER/d' /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:46:38,272: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/cloud.maindomain.tld.d/nextcloud.conf
2025-01-05 20:46:39,163: DEBUG - + ynh_systemctl --service=nginx --action=reload
2025-01-05 20:46:39,234: DEBUG - + service=nginx
2025-01-05 20:46:39,235: DEBUG - + action=reload
2025-01-05 20:46:39,235: DEBUG - + wait_until=
2025-01-05 20:46:39,235: DEBUG - + length=20
2025-01-05 20:46:39,235: DEBUG - + log_path=/var/log/nginx/nginx.log
2025-01-05 20:46:39,235: DEBUG - + timeout=60
2025-01-05 20:46:39,236: DEBUG - + ynh_in_ci_tests
2025-01-05 20:46:39,236: DEBUG - + '[' reload == stop ']'
2025-01-05 20:46:39,236: DEBUG - + '[' reload == reload ']'
2025-01-05 20:46:39,237: DEBUG - + action=reload-or-restart
2025-01-05 20:46:39,237: DEBUG - ++ date --utc --rfc-3339=seconds
2025-01-05 20:46:39,237: DEBUG - ++ cut -d+ -f1
2025-01-05 20:46:39,238: DEBUG - + local 'time_start=2025-01-05 20:46:39 UTC'
2025-01-05 20:46:39,238: DEBUG - + systemctl reload-or-restart nginx
2025-01-05 20:46:39,854: INFO - [########++..........] > Installing nextcloud...
2025-01-05 20:46:39,857: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
2025-01-05 20:46:39,985: DEBUG - + chown -R nextcloud: /home/yunohost.app/nextcloud
2025-01-05 20:46:40,419: DEBUG - ++ ynh_string_random --length=6
2025-01-05 20:46:40,438: DEBUG - ++ length=6
2025-01-05 20:46:42,645: DEBUG - ++ filter=A-Za-z0-9
2025-01-05 20:46:42,645: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2025-01-05 20:46:42,645: DEBUG - ++ tr --complement --delete A-Za-z0-9
2025-01-05 20:46:42,646: DEBUG - ++ sed --quiet 's/\(.\{6\}\).*/\1/p'
2025-01-05 20:46:42,646: DEBUG - + admin_password=**********
2025-01-05 20:46:42,647: DEBUG - + exec_occ maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass ********** --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data
2025-01-05 20:46:42,647: DEBUG - + cd /var/www/nextcloud
2025-01-05 20:46:42,647: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass ********** --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data
2025-01-05 20:46:42,648: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass ********** --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data
2025-01-05 20:48:02,732: DEBUG - Login is invalid because files already exist for this user
2025-01-05 20:48:02,744: DEBUG - + ynh_die 'Unable to install nextcloud'
2025-01-05 20:48:02,792: WARNING - Unable to install nextcloud
2025-01-05 20:48:03,396: ERROR - Impossible d'installer nextcloud : Une erreur est survenue dans le script d'installation de l'application : Unable to install nextcloud
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
Not applicable
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
Didn't found the log file
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
Not applicable
Apps
The output of occ app:list
(if possible).
Tips for increasing the likelihood of a response
- Use the
preformatted text
formatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.