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

Nathan Olla nathan.olla at newisys.com
Thu Jul 26 14:54:31 EDT 2001


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3139 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20010726/e6b24f8a/attachment.bin>


More information about the rt-users mailing list