Connection reset by peer... mod_fcgid: ap_pass_brigade failed

Hi, I am moved to centos 7 and i am getting lots of these errors:

[Fri Feb 06 15:04:52.697516 2015] [fcgid:warn] [pid 15162:tid 139641776686848] (104)Connection reset by peer: [client 91.207.8.46:61544] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://jointpoint.org/
[Fri Feb 06 15:04:53.169904 2015] [fcgid:warn] [pid 15162:tid 139641894184704] (104)Connection reset by peer: [client 91.207.8.46:61699] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://jointpoint.org/
[Fri Feb 06 15:04:53.780994 2015] [fcgid:warn] [pid 15162:tid 139641919362816] (104)Connection reset by peer: [client 91.207.8.46:61881] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://jointpoint.org/
[Fri Feb 06 15:06:15.137646 2015] [core:error] [pid 15162:tid 139641877399296] [client 176.42.236.203:55080] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://www.google.com.tr/
[Fri Feb 06 15:50:41.130304 2015] [fcgid:warn] [pid 17444:tid 139641835435776] (104)Connection reset by peer: [client 37.115.186.0:56411] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://fine-minecraft.ru/
[Fri Feb 06 15:50:41.540542 2015] [fcgid:warn] [pid 17444:tid 139641827043072] (104)Connection reset by peer: [client 37.115.186.0:57957] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://fine-minecraft.ru/
[Fri Feb 06 15:50:41.933412 2015] [fcgid:warn] [pid 17444:tid 139641927755520] (104)Connection reset by peer: [client 37.115.186.0:59300] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://fine-minecraft.ru/
[Fri Feb 06 15:57:41.508357 2015] [fcgid:warn] [pid 18091:tid 139641860613888] (104)Connection reset by peer: [client 109.120.157.179:62572] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://doska-vsem.ru/
[Fri Feb 06 15:57:41.941718 2015] [fcgid:warn] [pid 17219:tid 139641910970112] (104)Connection reset by peer: [client 109.120.157.179:62638] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://doska-vsem.ru/
[Fri Feb 06 15:57:42.346497 2015] [fcgid:warn] [pid 18091:tid 139641818650368] (104)Connection reset by peer: [client 109.120.157.179:62692] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://doska-vsem.ru/
[Fri Feb 06 16:14:47.272635 2015] [fcgid:warn] [pid 19080:tid 139641818650368] (104)Connection reset by peer: [client 37.139.52.23:3927] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://csanty-online.ru/
[Fri Feb 06 16:14:48.685198 2015] [fcgid:warn] [pid 18061:tid 139641801864960] (32)Broken pipe: [client 37.139.52.23:4715] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://csanty-online.ru/
[Fri Feb 06 16:14:48.849721 2015] [fcgid:warn] [pid 18061:tid 139641835435776] (104)Connection reset by peer: [client 37.139.52.23:2747] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://csanty-online.ru/
[Fri Feb 06 16:19:03.343034 2015] [fcgid:warn] [pid 19080:tid 139641843828480] (104)Connection reset by peer: [client 46.118.154.155:64503] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://alliancehost.ru/
[Fri Feb 06 16:19:04.249077 2015] [fcgid:warn] [pid 19378:tid 139641869006592] (104)Connection reset by peer: [client 46.118.154.155:60371] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://alliancehost.ru/
[Fri Feb 06 16:19:04.654470 2015] [fcgid:warn] [pid 18061:tid 139641785079552] (104)Connection reset by peer: [client 46.118.154.155:55240] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://alliancehost.ru/

Using apache event mpm with these config:

## http://wiki.mikejung.biz/Fcgid
##Apache Event Default Settings (overrides main httpd.conf)
KeepAlive On
KeepAliveTimeout 5
MaxKeepAliveRequests 100
<IfModule event.c>
ThreadsPerChild 25
ServerLimit 16
MaxRequestWorkers 400
StartServers 3
MaxConnectionsPerChild 0
</IfModule>

<IfModule mod_fcgid.c>
    FcgidMaxRequestLen 1073741824
    FcgidMaxProcesses 120
    FcgidMinProcessesPerClass 0
    FcgidIdleTimeout 60
    FcgidIdleScanInterval 30
    FcgidProcessLifeTime 120
FcgidMaxRequestsPerProcess 0
</IfModule>

But i see virtualmin adding PHP_FCGI_MAX_REQUESTS=99999 in domain's fcgi file. How can i fix this problem?

Status: 
Active

Comments

Did you make any changes to the default config here?

Uhm if you are asking to server template -> FastCGI wrapper for PHP 5, its in default: Automatically generated.

All domain's php5.fcgi files are same:

#!/bin/bash
PHPRC=$PWD/../etc/php5
export PHPRC
umask 022
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=99999
export PHP_FCGI_MAX_REQUESTS
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /bin/php-cgi

and system does not let me edit those files.

Actually I was referring to the Apache config - are all those timeout settings the defaults?

That said, from looking at the logs it doesn't look like there is a serious problem here - just some connections that are being closed by client browsers.

I think IPCCommTimeout is reason and it looks like deprecated. How can i disable virtualmin setting that? When i set it unlimited, virtualmin set it 9999. Even when i disable it setting from virtualmin configuration, when i save website options, its coming back.

(I may be totally wrong, sorry for trouble)

I don't think that IPCCommTimeout is the cause of the problem - it controls the maximum execution time of PHP scripts.