Re: document contains no data errors (with mod_ssl)

2002-10-01 Thread Ged Haywood

Hi there,

On Mon, 30 Sep 2002, Anthony E. wrote:

  am receiving document contains no data error
  messages quite frequently.
[snip]
 incidentally, i noticed i am getting a lot of these
 errors in the error_log:
 
 Out of memory!
 Callback called exit.

If you run out of memory then your Apache will probably fail to send
properly the page you want to send, hence the messages from your
browser and in the error_log.  It sounds to me like you need to read
the mod_perl Guide, particularly the bits about memory...

Please see the mod_perl home page for a link to the Guide.

73,
Ged.




document contains no data errors (with mod_ssl)

2002-09-30 Thread Anthony E.

i have a working version of apache 1.3.26 with
mod_perl 1.27, no problems..

i installed another apache 1.3.26 build with openssl
0.9.6g, mod_ssl 2.8.10-1.3.26, and mod_perl 1.27, and
am receiving document contains no data error
messages quite frequently.

I tried restarting the newly installed apache without
mod_ssl enabled, but I still get the errors. I have
fine tuned apache exactly how my original version was
tuned, and am still having these problems.

Any suggestions?

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com



Re: document contains no data errors (with mod_ssl)

2002-09-30 Thread Anthony E.

incidentally, i noticed i am getting a lot of these
errors in the error_log:

Out of memory!
Callback called exit.


--- Anthony E. [EMAIL PROTECTED] wrote:
 i have a working version of apache 1.3.26 with
 mod_perl 1.27, no problems..
 
 i installed another apache 1.3.26 build with openssl
 0.9.6g, mod_ssl 2.8.10-1.3.26, and mod_perl 1.27,
 and
 am receiving document contains no data error
 messages quite frequently.
 
 I tried restarting the newly installed apache
 without
 mod_ssl enabled, but I still get the errors. I have
 fine tuned apache exactly how my original version
 was
 tuned, and am still having these problems.
 
 Any suggestions?
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com



Re: [OT] Redirect w/ Netscape browser causing 'Document contains no data'

2001-09-09 Thread Joel W. Reed

On Aug 23, [EMAIL PROTECTED] contorted a few electrons to say...
Daniel Little wrote:
 
 I seem to have a strange problem here with Netscape displaying the error
 'Document contains no data' when I do $Response-Redirect($location).
 

everytime i've ever gotten that it was because my
server side code had caused an apache process to core dump.

jr

-- 

Joel W. Reed412-257-3881
--All the simple programs have been written.



 PGP signature


Re: [OT] Redirect w/ Netscape browser causing 'Document contains no data'

2001-09-09 Thread Taisuke Yamada


 I seem to have a strange problem here with Netscape displaying the error
 'Document contains no data' when I do $Response-Redirect($location).
 
 everytime i've ever gotten that it was because
 my server side code had caused an apache process to core dump.

You might want to try sending single byte (\n would be sufficient)
after calling above redirection code. Though it was not mod_perl (I
was using PHP), I had similar symptom and it went away after I added
this extra code.

Hope this helps.

--
Taisuke Yamada [EMAIL PROTECTED]
PGP fingerprint = 6B 57 1B ED 65 4C 7D AE  57 1B 49 A7 F7 C8 23 46



[OT] Redirect w/ Netscape browser causing 'Document contains no data'

2001-08-23 Thread Daniel Little

I seem to have a strange problem here with Netscape displaying the error
'Document contains no data' when I do $Response-Redirect($location). 

I'm using Apache 1.3.19, mod_perl 1.25, Apache::ASP v2.09, but I don't think
it's in Apache::ASP, as the redirect code in there looks pretty much the
same as what is recommended in the guide. We have a front-end proxy
configuration that also has mod_proxy_add_forward installed, but that was
only added recently and I've been trying to track this problem down for a
little while.

Looking at the logs, both the frontend and backend servers are logging a
status code of '302', with '0' bytes transferred - just like I would expect
it to. If I go directly to the backend server, it makes no difference,
either. It also doesn't seem to make any difference if I buffer output or
not. All of this, of course, works just fine in IE. 

I've got a work-around (ugly) by putting META HTTP-EQUIV=refresh
CONTENT=0 ;URL=$location but I'd really like to get rid of that. 

Anybody have any ideas?

