Service php8.1-fpm is failed :( | Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-APP.sock

Matériel: VPS
Version de YunoHost: Propulsé par YunoHost 11.2.8.2 (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
Si oui, expliquer:
Si votre requête est liée à une applicatio, précisez son nom et sa version: dokuwiki 2023.04.04a~ynh1

Bonsoir,

Le diagnostic me renvoie cette erreur

[ERROR] Service php8.1-fpm is failed :frowning:

  • 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’).

Visiblement le service n’est pas installé mais TOUT est fonctionnel, donc je pense qu’il suffirait de le supprimer

Car si je suis le retour d’érreur

$ sudo yunohost service restart php8.1-fpm
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.
Warning: Could not execute the command 'systemctl restart php8.1-fpm'
Error: Could not restart the service 'php8.1-fpm'

Recent service logs:-- Journal begins at Thu 2023-06-08 21:21:18 CEST, ends at Mon 2023-12-18 18:50:06 CET. --
Dec 11 18:51:20 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Dec 11 18:51:20 systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
Dec 11 18:51:21 systemd[1]: Stopping The PHP 8.1 FastCGI Process Manager...
Dec 11 18:51:21 systemd[1]: php8.1-fpm.service: Succeeded.
Dec 11 18:51:21 systemd[1]: Stopped The PHP 8.1 FastCGI Process Manager.
Dec 11 18:51:21 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Dec 11 18:51:21 systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
Dec 11 18:51:28 systemd[1]: Reloading The PHP 8.1 FastCGI Process Manager.
Dec 11 18:51:28 systemd[1]: Reloaded The PHP 8.1 FastCGI Process Manager.
Dec 11 18:51:28 php-fpm8.1[2148665]: [11-Dec-2023 18:51:28] NOTICE: using inherited socket fd=8, "/run/php/php8.1-fpm.sock"
Dec 11 18:51:28 php-fpm8.1[2148665]: [11-Dec-2023 18:51:28] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Dec 11 18:51:28 php-fpm8.1[2148665]: [11-Dec-2023 18:51:28] ERROR: FPM initialization failed
Dec 11 18:51:28 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
Dec 11 18:51:28 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Dec 18 18:49:46 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Dec 18 18:49:46 php-fpm8.1[2407890]: [18-Dec-2023 18:49:46] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Dec 18 18:49:46 php-fpm8.1[2407890]: [18-Dec-2023 18:49:46] ERROR: FPM initialization failed
Dec 18 18:49:46 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
Dec 18 18:49:46 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Dec 18 18:49:46 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.
Dec 18 18:50:06 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
Dec 18 18:50:06 php-fpm8.1[2407942]: [18-Dec-2023 18:50:06] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
Dec 18 18:50:06 php-fpm8.1[2407942]: [18-Dec-2023 18:50:06] ERROR: FPM initialization failed
Dec 18 18:50:06 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
Dec 18 18:50:06 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
Dec 18 18:50:06 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.

Et pourtant aptitude me dit qu’il est installé …

[ERROR] Service php8.1-fpm is failed :frowning:

  • 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’).

D’ailleurs

 ~$ cd /etc/php/
5.6/ 7.0/ 7.1/ 7.2/ 7.3/ 7.4/ 8.0/ 8.1/ 8.2/ 
 ~$ ls /etc/php/8.1
cli  fpm  mods-available
 $ ls /etc/php/8.1/fpm/
conf.d  php-fpm.conf  php.ini  pool.d
 ~$ ls /etc/php/8.1/fpm/conf.d/
10-opcache.ini   20-ctype.ini  20-fileinfo.ini  20-iconv.ini     20-posix.ini      20-sockets.ini  20-tokenizer.ini
10-pdo.ini       20-dom.ini    20-ftp.ini       20-ldap.ini      20-readline.ini   20-sysvmsg.ini  20-xmlreader.ini
15-xml.ini       20-exif.ini   20-gd.ini        20-mbstring.ini  20-shmop.ini      20-sysvsem.ini  20-xmlwriter.ini
20-calendar.ini  20-ffi.ini    20-gettext.ini   20-phar.ini      20-simplexml.ini  20-sysvshm.ini  20-xsl.ini

