Bug 104735 - gconfd has some very bad error handling.
Summary: gconfd has some very bad error handling.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: GConf2
Version: beta2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-19 22:44 UTC by Bill Nottingham
Modified: 2014-03-17 02:38 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-04 05:47:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2003-09-19 22:44:59 UTC
For a period of a couple weeks on one of my crash boxes, every time I logged in,
I had no configuration, a pile of error dialogs, and *no* fonts (i.e., all the
dialogs were blank.)

The cause of this was:

Sep 19 18:18:02 apone gconfd (notting-1894): Failed to get lock for daemon,
exiting: Failed to lock '/home/devel/notting/tmp/gconfd-notting/lock/ior': probably
another process has the lock, or your operating system has NFS file locking
misconfigured (Resource temporarily unavailable)

i.e., gconfd had an error when starting, and then *exited*, with no user-visible
error message. Shouldn't there be some sort of error message printed to the user
so they can have some help debugging the problem?

Comment 1 Havoc Pennington 2003-09-19 22:51:17 UTC
gconfd doesn't have an X connection, how can it display a dialog?
it logs the exact error to syslog, you just have to look... ;-)

All the apps _did_ display a dialog...

gconf-sanity-check-2 should have been run at login and should have detected this
error, also. If that didn't happen we could check why.

Assuming the problem was a stale lock file.

Comment 2 Bill Nottingham 2003-09-19 22:53:55 UTC
Yes, but the dialogs are completely useless when you have no fonts.

Does gconf-sanity-check-2 print any messages? Or log anything?

Comment 3 Havoc Pennington 2003-09-19 23:05:54 UTC
sanity-check-2 opens a dialog if there's a DISPLAY otherwise prints to stderr.

If there's no fonts that's not something gconf can fix, maybe
gnome-settings-daemon needs to verify that the setting is present, and if not
have an emergency fallback.

Comment 4 Bill Nottingham 2003-09-19 23:11:57 UTC
sanity-check-2 did not open a dialog, apparently.

Comment 5 Bill Nottingham 2003-09-26 22:18:29 UTC
It's back in this state again if you want to play.

Comment 6 Havoc Pennington 2003-10-04 05:47:51 UTC
I think the fixes here are:
 - make gnome-settings-daemon etc. have sanity checks on font size
 - don't use a TMPDIR on NFS ;-) you are breaking my workaround-nfs-locking-sucks
   hack
 - more pervasive gconf fixes, http://www.gnome.org/projects/gconf/plans.html

So closing this particular bug.


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