What type of hardware are you using: Virtual machine What YunoHost version are you running: 12.0.14 What app is this about: Nextcloud
Describe your issue
Upgrade of Nextcloud from 30.0.8~ynh1 to 31.0.4~ynh2 failed.
It seems because Maps Nextcloud application is not compatible with Nextcloud 31. - See Log
Restore from backup is failing as well (due to Systemctl error with PHPFM 8.3). See 2nd log.
Nextcloud was completely removed from the server, so I tried to install it from the pre-upgrade backup, however it fails as well (due to the PHP error), and now I have half installed Nextcloud. I can see it in the list of apps, but access rights to it has not been setā¦
What can I do to restore at least the old version ?
Iām trying to see how to fix the PHP error to have a correct backup back:
āāā Job for php8.3-fpm.service failed because the control process exited with error code.
2025-04-19 17:18:47,753: WARNING - See āsystemctl status php8.3-fpm.serviceā and ājournalctl -xeu php8.3-fpm.serviceā for details.
2025-04-19 17:18:47,755: WARNING - invoke-rc.d: initscript php8.3-fpm, action ārestartā failed.
2025-04-19 17:18:47,771: DEBUG - * php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
2025-04-19 17:18:47,771: DEBUG - Loaded: loaded (/lib/systemd/system/php8.3-fpm.service; enabled; preset: enabled)
2025-04-19 17:18:47,771: DEBUG - Active: activating (auto-restart) (Result: exit-code) since Sat 2025-04-19 17:18:47 CEST; 8ms ago
2025-04-19 17:18:47,771: DEBUG - Docs: man:php-fpm8.3(8)
2025-04-19 17:18:47,771: DEBUG - Process: 9571 ExecStart=/usr/sbin/php-fpm8.3 --nodaemonize --fpm-config /etc/php/8.3/fpm/php-fpm.conf (code=exited, status=78)
2025-04-19 17:18:47,771: DEBUG - Process: 9572 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.3/fpm/pool.d/www.conf 83 (code=exited, status=0/SUCCESS)
2025-04-19 17:18:47,771: DEBUG - Main PID: 9571 (code=exited, status=78)
2025-04-19 17:18:47,771: DEBUG - CPU: 76ms
2025-04-19 17:18:47,772: WARNING - dpkg: error processing package php8.3-fpm (āconfigure):āāā
Some updates, running journalctl -xeu php8.3-fpm.service
shows the nextcloud user is not there anymore
āApr 19 17:46:07 collinfr.net php-fpm8.3[11650]: [19-Apr-2025 17:46:07] ALERT: [pool nextcloud] user has not been definedā
I guess thatās because nextcloud have been completely removed after the failed upgrade
Found that Monitorix, a small monitoring application, was creating itās php-fpm config referencing other php-fpm configs:
root@collinfr:/etc/php/8.3/fpm/pool.d# cat monitorix_status.conf
; Auto generated config for Monitorix monitoring
[matomo]
pm.status_listen = /var/run/php/php8.3-fpm-matomo-monitorix-status.sock
pm.status_path = /php-pool-status/php8.3-fpm-matomo
; Auto generated config for Monitorix monitoring
[nextcloud]
pm.status_listen = /var/run/php/php8.3-fpm-nextcloud-monitorix-status.sock
pm.status_path = /php-pool-status/php8.3-fpm-nextcloud
; Auto generated config for Monitorix monitoring
[www]
pm.status_listen = /var/run/php/php8.3-fpm-www-monitorix-status.sock
pm.status_path = /php-pool-status/php8.3-fpm-www
Hence, when Nextcloud was removed because of the failed upgrade, it just kept this reference to nextcloud config, and prevented php-fpm from starting, thus preventing the restore from happening.
Oops! No, I havenāt executed yunohost tools regen-conf apt --force this one after the first command. Also the first command did not output anything. But even so, after the first command it did updated the Nextcloud successfuly.