I have 3 RH 6.2 boxes where in 2 the Semaphore locking gives
"permission denied" and in one it works.  The difference is that the
one that works is running apache and mod_perl from rpm's and the 2
that don't work have Apache and mod_perl compiled from source!  I
wonder if this is the case with others that have semaphore problems.

> so use something like
> 
> PerlSetEnv EMBPERL_SESSION_CLASSES "Postgres Semaphore"
> 
> the EMBPERL_SESSION_ARGS must contain the database etc.
> 
> PerlSetEnv EMBPERL_SESSION_ARGS "Datasource=dbi:Pg:dbanme=foo UserName=bar
> Password=secret"

I set:

PerlSetEnv EMBPERL_SESSION_ARGS "Datasource=dbi:Pg:dbname=sessions UserName=postgres"

and

PerlSetEnv EMBPERL_SESSION_CLASSES "Postgres Null"

or

PerlSetEnv EMBPERL_SESSION_CLASSES "Postgres Semaphore"

I quess Null would be ok because postgres itself handles concurrency?
Anyway the result in both cases was:

[4881]SES:  Embperl Session management enabled (>= 1.50)

[Thu Sep 28 09:09:57 2000] [error] [4880]ERR: 24: Line 18: Error in
Perl code: Can't connect( postgres HASH(0x8349214)), no database
driver specified and DBI_DSN env var not set at
/usr/lib/perl5/site_perl/5.005/Apache/Session/Store/Postgres.pm line
49


I put some debug output in Apache/Session/Store/Postgres.pm and DBI.pm 
and it seems that the datasource gets lost somewhere.  In DBI.pm sub
connect:

DEBUG DBI.pm: dsn ='' user='postgres', pass=''

and in Postgres.pm sub connection:

DEBUG Postgres.pm: datasource='', username='postgres', password=''

I have a separate database for application data and that works OK.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to