FCGID ERRORS - Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

Hi

Recently we switched our server over to FCGID and now we are repeatedly getting these two different errors in our log files for our website -

[Thu Jun 25 19:25:04.895614 2015] [fcgid:warn] [pid 1589] (32)Broken pipe: [client 50.11.155.170:49285] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.ethos.ag/about-us/

And -

[Thu Jun 25 19:48:49.237034 2015] [fcgid:warn] [pid 3979] (104)Connection reset by peer: [client 180.76.15.23:24738] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

I've tried applying all the fixes that I could find online so far but to no avail so I really hope that you might be able to help.

This is the php report from the site - http://www.ethos.ag/test.php

System Linux ns1.ethoshub.com 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 Build Date May 15 2015 19:15:53 Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /etc Loaded Configuration File /home/ethos.ag/etc/php5/php.ini Scan this dir for additional .ini files /etc/php.d

PHPRC /home/ethos.ag/fcgi-bin/../etc/php5 SCRIPT_FILENAME no value PHP_FCGI_CHILDREN 8 PATH /usr/local/bin:/usr/bin:/bin PWD /home/ethos.ag/fcgi-bin SHLVL 0 PHP_FCGI_MAX_REQUESTS 1000

[root@ns1 ~]# php -v PHP 5.6.9 (cli) (built: May 15 2015 19:16:22) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.10, Copyright (c) 2002-2015, by ionCube Ltd. with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

Very many thanks in advance and any help you can offer gratefully received...

All the best

Pete...

Status: 
Active

Comments

Howdy -- one thing I wanted to check, are you receiving any errors or problems in the browser when accessing your website?

Or are the errors you're seeing just something in the logs themselves?

Hi andreychek

Originally we were getting more than just these two errors in the logs plus 500 Internal Server Errors on the website - the tweaks and fixes that I've applied since then seem to have resolved those errors and stopped the 500 Internal Server errors and now we are just getting Word Press white screens where the page doesn't load and nothing is displayed apart from a completely blank white screen.

It's intermittent and there are 29 pages in our library and I've not managed load all 29 one after another without hitting at least one white screen - http://www.ethos.ag/cataracts-eye-drops/

i.e. click the first page then back to the menu page then click the second page etc.

I hope this helps...

All the best

Pete...

P.S. I just tried it again and I only got up to the 4th page before I hit a white screen...

FCGID doesn't always print the best error messages.

Would it be possible to change your website to use CGI, rather than FCGID?

CGI may print a better error.

You can change that in Server Configuration -> Website Options, and there, you can change the PHP Execution Mode.

I switched to CGI as suggested and clicked through the pages again and this time it took 53 clicks before I hit the white screen...

But then I checked the logs and there's nothing new in there... so maybe this is yet another problem to the ones being reported in the error logs...

I'll keep checking the logs and send you what they say when the next entries occur...

All the best

Pete...

Here's the first new entry...

[Sun Jun 28 05:25:32.569498 2015] [cgi:error] [pid 23496] [client 180.76.15.137:57193] End of script output before headers: php5.cgi

we are experiencing the exact same problems and have not yet found a way to fix it. Hopefully you were able to and can shed some light on how.

bulger, you may want to try the other steps above -- switching to CGI, and then see what error(s) show up in the logs.

If pete007 doesn't have any thoughts regarding his issue, you may want to ask your question in the Forums. We can give some more tips there, and there's lots of wonderful folks in the community who may have some thoughts as well.

on Plesk kb they suggest this FcgidMaxRequestsPerProcess 500 instead of default 0... https://kb.plesk.com/en/128129

but I don't understand why... and then, if you finally do the php-fpm implementation... maybe all this effort to understand the many fcgid issues is not needed anymore... please, fpm is out since 5 years... if you do this Virtualmin really has no competitors... I'm honest about this, now also with Authentic theme and the Ilia work...is great but lacks of this by now "must have" feature...

Yup, we haven't forgotten about PHP FPM... thanks for your input!

understood why they suggest this on Plesk...

it's because of the PHP_FCGI_MAX_REQUESTS which they set to 500 too...

so the two parameters are equal but still don't understand why 0 should be not enough...