Re: libapreq: could not create/open temp file

2002-06-08 Thread Ask Bjoern Hansen

On Sat, 8 Jun 2002, Stas Bekman wrote:

  Has anybody already seen this error ???
[...]
  [libapreq] could not create/open temp file

sounds like something is running out of filehandles; or a temp file
system of some kind running out of space.

Try applying the patch Stas sent and see what it changes to.
 
 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/ !try; do();




Re: libapreq: could not create/open temp file

2002-06-08 Thread Joe Schaefer


 Jean-Denis Girard wrote:
  
  Everything worked flawlesly, the web site was still working, but after a 
  few days, visitors started to complain  that uplaods didn't work. 
  mod_perl dies with the message:
  [libapreq] could not create/open temp file
  What is really funny, is that it works after rebooting the system, and 
  the error shows up later.

Where are the temp files being created, on a RAM disk or something?
pre 1.0 apreq's had a bug that caused filehandles to leak (there's
a refcount problem in the IO parts of perl's ExtUtils/typemap), which
would eventually fill up /tmp (this is the default location of your 
spooled apreq files) until apache was restarted.


  I upgraded libapreq to 1.0, which didn't solve the problem. Next step 
  will be to upgrade APache, mod_perl, etc. but I would like some help.

In 1.0, we no longer use perl's ExtUtils/typemap for this, which should
take care of the aforementioned leak.  One other possible candidate is 
that your apache server is segfaulting after the file is received, which 
prevents apache from cleaning up the temp files.  If so, you should see
a bunch of apreq files filling up your spool directory.

-- 
Joe Schaefer
[EMAIL PROTECTED]