New installation problem

Hi everyone,

I’ve just installed RT, and I get a server error when I try to access the
site. In the error logs (site error, not RT error), I get this:

[Tue Jan 8 09:57:32 2002] [error] RT Couldn’t write to session directory
’/web/mako/docs/rt2/WebRT/sessiondata’. Check that this directory’s
permissions are correct. at /web/mako/docs/rt2/bin/webmux.pl line 152.

I checked the permissions, and they were 770. For the hell of it, I made
them 777 (because owner and group seemed ok), and the same error appears.

When I look in sessiondata, I see these:

sean@eskimo{/web/mako/docs/rt2/WebRT}: ls -l sessiondata/
total 0
-rw------- 1 www www 0 Jan 8 09:57
Apache-Session-0e8474f0539e75a1ec0d7082bffbf53b.lock
sean@eskimo{/web/mako/docs/rt2/WebRT}:

(There’s a bunch in there–I just pasted the one that applies to the error
log entry above.)

So, obviously, something’s writeable. Is there a simple error somewhere
I’m not picking up on?

Thanks very much!

Sean

“SH” == Sean Hussey sean@thirteen.net writes:

SH> [Tue Jan 8 09:57:32 2002] [error] RT Couldn’t write to session directory
SH> ‘/web/mako/docs/rt2/WebRT/sessiondata’. Check that this directory’s
SH> permissions are correct. at /web/mako/docs/rt2/bin/webmux.pl line 152.

In the rt2/bin/webmux.pl script, near the end where this error message
appears (obviously line 152), change the code to read from this:

      else {
         die "RT Couldn't write to session directory '$RT::MasonSessionDir'.

Check that this directory’s permissions are correct.";
}

to read like this:

      else {
         die "RT Couldn't write to session directory '$RT::MasonSessionDir'.

Check that this directory’s permissions are correct. $@";
}

All I did was stick the $@ to the end of the error message. This will
display the original error that triggered the warning in the log. Now
stop and start apache and try it again to see what the error really
is.

Turns out the problem was deeper than that. The admin was gracefully
reloading Apache configs, not restarting the server to flush the
cache. Once I got him to do that, all was well.

Thanks very much!

Sean

At 12:33 PM 1/8/2002 -0500, Vivek Khera wrote: