[OpenAFS] Problem with current directory
Staffan Hämälä
sh@ltu.se
Mon, 27 Apr 2009 09:54:08 +0200
Hi,
We have recently started using AFS at our university, and have moved about 50%
of our department to AFS to see that everything works, before moving everyone else.
One problem that occurs for some of the Unix people is that the current
directory sometimes gets lost. It seems to happen during weekends, when
tickets/tokens expire. Also, it only seems to happen for people using KDE (but
not gnome??).
Everyone here uses tcsh.
Our AFS servers are all running:
Redhat Enterprise Linux 5.3 (x86_64)
OpenAFS 1.4.8
The Client with the problem (Sunray server for people who have moved to AFS):
Redhat Enterprise Linux 4.7 (x86_64).
OpenAFS 1.4.6
It's all pretty vague, but it does happen for many people. From what I can see,
it is connected to tokens/tickets that have expired during weekends (people
logged on but with locked screens). It's only noticable on terminal windows that
are CD'ed to the home directory. Doing a 'cd' makes things work again.
The tickets and tokens are refreshed when unlocking the screen blanker. The
windows in question do have tokens (after unlocking the screen). Also, according
to the prompt (and by looking at command history), the CWD should be the home
directory.
This is how it looks:
~> pwd
pwd: cannot get current directory: No such file or directory
~> /bin/pwd
/bin/pwd: cannot get current directory: No such file or directory
~> cd
~> pwd
/afs/ltu.se/staff/s/sh
strace /bin/pwd gives:
getcwd(0x506040, 4096) = -1 ENOENT (No such file or directory)
Does anyone have any clues?
Thanks,
Staffan
Luleå University of Technology