Mergimus won't start: DBus Error

Bug #578315 reported by Jono Bacon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mergimus
Invalid
Undecided
Unassigned

Bug Description

From a checkout today (10th May 2010):

jono@forge:~/source/bzr/mergimus$ quickly run
Traceback (most recent call last):
  File "bin/mergimus", line 89, in <module>
    window = MergimusWindow.MergimusWindow()
  File "/home/jono/source/bzr/mergimus/mergimus/MergimusWindow.py", line 136, in __new__
    new_object.finish_initializing( builder )
  File "/home/jono/source/bzr/mergimus/mergimus/MergimusWindow.py", line 155, in finish_initializing
    self.attach_launchpad()
  File "/home/jono/source/bzr/mergimus/mergimus/MergimusWindow.py", line 67, in attach_launchpad
    self.connect_to_daemon()
  File "/home/jono/source/bzr/mergimus/mergimus/MergimusWindow.py", line 56, in connect_to_daemon
    proxy = self.bus.get_object( 'com.MergimusDaemon', '/com/mergimusdaemon/Daemon' )
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name com.MergimusDaemon was not provided by any .service files
jono@forge:~/source/bzr/mergimus$

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

Thank you for taking the time to report this bug.

The issue you're seeing is caused by the fact that Mergimus is split in a daemon and a client in order to provide some easy 'multi-threading'. If you would install Mergimus to your system it should be fine because DBus could launch the daemon itself by locating the executable from the com.MergimusDaemon.service file you can find in the root directory of the trunk.
However, when you run the code from the branch you have manually launch the daemon before running the client. The daemon is the file bin/mergimus-daemon.

I do think it is important for people to be able to run the code out of the branch without too much of a hassle. However, it is not possible to autostart a DBus daemon without installing its *.service file. Therefore I'm afraid you'll first have to manually launch the daemon and then run the client.
I'm closing this bug as Invalid, but I will take a look at the README file to make sure the instructions there are clear.

First run: bin/mergimus-daemon
then in a separate terminal bin/mergimus
Both commands accept --debug if you want more information.

Changed in mergimus:
status: New → 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.