You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Jeremy May <je...@marinar.com> on 2001/11/07 01:50:02 UTC

ASP Help

Ok all. here is my problem.

[Tue Nov  6 19:50:36 2001] [error] sdbm store returned -1, errno 0, key
"0ed8ed7d2c80f1badf9bef2a187932bd" at
/usr/local/lib/perl5/site_perl/5.6.1/MLDBM.pm line 161.
        MLDBM::STORE('MLDBM=HASH(0x837ca80)',
'0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x875872c)') called at
/usr/local/lib/perl5/site_perl/5.6.1/MLDBM/Sync.pm line 82
        MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x837c69c)',
'0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x875872c)') called at
/usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 5125
        Apache::ASP::State::STORE('Apache::ASP::State=HASH(0x85ee558)',
'0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x875872c)') called at
/usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 770
        Apache::ASP::RefreshSessionId('Apache::ASP=HASH(0x8284d0c)',
'0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x8758714)') called at
/usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 4613
        Apache::ASP::Session::new('Apache::ASP=HASH(0x8284d0c)') called at
/usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 605
        Apache::ASP::new('Apache::ASP', 'Apache=SCALAR(0x8284c28)') called
at /usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 147
        Apache::ASP::handler('Apache=SCALAR(0x8284c28)') called at /dev/null
line 0
        eval {...} called at /dev/null line 0


and i have been unable to fugure out what i did rong?? it worked for about a
week on this server. works fine on other servers but noit this one

thnx
Jeremy May


Re: ASP Help

Posted by Joshua Chamas <jo...@chamas.com>.
> Jeremy May wrote:
> 
> Ok all. here is my problem.
> 
> [Tue Nov  6 19:50:36 2001] [error] sdbm store returned -1, errno 0, key
> "0ed8ed7d2c80f1badf9bef2a187932bd" at
> /usr/local/lib/perl5/site_perl/5.6.1/MLDBM.pm line 161.
>         MLDBM::STORE('MLDBM=HASH(0x837ca80)',
> '0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x875872c)') called at
> /usr/local/lib/perl5/site_perl/5.6.1/MLDBM/Sync.pm line 82
>         MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x837c69c)',
> '0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x875872c)') called at
> /usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 5125
>         Apache::ASP::State::STORE('Apache::ASP::State=HASH(0x85ee558)',
> '0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x875872c)') called at
> /usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 770
>         Apache::ASP::RefreshSessionId('Apache::ASP=HASH(0x8284d0c)',
> '0ed8ed7d2c80f1badf9bef2a187932bd', 'HASH(0x8758714)') called at
> /usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 4613

Is this a regular occurance, or was this a one time event?
I have seen an occasional error with SDBM_File ( over years ) 
that may be because of a failure in its hash algorithm, which 
is supposedly to be only theoretically possible rarely, but this 
might be such an occurance.

If this is a regular error, this might be a more normal error, 
first make sure that the web server has write access to StateDir,
then try setting StateDB to MLDBM::Sync::SDBM_File or DB_File.
I don't think the latter will help though because this was an
error with writing to the internal database, which always uses
SDBM_File.  To change the dbm type for the internal database, 
do something like:

  # httpd.conf
  PerlModule Apache::ASP
  <Perl>
    $Apache::ASP::DefaultStateDB = 'MLDBM::Sync::SDBM_File';
    # or 
    $Apache::ASP::DefaultStateDB = 'DB_File';
  </Perl>

You will need to delete the StateDir ( & all $Session & 
$Application data in so doing ) before this change would take 
effect.  This is not a documented method of changing the internal 
database, as I never thought one would need to change it to 
anything else.  Hopefully you will be able to tell me that the 
problem just went away and never came back all on its own without 
having to resort to the above code.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org