Help with Apache error log! wordpress cron - fcgid - pagespeed

nicolasm

Member
Oct 29, 2014
9
0
1
cPanel Access Level
Root Administrator
Hello

I'm not really an expert so I need some help of you guys. I have a VPS with 4gb RAM, running apache 2.4.10 + php 5.5.18 + + fcgid
There's some errors/warning in my log which I can't solve...



About fcgid
Code:
[Sat Nov 15 15:35:01.045778 2014] [fcgid:warn] [pid 20878:tid 140137331631872] (32)Broken pipe: [client x.xx.xx.xx:33740] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Sat Nov 15 15:35:59.943080 2014] [fcgid:warn] [pid 20878:tid 140137447020288] (32)Broken pipe: [client xx.xx.xx.xx:48512] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
Have a ton of these
I just it was related to some timeout, so I changed to a higher value.. didn't worked.
Fcgid settings:

Code:
FcgidMaxRequestsPerProcess 400
FcgidMaxProcesses 800
FcgidMaxRequestLen 1073741824 
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 10
FcgidIOTimeout 240
FcgidIdleTimeout 120
FcgidIdleScanInterval 60
FcgidBusyTimeout 240
FcgidBusyScanInterval 60
FcgidErrorScanInterval 3
FcgidZombieScanInterval 3
FcgidProcessLifeTime 3600

Apache settings:
Code:
Timeout 30
TraceEnable Off
ServerSignature Off
ServerTokens ProductOnly
FileETag None
StartServers 3
<IfModule prefork.c>
MinSpareServers 7
MaxSpareServers 10
</IfModule>
<IfModule itk.c>
MinSpareServers 7
MaxSpareServers 10
</IfModule>
ServerLimit 200
MaxRequestWorkers 200
MaxConnectionsPerChild 1500
KeepAlive On
KeepAliveTimeout 2
MaxKeepAliveRequests 200
About Wordpress:
Code:
[Sat Nov 15 15:26:15.342291 2014] [fcgid:warn] [pid 20878:tid 140137384081152] [client 23.235.204.105:38062] mod_fcgid: read data timeout in 240 seconds
[Sat Nov 15 15:26:15.342770 2014] [core:error] [pid 20878:tid 140137384081152] [client 23.235.204.105:38062] End of script output before headers: wp-cron.php
What should I do to fix these cron job failures?

About Pagespeed:
Code:
[Sat Nov 15 14:01:38.021869 2014] [pagespeed:error] [pid 19495:tid 140137744717760] [mod_pagespeed 1.9.32.2-4321 @19495] ServerContext: 5 leaked_rewrite_drivers on destruction
[Sat Nov 15 14:02:54.227170 2014] [pagespeed:error] [pid 19527:tid 140137744717760] [mod_pagespeed 1.9.32.2-4321 @19527] ServerContext: 2 leaked_rewrite_drivers on destruction
[Sat Nov 15 14:03:47.759081 2014] [pagespeed:error] [pid 19589:tid 140137744717760] [mod_pagespeed 1.9.32.2-4321 @19589] ServerContext: 8 leaked_rewrite_drivers on destruction
[Sat Nov 15 14:07:09.193290 2014] [pagespeed:warn] [pid 20263:tid 140137184773888] [mod_pagespeed 1.9.32.2-4321 @20263] _,Mjo.H3aT5RIRSc.js:0: Resource based on [url]http://theredlilshoes.com/galaxy-nails-tutorial/_.pagespeed.jo.1B2M2Y8Asg.js[/url] but cannot access the original
[Sat Nov 15 14:07:09.193429 2014] [pagespeed:warn] [pid 20263:tid 140137184773888] [mod_pagespeed 1.9.32.2-4321 @20263] [1115/140709:WARNING:resource_fetch.cc(197)] Fetch failed for resource url [url]http://theredlilshoes.com/galaxy-nails-tutorial/_,Mjo.H3aT5RIRSc.js.pagespeed.jm.le5uJHxMyh.js[/url]
[Sat Nov 15 14:07:09.193499 2014] [pagespeed:warn] [pid 20263:tid 140137321142016] [mod_pagespeed 1.9.32.2-4321 @20263] Fetch failed for [url]http://theredlilshoes.com/galaxy-nails-tutorial/_,Mjo.H3aT5RIRSc.js.pagespeed.jm.le5uJHxMyh.js[/url], status=404
[Sat Nov 15 14:07:09.193620 2014] [pagespeed:warn] [pid 20263:tid 140137321142016] [mod_pagespeed 1.9.32.2-4321 @20263] [url]http://theredlilshoes.com/galaxy-nails-tutorial/_,Mjo.H3aT5RIRSc.js.pagespeed.jm.le5uJHxMyh.js[/url] resource_404_count: not found (404)
I thought this was because of outline css and JS, disabled it, but I'm still seeing these errors...

