Unable to update php 8.1

Hi everyone ! :slight_smile:

My YunoHost server

Hardware: VPS Hetzner CX 31 (8Go RAM 2 vCPU intel)
YunoHost version: 11.2.11.2 (stable)
I have access to my server : SSH, Webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

When I try to update with sudo apt install --fix-broken I receive this error message.
Do you have an idea why ? I don’t understand myself

Thanks a lot !

sudo apt install --fix-broken
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  php8.0-intl php8.0-mysql
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php8.1-fpm (8.1.27-4+0~20240411.60+debian11~1.gbp279e30) ...
Job for php8.1-fpm.service failed because the control process exited with error code.
See "systemctl status php8.1-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php8.1-fpm, action "restart" failed.
â—Ź php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-04-18 09:14:46 CEST; 9ms ago
       Docs: man:php-fpm8.1(8)
    Process: 128440 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf (code=exited, status=78)
    Process: 128444 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
   Main PID: 128440 (code=exited, status=78)
        CPU: 85ms

Apr 18 09:14:46 domain systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Apr 18 09:14:46 domain php-fpm8.1[128440]: [18-Apr-2024 09:14:46] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki.sock
Apr 18 09:14:46 domain php-fpm8.1[128440]: [18-Apr-2024 09:14:46] ERROR: FPM initialization failed
Apr 18 09:14:46 domain systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
Apr 18 09:14:46 domain systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Apr 18 09:14:46 domain systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.
dpkg: error processing package php8.1-fpm (--configure):
 installed php8.1-fpm package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of php8.1:
 php8.1 depends on libapache2-mod-php8.1 | php8.1-fpm | php8.1-cgi; however:
  Package libapache2-mod-php8.1 is not installed.
  Package php8.1-fpm is not configured yet.
  Package php8.1-cgi is not installed.

dpkg: error processing package php8.1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 php8.1-fpm
 php8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can you share the output of the following command?

sudo find /etc/php/ -name "*dokuwiki*"

Here they are :

sudo find /etc/php/ -name "*dokuwiki*"
/etc/php/7.3/fpm/pool.d/dokuwiki.conf
/etc/php/7.4/fpm/pool.d/dokuwiki.conf
/etc/php/8.1/fpm/pool.d/dokuwiki.conf

OK, there’s a bug in the PHP migration for this app.

Stop all the PHP-FPM services, then delete the first two files with rm. Restart the services.

The issue should be fixed then.

It’s working ! Thanks a lot :slight_smile:
Have a nice day