Les logs (service panel admin) hastebin

D’après les logs l’erreur semble liée

b'[10-Jun-2023 09:41:14] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock'
b'[10-Jun-2023 09:41:14] ERROR: FPM initialization failed'

Je fais quoi, je demande à aptitude sa suppression ? Y aura t il des conséquence ? Ou une commande magique pour que yunohost le reprenne en compte ?

D’avance merci pour vos idées

Dans ce cas regardons grep -nr dokuwiki__2 /etc/php

Merci pour la réponse

Voici le retour

~# grep -nr dokuwiki__2 /etc/php
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:2:[dokuwiki__2]
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:4:user = dokuwiki__2
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:5:group = dokuwiki__2
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:7:chdir = /var/www/dokuwiki__2
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:9:listen = /var/run/php/php8.1-fpm-dokuwiki__2.sock
/etc/php/7.0/fpm/pool.d/dokuwiki__2.conf:4:[dokuwiki__2]
/etc/php/7.0/fpm/pool.d/dokuwiki__2.conf:23:user = dokuwiki__2
/etc/php/7.0/fpm/pool.d/dokuwiki__2.conf:24:group = dokuwiki__2
/etc/php/7.0/fpm/pool.d/dokuwiki__2.conf:36:listen = /var/run/php/php7.0-fpm-dokuwiki__2.sock
/etc/php/7.0/fpm/pool.d/dokuwiki__2.conf:361:chdir = /var/www/dokuwiki__2
/etc/php/7.3/fpm/pool.d/dokuwiki__2.conf:2:[dokuwiki__2]
/etc/php/7.3/fpm/pool.d/dokuwiki__2.conf:4:user = dokuwiki__2
/etc/php/7.3/fpm/pool.d/dokuwiki__2.conf:5:group = dokuwiki__2
/etc/php/7.3/fpm/pool.d/dokuwiki__2.conf:7:chdir = /var/www/dokuwiki__2
/etc/php/7.3/fpm/pool.d/dokuwiki__2.conf:9:listen = /var/run/php/php7.3-fpm-dokuwiki__2.sock
/etc/php/7.4/fpm/pool.d/dokuwiki__2.conf:2:[dokuwiki__2]
/etc/php/7.4/fpm/pool.d/dokuwiki__2.conf:4:user = dokuwiki__2
/etc/php/7.4/fpm/pool.d/dokuwiki__2.conf:5:group = dokuwiki__2
/etc/php/7.4/fpm/pool.d/dokuwiki__2.conf:7:chdir = /var/www/dokuwiki__2
/etc/php/7.4/fpm/pool.d/dokuwiki__2.conf:9:listen = /var/run/php/php8.1-fpm-dokuwiki__2.sock

Yes so for some reason the php7.4 conf was not properly migrated, not sure how this can happen … but let’s remove it with rm /etc/php/7.4/fpm/pool.d/dokuwiki__2.conf

and then attempt to restart php8.1

Merci pour la réponse et la prise en charge mais pas mieux même après la suppression du fichier demandé

Le fichier est bien supprimé

root@:~# ls /etc/php/7.4/fpm/pool.d/
my_webapp__2.conf  roundcube.conf  www.conf
root@:~# ls /etc/php/8.1/fpm/pool.d/
dokuwiki__2.conf  www.conf

Par contre php 8.1 refuse toujours de démarrer

YunoHost a rencontré une erreur interne

Vraiment désolé de cela.

Vous devez chercher de l’aide sur le forum ou le chat pour corriger la situation, ou signaler le bug sur le bugtracker.
Les informations suivantes peuvent être utiles à la personne qui vous aide :

Erreur: "500" Internal Server Error

Action: "PUT" /yunohost/api/services/php8.1-fpm/start

Message d’erreur :

Impossible de démarrer le service ‘php8.1-fpm’

Journaux historisés récents :

 -- Journal begins at Mon 2023-06-12 12:27:52 CEST, ends at Tue 2023-12-19 18:03:23 CET. --
