Nextcloud failing upgrade 31.0.8~ynh2 to 31.0.9~ynh1

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.22
What app is this about: Nextcloud

Describe your issue

Hi,

I’m was trying to upgrade Nextcloud from 31.0.8~ynh2 to 31.0.9~ynh1 in the yunohost admin interface. I stepped into a bug just after the backup script process, the Nextcloud notify push watcher seems to be involved (logs below).
I checked either the nextcloud-notify-push service (correctly active and running) and the nextcloud-notify-push-watcher service (inactive, but as it is just a service to restart the nextcloud-notify-push service I think it’s normal, not sure what the watcher is used for).

My hardware info :

  • Device : Rasberry PI 5
  • Architecture : ARM64

I can give more infos/logs if needed.
The nextcloud is correctly running, it’s just the upgrade that fails.

Share relevant logs or error messages

2025-09-12 12:18:51,069: WARNING - Job for nextcloud-notify-push-watcher.service failed because the control process exited with error code.
2025-09-12 12:18:51,070: WARNING - See "systemctl status nextcloud-notify-push-watcher.service" and "journalctl -xeu nextcloud-notify-push-watcher.service" for details.
2025-09-12 12:18:51,070: DEBUG - + journalctl --quiet --no-hostname --no-pager --lines=20 --unit=nextcloud-notify-push-watcher
2025-09-12 12:18:51,084: WARNING - Sep 12 12:13:52 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 12:18:51,084: WARNING - Sep 12 12:13:52 systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
2025-09-12 12:18:51,087: DEBUG - + '[' -e /var/log/nextcloud-notify-push-watcher/nextcloud-notify-push-watcher.log ']'
2025-09-12 12:18:51,089: WARNING - Sep 12 12:13:52 systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 12:18:51,091: DEBUG - + _ynh_clean_check_starting
2025-09-12 12:18:51,093: WARNING - Sep 12 12:13:53 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 12:18:51,097: DEBUG - + '[' -n '' ']'
2025-09-12 12:18:51,099: WARNING - Sep 12 12:13:54 systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
2025-09-12 12:18:51,103: DEBUG - + '[' -n '' ']'
2025-09-12 12:18:51,105: WARNING - Sep 12 12:13:54 systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 12:18:51,109: DEBUG - + return 1
2025-09-12 12:18:51,111: WARNING - Sep 12 12:17:28 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 12:18:51,118: DEBUG - + ynh_exit_properly
2025-09-12 12:18:51,124: WARNING - Sep 12 12:17:28 systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
2025-09-12 12:18:51,130: WARNING - Sep 12 12:17:28 systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 12:18:51,130: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2025-09-12 12:18:51,130: WARNING - Sep 12 12:18:17 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 12:18:51,131: WARNING - Sep 12 12:18:17 chmod[89861]: /usr/bin/chmod: cannot access '/var/www/nextcloud/apps/notify_push/bin/aarch64/notify_push': No such file or directory
2025-09-12 12:18:51,132: WARNING - Sep 12 12:18:17 systemd[1]: nextcloud-notify-push-watcher.service: Control process exited, code=exited, status=1/FAILURE
2025-09-12 12:18:51,133: WARNING - Sep 12 12:18:17 systemd[1]: nextcloud-notify-push-watcher.service: Failed with result 'exit-code'.
2025-09-12 12:18:51,133: WARNING - Sep 12 12:18:17 systemd[1]: Failed to start nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 12:18:51,134: WARNING - Sep 12 12:18:50 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 12:18:51,134: WARNING - Sep 12 12:18:51 systemctl[93495]: Failed to restart nextcloud-notify-push.service: Interactive authentication required.
2025-09-12 12:18:51,135: WARNING - Sep 12 12:18:51 systemctl[93495]: See system logs and 'systemctl status nextcloud-notify-push.service' for details.
2025-09-12 12:18:51,135: WARNING - Sep 12 12:18:51 systemd[1]: nextcloud-notify-push-watcher.service: Main process exited, code=exited, status=1/FAILURE
2025-09-12 12:18:51,136: WARNING - Sep 12 12:18:51 systemd[1]: nextcloud-notify-push-watcher.service: Failed with result 'exit-code'.
2025-09-12 12:18:51,136: WARNING - Sep 12 12:18:51 systemd[1]: Failed to start nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 12:18:51,702: ERROR - Failed to upgrade nextcloud: An error occurred inside the app upgrade script
2 Likes

the issue should be fixed. Can you upgrade from testing branch ?

sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing
3 Likes

I got the same error, if I upgrade to testing version will it remain always on testing version or will it “freeze” on next stable and remain on stable in the next upgrades?
https://paste.yunohost.org/raw/acuyicucah

you will get the next master version.
I have pushed new fixes in testing if you are willing to test again.

