ended_at: 2025-06-04 13:21:43.716829
env:
  YNH_APP_ACTION: upgrade
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h
  YNH_APP_CURRENT_VERSION: 1.6.0~ynh4
  YNH_APP_ID: roundcube
  YNH_APP_INSTANCE_NAME: roundcube
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 1.6.11~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_APP_UPGRADE_TYPE: UPGRADE_APP
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bookworm
  YNH_DEFAULT_PHP_VERSION: '8.2'
  YNH_HELPERS_VERSION: '2'
error: An error occurred inside the app upgrade script
interface: api
operation: app_upgrade
parent: null
related_to:
- - app
  - roundcube
started_at: 2025-06-04 13:21:24.843473
success: false
yunohost_version: 12.0.17

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

2025-06-04 14:21:24,894: INFO - Provisioning sources...
2025-06-04 14:21:24,898: DEBUG - Prefetching asset main: https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz ...
2025-06-04 14:21:25,561: INFO - Updating system_user...
2025-06-04 14:21:25,654: INFO - Updating install_dir...
2025-06-04 14:21:25,666: INFO - Provisioning permissions...
2025-06-04 14:21:25,697: DEBUG - Nothing to update in LDAP
2025-06-04 14:21:25,698: DEBUG - Permission 'roundcube.main' updated
2025-06-04 14:21:25,698: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250604-132125-user_permission_update-roundcube" style="text-decoration:underline">Update accesses for permission 'roundcube'</a>'
2025-06-04 14:21:25,720: DEBUG - Nothing to update in LDAP
2025-06-04 14:21:25,720: DEBUG - Permission 'roundcube.main' updated
2025-06-04 14:21:25,722: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250604-132125-permission_url-roundcube" style="text-decoration:underline">Update URL related to permission 'roundcube'</a>'
2025-06-04 14:21:25,733: DEBUG - The permission database has been resynchronized
2025-06-04 14:21:25,765: DEBUG - SSO and portal configurations regenerated
2025-06-04 14:21:25,772: INFO - Provisioning apt...
2025-06-04 14:21:25,779: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2025-06-04 14:21:25,788: DEBUG - + source /usr/share/yunohost/helpers
2025-06-04 14:21:25,790: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-06-04 14:21:25,792: DEBUG - +++ cd -- /usr/share/yunohost
2025-06-04 14:21:25,793: DEBUG - +++ pwd
2025-06-04 14:21:25,793: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-06-04 14:21:25,793: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-06-04 14:21:25,798: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-06-04 14:21:25,798: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-06-04 14:21:25,850: DEBUG - + ynh_abort_if_errors
2025-06-04 14:21:25,850: DEBUG - + trap ynh_exit_properly EXIT
2025-06-04 14:21:25,850: DEBUG - + ynh_install_app_dependencies mariadb-server php-pear php8.3-ldap php8.3-mysql php8.3-cli php8.3-intl php8.3-zip php8.3-gd php8.3-mbstring php8.3-dom php8.3-curl
2025-06-04 14:21:25,850: DEBUG - + local 'dependencies=mariadb-server php-pear php8.3-ldap php8.3-mysql php8.3-cli php8.3-intl php8.3-zip php8.3-gd php8.3-mbstring php8.3-dom php8.3-curl'
2025-06-04 14:21:25,852: DEBUG - ++ echo 'mariadb-server php-pear php8.3-ldap php8.3-mysql php8.3-cli php8.3-intl php8.3-zip php8.3-gd php8.3-mbstring php8.3-dom php8.3-curl'
2025-06-04 14:21:25,853: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-06-04 14:21:25,856: DEBUG - + dependencies='mariadb-server, php-pear, php8.3-ldap, php8.3-mysql, php8.3-cli, php8.3-intl, php8.3-zip, php8.3-gd, php8.3-mbstring, php8.3-dom, php8.3-curl'
2025-06-04 14:21:25,856: DEBUG - + local 'dependencies=mariadb-server, php-pear, php8.3-ldap, php8.3-mysql, php8.3-cli, php8.3-intl, php8.3-zip, php8.3-gd, php8.3-mbstring, php8.3-dom, php8.3-curl'
2025-06-04 14:21:25,857: DEBUG - ++ ynh_read_manifest --manifest_key=version
2025-06-04 14:21:25,896: DEBUG - ++ '[' '!' -e '' ']'
2025-06-04 14:21:25,897: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.json ']'
2025-06-04 14:21:25,897: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml ']'
2025-06-04 14:21:25,897: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml
2025-06-04 14:21:25,897: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml
2025-06-04 14:21:25,900: DEBUG - ++ grep -q '\.json$'
2025-06-04 14:21:25,901: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml
2025-06-04 14:21:25,905: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-06-04 14:21:25,906: DEBUG - ++ jq .version --raw-output
2025-06-04 14:21:26,017: DEBUG - + local version=1.6.11~ynh1
2025-06-04 14:21:26,017: DEBUG - + '[' -z 1.6.11~ynh1 ']'
2025-06-04 14:21:26,017: DEBUG - + '[' 1.6.11~ynh1 == null ']'
2025-06-04 14:21:26,017: DEBUG - + local dep_app=roundcube
2025-06-04 14:21:26,017: DEBUG - + [[ mariadb-server, php-pear, php8.3-ldap, php8.3-mysql, php8.3-cli, php8.3-intl, php8.3-zip, php8.3-gd, php8.3-mbstring, php8.3-dom, php8.3-curl =~ [<=>] ]]
2025-06-04 14:21:26,020: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-06-04 14:21:26,020: DEBUG - ++ sort -u
2025-06-04 14:21:26,021: DEBUG - ++ echo mariadb-server, php-pear, php8.3-ldap, php8.3-mysql, php8.3-cli, php8.3-intl, php8.3-zip, php8.3-gd, php8.3-mbstring, php8.3-dom, php8.3-curl
2025-06-04 14:21:26,023: DEBUG - + local specific_php_version=8.3
2025-06-04 14:21:26,024: DEBUG - + [[ -n 8.3 ]]
2025-06-04 14:21:26,025: DEBUG - ++ echo 8.3
2025-06-04 14:21:26,025: DEBUG - ++ wc -l
2025-06-04 14:21:26,027: DEBUG - + [[ 1 -eq 1 ]]
2025-06-04 14:21:26,027: DEBUG - + dependencies+=', php8.3, php8.3-fpm, php8.3-common'
2025-06-04 14:21:26,028: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=phpversion
2025-06-04 14:21:26,159: DEBUG - + local old_phpversion=7.4
2025-06-04 14:21:26,160: DEBUG - + '[' -n 7.4 ']'
2025-06-04 14:21:26,160: DEBUG - + '[' 7.4 '!=' 8.3 ']'
2025-06-04 14:21:26,161: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=fpm_config_dir
2025-06-04 14:21:26,310: DEBUG - + local old_php_fpm_config_dir=/etc/php/7.4/fpm
2025-06-04 14:21:26,311: DEBUG - + local old_php_finalphpconf=/etc/php/7.4/fpm/pool.d/roundcube.conf
2025-06-04 14:21:26,311: DEBUG - + [[ -f /etc/php/7.4/fpm/pool.d/roundcube.conf ]]
2025-06-04 14:21:26,311: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.4/fpm/pool.d/roundcube.conf
2025-06-04 14:21:26,329: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__etc_php_7.4_fpm_pool.d_roundcube.conf
2025-06-04 14:21:26,452: DEBUG - + local checksum_value=3790f81850b5ab3120bf138fae8e9727
2025-06-04 14:21:26,452: DEBUG - + backup_file_checksum=
2025-06-04 14:21:26,452: DEBUG - + '[' -n 3790f81850b5ab3120bf138fae8e9727 ']'
2025-06-04 14:21:26,452: DEBUG - + '[' -e /etc/php/7.4/fpm/pool.d/roundcube.conf ']'
2025-06-04 14:21:26,454: DEBUG - + md5sum --check --status
2025-06-04 14:21:26,470: DEBUG - + ynh_remove_fpm_config
2025-06-04 14:21:26,471: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=fpm_config_dir
2025-06-04 14:21:26,587: DEBUG - + local fpm_config_dir=/etc/php/7.4/fpm
2025-06-04 14:21:26,588: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=fpm_service
2025-06-04 14:21:26,707: DEBUG - + local fpm_service=php7.4-fpm
2025-06-04 14:21:26,709: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=phpversion
2025-06-04 14:21:26,824: DEBUG - + local phpversion=7.4
2025-06-04 14:21:26,824: DEBUG - + phpversion=7.4
2025-06-04 14:21:26,824: DEBUG - + '[' -z /etc/php/7.4/fpm ']'
2025-06-04 14:21:26,824: DEBUG - + ynh_secure_remove --file=/etc/php/7.4/fpm/pool.d/roundcube.conf
2025-06-04 14:21:26,858: DEBUG - + ynh_systemd_action --service_name=php7.4-fpm --action=reload
2025-06-04 14:21:26,969: DEBUG - + service_name=php7.4-fpm
2025-06-04 14:21:26,969: DEBUG - + action=reload
2025-06-04 14:21:26,969: DEBUG - + line_match=
2025-06-04 14:21:26,969: DEBUG - + length=20
2025-06-04 14:21:26,969: DEBUG - + log_path=/var/log/php7.4-fpm/php7.4-fpm.log
2025-06-04 14:21:26,970: DEBUG - + timeout=300
2025-06-04 14:21:26,970: DEBUG - + '[' reload == stop ']'
2025-06-04 14:21:26,970: DEBUG - + '[' reload == reload ']'
2025-06-04 14:21:26,970: DEBUG - + action=reload-or-restart
2025-06-04 14:21:26,973: DEBUG - ++ cut -d+ -f1
2025-06-04 14:21:26,975: DEBUG - ++ date --utc --rfc-3339=seconds
2025-06-04 14:21:26,976: DEBUG - + local 'time_start=2025-06-04 13:21:26 UTC'
2025-06-04 14:21:26,976: DEBUG - + systemctl reload-or-restart php7.4-fpm
2025-06-04 14:21:27,031: DEBUG - + ynh_app_setting_set --app=roundcube --key=phpversion --value=8.3
2025-06-04 14:21:27,294: DEBUG - + test -e /usr/bin/php8.2
2025-06-04 14:21:27,295: DEBUG - + update-alternatives --set php /usr/bin/php8.2
2025-06-04 14:21:27,305: DEBUG - ++ ynh_package_is_installed postgresql-15
2025-06-04 14:21:27,342: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-15
2025-06-04 14:21:27,356: DEBUG - ++ grep --count 'ok installed'
2025-06-04 14:21:27,369: DEBUG - ++ echo no
2025-06-04 14:21:27,369: DEBUG - + local psql_installed=no
2025-06-04 14:21:27,369: DEBUG - + [[ true == \t\r\u\e ]]
2025-06-04 14:21:27,370: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2025-06-04 14:21:27,370: DEBUG - + cat
2025-06-04 14:21:27,372: DEBUG - + ynh_package_install_from_equivs /tmp/roundcube-ynh-deps.control
2025-06-04 14:21:27,372: DEBUG - + local controlfile=/tmp/roundcube-ynh-deps.control
2025-06-04 14:21:27,374: DEBUG - ++ grep '^Package: ' /tmp/roundcube-ynh-deps.control
2025-06-04 14:21:27,377: DEBUG - ++ cut '--delimiter= ' --fields=2
2025-06-04 14:21:27,378: DEBUG - + local pkgname=roundcube-ynh-deps
2025-06-04 14:21:27,381: DEBUG - ++ grep '^Version: ' /tmp/roundcube-ynh-deps.control
2025-06-04 14:21:27,383: DEBUG - ++ cut '--delimiter= ' --fields=2
2025-06-04 14:21:27,384: DEBUG - + local pkgversion=1.6.11~ynh1
2025-06-04 14:21:27,384: DEBUG - + [[ -z roundcube-ynh-deps ]]
2025-06-04 14:21:27,384: DEBUG - + [[ -z 1.6.11~ynh1 ]]
2025-06-04 14:21:27,385: DEBUG - + ynh_package_update
2025-06-04 14:21:27,385: DEBUG - + ynh_apt update
2025-06-04 14:21:27,385: DEBUG - + ynh_wait_dpkg_free
2025-06-04 14:21:27,585: DEBUG - + return 0
2025-06-04 14:21:27,585: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-06-04 14:21:27,843: DEBUG - Hit:1 https://dl.yarnpkg.com/debian stable InRelease
2025-06-04 14:21:27,905: DEBUG - Hit:3 http://deb.debian.org/debian bookworm InRelease
2025-06-04 14:21:27,920: DEBUG - Hit:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-06-04 14:21:27,998: DEBUG - Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
2025-06-04 14:21:28,097: DEBUG - Hit:6 https://packages.sury.org/php bookworm InRelease
2025-06-04 14:21:28,252: DEBUG - Hit:2 https://forge.yunohost.org/debian bookworm InRelease
2025-06-04 14:21:29,854: DEBUG - Reading package lists...
2025-06-04 14:21:29,887: DEBUG - ++ mktemp --directory
2025-06-04 14:21:29,888: DEBUG - + local TMPDIR=/tmp/tmp.oIZeDigUon
2025-06-04 14:21:29,888: DEBUG - + mkdir -p /tmp/tmp.oIZeDigUon/roundcube-ynh-deps/DEBIAN/
2025-06-04 14:21:29,891: DEBUG - + chmod -R 755 /tmp/tmp.oIZeDigUon/roundcube-ynh-deps
2025-06-04 14:21:29,893: DEBUG - + ynh_wait_dpkg_free
2025-06-04 14:21:30,079: DEBUG - + return 0
2025-06-04 14:21:30,080: DEBUG - + cp /tmp/roundcube-ynh-deps.control /tmp/tmp.oIZeDigUon/roundcube-ynh-deps/DEBIAN/control
2025-06-04 14:21:30,082: DEBUG - + dpkg-deb --build /tmp/tmp.oIZeDigUon/roundcube-ynh-deps /tmp/tmp.oIZeDigUon/roundcube-ynh-deps.deb
2025-06-04 14:21:30,114: DEBUG - + tee /tmp/tmp.oIZeDigUon/dpkg_log
2025-06-04 14:21:30,118: DEBUG - + dpkg --force-depends --install /tmp/tmp.oIZeDigUon/roundcube-ynh-deps.deb
2025-06-04 14:21:30,428: DEBUG - (Reading database ... 60827 files and directories currently installed.)
2025-06-04 14:21:30,428: DEBUG - Preparing to unpack .../roundcube-ynh-deps.deb ...
2025-06-04 14:21:30,433: DEBUG - Unpacking roundcube-ynh-deps (1.6.11~ynh1) over (1.6.0~ynh4) ...
2025-06-04 14:21:30,458: DEBUG - Setting up roundcube-ynh-deps (1.6.11~ynh1) ...
2025-06-04 14:21:30,481: DEBUG - + ynh_package_install --fix-broken
2025-06-04 14:21:30,481: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-06-04 14:21:30,481: DEBUG - + ynh_wait_dpkg_free
2025-06-04 14:21:30,640: DEBUG - + return 0
2025-06-04 14:21:30,640: 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-06-04 14:21:30,886: DEBUG - Reading package lists...
2025-06-04 14:21:31,179: DEBUG - Building dependency tree...
2025-06-04 14:21:31,188: DEBUG - Reading state information...
2025-06-04 14:21:31,568: DEBUG - The following packages were automatically installed and are no longer required:
2025-06-04 14:21:31,576: DEBUG -   php7.4 php7.4-curl php7.4-fpm php7.4-intl php7.4-ldap php7.4-mbstring
2025-06-04 14:21:31,576: DEBUG -   php7.4-mysql php7.4-zip php8.2-apcu php8.2-bcmath php8.2-bz2 php8.2-gmp
2025-06-04 14:21:31,576: DEBUG -   php8.2-imagick php8.2-imap php8.2-sqlite3 php8.2-zip
2025-06-04 14:21:31,576: DEBUG - Use 'apt autoremove' to remove them.
2025-06-04 14:21:31,675: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2025-06-04 14:21:31,676: DEBUG - + [[ -n /tmp/tmp.oIZeDigUon ]]
2025-06-04 14:21:31,676: DEBUG - + rm --recursive --force /tmp/tmp.oIZeDigUon
2025-06-04 14:21:31,679: DEBUG - + ynh_package_is_installed roundcube-ynh-deps
2025-06-04 14:21:31,695: DEBUG - + grep --count 'ok installed'
2025-06-04 14:21:31,700: DEBUG - + dpkg-query --show '--showformat=${Status}' roundcube-ynh-deps
2025-06-04 14:21:31,714: DEBUG - + rm /tmp/roundcube-ynh-deps.control
2025-06-04 14:21:31,718: DEBUG - ++ ynh_package_is_installed postgresql-15
2025-06-04 14:21:31,738: DEBUG - ++ grep --count 'ok installed'
2025-06-04 14:21:31,746: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-15
2025-06-04 14:21:31,762: DEBUG - ++ echo no
2025-06-04 14:21:31,763: DEBUG - + local psql_installed2=no
2025-06-04 14:21:31,763: DEBUG - + [[ no != \n\o ]]
2025-06-04 14:21:31,763: DEBUG - + ynh_exit_properly
2025-06-04 14:21:31,763: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-06-04 14:21:31,864: INFO - Provisioning database...
2025-06-04 14:21:31,906: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2025-06-04 14:21:31,909: DEBUG - + source _common.sh
2025-06-04 14:21:31,909: DEBUG - ++ YNH_COMPOSER_VERSION=2.5.5
2025-06-04 14:21:31,909: DEBUG - ++ contextmenu_version=3.3.1
2025-06-04 14:21:31,910: DEBUG - ++ automatic_addressbook_version=v0.4.3
2025-06-04 14:21:31,910: DEBUG - ++ carddav_version=5.1.0
2025-06-04 14:21:31,910: DEBUG - + source /usr/share/yunohost/helpers
2025-06-04 14:21:31,911: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-06-04 14:21:31,912: DEBUG - +++ cd -- /usr/share/yunohost
2025-06-04 14:21:31,912: DEBUG - +++ pwd
2025-06-04 14:21:31,912: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-06-04 14:21:31,912: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-06-04 14:21:31,916: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-06-04 14:21:31,916: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-06-04 14:21:31,945: DEBUG - ++ ynh_check_app_version_changed
2025-06-04 14:21:31,945: DEBUG - ++ local return_value=UPGRADE_APP
2025-06-04 14:21:31,945: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_SAME ']'
2025-06-04 14:21:31,945: DEBUG - ++ '[' UPGRADE_APP == DOWNGRADE ']'
2025-06-04 14:21:31,946: DEBUG - ++ echo UPGRADE_APP
2025-06-04 14:21:31,946: DEBUG - + upgrade_type=UPGRADE_APP
2025-06-04 14:21:32,064: INFO - [....................] > Ensuring downward compatibility...
2025-06-04 14:21:32,068: DEBUG - + '[' -z 0 ']'
2025-06-04 14:21:32,068: DEBUG - + '[' -z en_GB ']'
2025-06-04 14:21:32,068: DEBUG - + '[' -z low ']'
2025-06-04 14:21:32,068: DEBUG - + '[' -z 0 ']'
2025-06-04 14:21:32,068: DEBUG - + '[' -z low ']'
2025-06-04 14:21:32,070: DEBUG - ++ grep RCMAIL_VERSION /var/www/roundcube/program/include/iniset.php
2025-06-04 14:21:32,071: DEBUG - ++ cut '-d'\''' -f4
2025-06-04 14:21:32,073: DEBUG - + oldversion=1.6.0
2025-06-04 14:21:32,073: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']'
2025-06-04 14:21:32,155: INFO - [+...................] > Upgrading source files...
2025-06-04 14:21:32,158: DEBUG - + ynh_setup_source --dest_dir=/var/www/roundcube
2025-06-04 14:21:32,195: DEBUG - + keep=
2025-06-04 14:21:32,195: DEBUG - + full_replace=0
2025-06-04 14:21:32,195: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml
2025-06-04 14:21:32,197: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml
2025-06-04 14:21:32,197: DEBUG - + toml_to_json
2025-06-04 14:21:32,197: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-06-04 14:21:32,204: DEBUG - + jq -e .resources.sources
2025-06-04 14:21:32,321: DEBUG - + source_id=main
2025-06-04 14:21:32,323: DEBUG - ++ toml_to_json
2025-06-04 14:21:32,323: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-06-04 14:21:32,330: DEBUG - ++ jq '.resources.sources["main"]'
2025-06-04 14:21:32,340: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/manifest.toml
2025-06-04 14:21:32,446: DEBUG - + local 'sources_json={
2025-06-04 14:21:32,446: DEBUG -   "url": "https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz",
2025-06-04 14:21:32,446: DEBUG -   "sha256": "199e2713f55da2e91af0e2382b2abf7dab6e1bf1f773317c8a4e64dadc0fae8f",
2025-06-04 14:21:32,446: DEBUG -   "autoupdate": {
2025-06-04 14:21:32,446: DEBUG -     "strategy": "latest_github_release",
2025-06-04 14:21:32,447: DEBUG -     "asset": "roundcubemail-\\d+\\.\\d+\\.\\d+\\.tar\\.gz$"
2025-06-04 14:21:32,447: DEBUG -   }
2025-06-04 14:21:32,447: DEBUG - }'
2025-06-04 14:21:32,447: DEBUG - + jq -re .url
2025-06-04 14:21:32,516: DEBUG - https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz
2025-06-04 14:21:32,517: DEBUG - + local arch_prefix=
2025-06-04 14:21:32,570: DEBUG - + local src_url=https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz
2025-06-04 14:21:32,641: DEBUG - + local src_sum=199e2713f55da2e91af0e2382b2abf7dab6e1bf1f773317c8a4e64dadc0fae8f
2025-06-04 14:21:32,641: DEBUG - + local src_sumprg=sha256sum
2025-06-04 14:21:32,694: DEBUG - + local src_format=
2025-06-04 14:21:32,747: DEBUG - + local src_in_subdir=
2025-06-04 14:21:32,802: DEBUG - + local src_extract=
2025-06-04 14:21:32,884: DEBUG - + local src_platform=
2025-06-04 14:21:32,937: DEBUG - + local src_rename=
2025-06-04 14:21:32,937: DEBUG - + [[ -n https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz ]]
2025-06-04 14:21:32,937: DEBUG - + [[ -n 199e2713f55da2e91af0e2382b2abf7dab6e1bf1f773317c8a4e64dadc0fae8f ]]
2025-06-04 14:21:32,937: DEBUG - + [[ -z '' ]]
2025-06-04 14:21:32,937: DEBUG - + [[ https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz =~ ^.*\.zip$ ]]
2025-06-04 14:21:32,937: DEBUG - + [[ https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz =~ ^.*/zipball/.*$ ]]
2025-06-04 14:21:32,938: DEBUG - + [[ https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz =~ ^.*\.tar\.gz$ ]]
2025-06-04 14:21:32,938: DEBUG - + src_format=tar.gz
2025-06-04 14:21:32,938: DEBUG - + src_sumprg=sha256sum
2025-06-04 14:21:32,938: DEBUG - + src_in_subdir=true
2025-06-04 14:21:32,938: DEBUG - + src_format=tar.gz
2025-06-04 14:21:32,940: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-06-04 14:21:32,940: DEBUG - ++ echo tar.gz
2025-06-04 14:21:32,941: DEBUG - + src_format=tar.gz
2025-06-04 14:21:32,941: DEBUG - + src_extract=true
2025-06-04 14:21:32,942: DEBUG - + [[ true != \t\r\u\e ]]
2025-06-04 14:21:32,942: DEBUG - + local local_src=/opt/yunohost-apps-src/roundcube/main
2025-06-04 14:21:32,944: DEBUG - ++ dirname /var/cache/yunohost/download/roundcube/main
2025-06-04 14:21:32,944: DEBUG - + mkdir -p /var/cache/yunohost/download/roundcube
2025-06-04 14:21:32,946: DEBUG - + src_filename=/var/cache/yunohost/download/roundcube/main
2025-06-04 14:21:32,946: DEBUG - + '[' tar.gz = docker ']'
2025-06-04 14:21:32,946: DEBUG - + test -e /opt/yunohost-apps-src/roundcube/main
2025-06-04 14:21:32,946: DEBUG - + '[' -n https://github.com/roundcube/roundcubemail/releases/download/1.6.11/roundcubemail-1.6.11.tar.gz ']'
2025-06-04 14:21:32,946: DEBUG - + '[' -e /var/cache/yunohost/download/roundcube/main ']'
2025-06-04 14:21:32,956: DEBUG - + sha256sum --check --status
2025-06-04 14:21:32,978: DEBUG - + '[' '!' -e /var/cache/yunohost/download/roundcube/main ']'
2025-06-04 14:21:32,984: DEBUG - + sha256sum --check --status
2025-06-04 14:21:33,032: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-06-04 14:21:33,034: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:33,034: DEBUG - + mkdir --parents /var/www/roundcube
2025-06-04 14:21:33,037: DEBUG - + '[' -n /var/www/roundcube ']'
2025-06-04 14:21:33,037: DEBUG - + '[' /var/www/roundcube == /var/www/roundcube ']'
2025-06-04 14:21:33,037: DEBUG - + _ynh_apply_default_permissions /var/www/roundcube
2025-06-04 14:21:33,037: DEBUG - + local target=/var/www/roundcube
2025-06-04 14:21:33,037: DEBUG - + chmod o-rwx /var/www/roundcube
2025-06-04 14:21:33,040: DEBUG - + chmod g-w /var/www/roundcube
2025-06-04 14:21:33,042: DEBUG - + chown -R root:root /var/www/roundcube
2025-06-04 14:21:33,202: DEBUG - + ynh_system_user_exists roundcube
2025-06-04 14:21:33,217: DEBUG - + getent passwd roundcube
2025-06-04 14:21:33,225: DEBUG - + chown roundcube:roundcube /var/www/roundcube
2025-06-04 14:21:33,229: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-06-04 14:21:33,232: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:33,232: DEBUG - + [[ true == \f\a\l\s\e ]]
2025-06-04 14:21:33,232: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]]
2025-06-04 14:21:33,232: DEBUG - + [[ tar.gz == \z\i\p ]]
2025-06-04 14:21:33,232: DEBUG - + local strip=
2025-06-04 14:21:33,232: DEBUG - + '[' true '!=' false ']'
2025-06-04 14:21:33,232: DEBUG - + '[' true == true ']'
2025-06-04 14:21:33,232: DEBUG - + local sub_dirs=1
2025-06-04 14:21:33,233: DEBUG - + strip='--strip-components 1'
2025-06-04 14:21:33,233: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2025-06-04 14:21:33,233: DEBUG - + tar --extract --file=/var/cache/yunohost/download/roundcube/main --directory=/var/www/roundcube --strip-components 1
2025-06-04 14:21:33,636: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/roundcube/main
2025-06-04 14:21:33,679: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/sources/patches/ ']'
2025-06-04 14:21:33,681: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/sources/patches/
2025-06-04 14:21:33,681: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/sources/patches
2025-06-04 14:21:33,683: DEBUG - ++ wc --lines
2025-06-04 14:21:33,685: DEBUG - ++ find /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/sources/patches -type f -name 'main-*.patch'
2025-06-04 14:21:33,686: DEBUG - + (( 0 > 0 ))
2025-06-04 14:21:33,686: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/sources/extra_files/main
2025-06-04 14:21:33,687: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:33,687: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-06-04 14:21:33,689: DEBUG - + chmod -R o-rwx /var/www/roundcube
2025-06-04 14:21:33,731: DEBUG - + chown -R roundcube:www-data /var/www/roundcube
2025-06-04 14:21:33,873: INFO - [#+..................] > Upgrading PHP-FPM configuration...
2025-06-04 14:21:33,876: DEBUG - + ynh_add_fpm_config --usage=low --footprint=low
2025-06-04 14:21:33,877: DEBUG - + local _globalphpversion=8.3
2025-06-04 14:21:33,955: DEBUG - + group=
2025-06-04 14:21:33,955: DEBUG - + local autogenconf=false
2025-06-04 14:21:33,955: DEBUG - + usage=low
2025-06-04 14:21:33,955: DEBUG - + footprint=low
2025-06-04 14:21:33,955: DEBUG - + '[' -n low ']'
2025-06-04 14:21:33,956: DEBUG - + autogenconf=true
2025-06-04 14:21:33,957: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=fpm_usage
2025-06-04 14:21:34,087: DEBUG - + local fpm_usage_in_setting=low
2025-06-04 14:21:34,087: DEBUG - + '[' -z low ']'
2025-06-04 14:21:34,089: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=fpm_footprint
2025-06-04 14:21:34,243: DEBUG - + local fpm_footprint_in_setting=low
2025-06-04 14:21:34,243: DEBUG - + '[' -z low ']'
2025-06-04 14:21:34,243: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:34,246: DEBUG - + phpversion=8.3
2025-06-04 14:21:34,249: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=phpversion
2025-06-04 14:21:34,379: DEBUG - + local old_phpversion=8.3
2025-06-04 14:21:34,379: DEBUG - + '[' -n 8.3 ']'
2025-06-04 14:21:34,379: DEBUG - + '[' 8.3 '!=' 8.3 ']'
2025-06-04 14:21:34,380: DEBUG - + local fpm_service=php8.3-fpm
2025-06-04 14:21:34,380: DEBUG - + local fpm_config_dir=/etc/php/8.3/fpm
2025-06-04 14:21:34,380: DEBUG - + mkdir --parents /etc/php/8.3/fpm/pool.d
2025-06-04 14:21:34,382: DEBUG - + ynh_app_setting_set --app=roundcube --key=fpm_config_dir --value=/etc/php/8.3/fpm
2025-06-04 14:21:34,572: DEBUG - + ynh_app_setting_set --app=roundcube --key=fpm_service --value=php8.3-fpm
2025-06-04 14:21:34,726: DEBUG - + ynh_app_setting_set --app=roundcube --key=phpversion --value=8.3
2025-06-04 14:21:34,971: DEBUG - + '[' true == false ']'
2025-06-04 14:21:34,972: DEBUG - + ynh_get_scalable_phpfpm --usage=low --footprint=low
2025-06-04 14:21:35,080: DEBUG - + footprint=low
2025-06-04 14:21:35,081: DEBUG - + usage=low
2025-06-04 14:21:35,081: DEBUG - + print=0
2025-06-04 14:21:35,081: DEBUG - + '[' low = low ']'
2025-06-04 14:21:35,081: DEBUG - + footprint=20
2025-06-04 14:21:35,081: DEBUG - + '[' 20 -le 20 ']'
2025-06-04 14:21:35,081: DEBUG - + min_spare_servers_factor=8
2025-06-04 14:21:35,081: DEBUG - + '[' low = low ']'
2025-06-04 14:21:35,081: DEBUG - + php_pm=ondemand
2025-06-04 14:21:35,083: DEBUG - ++ ynh_get_ram --total --ignore_swap
2025-06-04 14:21:35,151: DEBUG - ++ ignore_swap=1
2025-06-04 14:21:35,151: DEBUG - ++ only_swap=0
2025-06-04 14:21:35,151: DEBUG - ++ free=0
2025-06-04 14:21:35,151: DEBUG - ++ total=1
2025-06-04 14:21:35,154: DEBUG - +++ grep 'total memory'
2025-06-04 14:21:35,156: DEBUG - +++ awk '{print $1}'
2025-06-04 14:21:35,157: DEBUG - +++ LC_ALL=C
2025-06-04 14:21:35,157: DEBUG - +++ vmstat --stats --unit M
2025-06-04 14:21:35,165: DEBUG - ++ local total_ram=2048
2025-06-04 14:21:35,167: DEBUG - +++ grep 'total swap'
2025-06-04 14:21:35,170: DEBUG - +++ awk '{print $1}'
2025-06-04 14:21:35,175: DEBUG - +++ LC_ALL=C
2025-06-04 14:21:35,175: DEBUG - +++ vmstat --stats --unit M
2025-06-04 14:21:35,177: DEBUG - ++ local total_swap=1024
2025-06-04 14:21:35,177: DEBUG - ++ local total_ram_swap=3072
2025-06-04 14:21:35,177: DEBUG - ++ local ram=3072
2025-06-04 14:21:35,177: DEBUG - ++ ram=2048
2025-06-04 14:21:35,177: DEBUG - ++ echo 2048
2025-06-04 14:21:35,178: DEBUG - + local max_ram=2048
2025-06-04 14:21:35,178: DEBUG - + php_max_children=51
2025-06-04 14:21:35,178: DEBUG - + '[' ondemand = static ']'
2025-06-04 14:21:35,179: DEBUG - ++ at_least_one 51
2025-06-04 14:21:35,179: DEBUG - ++ '[' 51 -le 0 ']'
2025-06-04 14:21:35,179: DEBUG - ++ echo 51
2025-06-04 14:21:35,179: DEBUG - + php_max_children=51
2025-06-04 14:21:35,180: DEBUG - ++ nproc
2025-06-04 14:21:35,182: DEBUG - + local core_number=1
2025-06-04 14:21:35,183: DEBUG - + local max_proc=4
2025-06-04 14:21:35,183: DEBUG - + '[' 51 -gt 4 ']'
2025-06-04 14:21:35,183: DEBUG - + php_max_children=4
2025-06-04 14:21:35,184: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=php_forced_max_children
2025-06-04 14:21:35,304: DEBUG - + local php_forced_max_children=
2025-06-04 14:21:35,305: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:35,305: DEBUG - + '[' ondemand = dynamic ']'
2025-06-04 14:21:35,305: DEBUG - + php_min_spare_servers=0
2025-06-04 14:21:35,305: DEBUG - + php_max_spare_servers=0
2025-06-04 14:21:35,305: DEBUG - + php_start_servers=0
2025-06-04 14:21:35,306: DEBUG - ++ echo roundcube
2025-06-04 14:21:35,306: DEBUG - + local phpfpm_group=roundcube
2025-06-04 14:21:35,307: DEBUG - + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/php-fpm.conf
2025-06-04 14:21:35,307: DEBUG - [__APP__]
2025-06-04 14:21:35,307: DEBUG - 
2025-06-04 14:21:35,307: DEBUG - user = __APP__
2025-06-04 14:21:35,307: DEBUG - group = __PHPFPM_GROUP__
2025-06-04 14:21:35,307: DEBUG - 
2025-06-04 14:21:35,307: DEBUG - chdir = __INSTALL_DIR__
2025-06-04 14:21:35,307: DEBUG - 
2025-06-04 14:21:35,307: DEBUG - listen = /var/run/php/php__PHPVERSION__-fpm-__APP__.sock
2025-06-04 14:21:35,307: DEBUG - listen.owner = www-data
2025-06-04 14:21:35,307: DEBUG - listen.group = www-data
2025-06-04 14:21:35,308: DEBUG - 
2025-06-04 14:21:35,308: DEBUG - pm = __PHP_PM__
2025-06-04 14:21:35,308: DEBUG - pm.max_children = __PHP_MAX_CHILDREN__
2025-06-04 14:21:35,308: DEBUG - pm.max_requests = 500
2025-06-04 14:21:35,308: DEBUG - request_terminate_timeout = 1d
2025-06-04 14:21:35,308: DEBUG - '
2025-06-04 14:21:35,309: DEBUG - + '[' ondemand = dynamic ']'
2025-06-04 14:21:35,309: DEBUG - + '[' ondemand = ondemand ']'
2025-06-04 14:21:35,309: DEBUG - pm.process_idle_timeout = 10s
2025-06-04 14:21:35,309: DEBUG - '
2025-06-04 14:21:35,309: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/extra_php-fpm.conf ']'
2025-06-04 14:21:35,309: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/extra_php-fpm.conf
2025-06-04 14:21:35,312: DEBUG - + local finalphpconf=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,312: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/php-fpm.conf --destination=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,368: DEBUG - + jinja=0
2025-06-04 14:21:35,368: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf//var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/php-fpm.conf ']'
2025-06-04 14:21:35,369: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/php-fpm.conf ']'
2025-06-04 14:21:35,369: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/php-fpm.conf
2025-06-04 14:21:35,369: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,386: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__etc_php_8.3_fpm_pool.d_roundcube.conf
2025-06-04 14:21:35,491: DEBUG - + local checksum_value=
2025-06-04 14:21:35,491: DEBUG - + backup_file_checksum=
2025-06-04 14:21:35,491: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:35,491: DEBUG - + touch /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,496: DEBUG - + chmod 640 /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,498: DEBUG - + _ynh_apply_default_permissions /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,498: DEBUG - + local target=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,498: DEBUG - + chmod o-rwx /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,500: DEBUG - + chmod g-w /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,502: DEBUG - + chown -R root:root /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,504: DEBUG - + ynh_system_user_exists roundcube
2025-06-04 14:21:35,522: DEBUG - + getent passwd roundcube
2025-06-04 14:21:35,524: DEBUG - + chown roundcube:roundcube /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,526: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-06-04 14:21:35,529: DEBUG - + chmod 400 /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,530: DEBUG - + chown root:root /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,533: DEBUG - + [[ 0 == 1 ]]
2025-06-04 14:21:35,533: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/php-fpm.conf /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,536: DEBUG - + ynh_replace_vars --file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,554: DEBUG - + test -n /webmail
2025-06-04 14:21:35,555: DEBUG - + local path_url_slash_less=/webmail
2025-06-04 14:21:35,555: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,638: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,720: DEBUG - + test -n roundcube
2025-06-04 14:21:35,720: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,826: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,906: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,989: DEBUG - + test -n ''
2025-06-04 14:21:35,989: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:35,991: DEBUG - + test -n ''
2025-06-04 14:21:35,993: DEBUG - ++ sort --unique
2025-06-04 14:21:35,995: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-06-04 14:21:35,997: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:35,998: DEBUG - + uniques_vars=('app' 'install_dir' 'phpfpm_group' 'phpversion' 'php_max_children' 'php_pm')
2025-06-04 14:21:36,014: DEBUG - + ynh_store_file_checksum --file=/etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:36,015: DEBUG - + update_only=0
2025-06-04 14:21:36,050: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-06-04 14:21:36,051: DEBUG - ++ md5sum /etc/php/8.3/fpm/pool.d/roundcube.conf
2025-06-04 14:21:36,053: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__etc_php_8.3_fpm_pool.d_roundcube.conf --value=f9cd55706deb886ff0a6cc7bdb54e695
2025-06-04 14:21:36,201: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:36,201: DEBUG - + php-fpm8.3 --test
2025-06-04 14:21:36,366: DEBUG - + ynh_systemd_action --service_name=php8.3-fpm --action=reload
2025-06-04 14:21:36,480: DEBUG - + service_name=php8.3-fpm
2025-06-04 14:21:36,481: DEBUG - + action=reload
2025-06-04 14:21:36,481: DEBUG - + line_match=
2025-06-04 14:21:36,481: DEBUG - + length=20
2025-06-04 14:21:36,481: DEBUG - + log_path=/var/log/php8.3-fpm/php8.3-fpm.log
2025-06-04 14:21:36,481: DEBUG - + timeout=300
2025-06-04 14:21:36,481: DEBUG - + '[' reload == stop ']'
2025-06-04 14:21:36,481: DEBUG - + '[' reload == reload ']'
2025-06-04 14:21:36,481: DEBUG - + action=reload-or-restart
2025-06-04 14:21:36,484: DEBUG - ++ cut -d+ -f1
2025-06-04 14:21:36,485: DEBUG - ++ date --utc --rfc-3339=seconds
2025-06-04 14:21:36,486: DEBUG - + local 'time_start=2025-06-04 13:21:36 UTC'
2025-06-04 14:21:36,486: DEBUG - + systemctl reload-or-restart php8.3-fpm
2025-06-04 14:21:36,517: DEBUG - + ynh_add_nginx_config
2025-06-04 14:21:36,517: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,518: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,768: DEBUG - + jinja=0
2025-06-04 14:21:36,768: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/nginx.conf ']'
2025-06-04 14:21:36,768: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/nginx.conf
2025-06-04 14:21:36,768: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,788: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__etc_nginx_conf.d_apps.maindomain.tld.d_roundcube.conf
2025-06-04 14:21:36,902: DEBUG - + local checksum_value=
2025-06-04 14:21:36,902: DEBUG - + backup_file_checksum=
2025-06-04 14:21:36,902: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:36,902: DEBUG - + touch /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,904: DEBUG - + chmod 640 /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,906: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,906: DEBUG - + local target=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,907: DEBUG - + chmod o-rwx /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,909: DEBUG - + chmod g-w /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,911: DEBUG - + chown -R root:root /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,913: DEBUG - + ynh_system_user_exists roundcube
2025-06-04 14:21:36,931: DEBUG - + getent passwd roundcube
2025-06-04 14:21:36,933: DEBUG - + chown roundcube:roundcube /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,935: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-06-04 14:21:36,938: DEBUG - + chmod 400 /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,940: DEBUG - + chown root:root /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,942: DEBUG - + [[ 0 == 1 ]]
2025-06-04 14:21:36,943: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/nginx.conf /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,946: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:36,965: DEBUG - + test -n /webmail
2025-06-04 14:21:36,965: DEBUG - + local path_url_slash_less=/webmail
2025-06-04 14:21:36,965: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,069: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,200: DEBUG - + test -n roundcube
2025-06-04 14:21:37,201: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,301: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,398: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,479: DEBUG - + test -n ''
2025-06-04 14:21:37,479: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:37,481: DEBUG - + test -n ''
2025-06-04 14:21:37,484: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,486: DEBUG - ++ sort --unique
2025-06-04 14:21:37,488: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-06-04 14:21:37,489: DEBUG - + uniques_vars=('install_dir' 'phpversion')
2025-06-04 14:21:37,495: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,495: DEBUG - + update_only=0
2025-06-04 14:21:37,527: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-06-04 14:21:37,528: DEBUG - ++ md5sum /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:37,530: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__etc_nginx_conf.d_apps.maindomain.tld.d_roundcube.conf --value=9cb6f2bc755dfe9be71487f52b588356
2025-06-04 14:21:37,723: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:37,723: DEBUG - + '[' /webmail '!=' / ']'
2025-06-04 14:21:37,723: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:38,219: DEBUG - + sed -i '/fastcgi_param\s*REMOTE_USER/d' /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:38,232: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:38,233: DEBUG - + update_only=0
2025-06-04 14:21:38,421: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-06-04 14:21:38,425: DEBUG - ++ md5sum /etc/nginx/conf.d/apps.maindomain.tld.d/roundcube.conf
2025-06-04 14:21:38,428: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__etc_nginx_conf.d_apps.maindomain.tld.d_roundcube.conf --value=9f35caecf36b97994f4e7fe68635781c
2025-06-04 14:21:38,710: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:38,711: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2025-06-04 14:21:38,847: DEBUG - + service_name=nginx
2025-06-04 14:21:38,847: DEBUG - + action=reload
2025-06-04 14:21:38,847: DEBUG - + line_match=
2025-06-04 14:21:38,847: DEBUG - + length=20
2025-06-04 14:21:38,847: DEBUG - + log_path=/var/log/nginx/nginx.log
2025-06-04 14:21:38,847: DEBUG - + timeout=300
2025-06-04 14:21:38,847: DEBUG - + '[' reload == stop ']'
2025-06-04 14:21:38,848: DEBUG - + '[' reload == reload ']'
2025-06-04 14:21:38,848: DEBUG - + action=reload-or-restart
2025-06-04 14:21:38,850: DEBUG - ++ cut -d+ -f1
2025-06-04 14:21:38,852: DEBUG - ++ date --utc --rfc-3339=seconds
2025-06-04 14:21:38,854: DEBUG - + local 'time_start=2025-06-04 13:21:38 UTC'
2025-06-04 14:21:38,854: DEBUG - + systemctl reload-or-restart nginx
2025-06-04 14:21:39,171: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']'
2025-06-04 14:21:39,579: INFO - [##..................] > Reconfiguring Roundcube...
2025-06-04 14:21:39,592: DEBUG - ++ ynh_string_random --length=24
2025-06-04 14:21:39,633: DEBUG - ++ length=24
2025-06-04 14:21:39,633: DEBUG - ++ filter=A-Za-z0-9
2025-06-04 14:21:39,634: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2025-06-04 14:21:39,640: DEBUG - ++ tr --complement --delete A-Za-z0-9
2025-06-04 14:21:39,646: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2025-06-04 14:21:39,655: DEBUG - + deskey=**********
2025-06-04 14:21:39,656: DEBUG - + ynh_add_config --template=../conf/config.inc.php --destination=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,753: DEBUG - + jinja=0
2025-06-04 14:21:39,753: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/../conf/config.inc.php ']'
2025-06-04 14:21:39,753: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/../conf/config.inc.php
2025-06-04 14:21:39,753: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,772: DEBUG - ++ ynh_app_setting_get --app=roundcube --key=checksum__var_www_roundcube_config_config.inc.php
2025-06-04 14:21:39,884: DEBUG - + local checksum_value=2fc9a78a7218318776b15e6042d4283e
2025-06-04 14:21:39,885: DEBUG - + backup_file_checksum=
2025-06-04 14:21:39,885: DEBUG - + '[' -n 2fc9a78a7218318776b15e6042d4283e ']'
2025-06-04 14:21:39,885: DEBUG - + '[' -e /var/www/roundcube/config/config.inc.php ']'
2025-06-04 14:21:39,887: DEBUG - + md5sum --check --status
2025-06-04 14:21:39,888: DEBUG - + touch /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,889: DEBUG - + chmod 640 /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,891: DEBUG - + _ynh_apply_default_permissions /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,891: DEBUG - + local target=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,891: DEBUG - + chmod o-rwx /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,893: DEBUG - + chmod g-w /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,894: DEBUG - + chown -R root:root /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,896: DEBUG - + ynh_system_user_exists roundcube
2025-06-04 14:21:39,914: DEBUG - + getent passwd roundcube
2025-06-04 14:21:39,916: DEBUG - + chown roundcube:roundcube /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,918: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2025-06-04 14:21:39,921: DEBUG - + [[ 0 == 1 ]]
2025-06-04 14:21:39,921: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_j15vky1h/conf/../conf/config.inc.php /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,924: DEBUG - + ynh_replace_vars --file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:39,941: DEBUG - + test -n /webmail
2025-06-04 14:21:39,941: DEBUG - + local path_url_slash_less=/webmail
2025-06-04 14:21:39,942: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/webmail/ --target_file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,035: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/webmail --target_file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,165: DEBUG - + test -n roundcube
2025-06-04 14:21:40,165: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=roundcube --target_file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,324: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=roundcube --target_file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,437: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=roundcube --target_file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,540: DEBUG - + test -n ''
2025-06-04 14:21:40,540: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:40,542: DEBUG - + test -n ''
2025-06-04 14:21:40,545: DEBUG - ++ sort --unique
2025-06-04 14:21:40,547: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-06-04 14:21:40,549: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,551: DEBUG - + uniques_vars=('db_name' 'db_pwd' 'deskey' 'language')
2025-06-04 14:21:40,561: DEBUG - + ynh_store_file_checksum --file=/var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,562: DEBUG - + update_only=0
2025-06-04 14:21:40,602: DEBUG - ++ cut '--delimiter= ' --fields=1
2025-06-04 14:21:40,605: DEBUG - ++ md5sum /var/www/roundcube/config/config.inc.php
2025-06-04 14:21:40,607: DEBUG - + ynh_app_setting_set --app=roundcube --key=checksum__var_www_roundcube_config_config.inc.php --value=12640501499e682f9a6835e086abef9f
2025-06-04 14:21:40,786: DEBUG - + '[' -n '' ']'
2025-06-04 14:21:40,902: INFO - [##++++++++..........] > Updating dependencies with Composer...
2025-06-04 14:21:40,906: DEBUG - + ynh_install_composer
2025-06-04 14:21:40,907: DEBUG - + local _globalphpversion=8.3
2025-06-04 14:21:40,907: DEBUG - + declare -Ar args_array
2025-06-04 14:21:40,915: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:40,917: DEBUG - + workdir=/var/www/roundcube
2025-06-04 14:21:40,918: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:40,920: DEBUG - + phpversion=8.3
2025-06-04 14:21:40,920: DEBUG - + install_args=
2025-06-04 14:21:40,921: DEBUG - + composerversion=2.5.5
2025-06-04 14:21:40,932: DEBUG - + COMPOSER_HOME=/var/www/roundcube/.composer
2025-06-04 14:21:40,932: DEBUG - + php8.3 -- --quiet --install-dir=/var/www/roundcube --version=2.5.5
2025-06-04 14:21:40,933: DEBUG - + curl -sS https://getcomposer.org/installer
2025-06-04 14:21:42,643: DEBUG - + ynh_composer_exec --phpversion=8.3 --workdir=/var/www/roundcube '--commands=install --no-dev '
2025-06-04 14:21:42,643: DEBUG - + local _globalphpversion=8.3
2025-06-04 14:21:42,644: DEBUG - + declare -Ar args_array
2025-06-04 14:21:42,727: DEBUG - + workdir=/var/www/roundcube
2025-06-04 14:21:42,728: DEBUG - + dpkg --compare-versions 2.0 lt 2
2025-06-04 14:21:42,730: DEBUG - + phpversion=8.3
2025-06-04 14:21:42,731: DEBUG - + COMPOSER_HOME=/var/www/roundcube/.composer
2025-06-04 14:21:42,731: DEBUG - + COMPOSER_MEMORY_LIMIT=-1
2025-06-04 14:21:42,731: DEBUG - + php8.3 /var/www/roundcube/composer.phar install --no-dev -d /var/www/roundcube --no-interaction --no-ansi
2025-06-04 14:21:42,885: DEBUG - Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
2025-06-04 14:21:42,885: DEBUG - Do not run Composer as root/super user! See https://getcomposer.org/root for details
2025-06-04 14:21:42,994: DEBUG - Installing dependencies from lock file
2025-06-04 14:21:42,994: DEBUG - Verifying lock file contents can be installed on current platform.
2025-06-04 14:21:43,032: DEBUG - Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
2025-06-04 14:21:43,032: DEBUG - - Required package "guzzlehttp/guzzle" is in the lock file as "6.5.8" but that does not satisfy your constraint "^7.3.0".
2025-06-04 14:21:43,033: DEBUG - - Required package "bacon/bacon-qr-code" is not present in the lock file.
2025-06-04 14:21:43,033: DEBUG - This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
2025-06-04 14:21:43,033: DEBUG - Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md
2025-06-04 14:21:43,033: DEBUG - and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
2025-06-04 14:21:43,046: DEBUG - + ynh_die '--message=Unable to install core dependencies with Composer.'
2025-06-04 14:21:43,093: DEBUG - + ynh_exit_properly
2025-06-04 14:21:43,093: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2025-06-04 14:21:43,099: WARNING - Unable to install core dependencies with Composer.
2025-06-04 14:21:43,713: ERROR - Could not upgrade roundcube: An error occurred inside the app upgrade script