The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

Discussion in 'EasyApache' started by maqsium, May 1, 2015.

  1. maqsium

    maqsium Member

    Joined:
    Mar 27, 2015
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm getting frequently these warnings in error_log file from mod_fcgid, here client IP is nothing but my server IP:

    Code:
    [Thu Apr 30 10:19:39.744079 2015] [fcgid:warn] [pid 32193:tid 139690168198912] (32)Broken pipe: [client xxx.xxx.xxx.xxx:42586] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
    [Thu Apr 30 10:24:14.099721 2015] [fcgid:warn] [pid 32193:tid 139688594720512] (32)Broken pipe: [client xxx.xxx.xxx.xxx:43952] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://mydomain.com/page/url
    [Thu Apr 30 10:24:48.420188 2015] [fcgid:warn] [pid 32193:tid 139688479332096] (32)Broken pipe: [client xxx.xxx.xxx.xxx:43946] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
    [Thu Apr 30 10:25:03.207233 2015] [fcgid:warn] [pid 32193:tid 139689549297408] (32)Broken pipe: [client xxx.xxx.xxx.xxx:43213] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
    [Thu Apr 30 10:25:23.468237 2015] [fcgid:warn] [pid 32193:tid 139689266071296] (32)Broken pipe: [client xxx.xxx.xxx.xxx:44216] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
    

    I'm using dedicated server with following configuration:

    2.7GHz, 4 quadcore processors
    32 GB RAM
    Apache 2.4.12 with mod_fcgid + MPM Worker

    Following configuration is set in Pre_virtualhost_config

    Code:
    <IfModule mod_fcgid.c>
    FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 10000
    FcgidMaxRequestsPerProcess 10000
    FcgidConnectTimeout 3600
    FcgidIOTimeout 120
    FcgidMaxProcessesPerClass 1000
    FcgidMaxProcesses 2048
    FcgidIdleTimeout 240
    FcgidIdleScanInterval 240
    FcgidProcessLifeTime 1200
    </IfModule>
    
    <IfModule worker.c>
    ThreadLimit           256
    ThreadsPerChild        256
    MinSpareThreads        128
    MaxSpareThreads       512
    MaxClients 2048
    </IfModule>
    Apache configuration excerpt:
    Code:
    # These can be set in WHM under 'Apache Global Configuration'
    Timeout 300
    TraceEnable On
    ServerSignature Off
    ServerTokens Full
    FileETag All
    StartServers 8
    <IfModule prefork.c>
    MinSpareServers 16
    MaxSpareServers 32
    </IfModule>
    <IfModule itk.c>
    MinSpareServers 16
    MaxSpareServers 32
    </IfModule>
    ServerLimit 9
    MaxRequestWorkers 2048
    MaxConnectionsPerChild 0
    KeepAlive On
    KeepAliveTimeout 5
    MaxKeepAliveRequests 120
    Regards,
    M
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hello,

    I'm not familiar with this error. It looks to be an issue with hitting some mod_fcgid limits. There's a couple of issues on StackOverflow that mention this problem. Have you tried any of those fixes?
     

Share This Page