Ticket #757 (new task)

Opened 2 years ago

Last modified 2 weeks ago

internal server error gives 200 OK sometimes

Reported by: jimmy@inet-solutions.be Assigned to: jan
Priority: lowest Milestone: 1.4.20
Component: mod_ssi Version: 1.4.17
Severity: major Keywords: None
Cc: None Blocking: None
Need Feedback: 0

Description

Config: OSX/freebsd-kqueue/cgi/setenv Perl: v5.8.6

If the CGI script fails, it somitimes gives a 200 with empty page instead of 500, the errors to STDOUT clearly come into the log that an error DID happen.

script:

#!/usr/bin/perl

use base 'some_module_not_found';

print "Content-Type: text/plain\r\n\r\n";
print "You really have some_module_not_found.pm ?!\n";

tcpdump:

15:02:42.591010 IP localhost.8081 > localhost.49738: P 1:94(93) ack 242 win 65535 <nop,nop,timestamp 605651062 605651062>
        0x0000:  4500 0091 c788 4000 4006 0000 7f00 0001  E.....@.@.......
        0x0010:  7f00 0001 1f91 c24a b6b0 64cd 4ca9 f9c6  .......J..d.L...
        0x0020:  8018 ffff fe85 0000 0101 080a 2419 8076  ............$..v
        0x0030:  2419 8076 4854 5450 2f31 2e31 2032 3030  $..vHTTP/1.1.200
        0x0040:  204f 4b0d 0a43 6f6e 7465 6e74 2d4c 656e  .OK..Content-Len
        0x0050:  6774 683a 2030 0d0a 4461 7465 3a20 4d6f  gth:.0..Date:.Mo
        0x0060:  6e2c 2031 3720 4a75 6c20 3230 3036 2031  n,.17.Jul.2006.1
        0x0070:  333a 3032 3a34 3220 474d 540d 0a53 6572  3:02:42.GMT..Ser
        0x0080:  7665 723a 206c 6967 6874 7470 640d 0a0d  ver:.lighttpd...
        0x0090:  0a         

My config:

# lighttpd configuration file
#

## modules to load
# at least mod_access and mod_accesslog should be loaded
server.modules = (
        "mod_rewrite",
#       "mod_redirect",
#       "mod_alias",
        "mod_access",
#       "mod_cml",
#       "mod_trigger_b4_dl",
#       "mod_auth",
#       "mod_status",
        "mod_setenv",
#       "mod_fastcgi",
#       "mod_proxy",
#       "mod_simple_vhost",
#       "mod_evhost",
#       "mod_userdir",
        "mod_cgi",
#       "mod_compress",
#       "mod_ssi",
#       "mod_usertrack",
#       "mod_expire",
#       "mod_secdownload",
#       "mod_rrdtool",
        "mod_accesslog" )

server.tag              = "lighttpd"
server.port             = 8081
server.bind             = "localhost"

server.document-root    = "/Users/jimmy/Work/devbox-www-backup"
server.pid-file         = "/Users/jimmy/UNIX/var/run/lighttpd.pid"
server.errorlog         = "/Users/jimmy/UNIX/var/log/lighttpd.error.log"
accesslog.filename      = "/Users/jimmy/UNIX/var/log/lighttpd.access.log"

server.event-handler    = "freebsd-kqueue"

index-file.names        = ( "index.pl", "index.cgi",
                            "index.html", "index.htm" )

url.access-deny         = ( "~", ".pm" )
static-file.exclude-extensions  = ( ".pl", ".cgi" )

cgi.assign              = ( ".pl"  => "",
                            ".cgi" => "" )

setenv.add-environment  = (
        "PERLLIB" => "/Users/jimmy/UNIX/lib/perl5/site_perl"
)

#dir-listing.activate   = "enable"

mimetype.assign = (
        ".pdf"          =>      "application/pdf",
        ".sig"          =>      "application/pgp-signature",
        ".spl"          =>      "application/futuresplash",
        ".class"        =>      "application/octet-stream",
        ".ps"           =>      "application/postscript",
        ".torrent"      =>      "application/x-bittorrent",
        ".dvi"          =>      "application/x-dvi",
        ".gz"           =>      "application/x-gzip",
        ".pac"          =>      "application/x-ns-proxy-autoconfig",
        ".swf"          =>      "application/x-shockwave-flash",
        ".tar.gz"       =>      "application/x-tgz",
        ".tgz"          =>      "application/x-tgz",
        ".tar"          =>      "application/x-tar",
        ".zip"          =>      "application/zip",
        ".mp3"          =>      "audio/mpeg",
        ".m3u"          =>      "audio/x-mpegurl",
        ".wma"          =>      "audio/x-ms-wma",
        ".wax"          =>      "audio/x-ms-wax",
        ".ogg"          =>      "application/ogg",
        ".wav"          =>      "audio/x-wav",
        ".gif"          =>      "image/gif",
        ".jpg"          =>      "image/jpeg",
        ".jpeg"         =>      "image/jpeg",
        ".png"          =>      "image/png",
        ".xbm"          =>      "image/x-xbitmap",
        ".xpm"          =>      "image/x-xpixmap",
        ".xwd"          =>      "image/x-xwindowdump",
        ".css"          =>      "text/css",
        ".html"         =>      "text/html",
        ".htm"          =>      "text/html",
        ".js"           =>      "text/javascript",
        ".asc"          =>      "text/plain",
        ".c"            =>      "text/plain",
        ".cpp"          =>      "text/plain",
        ".log"          =>      "text/plain",
        ".conf"         =>      "text/plain",
        ".text"         =>      "text/plain",
        ".txt"          =>      "text/plain",
        ".dtd"          =>      "text/xml",
        ".xml"          =>      "text/xml",
        ".mpeg"         =>      "video/mpeg",
        ".mpg"          =>      "video/mpeg",
        ".mov"          =>      "video/quicktime",
        ".qt"           =>      "video/quicktime",
        ".avi"          =>      "video/x-msvideo",
        ".asf"          =>      "video/x-ms-asf",
        ".asx"          =>      "video/x-ms-asf",
        ".wmv"          =>      "video/x-ms-wmv",
        ".bz2"          =>      "application/x-bzip",
        ".tbz"          =>      "application/x-bzip-compressed-tar",
        ".tar.bz2"      =>      "application/x-bzip-compressed-tar"
)

Attachments

Change History

07/17/2006 01:15:55 PM changed by jimmy@inet-solutions.be

I just notices mod_rewrite was enabled, after disabling it, the problem was away

07/17/2006 01:17:07 PM changed by jimmy@inet-solutions.be

after enabling it back again, the problem was not back, which is odd...

07/17/2006 01:42:29 PM changed by jimmy@inet-solutions.be

after some time running (10 minutes), the problem came back, it randomly gives 200/500

08/02/2006 08:34:16 PM changed by jimmy@inet-solutions.be

See bug report 756, problem seems to be also gone with that solution

06/20/2008 12:26:25 AM changed by lexapro

  • severity changed from normal to major.
  • cc set to None.
  • component changed from core to mod_cgi.
  • version changed from 1.4.11 to 1.4.14.
  • keywords set to None.
  • blocking set to None.
  • pending changed.

Article Opinion <a

06/20/2008 12:27:09 AM changed by xenical

  • priority changed from normal to lowest.
  • type changed from defect to task.
  • version changed from 1.4.14 to 1.4.17.
  • component changed from mod_cgi to mod_ssi.
  • milestone set to 1.4.20.

Article Opinion <a


Add/Change #757 (internal server error gives 200 OK sometimes)




Change Properties