Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP

HELP sdbm store returned -1

 

 

ModPerl asp RSS feed   Index | Next | Previous | View Threaded


k_berov at yahoo

Oct 11, 2004, 2:20 AM

Post #1 of 3 (1690 views)
Permalink
HELP sdbm store returned -1

Hi, boys!
After server restart we get the folowing error:
the server OS is Linux . We have there two sites using Apache::ASP;
The one is using DB_File for storing sessions state the other - SDBM_File
The interesting is that the one wich uses DB_File gives this error.
The site trys to use sdbm when I tell it to use DB_File.
What am I doing Wrong?
Thans in advance.
###########################
Debug Output

1. sdbm store returned -1, errno 22, key "menu" at
/usr/lib/perl5/site_perl/MLDBM.pm line 161. ,
/usr/lib/perl5/site_perl/Apache/ASP.pm line 1518

Is it possible that the two sites conflict with each other
I apply part of the configuration:
#PerlModules
PerlModule DB_File
PerlModule Storable
PerlModule Compress::Zlib
PerlModule Apache::ASP

#modperl and ASP
#################################
PerlSetVar NoState 0
PerlSetVar AllowSessionState 1
PerlSetVar StateDB DB_File
PerlSetVar StateSerializer Storable
PerlSetVar SessionSerialize 1
PerlSetVar SessionTimeout 20
PerlSetVar UseStrict 1
PerlSetVar Debug 2
PerlSetVar CacheDB DB_File
PerlSetVar CacheSize 10M
# # 10 megabaita cache na zaiawwkite wyrhu diska
PerlSetVar BufferingOn 1
PerlSetVar CgiHeaders 0
#PerlSetVar Clean 0
PerlSetVar CompressGzip 1
PerlSetVar RequestParams 1






---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


josh at chamas

Oct 12, 2004, 10:16 PM

Post #2 of 3 (1569 views)
Permalink
Re: HELP sdbm store returned -1 [In reply to]

k_berov wrote:
> Hi, boys!
> After server restart we get the folowing error:
> the server OS is Linux . We have there two sites using Apache::ASP;
> The one is using DB_File for storing sessions state the other - SDBM_File
> The interesting is that the one wich uses DB_File gives this error.
> The site trys to use sdbm when I tell it to use DB_File.
> What am I doing Wrong?

Make sure that each site sets a different StateDir setting,
or you will end up mixing file formats of SDBM_File & DB_File
which can cause problems.

Regards,

Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


k_berov at yahoo

Oct 13, 2004, 9:39 AM

Post #3 of 3 (1614 views)
Permalink
Re: HELP sdbm store returned -1 [In reply to]

The problem is solved... THANKS
What happened?
It came out actually we were using SDBM_File instead
of DB_File.
The administrator had given this to Apache::ASP:

PerlSetVar StateDB SDBM_File

Beeing a PHP boy he did not knew about the 1k limit.
And when the $Session key 'menu' grew up a little -
here is the problem.
$Session->{menu}="somethin complex more than 1Kb" =
problem ;
...
Just misunderstood between me and him.
So we end up with the following:

PerlSetVar StateDB MLDBM::Sync::SDBM_File

I hope there will not be a problem for the "menu" key
to grow up now.

They told me they have some problems installing
BerkeleyDB or DB_File...

Thank You Josh!

--- Josh Chamas <josh [at] chamas> wrote:

> k_berov wrote:
> > Hi, boys!
> > After server restart we get the folowing error:
> > the server OS is Linux . We have there two sites
> using Apache::ASP;
> > The one is using DB_File for storing sessions
> state the other - SDBM_File
> > The interesting is that the one wich uses DB_File
> gives this error.
> > The site trys to use sdbm when I tell it to use
> DB_File.
> > What am I doing Wrong?
>
> Make sure that each site sets a different StateDir
> setting,
> or you will end up mixing file formats of SDBM_File
> & DB_File
> which can cause problems.
>
> Regards,
>
> Josh
>


=====
Ps:In CaseYou can not Read my Messages,
they are usualy sent in
Encodings such as
Cyrillic (Windows) or UTF-8
-----K.Berov



__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl

ModPerl asp RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.