[rt-users] More Notes: Need Help: RT can't write to sessiondir

Feargal Reilly feargal at thecia.ie
Thu Jul 26 19:52:58 EDT 2001


On Thu, 26 Jul 2001 13:54:31 -0500
"Nathan Olla" <nathan.olla at newisys.com> wrote:

When you installed it, what where the values for WEB_USER and WEB_GROUP in Makefile? Check that they are the same as the values for User and Group in your mod_perl httpd.conf
AFAIK, the sessiondata should be owned by WEB_USER:WEB_GROUP, I doubt rt is the group that apache runs as.
If they were wrong, change the values, and run 'make fixperms' that should solve it.

If not, *possibly* it's some malformed cookie or something - try from different browser & machine. (That's a uninformed, wildly speculative, shot in the dark)

Also, have you tried reinstalling mason? Check that the version you have isn't a bleeding edge release or something.

-Feargal.

> Here's more information, things I've tried since exchanging some emails
> with some very helpful people on the list:
> 
> Apache is actually running as apache..but even more disturbing...I set
> this:
> MasonSessionDir = "/tmp";
> and still no go.
> 
> I get:
> 
> [Thu Jul 26 13:46:48 2001] [error] RT Couldn't write to session
> directory '/tmp'. Check that this directory's permissions are correct.
> at /opt/rt2/bin/webmux.pl line 143.
> 
> I then set apache to run as apache:rt, set it back to the
> /opt/rt2/WebRT/sessiondir and it still breaks.
> Tried chmod -R /opt/rt2 to 777, 775, 700 and still not go.
> 
> The relevant code bit is this mysterious (to me) block or perl:
> 
>  my %cookies = Apache::Cookie::parse($r->header_in('Cookie'));
> 
>     eval {
>         tie %HTML::Mason::Commands::session, 'Apache::Session::File',
>           ( $cookies{'AF_SID'} ? $cookies{'AF_SID'}->value() : undef ),
>             { Directory => $RT::MasonSessionDir,
>               LockDirectory => $RT::MasonSessionDir,
>             }   ;
>     };
>     if ( $@ ) {
>         # If the session is invalid, create a new session.
>         if ( $@ =~ m#^Object does not exist in the data store# ) {
>              tie %HTML::Mason::Commands::session,
> 'Apache::Session::File', undef,
>              { Directory => $RT::MasonSessionDir,
>                LockDirectory => $RT::MasonSessionDir,
>              };
>              undef $cookies{'AF_SID'};
>         }
>           else {
>              die "RT Couldn't write to session directory
> '$RT::MasonSessionDir'. Che
> ck that this directory's permissions are correct.";
>           }
>     }
> 
> 
> I am beginning to suspect that this isn't really a permissions issue at
> all.
> 
> ????
> 
> Baffled,
> 
> nathan olla
> 


-- 
Feargal Reilly,
Systems Administrator,
The CIA.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20010727/eb191406/attachment.sig>


More information about the rt-users mailing list