Apache real slow or not working, restarted twice
Hi all.
I am using OS AlmaLinux v8.9.0 STANDARD standard, cPanel Version 118.0.4
Yesterday all my account started having trouble with apache. Load on the server is almost non existent 0.07.
I checked the logs and found out it restarted twice. I found couple of different errors:
1. [Thu Apr 11 14:05:27.713044 2024] [proxy_fcgi:error] [pid 2637239] [client xxx.xxx.xxx.xxx] AH01067: Failed to read FastCGI header, referer:
2. [Thu Apr 11 14:05:27.713205 2024] [proxy_fcgi:error] [pid 2637242] (104)Connection reset by peer: [client xxx.xxx.xxx.xxx] AH01075: Error dispatching request to : , referer:
3. [Thu Apr 11 14:05:27.713316 2024] [proxy:error] [pid 2637260] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /opt/cpanel/ea-php72/root/usr/var/run/php-fpm/abcba038c609a51fe4675eab7b7fa78d61d8e702.sock
4. [Thu Apr 11 14:05:27.713468 2024] [proxy_fcgi:error] [pid 2637251] [client xxx.xxx.xxx.xxx] AH01079: failed to make connection to backend:
and last i have this:
5. [Fri Apr 12 09:01:36.777026 2024] [proxy_fcgi:error] [pid 207731] [client xxx.xxx.xxx.xxx] AH01071: Got error 'Primary script unknown\n', referer:
After the restart of the apache and fpm, it started working for a couple of minutes then it became slugish again. I restarted the whole machine and it started working again.
-
Hey there! Restarting the whole machine may get things working, but it may also remove data that could have been used to help diagnose the issue.
When Apache is slow to load data I always check the scoreboard with "apachectl status" first to see if there are open slots or if it is handling too many requests. Details on how to read that can be found here:
https://support.cpanel.net/hc/en-us/articles/360052040234-Understanding-the-Apache-scoreboard
but if Apache is running out of resources it would show up there.
I'd start there and see if that gets you more details.
0 -
cPRex thanks for the reply!
I did some digging around, and found that the fpm setting was the problem on two accounts. Max children setting is being reached. That solved almost all errors.
Only this error remains:
[Fri Apr 12 09:01:36.777026 2024] [proxy_fcgi:error] [pid 207731] [client xxx.xxx.xxx.xxx] AH01071: Got error 'Primary script unknown\n', referer:0 -
I'm glad you were able to find a solution! That secondary error just seems like a random client or bot trying to access something that doesn't exist and can be ignored.
0
Please sign in to leave a comment.
Comments
3 comments