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

sonuyos

Member
Mar 18, 2016
6
0
1
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.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
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.
 

sonuyos

Member
Mar 18, 2016
6
0
1
India
cPanel Access Level
Root Administrator
Hello,

This is the output of last 50 lines. It is repeating itself in the whole log.
Code:
[[email protected] ~]# 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
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.
 
Last edited by a moderator: