Erreur avec php8.1-fpm.service (multiple instances ?)

Bonjour,

Matériel: VPS
Version de YunoHost: Propulsé par YunoHost 11.1.20 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin .
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Depuis que j’ai rencontré un soucis avec l’upgrade de mon dokuwiki ( Erreur dokuwiki depuis dernière mise jour et résolution ), j’ai cette dans les issues :

=================================
Services status check (services)
=================================

[ERROR] Service php8.1-fpm is failed :(
  - You can try to restart the service, and if it doesn't work, have a look at the service logs in the webadmin (from the command line, you can do this with 'yunohost service restart php8.1-fpm' and 'yunohost service log php8.1-fpm').

Et

$ sudo yunohost service status php8.1-fpm
Error: Unknown service 'php8.1-fpm'

Lors de la mise à jour de yunohost ce jour, forcément ça coince


Warning: Errors were encountered while processing:
Warning:  php8.1-fpm
Warning:  php8.1
Warning: E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: Could not upgrade packages: 
Success! System upgraded

Si je regarde s’il est installé

aptitude search php8.1-fpm
C A php8.1-fpm                                   - server-side, HTML-embedded scripting language (FPM-CGI
p   php8.1-fpm-dbgsym                            - debug symbols for php8.1-fpm

Et si je demande installation

sudo apt install php8.1-fpm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php8.1-fpm is already the newest version (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38).
php8.1-fpm set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
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 Sat 2023-06-10 10:14:01 CEST; 13ms ago
       Docs: man:php-fpm8.1(8)
    Process: 2640044 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.c
onf (code=exited, status=78)
    Process: 2640061 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/ph
p/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
   Main PID: 2640044 (code=exited, status=78)
        CPU: 60ms

Jun 10 10:14:01 cbiot.fr systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Jun 10 10:14:01 cbiot.fr php-fpm8.1[2640044]: [10-Jun-2023 10:14:01] ERROR: Another FPM instance seems to
 already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Jun 10 10:14:01 cbiot.fr php-fpm8.1[2640044]: [10-Jun-2023 10:14:01] ERROR: FPM initialization failed
Jun 10 10:14:01 cbiot.fr systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONF
IG
Jun 10 10:14:01 cbiot.fr systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Jun 10 10:14:01 cbiot.fr 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)

Bon pourtant quand j’ai “réparé” dokuwiki j’ai ajouter ce fichier manquant (dokuwiki.conf)

ls /etc/php/8.1/fpm/pool.d/
dokuwiki__2.conf  www.conf

Je présume donc que php8.1 est fonctionnel ce qui semble confirmé par une suppression de php8.1-fpm et sa réinstallation qui échoue

sudo apt install  php8.1-fpm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  php8.1-gd php8.1-ldap
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  php8.1-fpm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,682 kB of archives.
After this operation, 5,612 kB of additional disk space will be used.
Selecting previously unselected package php8.1-fpm.
(Reading database ... 71479 files and directories currently installed.)
Preparing to unpack .../php8.1-fpm_8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38_amd64.deb ...
Unpacking php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
Setting up php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
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 Sat 2023-06-10 10:20:06 CEST; 9ms ago
       Docs: man:php-fpm8.1(8)
    Process: 2642894 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.c
onf (code=exited, status=78)
    Process: 2642895 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/ph
p/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
   Main PID: 2642894 (code=exited, status=78)
        CPU: 59ms

Jun 10 10:20:06 cbiot.fr systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Jun 10 10:20:06 cbiot.fr php-fpm8.1[2642894]: [10-Jun-2023 10:20:06] ERROR: Another FPM instance seems to
 already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Jun 10 10:20:06 cbiot.fr php-fpm8.1[2642894]: [10-Jun-2023 10:20:06] ERROR: FPM initialization failed
Jun 10 10:20:06 cbiot.fr systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONF
IG
Jun 10 10:20:06 cbiot.fr systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Jun 10 10:20:06 cbiot.fr 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
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 php8.1-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)

Dans ce message ce qui est intéressant c’est qui me signale qu’une autre instance tourne déjà

ERROR: Another FPM instance seems to
 already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Jun 10 10:20:06 cbiot.fr php-fpm8.1[2642894]: [10-Jun-2023 10:20:06] ERROR: FPM initialization failed
Jun 10 10:20:06 cbiot.fr systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONF
IG
Jun 10 10:20:06 cbiot.fr systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Jun 10 10:20:06 cbiot.fr systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.

Mais je ne sais comment la supprimer sans tout casser :wink:

J’avoue qu’il y a quelque chose qui m’échappe et en plus comme c’est mon serveur de mail, j’aimerais ne pas le planter ! :wink:

Si une bonne âme avait une idée, elle est plus que bienvenue :wink:

Belle journée à tous :wink:

Plus d’erreur dans l’issue ce soir mais par contre , c’est cassé

 sudo yunohost tools  upgrade 
Error: You cannot do this right now because dpkg/APT (the system package managers) seems to be in a broken state... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a` and/or `sudo dpkg --audit`.
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.1-gd php8.1-ldap
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
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 Sat 2023-06-10 19:06:30 CEST; 8ms ago
       Docs: man:php-fpm8.1(8)
    Process: 2657095 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf (code=exited, status=78)
    Process: 2657100 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: 2657095 (code=exited, status=78)
        CPU: 57ms

Jun 10 19:06:30 cbiot.fr systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Jun 10 19:06:30 cbiot.fr php-fpm8.1[2657095]: [10-Jun-2023 19:06:30] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Jun 10 19:06:30 cbiot.fr php-fpm8.1[2657095]: [10-Jun-2023 19:06:30] ERROR: FPM initialization failed
Jun 10 19:06:30 cbiot.fr systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
Jun 10 19:06:30 cbiot.fr systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Jun 10 19:06:30 cbiot.fr 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
Errors were encountered while processing:
 php8.1-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)


 sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 php8.1-fpm           server-side, HTML-embedded scripting language (FPM-CGI bi

sudo dpkg --configure php8.1-fpm
Setting up php8.1-fpm (8.1.20-1+0~20230609.43+debian11~1.gbpb5cd38) ...
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 Sat 2023-06-10 19:07:12 CEST; 13ms ago
       Docs: man:php-fpm8.1(8)
    Process: 2658162 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf (code=exited, status=78)
    Process: 2658164 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: 2658162 (code=exited, status=78)
        CPU: 61ms

Jun 10 19:07:11 cbiot.fr systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Jun 10 19:07:12 cbiot.fr php-fpm8.1[2658162]: [10-Jun-2023 19:07:12] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Jun 10 19:07:12 cbiot.fr php-fpm8.1[2658162]: [10-Jun-2023 19:07:12] ERROR: FPM initialization failed
Jun 10 19:07:12 cbiot.fr systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
Jun 10 19:07:12 cbiot.fr systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Jun 10 19:07:12 cbiot.fr 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
Errors were encountered while processing:
 php8.1-fpm

Honnetement, faudrait un petit coup de pouce :wink:

Bon finalement comme php8.2-fpm est installé j’ai purgé la version 8.1 à la main.
Puis ai viré manuellement /etc/php/8.1/fpm/pool.d/
Et ça semble avoir réglé le soucis

J’attends un peu avant de passer en résolu

Je pense que ce soit être un mic mac d’installation manuelle en parallèle de yunohost qui a mis le souk…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.