Premature end of script headers: report.php, referer: http://dreamware.com.hk/ischool/DBR/index.php

(6 posts) (2 voices)

Tags:

  1. chadwickhung, Member

    My installation of MyMDR will show "500 internal server error" from time to time in a random manner. Normally the report can run with no problem at all by just running it again.

    I check the web log, it contains

    (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://dreamware.com.hk/ischool/DBR/index.php
    Premature end of script headers: report.php, referer: http://dreamware.com.hk/ischool/DBR/index.php" error

    It doesn't seems to be timeout, as the "500 internal server error" came up so quickly and I've increased the timeout value in fcgid.conf already.

    Please kindly help.

    Thanks a lot
    Chadwick

  2. myDBR Team, Key Master

    The "Connection reset by peer: mod_fcgid: error reading data from FastCGI server" error can be caused by several reasons: permission problems, timeout, configuration differencies between web server and FastCGI. As yours happens only from time to time, you might want to check if there are certain reports that cause it (possible timeout for longer running reports) or any reports (possible mismatch in configurations).

    --
    myDBR Team

  3. chadwickhung, Member

    Thanks.
    What are you referring to "possible mismatch in configurations"? Please kindly advise.

    Chadwick

  4. myDBR Team, Key Master

    As said, rhe error is such a generic PHP FastCGI configuration error (can be caused by multiple things), so it is impossible to say the cause without access to the server.

    Check which reports will cause the error. If there are only certain ones check the timeout settings. if it happens randomly, there is something else causing it.

    --
    myDBR Team

  5. chadwickhung, Member

    Thanks.But I'm still stuck. I'm still not able to fix this random error. It's not specific to any one of the report, it's very random. if I reload the same report, it can show the result immediately.

    [Mon Jan 12 16:18:24 2015] [warn] [client 218.102.4.205] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://dreamware.com.hk/ischool/DBR/index.php?m=4
    [Mon Jan 12 16:18:24 2015] [error] [client 218.102.4.205] Premature end of script headers: report.php, referer: http://dreamware.com.hk/ischool/DBR/index.php?m=4

    Is there any config on DBR I can try?

    Here is the fcgid.conf, I tried to change the number but still can't fix the issue.

    Great thanks for any advices, thank you.
    Chadwick

    pwd
    /etc/httpd/conf.d

    [root@dreamware.com.hk conf.d]$cat fcgid.conf
    # This is the Apache server configuration file for providing FastCGI support
    # via mod_fcgid
    #
    # Documentation is available at http://fastcgi.coremail.cn/doc.htm

    LoadModule fcgid_module modules/mod_fcgid.so

    <IfModule mod_fcgid.c>

    <IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
    </IfModule>

    FcgidIPCDir /var/run/mod_fcgid/sock
    FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

    FcgidIdleTimeout 100
    FcgidProcessLifeTime 100
    FcgidMaxProcesses 200
    FcgidMaxProcessesPerClass 80
    FcgidMinProcessesPerClass 0
    FcgidConnectTimeout 30
    # FcgidIOTimeout 45
    FcgidIOTimeout 360
    FcgidInitialEnv RAILS_ENV production
    FcgidIdleScanInterval 50
    #
    FcgidBusyTimeout 3600
    FcgidMaxRequestsPerProcess 10000
    </IfModule>

  6. myDBR Team, Key Master

    As this is a PHP configuration issue, you might want to post the question to serverfault.com (or similar site).

    --
    myDBR Team


Reply

You must log in to post.