ca2236

Well-Known Member
Feb 2, 2018
202
22
18
Nebraska
cPanel Access Level
DataCenter Provider
Hello,

I saw these errors in /var/log/apache2/error_log
Code:
[cgi:warn] [pid 29711] [client HostIP:37422] AH01220: Timeout waiting for output from CGI script /usr/local/cpanel/cgi-sys/ea-php71, referer: https://www.example.com/wp-cron.php?doing_wp_cron=<wp cron id>

[cgi:error] [pid 29711] [client HostIP:37422] Script timed out before returning headers: ea-php71, referer: https://www.example.com/wp-cron.php?doing_wp_cron=<wp cron id>
please note. that the wp cron id are the same for both errors.




I was wanting to get some help in understanding what this means. I understand that it is a timeout waiting on a script (from what it appears) :) However, I am not sure if wp_cron is or what this is doing. would this be affecting website speeds?

If needed, and if the cron id is not secretive, then I can post the cron id instead of scrubbing it.

Thanks
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,254
313
Houston
Hi @ca2236

Usually, these errors are a symptom of another issue. I wonder if you're not also reaching MaxRequest workers when this is occurring.

What is the output of the following?
Code:
grep MaxRequest /etc/apache2/logs/error_log
I am not sure if wp_cron is or what this is doing. would this be affecting website speeds
From Function Reference/wp cron « WordPress Codex:
Code:
Description
Run scheduled callbacks or spawn cron for all scheduled events.
Basically, the wp-cron runs everytime someone lands on your page and polls for updates
 

ca2236

Well-Known Member
Feb 2, 2018
202
22
18
Nebraska
cPanel Access Level
DataCenter Provider
Hi @cPanelLauren,

It has no output, I can check logs from backups though. I also apologize, It just dawned on me that it may be a WordPress issue and not strictly speaking cpanel. I can work with a wordpress forum if you want me to. However, I might increase Max Requests and just test.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,254
313
Houston
Hi @ca2236

It might be easier if I explained what I'm looking for. Typically in an instance where you're receiving timeouts like this, it's occurring due to something else. In a lot of cases it's the number of MaxRequestWorkers being reached but in almost all cases both of these are attributed to load on the server. In the instances, you're seeing these are you also seeing higher than average load? If so the forum post here might be helpful for you Tutorial - Troubleshooting high server loads on Linux servers

Thanks!
 

ca2236

Well-Known Member
Feb 2, 2018
202
22
18
Nebraska
cPanel Access Level
DataCenter Provider
Hi @cPanelLauren,

Thank you for the information, after doubling the Max Request Workers. It seems to have solved the problem, but still in a wait and see before I say 100% certain. :) Thank you for the suggestion and the resources.

Charles