Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP-FPM- Error dispatching request to

Discussion in 'EasyApache' started by James.Simpson, Jul 23, 2018.

Tags:
  1. James.Simpson

    James.Simpson Member

    Joined:
    Feb 18, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi All,

    I am trying everything I can think of to resolve these issues that i keep getting in the error_log

    I see these all the time:

    Code:
    [Mon Jul 23 14:21:49.265694 2018] [proxy_fcgi:error] [pid 10118:tid 140174646310656] (70007)The timeout specified has expired: [client xxx.xxx.29.224:40002] AH01075: Error dispatching request to : (polling)
    [Mon Jul 23 14:21:56.362524 2018] [proxy_fcgi:error] [pid 10202:tid 140174739064576] (70007)The timeout specified has expired: [client xxx.xxx.29.224:38942] AH01075: Error dispatching request to : (polling)
    [Mon Jul 23 14:22:28.515437 2018] [proxy_fcgi:error] [pid 10118:tid 140174551901952] (70014)End of file found: [client xxx.xxx.29.224:56734] AH01075: Error dispatching request to : (reading input brigade)
    [Mon Jul 23 14:22:39.519789 2018] [proxy_fcgi:error] [pid 10118:tid 140174509942528] (70014)End of file found: [client xxx.xxx.29.224:56758] AH01075: Error dispatching request to : (reading input brigade)
    [Mon Jul 23 14:22:41.134359 2018] [proxy_fcgi:error] [pid 10174:tid 140174614841088] (70014)End of file found: [client xxx.xxx.29.224:56766] AH01075: Error dispatching request to : (reading input brigade)
    [Mon Jul 23 14:22:43.621452 2018] [proxy_fcgi:error] [pid 10202:tid 140174728574720] (70014)End of file found: [client xxx.xxx.29.224:56772] AH01075: Error dispatching request to : (reading input brigade)
    [Mon Jul 23 14:23:04.080491 2018] [proxy_fcgi:error] [pid 10263:tid 140174530922240] (70014)End of file found: [client xxx.xxx.29.224:56792] AH01075: Error dispatching request to : (reading input brigade)
    I have had a look at all the timeouts and they are all the same (php timeout, apache timeout, all set to 300s)

    I'm not sure where to start with this error.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,852
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello James,

    I recommend searching the PHP-FPM error logs (/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log) for any domain name's reaching the max_children limit. You'd replace ea-php$$ with each specific version of PHP (e.g. ea-php70) that PHP-FPM is utilized with on your system. The offending entries will look like this:

    Code:
    ERROR: unable to read what child say: Bad file descriptor (9)
    NOTICE: [pool domain_tld] child 1234 exited with code 0 after 25.12345 seconds from start
    If you find specific domain names are reaching the limit, you can increase the max_children value for them using the "Pool Options" feature in "WHM >> MultiPHP Manager".

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. James.Simpson

    James.Simpson Member

    Joined:
    Feb 18, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I have checked in that file, and there are no errors being displayed at all, just the start up features.

    I currently have:

    PHP-FPM:
    max-children: 100
    Process Idle Timeout: 90
    Max Requests: 1000

    Apache:
    Start Servers: 15
    Min Spare: 20
    Max Spare: 35
    Server Limit: 300
    Max Request Workers: 200
    Keepalive: Off
    Keepalive-timeout: 7
    Max Keepalive requests: 150
    Timeout: 300

    Pre VirtualHost Include
    Code:
    <IfModule proxy_fcgi_module>
    
    timeout 300
    ProxyTimeout 300
    </IfModule>
    
    ##Apache Event Default Settings (overrides main httpd.conf)
    KeepAlive On
    KeepAliveTimeout 2
    MaxKeepAliveRequests 75
    
    <IfModule event.c>
    ThreadsPerChild 25
    ServerLimit 16
    MaxRequestWorkers 400
    StartServers 6
    MinSpareThreads 150
    MaxSpareThreads 400
    MaxRequestsPerChild 0
    </IfModule>
    
    <IfModule mod_fcgid.c>
    FcgidMaxRequestsPerProcess 10000
    FcgidMinProcessesPerClass 0
    FcgidMaxProcessesPerClass 120
    FcgidMaxProcesses 2000
    FcgidProcessLifeTime 300
    FcgidIOTimeout 300
    FcgidIdleTimeout 60
    FcgidIdleScanInterval 60
    FcgidBusyTimeout 3600
    FcgidConnectTimeout 10
    FcgidBusyScanInterval 100
    FcgidErrorScanInterval 3
    FcgidZombieScanInterval 3
    FcgidOutputBufferSize 0
    FcgidZombieScanInterval 5
    FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 10000
    FcgidMaxRequestLen 20468982
    </IfModule>



    It seems if processes seem to get stuck and just sits there loading until it times out.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    93
    Likes Received:
    14
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    Please try changing the Apache httpd MPM from event to prefork. see if that helps
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. James.Simpson

    James.Simpson Member

    Joined:
    Feb 18, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Apache is currently running on mod_mpm_worker
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    93
    Likes Received:
    14
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    Do you get error in worker as well?. If yes switch to prefork
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,852
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello James,

    You can try increasing both of these values from "300" to a higher number such as "500" to see if the issue continues. Ensure to monitor Apache's performance after making the change as sometimes a timeout is a good thing since it can prevent Apache from overloading the server.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. James.Simpson

    James.Simpson Member

    Joined:
    Feb 18, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I'm not sure if that may be the issue or not - it seems like a sometimes a process may get stuck, as it will wait till 300+ seconds sometimes for a user when they are just trying to load a page, as if somehthing is hogging all the connections? Even though other users can fly through the website without any issues.

    I'm struggling to find out what it is at all, as a script shouldnt be running for more than 300 seconds to view a single page?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,852
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello James,

    You can open a support ticket if you'd like us to take a closer look to rule out any issues with cPanel & WHM itself or it's integration of PHP-FPM. You can post the ticket number here and we will link this forums thread to the ticket.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. James.Simpson

    James.Simpson Member

    Joined:
    Feb 18, 2013
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    I think it may be server configuration somehwere to be fair.

    So what looks like is happening, sometimes when clicking on a link, it will load instantly as it should, but then randomly every now and then, it will just load the page until maximum execution time is hit, and then finally load the page.

    So for example just now, i've been browsing the website fine, and then i clicked on one link, and it took 290 seconds to load the page. Now after its loaded all the rest of the site is fine again. Not sure what can cause this so randomly - server load isnt massive, and I can see idle processes in apache waiting for a connection. Mysql isnt processing anything either....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,852
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello James,

    We'd need access to the affected system to reproduce this behavior and determine if there are any obvious reasons for the increased page load time. Are you able to open a support ticket so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice