Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP-FPM goes down randomly and gives connection refused error in errorlog

Discussion in 'EasyApache' started by sonuyos, Aug 1, 2018.

Tags:
  1. sonuyos

    sonuyos Member

    Joined:
    Mar 18, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a dedicated server with CPANEL installed in it.

    I have only 2 website getting hosted over it.

    And even when I had my previous servers I would still face this problem there too.

    My php--fpm goes down randomly anytime.

    Here is the error from errorlog.
    attempt to connect to unix domain socket /opt/cpanel/ea-php72/root/usr/var/run/php-fpm/ failed

    I am not sure why this error occurs. But it gets sorted without doing anything apart from restarting php fpm.

    Please help.
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Memory?

    Code:
    grep -i oom /var/log/messages
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I recommend searching the PHP-FPM error logs (/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log) for more information. You'd replace ea-php$$ with each specific version of PHP (e.g. ea-php72) that PHP-FPM is utilized with on your system. If you find entries related to the failure, please post the full error message here (ensuring to replace real domain names and IP addresses with examples).

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sonuyos

    sonuyos Member

    Joined:
    Mar 18, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    This is the output of last 50 lines. It is repeating itself in the whole log.
    Code:
    [root@panel ~]# tail -50 /opt/cpanel/ea-php72/root/usr/var/log/php-fpm/error.log
    [03-Aug-2018 00:18:56] NOTICE: [pool example_com] child 9470 started
    [03-Aug-2018 00:18:57] NOTICE: [pool example_com] child 9459 exited with code 0 after 19.409708 seconds from start
    [03-Aug-2018 00:18:57] NOTICE: [pool example_com] child 9471 started
    [03-Aug-2018 00:19:01] NOTICE: Terminating ...
    [03-Aug-2018 00:19:01] NOTICE: exiting, bye-bye!
    [03-Aug-2018 00:19:01] NOTICE: fpm is running, pid 9497
    [03-Aug-2018 00:19:01] NOTICE: ready to handle connections
    [03-Aug-2018 00:19:01] NOTICE: systemd monitor interval set to 10000ms
    [03-Aug-2018 00:19:09] NOTICE: [pool example_com] child 9502 exited with code 0 after 8.118122 seconds from start
    [03-Aug-2018 00:19:09] NOTICE: [pool example_com] child 9527 started
    [03-Aug-2018 00:19:19] NOTICE: [pool example_com] child 9527 exited with code 0 after 9.694285 seconds from start
    [03-Aug-2018 00:19:19] NOTICE: [pool example_com] child 9534 started
    [03-Aug-2018 00:19:29] NOTICE: [pool example_com] child 9534 exited with code 0 after 9.812213 seconds from start
    [03-Aug-2018 00:19:29] NOTICE: [pool example_com] child 9535 started
    [03-Aug-2018 00:19:38] NOTICE: [pool example_com] child 9535 exited with code 0 after 9.705861 seconds from start
    [03-Aug-2018 00:19:38] NOTICE: [pool example_com] child 9543 started
    [03-Aug-2018 00:19:56] NOTICE: [pool example_com] child 9544 exited with code 0 after 17.074262 seconds from start
    [03-Aug-2018 00:19:56] NOTICE: [pool example_com] child 9686 started
    [03-Aug-2018 00:19:56] NOTICE: [pool example_com] child 9543 exited with code 0 after 18.004196 seconds from start
    [03-Aug-2018 00:19:56] NOTICE: [pool example_com] child 9687 started
    [03-Aug-2018 00:20:01] NOTICE: Terminating ...
    [03-Aug-2018 00:20:01] NOTICE: exiting, bye-bye!
    [03-Aug-2018 00:20:01] NOTICE: fpm is running, pid 9757
    [03-Aug-2018 00:20:01] NOTICE: ready to handle connections
    [03-Aug-2018 00:20:01] NOTICE: systemd monitor interval set to 10000ms
    [03-Aug-2018 00:20:10] NOTICE: [pool example_com] child 9840 exited with code 0 after 8.378156 seconds from start
    [03-Aug-2018 00:20:10] NOTICE: [pool example_com] child 9880 started
    [03-Aug-2018 00:20:19] NOTICE: [pool example_com] child 9880 exited with code 0 after 9.616981 seconds from start
    [03-Aug-2018 00:20:19] NOTICE: [pool example_com] child 9888 started
    [03-Aug-2018 00:20:28] NOTICE: [pool example_com] child 9888 exited with code 0 after 9.266079 seconds from start
    [03-Aug-2018 00:20:28] NOTICE: [pool example_com] child 9893 started
    [03-Aug-2018 00:20:38] NOTICE: [pool example_com] child 9893 exited with code 0 after 9.497805 seconds from start
    [03-Aug-2018 00:20:38] NOTICE: [pool example_com] child 9902 started
    [03-Aug-2018 00:20:47] NOTICE: [pool example_com] child 9902 exited with code 0 after 8.668667 seconds from start
    [03-Aug-2018 00:20:47] NOTICE: [pool example_com] child 9911 started
    [03-Aug-2018 00:20:56] NOTICE: [pool example_com] child 9911 exited with code 0 after 9.642922 seconds from start
    [03-Aug-2018 00:20:56] NOTICE: [pool example_com] child 9915 started
    [03-Aug-2018 00:21:01] NOTICE: Terminating ...
    [03-Aug-2018 00:21:01] NOTICE: exiting, bye-bye!
    [03-Aug-2018 00:21:01] NOTICE: fpm is running, pid 10026
    [03-Aug-2018 00:21:01] NOTICE: ready to handle connections
    [03-Aug-2018 00:21:01] NOTICE: systemd monitor interval set to 10000ms
    [03-Aug-2018 00:21:12] NOTICE: [pool example_com] child 10034 exited with code 0 after 11.209231 seconds from start
    [03-Aug-2018 00:21:12] NOTICE: [pool example_com] child 10067 started
    [03-Aug-2018 00:21:22] NOTICE: [pool example_com] child 10066 exited with code 0 after 16.410081 seconds from start
    [03-Aug-2018 00:21:22] NOTICE: [pool example_com] child 10075 started
    [03-Aug-2018 00:21:31] NOTICE: [pool example_com] child 10067 exited with code 0 after 18.689796 seconds from start
    [03-Aug-2018 00:21:31] NOTICE: [pool example_com] child 10076 started
    [03-Aug-2018 00:21:41] NOTICE: [pool example_com] child 10075 exited with code 0 after 19.225030 seconds from start
    [03-Aug-2018 00:21:41] NOTICE: [pool example_com] child 10086 started
    
     
    #4 sonuyos, Aug 2, 2018
    Last edited by a moderator: Aug 3, 2018
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @sonuyos,

    Can you open a support ticket so we can take a closer look at the system? You can post the ticket number here and I will link this thread to the ticket.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice