Welcome to Centmin Mod Community
Register Now

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

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    6:01 PM
    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

    28,976
    6,578
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,764
    Local Time:
    3:01 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    66
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    6:01 PM
    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. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    1:01 AM
    1.11
    10.2
    That is not normal.
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,976
    6,578
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,764
    Local Time:
    3:01 AM
    Nginx 1.13.x
    MariaDB 5.5
    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