[launcher] Crashes at startup if home directory is over NFS because of D-Conf

Bug #817368 reported by Steve Blamey
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dconf
Fix Released
Wishlist
unity-2d
Invalid
High
Unassigned
unity-2d (Ubuntu)
Invalid
High
Unassigned

Bug Description

Ubuntu and Package Version :-

Description: Ubuntu 11.04
Release: 11.04

unity-2d-launcher:
  Installed: 3.8.12-0ubuntu1~bzr651
  Candidate: 3.8.12-0ubuntu1~bzr651
  Version table:
 *** 3.8.12-0ubuntu1~bzr651 0
        500 http://ppa.launchpad.net/unity-2d-team/unity-2d-daily/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
     3.8.4.1-0ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

Expected Behaviour:-

Unity-2d-launcher starts and is displayed at login.

Current Behaviour:-

Unity-2d-launcher is not displayed at login.

Checking with ps I see that the unity-2d-launcher PID is changing constantly.

Investigation:-

After killing unity-2d-launcher, I ran it from a command line and received the following error:

**
ERROR:dconf-dbus-1.c:626:dconf_dbus_client_service_func: code should not be reached
Aborted

summary: - unity-2d-launcher crashes an respawns continuously on ERROR:dconf-dbus
+ unity-2d-launcher crashes and respawns continuously on ERROR:dconf-dbus
summary: - unity-2d-launcher crashes and respawns continuously on ERROR:dconf-dbus
+ unity-2d-launcher crashes and restarts continuously on ERROR:dconf-dbus
Revision history for this message
Steve Blamey (fedorus-deactivatedaccount) wrote : Re: unity-2d-launcher crashes and restarts continuously on ERROR:dconf-dbus

I have been tracking daily updates from the ppa since I first experienced this problem but it still persists. I'd be happy to investigate further if someone has any ideas where I should be looking.

Revision history for this message
Steve Blamey (fedorus-deactivatedaccount) wrote :

I have set-up a new user on my system and unity-2d-panel displays and works fine.

Some settings somewhere must be corrupt in my profile. Does anyone know where to look? Alternatively could the fact that my home directory is on an NFS server be causing issues with unity-2d-panel (my test user has a local home directory).

Revision history for this message
Florian Boucault (fboucault) wrote :

Thanks for the report Steve.
Looking at the code of dconf it seems that DConf does not work if your home directory is over NFS.

Changed in unity-2d:
importance: Undecided → High
status: New → Confirmed
Changed in unity-2d (Ubuntu):
status: New → Confirmed
summary: - unity-2d-launcher crashes and restarts continuously on ERROR:dconf-dbus
+ [launcher] Crashes at startup if home directory is over NFS because of
+ D-Conf
Changed in dconf:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Steve Blamey (fedorus-deactivatedaccount) wrote :

Thanks for updating this Florian, I was thinking it must be NFS in the end.

In the meantime, I am looking at moving XDG_CONFIG_HOME to another location on my local system and will post a workaround here when I have it tested.

Revision history for this message
Steve Blamey (fedorus-deactivatedaccount) wrote :

Here is my workaround to point XDG_CONFIG_HOME and XDG_CACHE_HOME to local paths instead of the default ~/.config and ~/.cache, which exist on an NFS mounted home directory in my case.

Place the attached script in /etc/profile.d/ and adjust CONFIG_BASE_DIR to your desired location. Mine is set thus:

CONFIG_BASE_DIR=/home/configs/${USER}

with /home/configs set to be writable by any user.

Then copy the contents of ~/.config and ~/.cache to CONFIG_BASE_DIR/*username*/config and cache respectively

Revision history for this message
Allison Karlitskaya (desrt) wrote :

This bug is actually caused by Ubuntu not properly supporting the XDG basedir specification.

Revision history for this message
Allison Karlitskaya (desrt) wrote :

...or by running an old dconf release from before it switched over to using XDG_RUNTIME_DIR...

Changed in dconf:
importance: Medium → Wishlist
Revision history for this message
Florian Boucault (fboucault) wrote :

And by old, you mean one day old?

Changed in unity-2d (Ubuntu):
importance: Undecided → High
Revision history for this message
Luiz Angelo Daros de Luca (luizluca) wrote :

Hello,

There is a patch in gnome bug report. Does it fix the problem? All users in my lab stopped to use gnome/unity because of this bug. Everyone went to kde. A fix would be very welcome!

Revision history for this message
quazgar (quazgar) wrote :

The proposed profile.d script does not fix the problem here for 11.10. Will test it again after upgrade to 12.04.

Revision history for this message
Steve Blamey (fedorus-deactivatedaccount) wrote :

@rubik-cube Can you provide more info on why the workaround did not work for you?

Revision history for this message
quazgar (quazgar) wrote :

I don't know exactly, why it does not work. The environment variables are changed correctly, i.e. if the given directories don't exist, an error pops up saying so. Starting non-GTK window managers works correctly, but GTK programs (most prominent example: Firefox) then hang as in Unity.

Revision history for this message
Steve Blamey (fedorus-deactivatedaccount) wrote :

Have you checked your logs for any errors? You could also double-check permissions (see #5, above and comments inside profile.d ). I can't re-test my workaround because I no longer use Unity but it should still work as far as I can see.

Revision history for this message
quazgar (quazgar) wrote :

I think I have to retract my comment #10. On trying after a fresh reboot, the only thing I found not working was Firefox (which was the program with problems even in TWM instead of Gnome/Unity).

Firefox & NFS is another bug though: https://bugzilla.kernel.org/show_bug.cgi?id=21902 This could be fixed by adding the "nolock" nfs mount option as per this forum post: http://www.linuxforums.org/forum/ubuntu-linux/174468-firefox-gives-bookmarks-history-system-will-not-functional.html#post826108 Even the XDG variables workaround was not necessary any more.

Changed in dconf:
status: Confirmed → Fix Released
Changed in unity-2d:
status: Confirmed → Invalid
Changed in unity-2d (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.