Daniel.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Daniel Little  Metrex Systems Inc.[EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Re: Document Contains no data

2000-12-31 Thread Stephen A. Cochran

--- Stas Bekman wrote:
On 17 Nov 2000, Stephen A. Cochran wrote:
 
 I have a program which runs fine 90% of the time under mod_perl. About 10% of
 the time Netscape reports "Document contains no data". Looking at the socket
 traffic, the client receives an orderly release indication (T_ORDEL_IND = 132)
 on the socket and reponds with a orderly release request, which closes the
 socket. 


run it in single mode and attach to the process with strace(1) or truss(1)
(depending on what you have). See the debug chapter in the mod_perl guide.
--- end of quote ---

Thanks for the suggestions from the list for this problem. The strace/truss
probably would have helped solve the problem, too bad Digital Unix doesn't have
either : (

After two months I finally tracked it down. Turns out that in an infrequently
called sub to handle minor error conditions, there was a line "close STDERR".
The comment from the author said it was to "kill any ugly errors that havne't
made it out yet ...". Not really sure what he really wanted to do originally,
but that was the problem.

Anytime a process which had executed this code under mod_perl received another
mod_perl request, the browser displayed the "Document contains no data" error
due to the sequence of requests as described above in my original post. I just
confirmed this with a short script which only does "close STDERR".

Thought I'd post this in case someone else ever runs into this, or it's a bug.
Not sure of closing STDERR is a common practice in CGIs, but maybe a gotcha for
the porting guide. 

Steve Cochran



Re: Document contains no data

2000-12-20 Thread G.W. Haywood

Hi there,

On Tue, 19 Dec 2000, Darren Duncan wrote:

 I have been having a problem with my scripts during the where I 
 periodically get a Netscape 4 error saying "Document contains no 
 data" when they run under mod_perl, but not with the same script 
 under CGI.

Is this only on Netscape 4?

That message often means either bad HTML or a server crash.  Have you
looked in the error_log?  If you can't make sense of it, connect to
the server using

telnet my.host.wherever 80

and then say

GET /your/troublesome/uri HTTP/1.0

followed by two returns and look at the output.  It's instructive if
you just say "GET / HTTP/1.0" (again followed by two returns).

When something fishy happens then it's time to look in the error_log.
When I'm debugging I usually stop the server, rename the error_log to
something like error_log.2000.12.20, then restart it.  That way apache
creates a new, empty log and I can follow everything that happens from
the moment I start the server without wading through reams of output.

Wouldn't you be better off using the request object methods to send
your headers?  The Eagle Book will tell you all about it.  For debug,
if there's a server on port 80 listening to real-world requests and I
had no other machine to play with I'd want to set up another Apache
for debugging which listens on another port, above 1024.  That way I
can crash the server (almost) all I want without hurting real users.
It's all in the Guide.  Sorry, have to drive 1000 miles North now...

73,
Ged.




Document contains no data

2000-12-19 Thread Darren Duncan

I have been having a problem with my scripts during the where I 
periodically get a Netscape 4 error saying "Document contains no 
data" when they run under mod_perl, but not with the same script 
under CGI.  And this only happens sometimes; other times the pages 
return fine.  However, the problem happens very often, even while not 
all the time.  At some points it happens many times sequentially.

The problems started soon after I switched to mod_perl on my server 
using this in the .htaccess file (files named .cgi run as CGI):

Files *.pl
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
/Files

I did a search in the Guide for this error and otherwise looked in 
the troubleshooting sections, but could find nothing.

So I am hoping that you all can forgive me for asking help on this problem.

Everything else is working fine as near as I can tell.

I do not use any global variables explicitely, so I don't see how 
there could be persistant variable issues.  I also print my entire 
output with headers in a single print statement.

I am printing the "HTTP/1.0 200 OK\r\n" ahead of the other headers 
when running under mod_perl as I am supposed to.  And when pages do 
display they show evidence of this (no extra header text appears).

I believe that my mod_perl set-up has about 10 child processes in it, 
and site traffic is on the order of about 300-1000 hits per day.

Stop/Starting the server did not make a difference.  Non perl files 
still are served fine so far and so are .cgi files.

Help?

// Darren Duncan



Re: Document Contains no data

2000-11-17 Thread Stephen A. Cochran


I have a program which runs fine 90% of the time under mod_perl. About 10% of
the time Netscape reports "Document contains no data". Looking at the socket
traffic, the client receives an orderly release indication (T_ORDEL_IND = 132)
on the socket and reponds with a orderly release request, which closes the
socket. 

I've added some printing calls to determine how far it's getting in the script,
even one on the first line. When it fails there are no warnings, none of the
STDERR output shows up in the error log, and the html is still generated and
output to the error_log. 

It seems like once the socket it closed, the script continues, but output to
STDERR dissapears and STDOUT goes to the error log. Any ideas why the server is
sending the orderly release indication or any ways to trace it? I've run the
server in single process mode, but it still doesn't give any errors or warnings.

I've tried on two different machines, both DECs, one running Perl 5.00404,
Apache/1.3.12, mod_perl/1.24, the other running perl 5.00404, Apache/1.3.6,
mod_perl/1.20.

Steve Cochran

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Document Contains no data

2000-11-17 Thread Stas Bekman

On 17 Nov 2000, Stephen A. Cochran wrote:

 
 I have a program which runs fine 90% of the time under mod_perl. About 10% of
 the time Netscape reports "Document contains no data". Looking at the socket
 traffic, the client receives an orderly release indication (T_ORDEL_IND = 132)
 on the socket and reponds with a orderly release request, which closes the
 socket. 
 
 I've added some printing calls to determine how far it's getting in the script,
 even one on the first line. When it fails there are no warnings, none of the
 STDERR output shows up in the error log, and the html is still generated and
 output to the error_log. 
 
 It seems like once the socket it closed, the script continues, but output to
 STDERR dissapears and STDOUT goes to the error log. Any ideas why the server is
 sending the orderly release indication or any ways to trace it? I've run the
 server in single process mode, but it still doesn't give any errors or warnings.

run it in single mode and attach to the process with strace(1) or truss(1)
(depending on what you have). See the debug chapter in the mod_perl guide.

 I've tried on two different machines, both DECs, one running Perl 5.00404,
 Apache/1.3.12, mod_perl/1.24, the other running perl 5.00404, Apache/1.3.6,
 mod_perl/1.20.
 
 Steve Cochran
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]