déc. 11 18:51:20 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
déc. 11 18:51:20 systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
déc. 11 18:51:21 systemd[1]: Stopping The PHP 8.1 FastCGI Process Manager...
déc. 11 18:51:21 systemd[1]: php8.1-fpm.service: Succeeded.
déc. 11 18:51:21 systemd[1]: Stopped The PHP 8.1 FastCGI Process Manager.
déc. 11 18:51:21 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
déc. 11 18:51:21 systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
déc. 11 18:51:28 systemd[1]: Reloading The PHP 8.1 FastCGI Process Manager.
déc. 11 18:51:28 systemd[1]: Reloaded The PHP 8.1 FastCGI Process Manager.
déc. 11 18:51:28 php-fpm8.1[2148665]: [11-Dec-2023 18:51:28] NOTICE: using inherited socket fd=8, "/run/php/php8.1-fpm.sock"
déc. 11 18:51:28 php-fpm8.1[2148665]: [11-Dec-2023 18:51:28] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
déc. 11 18:51:28 php-fpm8.1[2148665]: [11-Dec-2023 18:51:28] ERROR: FPM initialization failed
déc. 11 18:51:28 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
déc. 11 18:51:28 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
déc. 18 18:49:46 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
déc. 18 18:49:46 php-fpm8.1[2407890]: [18-Dec-2023 18:49:46] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
déc. 18 18:49:46 php-fpm8.1[2407890]: [18-Dec-2023 18:49:46] ERROR: FPM initialization failed
déc. 18 18:49:46 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
déc. 18 18:49:46 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
déc. 18 18:49:46 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.
déc. 18 18:50:06 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
déc. 18 18:50:06 php-fpm8.1[2407942]: [18-Dec-2023 18:50:06] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
déc. 18 18:50:06 php-fpm8.1[2407942]: [18-Dec-2023 18:50:06] ERROR: FPM initialization failed
déc. 18 18:50:06 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
déc. 18 18:50:06 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
déc. 18 18:50:06 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.
déc. 18 19:00:10 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
déc. 18 19:00:10 php-fpm8.1[2408523]: [18-Dec-2023 19:00:10] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
déc. 18 19:00:10 php-fpm8.1[2408523]: [18-Dec-2023 19:00:10] ERROR: FPM initialization failed
déc. 18 19:00:10 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
déc. 18 19:00:10 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
déc. 18 19:00:10 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.
déc. 19 18:03:23 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
déc. 19 18:03:23 php-fpm8.1[2454096]: [19-Dec-2023 18:03:23] ERROR: Another FPM instance seems to already listen on /var/run/php/php8.1-fpm-dokuwiki__2.sock
déc. 19 18:03:23 php-fpm8.1[2454096]: [19-Dec-2023 18:03:23] ERROR: FPM initialization failed
déc. 19 18:03:23 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
déc. 19 18:03:23 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
déc. 19 18:03:23 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.

**Pendant le traitement de l'action, le serveur a dit :**

Impossible d'exécuter la commande 'systemctl start php8.1-fpm'

Le pastebin hastebin

Du coup
Ai suivi la même piste est ai supprimé le même fichier dans

/etc/php/7.0/fpm/pool.d/dokuwiki__2.conf
/etc/php/7.3/fpm/pool.d/dokuwiki__2.conf

Pourtant d’après cette sortie il n’y a plus que 1 fichier de conf dans le 8.1

grep -nr dokuwiki__2 /etc/php
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:2:[dokuwiki__2]
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:4:user = dokuwiki__2
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:5:group = dokuwiki__2
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:7:chdir = /var/www/dokuwiki__2
/etc/php/8.1/fpm/pool.d/dokuwiki__2.conf:9:listen = /var/run/php/php8.1-fpm-dokuwiki__2.sock

Je sèche …

Le nouveau pastebin hastebin

Une autre idée ? Merci d’avance

Bon
Du coup ai arrêté tous les services php et les ai relancé un par un par et finalement le 7.4 a redémarré sans trop savoir pourquoi
J’espère que la suppression des fichiers sus cités ne sera pas un soucis futur.
Cdt

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