I really apreciate if someone can help me or point me to the right direction! :D

Thanks in advance
 

nicolasm

Member
Oct 29, 2014
9
0
1
cPanel Access Level
Root Administrator
Increase MaxRequestsPerProcess value
What's the criteria for that? Or just a guess?
I was using much less on this directive, like 200, now with twice the value I'm getting the same error with the same frequency... I was talking with support of my hosting service and he suggested it might be some script or coding and not fcgid configuration. What do you think? As I use WordPress so can it be some king of plugin bug? Any way to be sure of that?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Keep in mind that FCGI requires fine tuning of mod_fcgid to ensure that the server does not become overloaded with idle PHP processes. You may want to consider using DSO with Mod_Ruid2 as an alternative to see if the issue persists with an alternate handler.

Thank you.
 

nicolasm

Member
Oct 29, 2014
9
0
1
cPanel Access Level
Root Administrator
Hi!

Looks like the error occurs every 5 minutes:

Code:
[Tue Nov 18 13:30:01.061711 2014] [fcgid:warn] [pid 10827:tid 140552850888448] (32)Broken pipe: [client 54.228.174.66:50427] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:30:36.264895 2014] [fcgid:warn] [pid 10826:tid 140552787949312] (32)Broken pipe: [client 54.251.198.142:53249] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:30:59.333380 2014] [fcgid:warn] [pid 10829:tid 140552798439168] (32)Broken pipe: [client 54.234.41.64:54840] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:35:01.177564 2014] [fcgid:warn] [pid 10826:tid 140552651581184] (104)Connection reset by peer: [client 54.228.174.66:33622] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:35:59.351429 2014] [fcgid:warn] [pid 10825:tid 140552966203136] (104)Connection reset by peer: [client 54.234.41.64:38046] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:40:00.526796 2014] [fcgid:warn] [pid 10826:tid 140552756479744] (32)Broken pipe: [client 54.228.174.66:44625] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:40:36.612861 2014] [fcgid:warn] [pid 10825:tid 140552662071040] (32)Broken pipe: [client 54.251.198.142:47508] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:40:59.377251 2014] [fcgid:warn] [pid 10827:tid 140552745989888] (32)Broken pipe: [client 54.234.41.64:49121] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:45:00.797594 2014] [fcgid:warn] [pid 10827:tid 140552955713280] (32)Broken pipe: [client 54.228.174.66:56069] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:45:36.098752 2014] [fcgid:warn] [pid 10827:tid 140552840398592] (32)Broken pipe: [client 54.251.198.142:58770] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:45:59.402924 2014] [fcgid:warn] [pid 10827:tid 140552829908736] (32)Broken pipe: [client 54.234.41.64:60572] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:50:01.009739 2014] [fcgid:warn] [pid 10828:tid 140552840398592] (32)Broken pipe: [client 54.228.174.66:39002] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Tue Nov 18 13:50:36.628840 2014] [fcgid:warn] [pid 10829:tid 140552735500032] (32)Broken pipe: [client 54.251.198.142:41728] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
You may want to consider using DSO with Mod_Ruid2 as an alternative to see if the issue persists with an alternate handler. FCGI is intended for qualified system administrators who are experienced with fine tuning it's configuration.

Thank you.
 

nicolasm

Member
Oct 29, 2014
9
0
1
cPanel Access Level
Root Administrator
You may want to consider using DSO with Mod_Ruid2 as an alternative to see if the issue persists with an alternate handler. FCGI is intended for qualified system administrators who are experienced with fine tuning it's configuration.

