Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Apache2 errors

Status
Not open for further replies.

perl21

Programmer
Jul 13, 2005
22
US
Hi Guys,

This is a very very strange occurance. I have a system in place so that when Apache2 has an error it pulls up a cgi which emails me the environment information and details of the error. I mostly focus on 500 errors.

Since I upgraded my site to run on mod_perl 2.0.0 I have been getting error reports. But when I call my clients they haven't received the error notification on the screen. It should show them a text message saying the tech department was notified of the problem.

When I pull up the error log for the site. here is what I find.

[Thu Aug 04 13:24:12 2005] [error] :Apache2 IO flush: (103) Software caused connection abort at /fullpath/req.pl line 492

At that line in my file is

print $html;

I was using CGI::Compress::Gzip, but when I first saw the error I assumed the error was related to the compression because otherwise a print function wouldn't have anything special about it. So I removed it and did a straight print "Content-type: text/html\n\n"; at the top of the file.

But the error is still being reported to me. And it seems random. It doesn't happen to any particular file more than another and it happends probably about 1 of every 100 requests.

So why would the error be reported to me by email when the user is not seeing anything wrong and getting successfull transactions from the mod_perl programs.

I can't even find any info in google on Apache2 IO flush errors and don't understand what the 103 means.

And one other peice of interesting information. I installed mod_perl 2.0.0 on my local system with Apache 2.0.53 and have this string in the ENV information

Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7d PHP/4.3.10 mod_perl/2.0.0 Perl/v5.8.5

Online, I uploaded the same exact .tar.gz file for mod_perl, and installed it. I have this string in my ENV online.

Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7a PHP/4.3.10 mod_perl/1.999.22 Perl/v5.8.3

Says mod_perl/1.999.22 , What in the??

Any ideas?
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top