Baikal update 502 bad gateway

Mon serveur YunoHost

Matériel: X86 core i5 8700T DELL optiplex 7040
Version de YunoHost: 3.8.5.9
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran |
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
Si oui, expliquer: Oui je suis dans un conteneur LXC sous proxmox 6.2

Description du problème

J’ai effectué la mise à jour systeme ( je n’ai pas encore fait la migration vers buster )
ensuite j’ai essayé les mises à jour des applications
La mise à jour de l’application baikal m’a cassé les applications utilisant php 7.0
Je me suis connecté en SSH et le message d’erreur sur le service était le suivant

service php7.0-fpm status
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-10-26 18:48:02 CET; 15h ago
     Docs: man:php-fpm7.0(8)
  Process: 1001 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.0/fpm/pool.d/www.conf 70 (code=exited, status=0/SUCCESS)
  Process: 281 ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf (code=exited, status=78)
 Main PID: 281 (code=exited, status=78)

oct. 26 18:48:00 mxinfofr systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
oct. 26 18:48:02 mxinfofr php-fpm7.0[281]: [26-Oct-2020 18:48:02] ERROR: An another FPM instance seems to already listen on /var/run/php/php7.0-fpm-baikal.sock
oct. 26 18:48:02 mxinfofr php-fpm7.0[281]: [26-Oct-2020 18:48:02] ERROR: FPM initialization failed
oct. 26 18:48:02 mxinfofr systemd[1]: php7.0-fpm.service: Main process exited, code=exited, status=78/n/a
oct. 26 18:48:02 mxinfofr systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
oct. 26 18:48:02 mxinfofr systemd[1]: php7.0-fpm.service: Unit entered failed state.
oct. 26 18:48:02 mxinfofr systemd[1]: php7.0-fpm.service: Failed with result 'exit-code'.

Solution

Aprés analyse du message d’erreur

oct. 26 18:48:02 mxinfofr php-fpm7.0[281]: [26-Oct-2020 18:48:02] ERROR: An another FPM instance seems to already listen on /var/run/php/php7.0-fpm-baikal.sock

:
il y avait déjà une instance php qui était lancé sur le socket php7.0-fpm-baikal.sock
J’ai cherché les configurations éxistantes find . -name “baikal." en affichant les informations détaillées pour avoir par exemple la date de création -exec ls -lh {} ;
Ce qui donne le commande :
find /etc/php/ -name "baikal.
” -exec ls -lh {} ;
-rw-r–r-- 1 root root 19K avril 15 2020 ./7.0/fpm/pool.d/baikal.conf.
-rw-r–r-- 1 root root 19K oct. 26 18:35 ./7.3/fpm/pool.d/baikal.conf
et j’ai trouvé 2 configurations.
J’ai donc renomé celle de la version 7.0 comme le fichier ne se termine plus par conf il n’est pas pris en compte lors du démarrage de php.
-rw-r–r-- 1 root root 19K avril 15 2020 ./7.0/fpm/pool.d/baikal.conf.deja.migre.vers7.3

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