Problems when running gconf-based applications on a remote desktop

Bug #610982 reported by Till Kamppeter
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)
Invalid
High
Unassigned
gconf (Ubuntu)
Invalid
High
Unassigned
xauth (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: gconf

I am SSHing ("ssh -X ...") to a Maverick machine from a Lucid machine. In the terminal I start X applications (thunderbird, OpenOffice.org) which are running on the Maverick machine and whose windows are displaying on the desktop of the Lucid machine.

There I have several problems with GConf.

When I start Thunderbird, I get a pop-up window telling "An error occured while loading or saving configuration information for thunderbird-bin.". Clicking on "Details" says"Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information.(Details - 1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-pQzGHgatiO: Connection refused)". This message repeats several times with different names of the temporary file. Thunderbird takes very long to start and the window is grayed for a longer time. Also during the Thunderbird session the window grays very often and freezes, especially it grays half a minute on the download of every single newsgroup message. All this does not happen when starting Thunderbird locally on the desktop of the Maverick box.

When starting ooffice in the SSH terminal, it shows the splash screen and then gives the message "Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information.(Details - 1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-pQzGHgatiO: Connection refused)" (same message as in Thunderbird) repeatedly in an infinite loop and the main window never appears. OpenOffice.org works correctly when started on the local desktop.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: libgconf2-4 2.31.6-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-11.16-generic 2.6.35-rc5
Uname: Linux 2.6.35-11-generic x86_64
Architecture: amd64
Date: Wed Jul 28 19:21:41 2010
EcryptfsInUse: Yes
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gconf

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in gconf (Ubuntu):
importance: Undecided → High
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Some additional notes:

1. My Inbox contains around 100000 mails. To avoid getting hit by bug 518336 I have turned off the global search.

2. Last week thunderbird-bin consumed 100% CPU, but after a kernel update to fix bug 609113 thunderbird did not consume 100% CPU any more while it is frozen/grayed.

3. During the freeze (grayed) phases Thunderbird probably tries to access GConf and times out, but I am not sure what really happens.

Changed in gconf (Ubuntu):
status: New → Invalid
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

seb128, why did you set this bug to "Invalid" without a comment? Is this not a bug? Is it a bug of Thunderbird? Does it work for you?

Changed in gconf (Ubuntu):
status: Invalid → New
Martin Pitt (pitti)
Changed in gconf (Ubuntu):
status: New → Invalid
Changed in dbus (Ubuntu):
importance: Undecided → High
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

A workaround is to run the command

/usr/lib/libgconf2-4/gconfd-2 &

in the SSH session. Then all apps started out of it (and already running in it) work normally again.

So the problem to be solved is making this automatic. Either the SSH login must somehow trigger the gconfd being started or wrapper scripts need to get added to the mentioned applications.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Note also that the applications worked flawlessly out of SSH before Maverick.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Oliver Grawert (ogra) suggests on IRC that probably the defaults of gconf, dbus, or xauth have changed somehow.

Changed in xauth (Ubuntu):
importance: Undecided → High
Revision history for this message
Sebastien Bacher (seb128) wrote :

sorry I'm at GUADEC and got interrupted while typing, the issue is that gconf needs a dbus session bus, you can run your command using dbus-launch to workaround the bug

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Running

/usr/lib/libgconf2-4/gconfd-2 &

does not work always. The more reliable workaround is to wrap the apps with "dbus-launch" to make sure that they have a session bus available:

dbus-launch thunderbird &
dbus-launch ooffice &

Bryce Harrington (bryce)
Changed in xauth (Ubuntu):
status: New → Confirmed
Revision history for this message
Bob Bob (rasatori) wrote :

Running: compiz --replace gconf

Returns:

(process:2314): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action.
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Abnormal program termination spawning command line `dbus-launch --autolaunch=872829da6bf75a6b345783c84c5e0758 --binary-syntax --close-stderr': )

Runs fine when wrapped in dbus, as stated above: dbus-launch compiz --replace gconf

Revision history for this message
bugbot (bugbot) wrote :

Hey Till,

Thanks for testing maverick during its development period. Unfortunately it looks like this bug report didn't get attention during the maverick development period. But I see there's not been more comments on the bug since the release, which makes me wonder if this is still an issue for you?

If you've not seen this issue since maverick's release yourself, it may have been solved by kernel or X or other updates that occurred late in the release; if so, would you mind please closing the bug for us? Go to the URL mentioned in this bug report, click the yellow icon(s) in the status column and set to 'Fix Released'.

If you no longer have the hardware needed to reproduce the problem, or otherwise feel the bug no longer needs tracked in Launchpad, you can set the status to 'Invalid'.

If you are the original reporter and still have this issue, just reply to this email saying so. (Or set the bug status to Confirmed.) If you are able to re-test this against 11.04 Natty Narwhal (our current development focus) and find the issue still affects Natty, please also run 'apport-collect <bug-number>' while running natty, which will add fresh logs and debug data, and flag it for the Ubuntu-X development team to look at.

Changed in xauth (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

For me the problem does not occur any more in Natty. Thank you very much.

Changed in xauth (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Richard Mace (richard-mace-btinternet) wrote :

I have the problem in 11.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dbus (Ubuntu):
status: New → Confirmed
Changed in dbus (Ubuntu):
status: Confirmed → New
status: New → Opinion
status: Opinion → 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.