Re: Zip on the fly problem

2010-01-12 Thread Thomas den Braber
Yes I am sure that second argument is false. In the old version I only used one argument but changed the second to 0 hoping that solved the problem. As Torsten was suggesting, I tested with: script | cat > file And yes that also fails with Archive::Zip 1.30 and worked ok with 1.26 script >

Re: Zip on the fly problem

2010-01-12 Thread Ronald J Kimball
On Tue, Jan 12, 2010 at 10:11:04PM -0500, Scott Gifford wrote: > On Tue, Jan 12, 2010 at 7:49 AM, Thomas den Braber wrote: > [ ... ] > > > The error is: 'IO error: seeking to rewrite local header : Invalid > > argument' > > > > That error means that after writing something to the ZIP archive, it

Re: Zip on the fly problem

2010-01-12 Thread Scott Gifford
On Tue, Jan 12, 2010 at 7:49 AM, Thomas den Braber wrote: [ ... ] > The error is: 'IO error: seeking to rewrite local header : Invalid > argument' > That error means that after writing something to the ZIP archive, it tried to go backwards to put what it just wrote in the header, but found it co

Re: Zip on the fly problem

2010-01-12 Thread David Nicol
Not satisfied with the size of your file?

Re: intermittent segfaults, ssl?

2010-01-12 Thread Alex Aminoff
We had a very similar problem. After a lot of effort trying to track down the source, we believe we isolated it to a line of perl code that incorrectly sets $/ without localizing it. mod_backtrace showed that the problem seemed to be happening in modperl_perl_global_request_save Here is th

RE: Apache Blank Pages

2010-01-12 Thread cfaust-dougot
Thanks for the reply William, at first I thought the same thing but as time went on and this only effected 1 virtual host and not the other (and the other had 10x the traffic), I didn't seem like hardware or config related. I've gotten a little further since my last post, but it still doesn't m

intermittent segfaults, ssl?

2010-01-12 Thread Mark Copper
Hi, I have a server like this: Server Version: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 I'm also using HTML::Mason I've been getting intermittent segfaults like this: child pid 10142 exit signal Segmentation fault (11)

Re: Apache Blank Pages

2010-01-12 Thread William T
It seems pretty clear the blank pages are from the apache children dieing badly (hence the errors). I would make an educated guess based on the malloc error that your ram is bad. Try running your app on a different box and see if you get the same errors. On Jan 12, 2010 7:19 AM, "cfaust-dougot"

Apache Blank Pages

2010-01-12 Thread cfaust-dougot
Hello, I have a bizarre problem I'm hoping someone could give me some suggestions with. I have a couple of MP2 scripts running on a server, they are both similar in use of modules and structure. Without any recent changes, one of the scripts is producing a blank apache page on SOME requests.

Re: Logs show reasonable request handling duration, but proxied clients timing out

2010-01-12 Thread Perrin Harkins
On Tue, Jan 5, 2010 at 11:39 AM, wrote: > The client uses a 500 millisecond read timeout which is often reached, > causing the client process to throw exceptions.  However, when I look at my > logs, the %D param shows durations well below this limit. > > At times I do not see the requests at all.

Re: SetHandler perl-script not working

2010-01-12 Thread Perrin Harkins
On Tue, Jan 12, 2010 at 6:43 AM, Kevin Thorpe wrote: > >    SetHandler perl-script >    PerlResponseHandler Apache2::Status >    Order deny,allow >    Allow from all > > > ...but I'm still getting 404 for the URL. It sounds like something else in your config is intercepting the URL. Try removin

Re: SetHandler perl-script not working

2010-01-12 Thread Adam Prime
Can you post the error message(s)? Theres nothing obviously wrong with what you've got there. Adam Kevin Thorpe wrote: > Hi all, > I have a serious problem with sethandler perl-script not working. > For testing I have enabled perl-status: > > > SetHandler perl-script > PerlRespo

Re: Zip on the fly problem

2010-01-12 Thread Torsten Förtsch
On Tuesday 12 January 2010 13:49:34 Thomas den Braber wrote: > I use Archive::Zip to generate zip files on the fly in Modperl 2.04 with > code similar like this: > > my $zip = Archive::Zip->new(); > my $member = $zip->addFile( '/home/testimg/test1.jpg', 'testfile1.jpg' ); > if ($member){ > $me

Zip on the fly problem

2010-01-12 Thread Thomas den Braber
Hi, I use Archive::Zip to generate zip files on the fly in Modperl 2.04 with code similar like this: my $zip = Archive::Zip->new(); my $member = $zip->addFile( '/home/testimg/test1.jpg', 'testfile1.jpg' ); if ($member){ $member->desiredCompressionLevel( 1 ); } $member = $zip->addFile( '/home/

SetHandler perl-script not working

2010-01-12 Thread Kevin Thorpe
Hi all, I have a serious problem with sethandler perl-script not working. For testing I have enabled perl-status: SetHandler perl-script PerlResponseHandler Apache2::Status Order deny,allow Allow from all ...but I'm still getting 404 for the URL. I'm definitely reading

RE: unable to compile mod_perl under perl 5.10.1

2010-01-12 Thread Morten Bjørnsvik
Hi again I inspected the rpm spec file we use to build perl and found some errors setting it to default value config_args='-des -A ccflags=-fPIC -Dprefix=/opt/perl -Dinstallprefix=/opt/perl' Now mod_perl compiles fine, I will also try without threading based on your comments. (I believed threa

Re: unable to compile mod_perl under perl 5.10.1

2010-01-12 Thread Fred Moyer
Here's what's on my 5.8.8 with fPIC, I haven't tried 5.10.1 on 64 bit yet. cc='cc', ccflags ='-fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', I'm not sure if the perl you showed me below has fpic configured. I recommend that you compile a non-threaded version of perl t

Wondering if using a section is the best approach for dynamic server configuration

2010-01-12 Thread Boysenberry Payne
I'm trying to do some server configuration where I use the same code on several different servers and the code is located in different places for each server. I want to make sure this code is the best way to accomplish this or inquire if anyone knows if there is a better way. #!/usr/bin/perl -

RE: unable to compile mod_perl under perl 5.10.1

2010-01-12 Thread Morten Bjørnsvik
Hi Fred Thanks for the answer. getting correct -fPIC is probably the solution, but how? On perl 5.10.0 it turned up under config flags, but here it does not, but under cccdlflags in dynamic linking? There is probably some parsing in the Configure script that rearrange it. platform is CentOS 5.2