Learn about Centmin Mod LEMP Stack today
Become a Member

PHP-FPM Restart PHP-FPM - Unable to bind listening socket

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by trxerz, Oct 15, 2015.

Tags:
  1. trxerz

    trxerz Member

    69
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    9:13 AM
    Hi everyone,
    Today when try to restarting instance I got this error message:

    [root@vultr ~]# service php-fpm restart
    Gracefully shutting down php-fpm ................................... failed. Use force-exit
    Starting php-fpm [14-Oct-2015 15:29:20] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
    [14-Oct-2015 15:29:20] ERROR: FPM initialization failed
    failed


    It works again when restarting the instance, is this RAM related issue?
    Hosted on Vultr.


    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    6:13 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sometimes depending on how busy php-fpm processes are it can take some time between stop and restart for php-fpm processes to exit, so port 9000 will still be in use and running
     
  3. trxerz

    trxerz Member

    69
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    9:13 AM
    My VPS (1GB Vultr Chicago) only have 2 brand new sites (wordpress) with no visitor.
    It sometimes it down due to 502 bad gateway

    "no pid file found - php-fpm is not running ?"

    Is this normal?
     
  4. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    4:13 PM
    Mainline
    10.2
    That is not normal.
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    6:13 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    IIRC you had alot of problems with initial install and slow downloads/network connectivity on your VPS in the past ? same VPS ? could be other problems as that isn't normal if you have no visitors

    stop php-fpm service and then check if any php-fpm processes are still running.. if they are kill them manually and then start php-fpm