Thank you.
Hi Michael!

I'm running fcgid because people say is the fastest.. is that right? Any benchmarks?

My VPS is running 10 Wordpress websites.

I want the fastest handler :)

Thanks in advance
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
There's an older thread here that discusses the performance differences:

PHP Performance

Thank you.
 

nicolasm

Member
Oct 29, 2014
9
0
1
cPanel Access Level
Root Administrator
You may want to consider using DSO with Mod_Ruid2 as an alternative to see if the issue persists with an alternate handler. FCGI is intended for qualified system administrators who are experienced with fine tuning it's configuration.

Thank you.
SO..!! I compiled everything as you suggested (dso + ruid2), but now I'm having problems with mod_pagespeed (a lot). I've installed everything with EasyApache. I thought it was gonna be "plug and play" but I'm having to much errors on my log:

Code:
[Mon Nov 24 17:58:25.841430 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/F/-qoCWsgDbcZaQLCPucz,40A.,40A__,40egKqtsEpXzTgux5g13Nf,.tempGEV4J4:0: opening temp file: Permission denied
[Mon Nov 24 17:58:25.841499 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/H/Tffs-zcS1JZSMQznJVl,40A.,40A__,40egKqtsEpXzTgux5g13Nf,.tempdryEbL:0: opening temp file: Permission denied
[Mon Nov 24 17:58:26.811041 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] Failed to make directory /var/mod_pagespeed/cache/prop_page/http,3A/,2Ftheredlilshoes.com/look-do-dia-vestido-bordado: Permission denied
[Mon Nov 24 17:58:26.811083 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] Could not create directories for file /var/mod_pagespeed/cache/prop_page/http,3A/,2Ftheredlilshoes.com/look-do-dia-vestido-bordado/_c4LKeOlymX,40Desktop,40beacon_cohort,.temp
[Mon Nov 24 17:58:26.811100 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/prop_page/http,3A/,2Ftheredlilshoes.com/look-do-dia-vestido-bordado/_c4LKeOlymX,40Desktop,40beacon_cohort,.temp0t4ghu:0: opening temp file: No such file or directory
[Mon Nov 24 17:58:26.813934 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/-/0csgucaPDkt8wrtk7_g,40A.,40A__,40aGUpEdBfLio0IRoSirEF,.tempgz7mnd:0: opening temp file: Permission denied
[Mon Nov 24 17:58:26.814071 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/s/0jYt-eBvPZ1kNY9STQr,40A.,40A__,40aGUpEdBfLio0IRoSirEF,.temppwJutW:0: opening temp file: Permission denied
[Mon Nov 24 17:58:26.814194 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/W/sdFAvBxJJoBFokDMEyX,40A.,40A__,40SLytIM-K4c7s2mep-wGp,.temps8EDzF:0: opening temp file: Permission denied
[Mon Nov 24 17:58:26.814438 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/A/4AaSI0Nv4e6FOuEvofC,40A.,40A__,40aGUpEdBfLio0IRoSirEF,.temp5w8OFo:0: opening temp file: Permission denied
[Mon Nov 24 17:58:26.814884 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/F/-qoCWsgDbcZaQLCPucz,40A.,40A__,40aGUpEdBfLio0IRoSirEF,.temprXh5L7:0: opening temp file: Permission denied
[Mon Nov 24 17:58:26.814975 2014] [pagespeed:error] [pid 13130] [mod_pagespeed 1.8.31.5-4307 @13130] /var/mod_pagespeed/cache/rname/cf_c4LKeOlymXu1S8u-_wM0/H/Tffs-zcS1JZSMQznJVl,40A.,40A__,40aGUpEdBfLio0IRoSirEF,.tempY9mmSQ:0: opening temp file: Permission denied
Almost 10 errors per second...
What should I do?

already tried ownership nobody and root
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
There's been at least one report that Mod_PageSpeed and Mod_Ruid2 are not compatible:

Mod_PageSpeed And EasyApache

Note that PageSpeed is a custom module so it's not something that's supported. If you prefer to use FCGI then you may need to consult with a qualified system administrator to assist you with those initial errors, or consider using suPHP.

Thank you.