LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-23-2013, 09:29 PM   #1
AseyMayo
LQ Newbie
 
Registered: Mar 2013
Distribution: Fedora, Centos, RedHat,
Posts: 4

Rep: Reputation: Disabled
ssh dbus problems on cloned server


I have a server running Fedora 16. I have cloned it using the dd command. The new machine is running very well except that when I connect remotely using ssh and then try to open a new window using "gnome-terminal" or "gedit" it has dbus errors and says "Could not connect to session bus".

It is not an X-forwarding problem because I can open xeyes.

I can open gedit locally.

The dbus service is running.

I have done lots of searching and found workarounds suggesting using:
Code:
dbus-launch --exit-with-session gnome-terminal
This works via ssh and opens a new window nicely.

Another suggestion is to put code in every .bash_profile file:
Code:
  if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
     ## if not found, launch a new one
     eval `dbus-launch --sh-syntax --exit-with-session`
     echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
  fi
I tried this but it makes the connection so slow it is unusable. You can't even type a command because it leaves out half the letters. Does anyone know why this happens?

Another suggestion says there may be stale dbus address info in the x-server?
https://bugzilla.redhat.com/show_bug.cgi?id=834347

But I would like to know why the original machine works fine and the clone does not? And how to fix the clone?

Thanks in advance.
 
Old 07-25-2013, 10:51 PM   #2
AseyMayo
LQ Newbie
 
Registered: Mar 2013
Distribution: Fedora, Centos, RedHat,
Posts: 4

Original Poster
Rep: Reputation: Disabled
stale dbus address info in the x-server

I searched the logs but couldn't find anything. Then I tried connecting to the clone from a different machine and it worked, which surprised me! So I rebooted my machine (which I was using to connect to the clone) and the problem has disappeared there too!

Perhaps it was stale dbus address info in the x-server as this link suggests?
https://bugzilla.redhat.com/show_bug.cgi?id=834347

I don't understand how this could happen or why, but at least the problem seems to be solved...
 
Old 07-29-2013, 01:02 AM   #3
AseyMayo
LQ Newbie
 
Registered: Mar 2013
Distribution: Fedora, Centos, RedHat,
Posts: 4

Original Poster
Rep: Reputation: Disabled
Solved I think!

https://lists.fedoraproject.org/pipe...ly/101119.html

OK, found it - the machine was originally a copy of the first one. I've
copied also /var/lib. This causes both machines to have the same dbus
machine-id as if ID exist in /var/lib/dbus/ it is never regenerated. On
ssh -Y the dbus-launch --autolaunch ends/is not started as it thinks this
is the same machine (my explanation). This was a tough one. Just looking
forward to another...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DBUS problems in openSUSE 11.1 wagscat123 SUSE / openSUSE 0 08-03-2009 11:40 AM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-08-2008 11:23 PM
C/DBus Compilation Problems Slokunshialgo Programming 1 10-05-2008 08:59 AM
Ssh server problems kempy1000 Linux - Networking 14 02-14-2007 11:13 AM
problems with openssh server (ssh) shodekiagari Linux - Networking 10 10-16-2005 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration