Bug 68720 - GConf can not handle stale locks if user home directory is on NFS volume.
Summary: GConf can not handle stale locks if user home directory is on NFS volume.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: GConf
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact: Aaron Brown
Depends On:
Blocks: 67217
TreeView+ depends on / blocked
Reported: 2002-07-12 20:25 UTC by Eugene Kanter
Modified: 2007-04-18 16:44 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2002-08-08 19:12:55 UTC

Attachments (Terms of Use)

Description Eugene Kanter 2002-07-12 20:25:57 UTC
Description of Problem:

GConf can not handle stale locks if usr home directory is on NFS volume.

How Reproducible:


Steps to Reproduce:
1. configure your home directory on NFS server. (autofs or /etc/fstab)
2. login
3. from the foot menu select reboot the system.
4. login

Actual Results:

GConf error dialog.

Expected Results:

no errors.

Additional Information:

~/.gconfd/ contains some .nfs* files
rm -rf ~/.gconfd and relogin solves the problem.

Comment 1 Havoc Pennington 2002-07-12 20:33:22 UTC
In general "handle stale locks" is an impossibility; if the lock is a lock, then 
it has to lock other things out; if other things can "handle" the lock, then
they wouldn't be locked out. If the lock is stale, that means it appears to be
locked but isn't; and if it appears to be locked then there's no way to tell
that it isn't. If you could tell, then it wouldn't be stale, it would just not
be a lock at all. ;-) Anyway. ;-)

Check a couple things:
 - is this a dup of bug #59245
 - are you running the nfslock service on both client and server

Comment 2 Eugene Kanter 2002-07-12 21:03:07 UTC
Well, it does look like a dup indeed.

"the clients tell the server that they have entered a clean new boot: the
server should drop the client's locks at that point." but something fails and
server does not drop the locks. I tried solaris 2.6 and red hat 7.2 as nfs
servers with identical results.

lockd is running of course.

Comment 3 Havoc Pennington 2002-07-12 21:11:49 UTC
You just rebooted normally though, no kernel crash or power buttons involved?

Comment 4 Eugene Kanter 2002-07-13 15:41:59 UTC
No crash of power button. GConfd is still running when shutdown initiated and
does not exit properly. That is why locks are left behind. Just follow my
scenario and you get the same results every time.

Comment 5 Toralf 2002-08-08 07:45:19 UTC
We are seeing the same thing here.

Question: Why isn't gconfd shut down properly on reboot?

Comment 6 Havoc Pennington 2002-08-08 15:17:25 UTC
gconfd should in theory get killall'd -TERM just like everything else on reboot. 

Comment 7 Eugene Kanter 2002-08-08 19:12:50 UTC
I have a feeling that NFS starts its shut down process before gconfd gets killed
by killall -TERM. There is apparently a (failing) attempt to kill gconfd by NFS
shutdown code since running gconfd prevents clean NFS umount.

Comment 8 Preston Brown 2002-08-21 17:19:42 UTC
We now pop up a dialog asking if you want to remove stale locks.

Note You need to log in before you can comment on or make changes to this bug.