Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Fork and Hammer lock errors



******    message to minivend-users from cfm@maine.com     ******

On Thu, Apr 27, 2000 at 05:35:44PM -0400, Patrick Schoonveld wrote:
> ******    message to minivend-users from Patrick Schoonveld <pschoonveld@venux.net>     ******
> 
> Thats a very good idea, the pgp thing. Yes that is the error with the
> hammer lock. I will check out the pgp.

"Couldn't fork" is misleading.  Change it to "Can't ($cmd):$!".  Yes,
use the () because it sometimes catches stay spacing.  I'll bet
your PATH or profile have changed.

> > >
> > > For some reason, whenever someone tries to submit their data for
> > > processing, it gives an httpd "Internal Server Error" and the error log
> > > for the site reads:
> > > 216.120.166.5 AVQxTzys:216.120.166.5 - [27/April/2000:15:17:23 -0400]
> > > blodgett /cgi-bin/catalog.cgi/process Runtime error: Couldn't fork:
> > > Permission denied
> > 
> > Hmmm...problem with pgp?
> > 
> > -------Order.pm-----
> > sub pgp_encrypt {
> >         my($body, $key, $cmd) = @_;
> >         $cmd = $Vend::Cfg->{PGP} unless $cmd;
> >         if($key) {
> >                 $cmd =~ s/%%/:~PERCENT~:/g;
> >                 $cmd =~ s/%s/$key/g;
> >                 $cmd =~ s/:~PERCENT~:/%/g;
> >         }
> >         my $fpre = $Vend::Cfg->{ScratchDir} . "/pgp.$$";
> >         open(Vend::Order::PGP, "|$cmd >$fpre.out 2>$fpre.err")
> >                         or die "Couldn't fork: $!";
> >         print Vend::Order::PGP $body;
> > -------Order.pm-----
> > 
> > -------ValidCC.pm----
> >                 # Encrypt the string, but key on arg line will be exposed
> >                 # to ps(1) for systems that allow it
> >                 open(CRYPT, "$cmd |") || die "Couldn't fork: $!\n";
> >                 chomp($encrypted = <CRYPT>);
> >                 close CRYPT;
> >                 $status = $?;
> >         }
> >         else {
> >                 $cmd = "| $cmd " if $cmd;
> >                 open(CRYPT, "$cmd>$tempfile ") || die "Couldn't fork: $!\n";
> > -------ValidCC.pm----
> > 
> > 
> > > Sometimes it also gives a hammerlock error, but I turned up the time it
> > > waits for processing and that seems to have stopped. Does anyone have an
> > > idea of how to solve this problem?
> > 
> > Or did you get a message like "Hammered session lock <lockname> left by
> > PID <PID number>"?
> > --------snipp--------
> >                         if ( $left > $Global::HammerLock ) {
> > --------snipp--------
> > and
> > --------snipp--------
> >     ['HammerLock',               'integer',              30],
> > --------snipp--------
> > 
> > >
> > > Running MV3.14 on a FreeBSD3.4 server.
> > > Thanks.
> > 
> > Regards,
> > 
> > Joachim
> > 
> > --
> > -------------Hans-Joachim Leidinger---------------------
> > -
> > To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> > email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> > Archive of past messages: http://www.minivend.com/minivend/minivend-list
> 
> -- 
> "When the going gets weird, the weird turn pro..."
> -- Hunter S. Thompson
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: