Thanks Perrin.
I am using Apache::Registry in httpd.conf file and I am running
run_command through system command.
Below is my httpd.conf for mod_perl:
<Location />
PerlFixupHandler Apache::Resource
</Location>
PerlModule Apache::Filter
# Actual mod_perl setting.
<Files *.pl>
Options ExecCGI
SetHandler perl-script
# PerlHandler Apache::PerlRun
PerlSetVar Filter On
PerlHandler Apache::RegistryFilter Apache::Compress
PerlSendHeader On
PerlInitHandler CDARSLog
</Files>
<Files *top.pl>
Options ExecCGI
SetHandler perl-script
PerlHandler Apache::PerlRun
PerlSendHeader On
PerlInitHandler CDARSLog
</Files>
# Actual mod_perl setting.
<Files *.mpl>
Options +ExecCGI
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
</Files>
<Files *.xpl>
Options +ExecCGI
SetHandler perl-script
PerlHandler Refresh
PerlSendHeader On
</Files>
# watch what mod_perl is doing...
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from all
</Location>
<Location /xxxx/gui/>
# This is the standard authentication stuff
AuthName "CDARS Authentication"
AuthType Basic
PerlAuthenHandler xxxx_Access
require valid-user
</Location>
Where xxxx is our application name.
--Sudhakar
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Perrin
Harkins
Sent: Sunday, January 02, 2011 7:07 PM
To: Peram, Sudhakara
Cc: [email protected]
Subject: Re: BerkeleyDB error
Hi,
> I am able to execute that perl script
> successfully few times (less than 5 times) after every restart of
Apache web
> server. After that I am getting following BerkeleyDB error message in
log
> file of that script (i.e., run_command).
Are you using Apache::Registry for this?
It sounds as if your requests fail on the second attempt to run the
script in a process. If you start apache with the -X option, do they
fail on the second request?
- Perrin