What app is this about, and its version: 32.0.6~ynh2
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: Old laptop or computer
Describe your issue
Environment
YunoHost: 12.1.40.1
Debian: Bookworm
Nextcloud: 32.0.6~ynh2
Upgrade target: 34.0.2~ynh1
PHP: 8.3
Problem
Upgrading Nextcloud from 32.0.6~ynh2 to 34.0.2~ynh1 always fails.
YunoHost automatically restores the previous installation.
After the restore, Nextcloud is healthy again.
Verified
The installation has been thoroughly checked:
apt is healthy.
MariaDB is healthy.
Disk space is sufficient.
occ status is OK.
occ upgrade -vvv returns “No upgrade required”.
maintenance:mode is disabled.
files:scan, files:cleanup and sharing cleanup completed successfully.
LDAP configuration has been verified.
No incompatible apps (e.g. Memories) are installed.
After the automatic restore:
sudo yunohost app setting nextcloud php_version
returns:
8.3
The web interface may initially return HTTP 500, but it is restored by running:
sudo -u nextcloud php8.3 /var/www/nextcloud/occ maintenance:repair
Log observations
The upgrade log shows the package switching the application to PHP 8.4:
ynh_app_setting_set --key=php_version --value=8.4
Later, exec_occ detects that Nextcloud 32 still requires PHP 8.3:
NEXTCLOUD_PHP_VERSION=8.3
php_version=8.4
It then starts rebuilding the dependencies for PHP 8.3 before the upgrade aborts.
The log also contains:
BASH_XTRACEFD: 7: invalid value for trace file descriptor
although it is unclear whether this is related to the failure.
Additional information
I searched the forum and found several upgrade issues:
incompatible apps (Memories),
failed restore,
APT update failures,
script errors resolved after later PHP updates.
However, none of those cases match this one:
there are no incompatible app errors,
apt works correctly,
the restore succeeds,
the installation is healthy after restore,
the upgrade consistently aborts during the upgrade process.
The complete upgrade log is attached.