RT Couldn't write to session directory

PLEASE HELP!!!
I am having a problem similar to what others have recently reported; that
is:

“RT Couldn’t write to session directory ‘opt/rt2/WebRT/sessiondata’. Check
that this directory’s permissions are correct. at /opt/rt2/bin/webmux.pl
line 151.”

I read throught the mailing list and downloaded/installed the MD5 module,
but I’m still getting the error.

My httpd.conf is setup to use “User www-data” and “Group www-data”.

If I do a “ls -l” on my WebRT dir, I have:

drwxrwx— 7 www-data www-data 4096 Sep 6 08:23 data
drwxr-xr–x 10 root bin 4096 Sep 5 14:54 html
drwxrwx— 2 www-data www-data 4096 Sep 6 18:15 sessiondata

What in the world am I missing???

RT Couldn’t write to session directoryIs your config.pm set to use the same
user?

Chris-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Jimmy Henson
Sent: Thursday, September 06, 2001 6:48 PM
To: ‘rt-users@lists.fsck.com’
Subject: [rt-users] RT Couldn’t write to session directory

PLEASE HELP!!!
I am having a problem similar to what others have recently reported; that
is:

“RT Couldn’t write to session directory ‘opt/rt2/WebRT/sessiondata’.
Check that this directory’s permissions are correct. at
/opt/rt2/bin/webmux.pl line 151.”

I read throught the mailing list and downloaded/installed the MD5 module,
but I’m still getting the error.

My httpd.conf is setup to use “User www-data” and “Group www-data”.

If I do a “ls -l” on my WebRT dir, I have:

drwxrwx— 7 www-data www-data 4096 Sep 6 08:23 data
drwxr-xr–x 10 root bin 4096 Sep 5 14:54 html
drwxrwx— 2 www-data www-data 4096 Sep 6 18:15 sessiondata

What in the world am I missing???

Hello,

First, sorry for my not so good english.

When i start RT I get following message in the apache/error.log:

[Tue Sep 11 02:56:31 2001] [error] RT Couldn’t write to session
directory ‘/usr/local/lib/rt2/Web/RT/sessiondata’. Check that this
directory’s permissions are correct. at /usr/local/lib/rt2/bin/webmux.pl
line 151.

I dont get any more error messages.

But the permissions of the directory are:

drwxrwx— 2 www-data www-data 4096 Sep 11 08:54 sessiondata

This looks good to me. In the directory is the file
“Apache-Session-.lock” with size 0.

The Test “make testdeps” tells me that all Perlmodules are Installed.

Where is the error?

Thank you for your help,

Henning Wackernagel
Netzwerkadministration
Schlund + Partner AG
Erbprinzenstr. 4 - 12 Mail: wackernagel@schlund.de
76133 Karlsruhe Tel: 0721 / 91374-0

Henning Wackernagel wrote:

Hello,

First, sorry for my not so good english.

When i start RT I get following message in the apache/error.log:

[Tue Sep 11 02:56:31 2001] [error] RT Couldn’t write to session
directory ‘/usr/local/lib/rt2/Web/RT/sessiondata’. Check that this
directory’s permissions are correct. at /usr/local/lib/rt2/bin/webmux.pl
line 151.

I dont get any more error messages.

But the permissions of the directory are:

drwxrwx— 2 www-data www-data 4096 Sep 11 08:54 sessiondata

Check if www-data is the user Your apache runs under. On SuSE, it’s wwwrun,
on redhat it’s apache. Change www-data to the right user in the makefile and
run make fixperms. If that doesn’t help, there might be another problem.

H.
Harald Wagener | Systemadministrator
FCB/Wilkens GmbH | Tel.:+49-40-2881-1252
An der Alster 42 | Fax.:+49-40-2881-1263
20099 Hamburg | http://www.fcb-wilkens.com

hiho,

Problem solved. I think it was in the Perlmodule Apache::Session. After
I removed it and installed it again with “make fixdeps” all worked as
planned.

Thanks for the Ideers,

Henning Wackernagel
Netzwerkadministration
Schlund + Partner AG
Erbprinzenstr. 4 - 12 Mail: wackernagel@schlund.de
76133 Karlsruhe Tel: 0721 / 91374-0

Looking through the archives, I’ve seen the posts about this problem
before. Here is the error message I’m getting:

[Mon Nov 12 15:15:53 2001] [error] RT Couldn’t write to session
directory ‘/usr/
local/rt2/WebRT/sessiondata’. Check that this directory’s permissions
are correc
t. at /usr/local/rt2/bin/webmux.pl line 152.

This is a fresh installation on a RH7.1/apache machine. The WEB_USER
and WEB_GROUP are both set to apache (which is the user that runs httpd).

Now here is a question, this is what the session directory looks like:

[dturner@ribosome sessiondata]# ls -al
total 20
drwxrwx— 2 apache apache 16384 Nov 12 14:54 .
drwxr-xr-x 5 root root 4096 Oct 30 11:01 …
-rwxr-xr-x 1 apache apache 0 Nov 12 14:40
Apache-Session-aab789cced4b671f900396bd154156de.lock
-rw------- 1 apache apache 0 Nov 12 14:54
Apache-Session-dc935be4d92170b61e743cef3f5d4361.lock

You’ll notice two different sets of permission, the one on top is what
"make fixperms" set it to, and the one on the bottom is what it is
normally. Does this mean that apache is not using the right umask?
What should the permissions for the .lock files be? Thank you

David Turner

At 00:43 16.12.2001 +0100, Tore Micaelsen wrote:

try a
perl -MCPAN -e shell
and then
install Storable
when that has gone ok, it should do the trick…
had the same problem myself a couple of times. Dont know if that’s
something that could should have been in the ‘make fixdeps’ or something
that is obvious… :wink:

Tnx, that fixed that Storable.pm Problem, but now I’m stuck again with the:

[Mon Dec 17 09:11:44 2001] [error] RT Couldn’t write to session directory
‘/usr/local/rt2/WebRT/sessiondata’. Check that this directory’s permissions
are correct. at /usr/local/rt2/bin/webmux.pl line 152.

Error.

I’m quite sure the permissions are correct.
82062 112 drwxrwxrwx 2 nobody nobody 110592 Dec 17 09:11 .
82060 4 drwxr-xr-x 5 root root 4096 Dec 14 17:09 …
82212 0 -rw------- 1 nobody nobody 0 Dec 17 09:11
Apache-Session-7e9dbce685a21844a8a1e20f7b2edfba.lock

Apache runs as nobody and this is also configured in the rt2 Makefile.

Looks a bit like apache writes the files with a wrong umask, shouldn’t they
be 660?

Any Hints?

-Benoit-