2 Likes
$ sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing
Info: Now upgrading nextcloud…
Info: Creating a safety backup prior to the upgrade
Info: Collecting files to be backed up for nextcloud…
Info: Declaring files to be backed up...
Info: /home/yunohost.app/nextcloud will not be saved, because 'BACKUP_CORE_ONLY' is set.
Info: /var/log/nextcloud will not be saved, because 'BACKUP_CORE_ONLY' is set.
Info: Backing up the MySQL database...
Info: Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).
Info: Creating a backup archive from the collected files…
Info: The archive will contain about 1.4GB of data.
Success! Backup created: nextcloud-pre-upgrade2
Info: Backup nextcloud-pre-upgrade1 was deleted because it is replaced by a newer backup nextcloud-pre-upgrade2
Info: Updating sources...
Info: Updating system_user...
Info: Updating install_dir...
Info: Updating data_dir...
Info: Updating permissions...
Info: Updating apt...
Info: Updating database...
Info: [+++.................] > Ensuring downward compatibility...
Info: [###+++..............] > Upgrading nextcloud...
Info: Upgrading to Nextcloud 31.0.9
Info: [######++++..........] > Reconfiguring nextcloud...
Warning: File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in /var/cache/yunohost/appconfbackup//var/www/nextcloud/config/config.php.backup.20250912.150814
Error: Failed to upgrade nextcloud: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250912-140404-app_upgrade-nextcloud' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + cd /var/www/nextcloud
Info: DEBUG - ++ filter_boring_occ_warnings
Info: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:enable user_ldap
Info: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
Info: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:enable user_ldap
Info: DEBUG - user_ldap already enabled
Info: DEBUG - + exec_occ app:update --all
Info: DEBUG - + '[' 31 -ge 30 ']'
Info: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
Info: DEBUG - ++ ynh_app_setting_get --key=php_version
Info: DEBUG - + php_version=8.3
Info: DEBUG - + [[ 8.3 != \8\.\3 ]]
Info: DEBUG - + cd /var/www/nextcloud
Info: DEBUG - ++ filter_boring_occ_warnings
Info: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:update --all
Info: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
Info: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:update --all
Info: DEBUG - contacts new version available: 7.3.0
Info: DEBUG - contacts couldn't be updated
Info: DEBUG - + ynh_exit_properly
Warning: Upgrade failed ... attempting to restore the safety backup (Yunohost first need to remove the app for this) ...
Info: Removing nextcloud…
Info: [++++++++++..........] > Removing system configurations related to nextcloud...
Info: [####################] > Removal of nextcloud completed
Info: Deprovisioning database...
Info: Deprovisioning apt...
Warning: Warning: Stopping phpsessionclean.service, but it can still be activated by:
Warning:   phpsessionclean.timer
Info: Deprovisioning permissions...
Info: Deprovisioning data_dir...
Info: Deprovisioning install_dir...
Info: Deprovisioning system_user...
userdel: user nextcloud is currently used by process 368731
deluser: `/usr/sbin/userdel nextcloud' returned error code 8. Exiting.
Warning: Failed to deprovision system_user : Failed to delete system user for nextcloud
Info: Deprovisioning sources...
Error: Failed to delete system user for nextcloud
Success! nextcloud uninstalled
Info: Preparing archive for restoration…

full log:

ended_at: 2025-09-12 14:08:51.493998
env:
  YNH_APP_ACTION: upgrade
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl
  YNH_APP_CURRENT_VERSION: 31.0.8~ynh2
  YNH_APP_ID: nextcloud
  YNH_APP_INSTANCE_NAME: nextcloud
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 31.0.9~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_APP_UPGRADE_TYPE: UPGRADE_APP
  YNH_ARCH: arm64
  YNH_DEBIAN_VERSION: bookworm
  YNH_DEFAULT_PHP_VERSION: '8.2'
  YNH_HELPERS_VERSION: '2.1'
error: An error occurred inside the app upgrade script
interface: cli
operation: app_upgrade
parent: null
related_to:
- - app
  - nextcloud
started_at: 2025-09-12 14:04:04.731428
started_by: ******
success: false
yunohost_version: 12.1.22

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

2025-09-12 15:04:05,833: INFO - Updating sources...
2025-09-12 15:04:05,834: DEBUG - Prefetching asset main: https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 ...
2025-09-12 15:04:39,618: INFO - Updating system_user...
2025-09-12 15:04:41,565: INFO - Updating install_dir...
2025-09-12 15:04:41,595: INFO - Updating data_dir...
2025-09-12 15:04:41,624: INFO - Updating permissions...
2025-09-12 15:04:41,663: DEBUG - Permission 'nextcloud.main' updated
2025-09-12 15:04:41,680: DEBUG - Permission 'nextcloud.main' updated
2025-09-12 15:04:41,728: DEBUG - Permission 'nextcloud.api' updated
2025-09-12 15:04:41,740: DEBUG - Permission 'nextcloud.api' updated
2025-09-12 15:04:41,945: DEBUG - Permissions were resynchronized to LDAP
2025-09-12 15:04:42,113: DEBUG - Formating result in 'export' mode
2025-09-12 15:04:42,117: DEBUG - SSO and portal configurations regenerated
2025-09-12 15:04:42,117: INFO - Updating apt...
2025-09-12 15:04:42,129: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2025-09-12 15:04:42,135: DEBUG - + source /usr/share/yunohost/helpers
2025-09-12 15:04:42,136: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-12 15:04:42,138: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-12 15:04:42,138: DEBUG - +++ pwd
2025-09-12 15:04:42,139: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-12 15:04:42,139: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-09-12 15:04:42,144: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-12 15:04:42,144: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-12 15:04:42,172: DEBUG - + ynh_abort_if_errors
2025-09-12 15:04:42,173: DEBUG - + trap ynh_exit_properly EXIT
2025-09-12 15:04:42,174: DEBUG - + ynh_apt_install_dependencies imagemagick acl tar smbclient at mariadb-server redis-server php8.3-apcu php8.3-bcmath php8.3-bz2 php8.3-curl php8.3-fpm php8.3-gd php8.3-gmp php8.3-igbinary php8.3-imagick php8.3-imap php8.3-intl php8.3-ldap php8.3-mbstring php8.3-mysql php8.3-redis php8.3-sqlite3 php8.3-xml php8.3-zip libmagickcore-6.q16-6-extra
2025-09-12 15:04:42,174: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-09-12 15:04:42,174: DEBUG - ++ sed 's/|/ | /'
2025-09-12 15:04:42,178: DEBUG - + local 'dependencies=imagemagick, acl, tar, smbclient, at, mariadb-server, redis-server, php8.3-apcu, php8.3-bcmath, php8.3-bz2, php8.3-curl, php8.3-fpm, php8.3-gd, php8.3-gmp, php8.3-igbinary, php8.3-imagick, php8.3-imap, php8.3-intl, php8.3-ldap, php8.3-mbstring, php8.3-mysql, php8.3-redis, php8.3-sqlite3, php8.3-xml, php8.3-zip, libmagickcore-6.q16-6-extra'
2025-09-12 15:04:42,179: DEBUG - ++ ynh_read_manifest version
2025-09-12 15:04:42,181: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/manifest.toml
2025-09-12 15:04:42,182: DEBUG - ++ toml_to_json
2025-09-12 15:04:42,183: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-09-12 15:04:42,184: DEBUG - ++ jq .version --raw-output
2025-09-12 15:04:42,342: DEBUG - + local version=31.0.9~ynh1
2025-09-12 15:04:42,342: DEBUG - + local app_ynh_deps=nextcloud-ynh-deps
2025-09-12 15:04:42,342: DEBUG - + grep '[<=>]'
2025-09-12 15:04:42,347: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-09-12 15:04:42,348: DEBUG - ++ sort -u
2025-09-12 15:04:42,351: DEBUG - + local specific_php_version=8.3
2025-09-12 15:04:42,352: DEBUG - + [[ -n 8.3 ]]
2025-09-12 15:04:42,352: DEBUG - ++ echo 8.3
2025-09-12 15:04:42,353: DEBUG - ++ wc -l
2025-09-12 15:04:42,360: DEBUG - + [[ 1 -eq 1 ]]
2025-09-12 15:04:42,361: DEBUG - + dependencies+=', php8.3, php8.3-fpm, php8.3-common'
2025-09-12 15:04:42,362: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:04:42,534: DEBUG - + local old_php_version=8.3
2025-09-12 15:04:42,535: DEBUG - + '[' -n 8.3 ']'
2025-09-12 15:04:42,535: DEBUG - + '[' 8.3 '!=' 8.3 ']'
2025-09-12 15:04:42,535: DEBUG - + ynh_app_setting_set --key=php_version --value=8.3
2025-09-12 15:04:42,768: DEBUG - + test -e /usr/bin/php7.4
2025-09-12 15:04:42,769: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-09-12 15:04:42,770: DEBUG - ++ local package=postgresql-15
2025-09-12 15:04:42,770: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2025-09-12 15:04:42,771: DEBUG - ++ grep --quiet '^installed$'
2025-09-12 15:04:42,805: DEBUG - ++ echo yes
2025-09-12 15:04:42,806: DEBUG - + local psql_installed=yes
2025-09-12 15:04:42,806: DEBUG - + [[ true == \t\r\u\e ]]
2025-09-12 15:04:42,807: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-09-12 15:04:42,807: DEBUG - ++ mktemp --directory
2025-09-12 15:04:42,810: DEBUG - + local TMPDIR=/tmp/tmp.139xci7x4l
2025-09-12 15:04:42,811: DEBUG - + mkdir -p /tmp/tmp.139xci7x4l/nextcloud-ynh-deps/DEBIAN
2025-09-12 15:04:42,813: DEBUG - + chmod -R 755 /tmp/tmp.139xci7x4l/nextcloud-ynh-deps
2025-09-12 15:04:42,816: DEBUG - + cat
2025-09-12 15:04:42,819: DEBUG - + _ynh_apt update
2025-09-12 15:04:42,819: DEBUG - + [[ update == \u\p\d\a\t\e ]]
2025-09-12 15:04:42,820: DEBUG - + local aptcache=/var/cache/apt/pkgcache.bin
2025-09-12 15:04:42,820: DEBUG - + sleep 1
2025-09-12 15:04:43,822: DEBUG - + [[ -e /var/cache/apt/pkgcache.bin ]]
2025-09-12 15:04:43,823: DEBUG - ++ find /var/cache/apt/pkgcache.bin -mmin -30
2025-09-12 15:04:43,826: DEBUG - + [[ -n /var/cache/apt/pkgcache.bin ]]
2025-09-12 15:04:43,827: DEBUG - ++ find /etc/apt/ -newer /var/cache/apt/pkgcache.bin
2025-09-12 15:04:43,832: DEBUG - + [[ -z '' ]]
2025-09-12 15:04:43,833: DEBUG - apt cache was already updated in the last 30 minutes, skipping 'apt update'
2025-09-12 15:04:43,833: DEBUG - + return
2025-09-12 15:04:43,834: DEBUG - + _ynh_wait_dpkg_free
2025-09-12 15:04:44,098: DEBUG - + return 0
2025-09-12 15:04:44,099: DEBUG - + dpkg-deb --build /tmp/tmp.139xci7x4l/nextcloud-ynh-deps /tmp/tmp.139xci7x4l/nextcloud-ynh-deps.deb
2025-09-12 15:04:44,127: DEBUG - + tee /tmp/tmp.139xci7x4l/dpkg_log
2025-09-12 15:04:44,127: DEBUG - + dpkg --force-depends --install /tmp/tmp.139xci7x4l/nextcloud-ynh-deps.deb
2025-09-12 15:04:44,936: DEBUG - (Reading database ... 108369 files and directories currently installed.)
2025-09-12 15:04:44,946: DEBUG - Preparing to unpack .../nextcloud-ynh-deps.deb ...
2025-09-12 15:04:44,962: DEBUG - Unpacking nextcloud-ynh-deps (31.0.9~ynh1) over (31.0.8~ynh2) ...
2025-09-12 15:04:45,013: DEBUG - Setting up nextcloud-ynh-deps (31.0.9~ynh1) ...
2025-09-12 15:04:45,061: DEBUG - + _ynh_apt_install --fix-broken
2025-09-12 15:04:45,061: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-09-12 15:04:45,062: DEBUG - + [[ --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken == \u\p\d\a\t\e ]]
2025-09-12 15:04:45,062: DEBUG - + _ynh_wait_dpkg_free
2025-09-12 15:04:45,305: DEBUG - + return 0
2025-09-12 15:04:45,306: 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-09-12 15:04:46,299: DEBUG - Reading package lists...
2025-09-12 15:04:47,148: DEBUG - Building dependency tree...
2025-09-12 15:04:47,155: DEBUG - Reading state information...
2025-09-12 15:04:48,561: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2025-09-12 15:04:48,562: DEBUG - + rm --recursive --force /tmp/tmp.139xci7x4l
2025-09-12 15:04:48,564: DEBUG - + _ynh_apt_package_is_installed nextcloud-ynh-deps
2025-09-12 15:04:48,565: DEBUG - + local package=nextcloud-ynh-deps
2025-09-12 15:04:48,566: DEBUG - + dpkg-query --show '--showformat=${db:Status-Status}' nextcloud-ynh-deps
2025-09-12 15:04:48,566: DEBUG - + grep --quiet '^installed$'
2025-09-12 15:04:48,599: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-09-12 15:04:48,600: DEBUG - ++ local package=postgresql-15
2025-09-12 15:04:48,601: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2025-09-12 15:04:48,602: DEBUG - ++ grep --quiet '^installed$'
2025-09-12 15:04:48,633: DEBUG - ++ echo yes
2025-09-12 15:04:48,634: DEBUG - + local psql_installed2=yes
2025-09-12 15:04:48,634: DEBUG - + [[ yes != \y\e\s ]]
2025-09-12 15:04:48,634: DEBUG - + ynh_exit_properly
2025-09-12 15:04:48,635: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-09-12 15:04:48,736: INFO - Updating database...
2025-09-12 15:04:48,828: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2025-09-12 15:04:48,833: DEBUG - + source _common.sh
2025-09-12 15:04:48,834: DEBUG - + source /usr/share/yunohost/helpers
2025-09-12 15:04:48,835: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-12 15:04:48,837: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-12 15:04:48,837: DEBUG - +++ pwd
2025-09-12 15:04:48,838: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-12 15:04:48,838: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-09-12 15:04:48,842: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-12 15:04:48,842: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-12 15:04:48,881: DEBUG - + ynh_app_setting_set_default --key=php_upload_max_filesize --value=10G
2025-09-12 15:04:48,883: INFO - [+++.................] > Ensuring downward compatibility...
2025-09-12 15:04:48,969: DEBUG - + '[' -z 10G ']'
2025-09-12 15:04:48,969: DEBUG - + ynh_app_setting_set_default --key=php_memory_limit --value=512M
2025-09-12 15:04:49,058: DEBUG - + '[' -z 512M ']'
2025-09-12 15:04:49,058: DEBUG - + '[' -z 1 ']'
2025-09-12 15:04:49,059: DEBUG - + ynh_app_setting_delete --key=backup_core_only
2025-09-12 15:04:49,245: DEBUG - + phpflags='--define apc.enable_cli=1'
2025-09-12 15:04:49,245: DEBUG - + ynh_app_setting_set --key=phpflags '--value=--define apc.enable_cli=1'
2025-09-12 15:04:49,628: DEBUG - + ynh_app_upgrading_from_version_before 22.2~ynh1
2025-09-12 15:04:49,629: DEBUG - + local version=22.2~ynh1
2025-09-12 15:04:49,629: DEBUG - + [[ 22.2~ynh1 =~ ~ynh ]]
2025-09-12 15:04:49,630: DEBUG - + dpkg --compare-versions 31.0.8~ynh2 lt 22.2~ynh1
2025-09-12 15:04:49,636: DEBUG - ++ grep OC_VersionString /var/www/nextcloud/version.php
2025-09-12 15:04:49,636: DEBUG - ++ cut '-d'\''' -f2
2025-09-12 15:04:49,639: DEBUG - + current_version=31.0.8
2025-09-12 15:04:49,641: DEBUG - + current_major_version=31
2025-09-12 15:04:49,644: DEBUG - ++ ynh_read_manifest resources.sources.main.url
2025-09-12 15:04:49,645: DEBUG - ++ grep -Eo '[0-9]+\.[0-9]+\.[0-9]+'
2025-09-12 15:04:49,645: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/manifest.toml
2025-09-12 15:04:49,647: DEBUG - ++ toml_to_json
2025-09-12 15:04:49,648: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-09-12 15:04:49,649: DEBUG - ++ jq .resources.sources.main.url --raw-output
2025-09-12 15:04:49,832: DEBUG - + last_version=31.0.9
2025-09-12 15:04:49,833: DEBUG - + last_major_version=31
2025-09-12 15:04:49,834: DEBUG - + [[ 31 != \3\1 ]]
2025-09-12 15:04:49,836: DEBUG - ++ exec_occ ldap:show-config ''
2025-09-12 15:04:49,837: DEBUG - ++ '[' 31 -ge 30 ']'
2025-09-12 15:04:49,838: DEBUG - ++ NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:04:49,839: DEBUG - ++ grep ldapEmailAttribute
2025-09-12 15:04:49,839: DEBUG - +++ ynh_app_setting_get --key=php_version
2025-09-12 15:04:49,880: DEBUG - +++ app=nextcloud
2025-09-12 15:04:50,036: DEBUG - ++ php_version=8.3
2025-09-12 15:04:50,037: DEBUG - ++ [[ 8.3 != \8\.\3 ]]
2025-09-12 15:04:50,039: DEBUG - ++ cd /var/www/nextcloud
2025-09-12 15:04:50,039: DEBUG - +++ filter_boring_occ_warnings
2025-09-12 15:04:50,040: DEBUG - ++ ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi ldap:show-config ''
2025-09-12 15:04:50,040: DEBUG - +++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:04:50,040: DEBUG - ++ sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi ldap:show-config ''
2025-09-12 15:04:55,832: DEBUG - + ldapEmail='| ldapEmailAttribute            | mail                                                                                                                    |'
2025-09-12 15:04:55,842: DEBUG - ++ echo '|' ldapEmailAttribute '|' mail '|'
2025-09-12 15:04:55,843: DEBUG - ++ grep -Po maildrop
2025-09-12 15:04:55,850: DEBUG - + '[' '' = maildrop ']'
2025-09-12 15:04:55,851: DEBUG - + ldap_email_attr=mail
2025-09-12 15:04:55,858: INFO - [###+++..............] > Upgrading nextcloud...
2025-09-12 15:04:55,859: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
2025-09-12 15:04:56,583: DEBUG - + exec_occ -V
2025-09-12 15:04:56,584: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:04:56,586: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:04:56,587: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:04:56,890: DEBUG - + php_version=8.3
2025-09-12 15:04:56,891: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:04:56,902: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:04:56,902: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:04:56,903: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi -V
2025-09-12 15:04:56,903: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:04:56,903: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi -V
2025-09-12 15:05:01,862: DEBUG - Nextcloud 31.0.8
2025-09-12 15:05:01,916: DEBUG - ++ exec_occ config:system:get mysql.utf8mb4
2025-09-12 15:05:01,918: DEBUG - ++ '[' 31 -ge 30 ']'
2025-09-12 15:05:01,918: DEBUG - ++ NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:05:01,921: DEBUG - +++ ynh_app_setting_get --key=php_version
2025-09-12 15:05:02,022: DEBUG - +++ app=nextcloud
2025-09-12 15:05:02,266: DEBUG - ++ php_version=8.3
2025-09-12 15:05:02,267: DEBUG - ++ [[ 8.3 != \8\.\3 ]]
2025-09-12 15:05:02,267: DEBUG - ++ cd /var/www/nextcloud
2025-09-12 15:05:02,267: DEBUG - +++ filter_boring_occ_warnings
2025-09-12 15:05:02,268: DEBUG - ++ ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi config:system:get mysql.utf8mb4
2025-09-12 15:05:02,268: DEBUG - +++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:05:02,268: DEBUG - ++ sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi config:system:get mysql.utf8mb4
2025-09-12 15:05:07,485: DEBUG - + '[' true '!=' true ']'
2025-09-12 15:05:07,485: DEBUG - + mail_app_must_be_reactived=0
2025-09-12 15:05:07,487: DEBUG - + exec_occ app:list
2025-09-12 15:05:07,490: DEBUG - + awk '/Enabled/{f=1;next} /Disabled/{f=0} f'
2025-09-12 15:05:07,494: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:05:07,494: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:05:07,495: DEBUG - + grep -q -w mail
2025-09-12 15:05:07,497: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:05:07,852: DEBUG - + php_version=8.3
2025-09-12 15:05:07,853: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:05:07,865: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:05:07,866: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:05:07,866: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:list
2025-09-12 15:05:07,867: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:05:07,868: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:list
2025-09-12 15:05:12,992: DEBUG - + [[ 31 -le 31 ]]
2025-09-12 15:05:12,992: DEBUG - + '[' 31.0.9 '!=' 31.0.8 ']'
2025-09-12 15:05:12,998: DEBUG - + next_major_version=32
2025-09-12 15:05:12,998: INFO - Upgrading to Nextcloud 31.0.9
2025-09-12 15:05:12,999: DEBUG - + source_id=32
2025-09-12 15:05:12,999: DEBUG - + [[ 32 -ge 31 ]]
2025-09-12 15:05:13,000: DEBUG - + ynh_print_info 'Upgrading to Nextcloud 31.0.9'
2025-09-12 15:05:13,000: DEBUG - + source_id=main
2025-09-12 15:05:13,000: DEBUG - + tmpdir=/var/www/nextcloud__tmp_upgrade
2025-09-12 15:05:13,000: DEBUG - + ynh_setup_source --dest_dir=/var/www/nextcloud__tmp_upgrade --source_id=main
2025-09-12 15:05:13,244: DEBUG - + keep=
2025-09-12 15:05:13,244: DEBUG - + full_replace=0
2025-09-12 15:05:13,245: DEBUG - + source_id=main
2025-09-12 15:05:13,246: DEBUG - + '[' -e /var/www/nextcloud__tmp_upgrade/composer.phar ']'
2025-09-12 15:05:13,250: DEBUG - ++ ynh_read_manifest 'resources.sources["main"]'
2025-09-12 15:05:13,251: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/manifest.toml
2025-09-12 15:05:13,251: DEBUG - ++ toml_to_json
2025-09-12 15:05:13,254: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-09-12 15:05:13,254: DEBUG - ++ jq '.resources.sources["main"]' --raw-output
2025-09-12 15:05:13,543: DEBUG - + local 'sources_json={
2025-09-12 15:05:13,544: DEBUG -   "url": "https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2",
2025-09-12 15:05:13,544: DEBUG -   "sha256": "aab8414cc63581ca3a8df472f45eb412b2b843a966b3870275421bad0d670f68"
2025-09-12 15:05:13,544: DEBUG - }'
2025-09-12 15:05:13,545: DEBUG - + jq -re .url
2025-09-12 15:05:13,732: DEBUG - https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2
2025-09-12 15:05:13,734: DEBUG - + local arch_prefix=
2025-09-12 15:05:13,898: DEBUG - + local src_url=https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2
2025-09-12 15:05:14,112: DEBUG - + local src_sum=aab8414cc63581ca3a8df472f45eb412b2b843a966b3870275421bad0d670f68
2025-09-12 15:05:14,319: DEBUG - + local src_format=
2025-09-12 15:05:14,531: DEBUG - + local src_in_subdir=
2025-09-12 15:05:14,532: DEBUG - + src_in_subdir=true
2025-09-12 15:05:14,787: DEBUG - + local src_extract=
2025-09-12 15:05:15,037: DEBUG - + local src_platform=
2025-09-12 15:05:15,239: DEBUG - + local src_rename=
2025-09-12 15:05:15,240: DEBUG - + [[ -n https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 ]]
2025-09-12 15:05:15,241: DEBUG - + [[ -n aab8414cc63581ca3a8df472f45eb412b2b843a966b3870275421bad0d670f68 ]]
2025-09-12 15:05:15,241: DEBUG - + [[ -z '' ]]
2025-09-12 15:05:15,242: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*\.zip$ ]]
2025-09-12 15:05:15,243: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*/zipball/.*$ ]]
2025-09-12 15:05:15,248: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*\.tar\.gz$ ]]
2025-09-12 15:05:15,248: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*\.tgz$ ]]
2025-09-12 15:05:15,249: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*/tar\.gz/.*$ ]]
2025-09-12 15:05:15,249: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*/tarball/.*$ ]]
2025-09-12 15:05:15,249: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*\.tar\.xz$ ]]
2025-09-12 15:05:15,250: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*\.tar\.zst$ ]]
2025-09-12 15:05:15,254: DEBUG - + [[ https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 =~ ^.*\.tar\.bz2$ ]]
2025-09-12 15:05:15,254: DEBUG - + src_format=tar.bz2
2025-09-12 15:05:15,255: DEBUG - + src_format=tar.bz2
2025-09-12 15:05:15,255: DEBUG - ++ echo tar.bz2
2025-09-12 15:05:15,258: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-09-12 15:05:15,262: DEBUG - + src_format=tar.bz2
2025-09-12 15:05:15,263: DEBUG - + src_extract=true
2025-09-12 15:05:15,263: DEBUG - + [[ true != \t\r\u\e ]]
2025-09-12 15:05:15,264: DEBUG - ++ dirname /var/cache/yunohost/download/nextcloud/main
2025-09-12 15:05:15,268: DEBUG - + mkdir -p /var/cache/yunohost/download/nextcloud
2025-09-12 15:05:15,278: DEBUG - + src_filename=/var/cache/yunohost/download/nextcloud/main
2025-09-12 15:05:15,279: DEBUG - + '[' tar.bz2 = docker ']'
2025-09-12 15:05:15,279: DEBUG - + '[' -n https://download.nextcloud.com/server/releases/nextcloud-31.0.9.tar.bz2 ']'
2025-09-12 15:05:15,279: DEBUG - + '[' -e /var/cache/yunohost/download/nextcloud/main ']'
2025-09-12 15:05:15,280: DEBUG - + sha256sum --check --status
2025-09-12 15:05:17,100: DEBUG - + '[' '!' -e /var/cache/yunohost/download/nextcloud/main ']'
2025-09-12 15:05:17,101: DEBUG - + sha256sum --check --status
2025-09-12 15:05:18,826: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-09-12 15:05:18,828: DEBUG - + '[' -n '' ']'
2025-09-12 15:05:18,829: DEBUG - + mkdir --parents /var/www/nextcloud__tmp_upgrade
2025-09-12 15:05:18,832: DEBUG - + [[ true == \f\a\l\s\e ]]
2025-09-12 15:05:18,832: DEBUG - + [[ tar.bz2 == \d\o\c\k\e\r ]]
2025-09-12 15:05:18,832: DEBUG - + [[ tar.bz2 == \z\i\p ]]
2025-09-12 15:05:18,832: DEBUG - + [[ tar.bz2 == \x\z ]]
2025-09-12 15:05:18,832: DEBUG - + [[ tar.bz2 == \z\s\t ]]
2025-09-12 15:05:18,833: DEBUG - + strip=()
2025-09-12 15:05:18,833: DEBUG - + '[' true '!=' false ']'
2025-09-12 15:05:18,833: DEBUG - + '[' true == true ']'
2025-09-12 15:05:18,833: DEBUG - + local sub_dirs=1
2025-09-12 15:05:18,833: DEBUG - + strip=(--strip-components "$sub_dirs")
2025-09-12 15:05:18,834: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz|tar.zst|tar$ ]]
2025-09-12 15:05:18,834: DEBUG - + tar --extract --file=/var/cache/yunohost/download/nextcloud/main --directory=/var/www/nextcloud__tmp_upgrade --strip-components 1
2025-09-12 15:06:49,500: DEBUG - + ynh_safe_rm /var/cache/yunohost/download/nextcloud/main
2025-09-12 15:06:49,501: DEBUG - + local target=/var/cache/yunohost/download/nextcloud/main
2025-09-12 15:06:49,599: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/patches/main ']'
2025-09-12 15:06:49,600: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/patches/main
2025-09-12 15:06:49,602: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/patches/main
2025-09-12 15:06:49,603: DEBUG - + pushd /var/www/nextcloud__tmp_upgrade
2025-09-12 15:06:49,603: DEBUG - /var/www/nextcloud__tmp_upgrade /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/scripts
2025-09-12 15:06:49,603: DEBUG - + for patchfile in "$patches_folder/"*.patch
2025-09-12 15:06:49,603: DEBUG - Applying /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/patches/main/00-add-logout_url-conf.patch
2025-09-12 15:06:49,604: DEBUG - + patch --strip=1
2025-09-12 15:06:49,608: DEBUG - patching file core/Controller/LoginController.php
2025-09-12 15:06:49,608: DEBUG - Hunk #1 succeeded at 77 (offset 2 lines).
2025-09-12 15:06:49,609: DEBUG - + popd
2025-09-12 15:06:49,610: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/scripts
2025-09-12 15:06:49,611: DEBUG - + '[' -n '' ']'
2025-09-12 15:06:49,612: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-09-12 15:06:49,613: DEBUG - + '[' -n /var/www/nextcloud ']'
2025-09-12 15:06:49,613: DEBUG - + '[' /var/www/nextcloud__tmp_upgrade == /var/www/nextcloud ']'
2025-09-12 15:06:49,613: DEBUG - + cp -a /var/www/nextcloud/config/config.php /var/www/nextcloud__tmp_upgrade/config/config.php
2025-09-12 15:06:49,625: DEBUG - + exec_occ maintenance:mode --on
2025-09-12 15:06:49,626: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:06:49,627: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:06:49,628: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:06:49,921: DEBUG - + php_version=8.3
2025-09-12 15:06:49,922: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:06:49,924: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:06:49,925: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:06:49,927: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:06:49,928: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:mode --on
2025-09-12 15:06:49,928: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:mode --on
2025-09-12 15:06:54,469: DEBUG - Maintenance mode enabled
2025-09-12 15:06:54,510: DEBUG - + cd /var/www/nextcloud/apps
2025-09-12 15:06:54,511: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,511: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/activity/ ']'
2025-09-12 15:06:54,512: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,512: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/admin_audit/ ']'
2025-09-12 15:06:54,512: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,512: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/app_api/ ']'
2025-09-12 15:06:54,512: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,513: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/bruteforcesettings/ ']'
2025-09-12 15:06:54,513: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,513: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/circles/ ']'
2025-09-12 15:06:54,513: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,513: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/cloud_federation_api/ ']'
2025-09-12 15:06:54,513: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,513: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/comments/ ']'
2025-09-12 15:06:54,514: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,514: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/contacts/ ']'
2025-09-12 15:06:54,514: DEBUG - + cp -a contacts/ /var/www/nextcloud__tmp_upgrade/apps/contacts/
2025-09-12 15:06:54,809: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,810: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/contactsinteraction/ ']'
2025-09-12 15:06:54,810: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,810: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/dashboard/ ']'
2025-09-12 15:06:54,810: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,810: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/dav/ ']'
2025-09-12 15:06:54,811: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,811: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/encryption/ ']'
2025-09-12 15:06:54,811: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,811: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/federatedfilesharing/ ']'
2025-09-12 15:06:54,811: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,811: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/federation/ ']'
2025-09-12 15:06:54,812: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,812: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files/ ']'
2025-09-12 15:06:54,812: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,812: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_accesscontrol/ ']'
2025-09-12 15:06:54,812: DEBUG - + cp -a files_accesscontrol/ /var/www/nextcloud__tmp_upgrade/apps/files_accesscontrol/
2025-09-12 15:06:54,995: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:54,996: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_automatedtagging/ ']'
2025-09-12 15:06:54,996: DEBUG - + cp -a files_automatedtagging/ /var/www/nextcloud__tmp_upgrade/apps/files_automatedtagging/
2025-09-12 15:06:55,177: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,177: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_confidential/ ']'
2025-09-12 15:06:55,179: DEBUG - + cp -a files_confidential/ /var/www/nextcloud__tmp_upgrade/apps/files_confidential/
2025-09-12 15:06:55,613: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,613: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_downloadlimit/ ']'
2025-09-12 15:06:55,614: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,614: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_external/ ']'
2025-09-12 15:06:55,614: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,615: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_pdfviewer/ ']'
2025-09-12 15:06:55,615: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,615: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_reminders/ ']'
2025-09-12 15:06:55,615: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,615: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_retention/ ']'
2025-09-12 15:06:55,615: DEBUG - + cp -a files_retention/ /var/www/nextcloud__tmp_upgrade/apps/files_retention/
2025-09-12 15:06:55,772: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,773: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_sharing/ ']'
2025-09-12 15:06:55,773: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,773: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_trashbin/ ']'
2025-09-12 15:06:55,773: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,773: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/files_versions/ ']'
2025-09-12 15:06:55,774: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,774: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/firstrunwizard/ ']'
2025-09-12 15:06:55,774: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,774: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/integration_peertube/ ']'
2025-09-12 15:06:55,775: DEBUG - + cp -a integration_peertube/ /var/www/nextcloud__tmp_upgrade/apps/integration_peertube/
2025-09-12 15:06:55,973: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,974: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/logreader/ ']'
2025-09-12 15:06:55,974: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,974: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/lookup_server_connector/ ']'
2025-09-12 15:06:55,974: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:55,974: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/music/ ']'
2025-09-12 15:06:55,975: DEBUG - + cp -a music/ /var/www/nextcloud__tmp_upgrade/apps/music/
2025-09-12 15:06:56,266: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,266: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/nextcloud_announcements/ ']'
2025-09-12 15:06:56,267: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,267: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/notes/ ']'
2025-09-12 15:06:56,268: DEBUG - + cp -a notes/ /var/www/nextcloud__tmp_upgrade/apps/notes/
2025-09-12 15:06:56,528: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,529: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/notifications/ ']'
2025-09-12 15:06:56,529: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,529: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/notify_push/ ']'
2025-09-12 15:06:56,530: DEBUG - + cp -a notify_push/ /var/www/nextcloud__tmp_upgrade/apps/notify_push/
2025-09-12 15:06:56,768: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,769: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/oauth2/ ']'
2025-09-12 15:06:56,769: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,769: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/password_policy/ ']'
2025-09-12 15:06:56,770: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,770: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/photos/ ']'
2025-09-12 15:06:56,770: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,770: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/privacy/ ']'
2025-09-12 15:06:56,770: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,771: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/profile/ ']'
2025-09-12 15:06:56,771: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,771: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/provisioning_api/ ']'
2025-09-12 15:06:56,771: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,771: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/qownnotesapi/ ']'
2025-09-12 15:06:56,771: DEBUG - + cp -a qownnotesapi/ /var/www/nextcloud__tmp_upgrade/apps/qownnotesapi/
2025-09-12 15:06:56,783: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,784: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/recommendations/ ']'
2025-09-12 15:06:56,784: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,785: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/related_resources/ ']'
2025-09-12 15:06:56,785: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:56,785: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/richdocuments/ ']'
2025-09-12 15:06:56,786: DEBUG - + cp -a richdocuments/ /var/www/nextcloud__tmp_upgrade/apps/richdocuments/
2025-09-12 15:06:57,898: DEBUG - + for nc_app_dir in */
2025-09-12 15:06:57,899: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/richdocumentscode_arm64/ ']'
2025-09-12 15:06:57,899: DEBUG - + cp -a richdocumentscode_arm64/ /var/www/nextcloud__tmp_upgrade/apps/richdocumentscode_arm64/
2025-09-12 15:07:00,548: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,549: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/serverinfo/ ']'
2025-09-12 15:07:00,549: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,549: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/settings/ ']'
2025-09-12 15:07:00,550: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,550: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/sharebymail/ ']'
2025-09-12 15:07:00,550: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,550: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/support/ ']'
2025-09-12 15:07:00,551: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,551: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/survey_client/ ']'
2025-09-12 15:07:00,551: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,551: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/suspicious_login/ ']'
2025-09-12 15:07:00,551: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,551: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/systemtags/ ']'
2025-09-12 15:07:00,552: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,552: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/terms_of_service/ ']'
2025-09-12 15:07:00,552: DEBUG - + cp -a terms_of_service/ /var/www/nextcloud__tmp_upgrade/apps/terms_of_service/
2025-09-12 15:07:00,936: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,936: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/text/ ']'
2025-09-12 15:07:00,936: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,936: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/theming/ ']'
2025-09-12 15:07:00,937: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,937: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/twofactor_backupcodes/ ']'
2025-09-12 15:07:00,937: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,937: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/twofactor_nextcloud_notification/ ']'
2025-09-12 15:07:00,937: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,938: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/twofactor_totp/ ']'
2025-09-12 15:07:00,938: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,938: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/updatenotification/ ']'
2025-09-12 15:07:00,938: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,938: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/user_ldap/ ']'
2025-09-12 15:07:00,939: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:00,939: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/user_saml/ ']'
2025-09-12 15:07:00,939: DEBUG - + cp -a user_saml/ /var/www/nextcloud__tmp_upgrade/apps/user_saml/
2025-09-12 15:07:01,090: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:01,090: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/user_status/ ']'
2025-09-12 15:07:01,090: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:01,091: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/viewer/ ']'
2025-09-12 15:07:01,091: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:01,091: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/weather_status/ ']'
2025-09-12 15:07:01,091: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:01,091: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/webhook_listeners/ ']'
2025-09-12 15:07:01,092: DEBUG - + for nc_app_dir in */
2025-09-12 15:07:01,092: DEBUG - + '[' '!' -d /var/www/nextcloud__tmp_upgrade/apps/workflowengine/ ']'
2025-09-12 15:07:01,092: DEBUG - + ynh_safe_rm /var/www/nextcloud
2025-09-12 15:07:01,092: DEBUG - + local target=/var/www/nextcloud
2025-09-12 15:07:03,418: DEBUG - + mv /var/www/nextcloud__tmp_upgrade /var/www/nextcloud
2025-09-12 15:07:03,423: DEBUG - ++ grep OC_VersionString /var/www/nextcloud/version.php
2025-09-12 15:07:03,424: DEBUG - ++ cut '-d'\''' -f2
2025-09-12 15:07:03,429: DEBUG - + current_version=31.0.9
2025-09-12 15:07:03,429: DEBUG - + current_major_version=31
2025-09-12 15:07:03,429: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
2025-09-12 15:07:04,118: DEBUG - + exec_occ maintenance:mode --off
2025-09-12 15:07:04,118: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:07:04,119: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:07:04,119: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:07:04,318: DEBUG - + php_version=8.3
2025-09-12 15:07:04,318: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:07:04,320: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:07:04,320: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:07:04,321: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:mode --off
2025-09-12 15:07:04,321: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:07:04,321: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:mode --off
2025-09-12 15:07:05,750: DEBUG - Maintenance mode already disabled
2025-09-12 15:07:05,783: DEBUG - 
2025-09-12 15:07:05,783: DEBUG - 
2025-09-12 15:07:05,784: DEBUG - + exec_occ upgrade
2025-09-12 15:07:05,784: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:07:05,784: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:07:05,784: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:07:05,961: DEBUG - + php_version=8.3
2025-09-12 15:07:05,962: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:07:05,963: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:07:05,964: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:07:05,965: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:07:05,965: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi upgrade
2025-09-12 15:07:05,966: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi upgrade
2025-09-12 15:07:06,658: DEBUG - Setting log level to debug
2025-09-12 15:07:06,666: DEBUG - Turned on maintenance mode
2025-09-12 15:07:07,468: DEBUG - Updating database schema
2025-09-12 15:07:07,484: DEBUG - Updated database
2025-09-12 15:07:07,542: DEBUG - Disabled incompatible app: calendar
2025-09-12 15:07:21,523: DEBUG - Update app contacts from App Store
2025-09-12 15:07:49,998: DEBUG - Update successful
2025-09-12 15:07:49,999: DEBUG - Turned off maintenance mode
2025-09-12 15:07:50,000: DEBUG - Resetting log level
2025-09-12 15:07:50,071: DEBUG - 
2025-09-12 15:07:50,071: DEBUG - 
2025-09-12 15:07:50,072: DEBUG - + exec_occ -V
2025-09-12 15:07:50,072: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:07:50,072: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:07:50,072: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:07:50,308: DEBUG - + php_version=8.3
2025-09-12 15:07:50,309: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:07:50,311: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:07:50,312: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:07:50,312: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi -V
2025-09-12 15:07:50,312: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:07:50,312: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi -V
2025-09-12 15:07:54,712: DEBUG - Nextcloud 31.0.9
2025-09-12 15:07:54,751: DEBUG - + '[' 31.0.9 '!=' 31.0.9 ']'
2025-09-12 15:07:54,755: DEBUG - + exec_occ db:add-missing-indices -n
2025-09-12 15:07:54,755: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:07:54,756: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:07:54,756: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:07:54,935: DEBUG - + php_version=8.3
2025-09-12 15:07:54,936: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:07:54,937: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:07:54,937: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:07:54,938: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:add-missing-indices -n
2025-09-12 15:07:54,939: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:07:54,939: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:add-missing-indices -n
2025-09-12 15:07:59,833: DEBUG - + exec_occ db:add-missing-columns -n
2025-09-12 15:07:59,833: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:07:59,834: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:07:59,834: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:08:00,015: DEBUG - + php_version=8.3
2025-09-12 15:08:00,016: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:08:00,017: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:08:00,018: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:08:00,018: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:add-missing-columns -n
2025-09-12 15:08:00,018: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:08:00,019: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:add-missing-columns -n
2025-09-12 15:08:04,178: DEBUG - Done.
2025-09-12 15:08:04,216: DEBUG - + exec_occ db:add-missing-primary-keys -n
2025-09-12 15:08:04,216: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:08:04,217: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:08:04,217: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:08:04,392: DEBUG - + php_version=8.3
2025-09-12 15:08:04,392: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:08:04,394: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:08:04,394: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:08:04,395: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:add-missing-primary-keys -n
2025-09-12 15:08:04,395: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:08:04,395: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:add-missing-primary-keys -n
2025-09-12 15:08:09,285: DEBUG - Done.
2025-09-12 15:08:09,327: DEBUG - + exec_occ db:convert-filecache-bigint -n
2025-09-12 15:08:09,327: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:08:09,327: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:08:09,328: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:08:09,510: DEBUG - + php_version=8.3
2025-09-12 15:08:09,511: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:08:09,514: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:08:09,514: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:08:09,514: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:convert-filecache-bigint -n
2025-09-12 15:08:09,515: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:08:09,515: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi db:convert-filecache-bigint -n
2025-09-12 15:08:14,481: DEBUG - All tables already up to date!
2025-09-12 15:08:14,526: INFO - [######++++..........] > Reconfiguring nextcloud...
2025-09-12 15:08:14,528: DEBUG - + ynh_backup_if_checksum_is_different /var/www/nextcloud/config/config.php
2025-09-12 15:08:14,739: WARNING - File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in /var/cache/yunohost/appconfbackup//var/www/nextcloud/config/config.php.backup.20250912.150814
2025-09-12 15:08:14,740: DEBUG - /var/cache/yunohost/appconfbackup//var/www/nextcloud/config/config.php.backup.20250912.150814
2025-09-12 15:08:14,741: DEBUG - + nc_conf=/var/www/nextcloud/config.json
2025-09-12 15:08:14,741: DEBUG - + ynh_config_add --template=config.json --destination=/var/www/nextcloud/config.json
2025-09-12 15:08:14,820: DEBUG - + jinja=0
2025-09-12 15:08:14,821: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/conf/config.json ']'
2025-09-12 15:08:14,821: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/conf/config.json
2025-09-12 15:08:14,821: DEBUG - + ynh_backup_if_checksum_is_different /var/www/nextcloud/config.json
2025-09-12 15:08:15,007: DEBUG - + touch /var/www/nextcloud/config.json
2025-09-12 15:08:15,010: DEBUG - + chmod 640 /var/www/nextcloud/config.json
2025-09-12 15:08:15,013: DEBUG - + _ynh_apply_default_permissions /var/www/nextcloud/config.json
2025-09-12 15:08:15,013: DEBUG - + local target=/var/www/nextcloud/config.json
2025-09-12 15:08:15,013: DEBUG - + ynh_system_user_exists --username=nextcloud
2025-09-12 15:08:15,036: DEBUG - + getent passwd nextcloud
2025-09-12 15:08:15,039: DEBUG - + '[' -f /var/www/nextcloud/config.json ']'
2025-09-12 15:08:15,040: DEBUG - + is_in_dir /var/www/nextcloud/config.json /var/www/nextcloud
2025-09-12 15:08:15,041: DEBUG - + '[' -n /var/www/nextcloud ']'
2025-09-12 15:08:15,042: DEBUG - ++ realpath /var/www/nextcloud/config.json
2025-09-12 15:08:15,045: DEBUG - + local child=/var/www/nextcloud/config.json
2025-09-12 15:08:15,046: DEBUG - ++ realpath /var/www/nextcloud
2025-09-12 15:08:15,049: DEBUG - + local parent=/var/www/nextcloud
2025-09-12 15:08:15,050: DEBUG - + [[ /var/www/nextcloud/config.json =~ ^/var/www/nextcloud ]]
2025-09-12 15:08:15,051: DEBUG - + chmod 600 /var/www/nextcloud/config.json
2025-09-12 15:08:15,053: DEBUG - + chown nextcloud:nextcloud /var/www/nextcloud/config.json
2025-09-12 15:08:15,056: DEBUG - + return
2025-09-12 15:08:15,057: DEBUG - + [[ 0 == 1 ]]
2025-09-12 15:08:15,057: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_qvrtzdyl/conf/config.json /var/www/nextcloud/config.json
2025-09-12 15:08:15,061: DEBUG - + _ynh_replace_vars /var/www/nextcloud/config.json
2025-09-12 15:08:15,061: DEBUG - + local file=/var/www/nextcloud/config.json
2025-09-12 15:08:15,061: DEBUG - + local -a uniques_vars
2025-09-12 15:08:15,062: DEBUG - + mapfile -t uniques_vars
2025-09-12 15:08:15,063: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/nextcloud/config.json
2025-09-12 15:08:15,064: DEBUG - ++ sort --unique
2025-09-12 15:08:15,065: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-12 15:08:15,086: DEBUG - + ynh_store_file_checksum /var/www/nextcloud/config.json
2025-09-12 15:08:15,339: DEBUG - + exec_occ app:disable updatenotification
2025-09-12 15:08:15,339: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:08:15,339: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:08:15,340: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:08:15,518: DEBUG - + php_version=8.3
2025-09-12 15:08:15,518: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:08:15,521: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:08:15,521: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:08:15,521: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:disable updatenotification
2025-09-12 15:08:15,522: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:08:15,522: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:disable updatenotification
2025-09-12 15:08:19,826: DEBUG - No such app enabled: updatenotification
2025-09-12 15:08:19,872: DEBUG - + exec_occ app:enable user_ldap
2025-09-12 15:08:19,872: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:08:19,873: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:08:19,873: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:08:20,079: DEBUG - + php_version=8.3
2025-09-12 15:08:20,080: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:08:20,083: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:08:20,083: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:08:20,084: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:enable user_ldap
2025-09-12 15:08:20,084: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:08:20,084: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:enable user_ldap
2025-09-12 15:08:24,203: DEBUG - user_ldap already enabled
2025-09-12 15:08:24,242: DEBUG - + exec_occ app:update --all
2025-09-12 15:08:24,243: DEBUG - + '[' 31 -ge 30 ']'
2025-09-12 15:08:24,243: DEBUG - + NEXTCLOUD_PHP_VERSION=8.3
2025-09-12 15:08:24,244: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-12 15:08:24,428: DEBUG - + php_version=8.3
2025-09-12 15:08:24,429: DEBUG - + [[ 8.3 != \8\.\3 ]]
2025-09-12 15:08:24,431: DEBUG - + cd /var/www/nextcloud
2025-09-12 15:08:24,431: DEBUG - ++ filter_boring_occ_warnings
2025-09-12 15:08:24,432: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:update --all
2025-09-12 15:08:24,432: DEBUG - ++ sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
2025-09-12 15:08:24,432: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi app:update --all
2025-09-12 15:08:28,703: DEBUG - contacts new version available: 7.3.0
2025-09-12 15:08:50,815: DEBUG - contacts couldn't be updated
2025-09-12 15:08:50,884: DEBUG - + ynh_exit_properly
2025-09-12 15:08:50,885: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2025-09-12 15:08:51,493: ERROR - Failed to upgrade nextcloud: An error occurred inside the app upgrade script

I am having the same problem with my Nextcloud, upgrading from 31.0.8~ynh2 to 31.0.9~ynh1. I’ll keep track of this thread for the resolution. Thank you, @ericg for looking into this.

1 Like

Indeed, I am super thankful to @ericg and all ynh devs. On my other ynh server upgrade went good.

Bonjour

Pareil pour moi, je viens de tenter la mise à jour qui a échouée. J’ai du désinstaller et repartir sur une sauvegarde :

2025-09-12 18:52:16,929: DEBUG - + is_in_dir /etc/fail2ban/filter.d/nextcloud.conf /etc/nextcloud
2025-09-12 18:52:16,929: DEBUG - + '[' -n /etc/nextcloud ']'
2025-09-12 18:52:16,929: DEBUG - ++ realpath /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,929: DEBUG - + local child=/etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,930: DEBUG - ++ realpath /etc/nextcloud
2025-09-12 18:52:16,930: DEBUG - + local parent=/etc/nextcloud
2025-09-12 18:52:16,930: DEBUG - + [[ /etc/fail2ban/filter.d/nextcloud.conf =~ ^/etc/nextcloud ]]
2025-09-12 18:52:16,930: DEBUG - + '[' /etc/fail2ban/filter.d/nextcloud.conf == /var/www/nextcloud ']'
2025-09-12 18:52:16,930: DEBUG - + '[' /etc/fail2ban/filter.d/nextcloud.conf == /home/yunohost.app/nextcloud ']'
2025-09-12 18:52:16,930: DEBUG - + chmod 400 /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,931: DEBUG - + chown root:root /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,931: DEBUG - + [[ 0 == 1 ]]
2025-09-12 18:52:16,931: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_rk331x30/conf/f2b_filter.conf /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,932: DEBUG - + _ynh_replace_vars /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,932: DEBUG - + local file=/etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,932: DEBUG - + local -a uniques_vars
2025-09-12 18:52:16,932: DEBUG - + mapfile -t uniques_vars
2025-09-12 18:52:16,932: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,932: DEBUG - ++ sort --unique
2025-09-12 18:52:16,932: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-12 18:52:16,934: DEBUG - + ynh_store_file_checksum /etc/fail2ban/filter.d/nextcloud.conf
2025-09-12 18:52:16,995: DEBUG - ++ dirname /var/log/nextcloud/nextcloud.log
2025-09-12 18:52:16,995: DEBUG - + local logdir=/var/log/nextcloud
2025-09-12 18:52:16,995: DEBUG - + '[' '!' -d /var/log/nextcloud ']'
2025-09-12 18:52:16,995: DEBUG - + '[' '!' -f /var/log/nextcloud/nextcloud.log ']'
2025-09-12 18:52:16,995: DEBUG - + ynh_systemctl --service=fail2ban --action=reload '--wait_until=(Started|Reloaded) fail2ban.service' --log_path=systemd
2025-09-12 18:52:17,209: DEBUG - + service=fail2ban
2025-09-12 18:52:17,210: DEBUG - + action=reload
2025-09-12 18:52:17,210: DEBUG - + wait_until='(Started|Reloaded) fail2ban.service'
2025-09-12 18:52:17,211: DEBUG - + length=20
2025-09-12 18:52:17,212: DEBUG - + log_path=systemd
2025-09-12 18:52:17,212: DEBUG - + timeout=60
2025-09-12 18:52:17,213: DEBUG - + ynh_in_ci_tests
2025-09-12 18:52:17,214: DEBUG - + '[' reload == stop ']'
2025-09-12 18:52:17,215: DEBUG - + [[ -n (Started|Reloaded) fail2ban.service ]]
2025-09-12 18:52:17,216: DEBUG - ++ mktemp
2025-09-12 18:52:17,216: DEBUG - + local templog=/tmp/tmp.qsVKb7iYFG
2025-09-12 18:52:17,217: DEBUG - + '[' systemd == systemd ']'
2025-09-12 18:52:17,217: DEBUG - + local pid_tail=162098
2025-09-12 18:52:17,218: DEBUG - + '[' reload == reload ']'
2025-09-12 18:52:17,218: DEBUG - + action=reload-or-restart
2025-09-12 18:52:17,219: DEBUG - + journalctl --unit=fail2ban --follow --since=-0 --quiet
2025-09-12 18:52:17,219: DEBUG - ++ date --utc --rfc-3339=seconds
2025-09-12 18:52:17,220: DEBUG - ++ cut -d+ -f1
2025-09-12 18:52:17,220: DEBUG - + local 'time_start=2025-09-12 16:52:17 UTC'
2025-09-12 18:52:17,221: DEBUG - + systemctl reload-or-restart fail2ban
2025-09-12 18:52:17,330: DEBUG - + [[ -n (Started|Reloaded) fail2ban.service ]]
2025-09-12 18:52:17,351: INFO - The service fail2ban has correctly executed the action reload-or-restart.
2025-09-12 18:52:17,351: DEBUG - + '[' 1 -ge 3 ']'
2025-09-12 18:52:17,352: DEBUG - + '[' 1 -eq 60 ']'
2025-09-12 18:52:17,352: DEBUG - + _ynh_clean_check_starting
2025-09-12 18:52:17,352: DEBUG - + '[' -n 162098 ']'
2025-09-12 18:52:17,352: DEBUG - + kill -SIGTERM 162098
2025-09-12 18:52:17,352: DEBUG - + '[' -n /tmp/tmp.qsVKb7iYFG ']'
2025-09-12 18:52:17,352: DEBUG - + ynh_safe_rm /tmp/tmp.qsVKb7iYFG
2025-09-12 18:52:17,352: DEBUG - + local target=/tmp/tmp.qsVKb7iYFG
2025-09-12 18:52:17,356: DEBUG - ++ journalctl --no-hostname --unit=fail2ban
2025-09-12 18:52:17,356: DEBUG - ++ tail --lines=50
2025-09-12 18:52:17,356: DEBUG - ++ grep 'WARNING.*nextcloud.*'
2025-09-12 18:52:17,436: DEBUG - + local fail2ban_error=
2025-09-12 18:52:17,437: DEBUG - + count=0
2025-09-12 18:52:17,438: DEBUG - + ynh_exec_as_app php8.3 --define apc.enable_cli=1 /var/www/nextcloud/cron.php
2025-09-12 18:52:17,438: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 /var/www/nextcloud/cron.php
2025-09-12 18:52:25,039: DEBUG - + ynh_systemctl --service=nextcloud-notify-push-watcher --action=restart
2025-09-12 18:52:25,143: DEBUG - + service=nextcloud-notify-push-watcher
2025-09-12 18:52:25,144: DEBUG - + action=restart
2025-09-12 18:52:25,145: DEBUG - + wait_until=
2025-09-12 18:52:25,146: DEBUG - + length=20
2025-09-12 18:52:25,146: DEBUG - + log_path=/var/log/nextcloud-notify-push-watcher/nextcloud-notify-push-watcher.log
2025-09-12 18:52:25,147: DEBUG - + timeout=60
2025-09-12 18:52:25,148: DEBUG - + ynh_in_ci_tests
2025-09-12 18:52:25,149: DEBUG - + '[' restart == stop ']'
2025-09-12 18:52:25,150: DEBUG - + '[' restart == reload ']'
2025-09-12 18:52:25,151: DEBUG - ++ date --utc --rfc-3339=seconds
2025-09-12 18:52:25,151: DEBUG - ++ cut -d+ -f1
2025-09-12 18:52:25,153: DEBUG - + local 'time_start=2025-09-12 16:52:25 UTC'
2025-09-12 18:52:25,154: DEBUG - + systemctl restart nextcloud-notify-push-watcher
2025-09-12 18:52:25,285: WARNING -     0 [->--------------------------]    0 [--->------------------------]    0 [----->----------------------]Job for nextcloud-notify-push-watcher.service failed because the control process exited with error code.
2025-09-12 18:52:25,285: WARNING - See "systemctl status nextcloud-notify-push-watcher.service" and "journalctl -xeu nextcloud-notify-push-watcher.service" for details.
2025-09-12 18:52:25,285: DEBUG - + journalctl --quiet --no-hostname --no-pager --lines=20 --unit=nextcloud-notify-push-watcher
2025-09-12 18:52:25,430: WARNING - sept. 12 18:48:10 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 18:52:25,431: WARNING - sept. 12 18:48:10 systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
2025-09-12 18:52:25,432: DEBUG - + '[' -e /var/log/nextcloud-notify-push-watcher/nextcloud-notify-push-watcher.log ']'
2025-09-12 18:52:25,432: WARNING - sept. 12 18:48:10 systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 18:52:25,433: DEBUG - + _ynh_clean_check_starting
2025-09-12 18:52:25,433: WARNING - sept. 12 18:48:11 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 18:52:25,434: DEBUG - + '[' -n '' ']'
2025-09-12 18:52:25,434: WARNING - sept. 12 18:48:12 systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
2025-09-12 18:52:25,435: DEBUG - + '[' -n '' ']'
2025-09-12 18:52:25,435: WARNING - sept. 12 18:48:12 systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 18:52:25,436: DEBUG - + return 1
2025-09-12 18:52:25,436: WARNING - sept. 12 18:51:38 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 18:52:25,436: DEBUG - + ynh_exit_properly
2025-09-12 18:52:25,436: WARNING - sept. 12 18:51:38 systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
2025-09-12 18:52:25,437: WARNING - sept. 12 18:51:38 systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 18:52:25,437: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2025-09-12 18:52:25,437: WARNING - sept. 12 18:51:56 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 18:52:25,437: WARNING - sept. 12 18:51:56 chmod[158429]: /usr/bin/chmod: impossible d'accéder à '/var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push': Aucun fichier ou dossier de ce type
2025-09-12 18:52:25,438: WARNING - sept. 12 18:51:56 systemd[1]: nextcloud-notify-push-watcher.service: Control process exited, code=exited, status=1/FAILURE
2025-09-12 18:52:25,438: WARNING - sept. 12 18:51:56 systemd[1]: nextcloud-notify-push-watcher.service: Failed with result 'exit-code'.
2025-09-12 18:52:25,438: WARNING - sept. 12 18:51:56 systemd[1]: Failed to start nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 18:52:25,439: WARNING - sept. 12 18:52:25 systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
2025-09-12 18:52:25,439: WARNING - sept. 12 18:52:25 systemctl[162246]: Failed to restart nextcloud-notify-push.service: Interactive authentication required.
2025-09-12 18:52:25,439: WARNING - sept. 12 18:52:25 systemctl[162246]: See system logs and 'systemctl status nextcloud-notify-push.service' for details.
2025-09-12 18:52:25,439: WARNING - sept. 12 18:52:25 systemd[1]: nextcloud-notify-push-watcher.service: Main process exited, code=exited, status=1/FAILURE
2025-09-12 18:52:25,440: WARNING - sept. 12 18:52:25 systemd[1]: nextcloud-notify-push-watcher.service: Failed with result 'exit-code'.
2025-09-12 18:52:25,440: WARNING - sept. 12 18:52:25 systemd[1]: Failed to start nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
2025-09-12 18:52:26,038: ERROR - Impossible de mettre à jour nextcloud : Une erreur s'est produite durant l'exécution du script de mise à jour de l'application

Perso, j’ai même pas réussi à restaurer la sauvegarde.

https://paste.yunohost.org/raw/fudarekoci

Bonjour,
Pour ma part j’ai cette erreur :


Est-ce que la solution consiste d’aller en ssh dans le dossier :

/yunohost/api/apps/nextcloud/

Et de taper la commande :

upgrade

Merci pour vos retours.

Et si vous désactiviez notify-push et refaire la mise à jour ?

Worked smoothly from the testing branch thank you very much :slight_smile:

1 Like

Je veux bien faire cela, mais comment faut-il faire ?

  • Panneau d’administration => Applications => Nextcloud
  • Configuration Notification Push

Dans le même cas sur un orange pi 3B, impossible de modifier la valeur de push-notification

./config: ligne 79: ynh_config_remove_systemdnextcloud-notify-push : commande introuvable

Log ici https://paste.yunohost.org/raw/ohuqezinig

J’ai restauré le backup en attendant :wink:

Zut… c’est une erreur ici

./config: ligne 79: ynh_config_remove_systemdnextcloud-notify-push : commande introuvable

J’imagine qu’en éditant ce fichier dans /etc/yunohost/apps/nextcloud/scripts/config et changer la ligne 79 avec un nano -l /etc/yunohost/apps/nextcloud/config pour corriger la ligne avec celle-ci (manque un espace), devrait faire le taff

ynh_config_remove_systemd nextcloud-notify-push

Cela a été corrigé il y pas longtemps Testing by ericgaspar · Pull Request #826 · YunoHost-Apps/nextcloud_ynh · GitHub

1 Like

Merci, je vais attendre la mise à jour.

Si jamais ça peut aider, les logs du journactl quand la maj à planté…

journalctl -xeu nextcloud-notify-push-watcher.service
░░ 
░░ The job identifier is 3054738.
Sep 11 22:24:45 linux07.fr systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit nextcloud-notify-push-watcher.service has successfully entered the 'dead' state.
Sep 11 22:24:45 linux07.fr systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
░░ Subject: A start job for unit nextcloud-notify-push-watcher.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit nextcloud-notify-push-watcher.service has finished successfully.
░░ 
░░ The job identifier is 3054738.
Sep 11 23:31:24 linux07.fr systemd[1]: Starting nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates...
░░ Subject: A start job for unit nextcloud-notify-push-watcher.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit nextcloud-notify-push-watcher.service has begun execution.
░░ 
░░ The job identifier is 3055439.
Sep 11 23:31:24 linux07.fr systemd[1]: nextcloud-notify-push-watcher.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit nextcloud-notify-push-watcher.service has successfully entered the 'dead' state.
Sep 11 23:31:24 linux07.fr systemd[1]: Finished nextcloud-notify-push-watcher.service - Restart Push daemon for Nextcloud clients when it receives updates.
░░ Subject: A start job for unit nextcloud-notify-push-watcher.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit nextcloud-notify-push-watcher.service has finished successfully.
░░ 
░░ The job identifier is 3055439.

Je confirme en tous les cas que en éditant le fichier /etc/yunohost/apps/nextcloud/scripts/config pour changer la ligne 79 avec un nano -l /etc/yunohost/apps/nextcloud/config pour corriger la ligne avec celle-ci (manque un espace)

ynh_config_remove_systemd nextcloud-notify-push

Il est possible ensuite de désactiver notify-push dans la webadmin comme suggérer plus haut. ( Peut-être pas nécessaire de désactiver car la version testing 31.0.9~ynh2 a eu des modifications aussi pour les services nextcloud-notify-push-watcher et netcloud-notify-push ?)…

En tous les cas comme j’ai eu un peu des déboires, j’ai désactivé avant dans la webadmin => Applications => Nextcloud => Configuration de Nextloud le notify-push puis lancer l’upgrade avec la version testing

yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/testing --debug

et ça s’est bien passé.

Puis après la mise à jour et vérification, j’ai réactivé notify-push toujours dans la webadmin… Merci pour le fix…

1 Like

OK pour tout et merci
Seule l’installation de la version git / testing est passée, l’autre alternative produisait une autre erreur de traitement
Donc réglé pour moi :wink:
Merci