`bzr commit` throws an exception when bzr-dbus is installed, and commit is via SSH
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
D-Bus |
Fix Released
|
Medium
|
|||
bzr-dbus |
Fix Released
|
Undecided
|
Unassigned | ||
bzr-dbus (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running `bzr commit` when logged into a machine via SSH causes a crash. Speaking with somebody in the #bzr IRC channel, it was discovered that the variable $DBUS_SESSION_
Running `dbus-launch bzr commit` works without crashing.
Committing to: /tmp/bzr/
added testfile
bzr: ERROR: dbus.exceptions
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
exclude=
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
revprops=
File "/usr/lib/
self.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
hook(params)
File "/usr/lib/
activity.
File "/usr/lib/
self.bus = _get_bus(bus)
File "/usr/lib/
return dbus.SessionBus()
File "/var/lib/
mainloop=
File "/var/lib/
bus = BusConnection.
File "/var/lib/
bus = cls._new_
DBusException: org.freedesktop
bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
avahi /usr/lib/
bzrtools /usr/lib/
dbus /usr/lib/
gtk /usr/lib/
launchpad /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Changed in bzr-dbus: | |
status: | New → Confirmed |
Changed in dbus: | |
status: | Unknown → Confirmed |
Changed in bzr-dbus (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in dbus: | |
importance: | Unknown → Medium |
Changed in dbus: | |
importance: | Medium → Unknown |
Changed in dbus: | |
importance: | Unknown → Medium |
Changed in dbus: | |
status: | Confirmed → In Progress |
Changed in dbus: | |
status: | In Progress → Fix Released |
Running `bzr commit` when logged into a machine via SSH causes a crash. Speaking with somebody in the #bzr IRC channel, it was discovered that the variable $DBUS_SESSION_ BUS_ADDRESS is blank when connecting via SSH.
Running `dbus-launch bzr commit` works without crashing.
Committing to: /tmp/bzr/ .DBusException: org.freedesktop .DBus.Error. Spawn.ExecFaile d: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
added testfile
bzr: ERROR: dbus.exceptions
Traceback (most recent call last): python2. 5/site- packages/ bzrlib/ commands. py", line 857, in run_bzr_ catch_errors python2. 5/site- packages/ bzrlib/ commands. py", line 797, in run_bzr python2. 5/site- packages/ bzrlib/ commands. py", line 499, in run_argv_aliases **all_cmd_ args) python2. 5/site- packages/ bzrlib/ builtins. py", line 2290, in run safe_relpath_ files(tree, exclude)) python2. 5/site- packages/ bzrlib/ decorators. py", line 192, in write_locked python2. 5/site- packages/ bzrlib/ workingtree_ 4.py", line 242, in commit commit( self, message, revprops, *args, **kwargs) python2. 5/site- packages/ bzrlib/ decorators. py", line 192, in write_locked python2. 5/site- packages/ bzrlib/ mutabletree. py", line 197, in commit revprops, *args, **kwargs) python2. 5/site- packages/ bzrlib/ commit. py", line 407, in commit branch. set_last_ revision_ info(new_ revno, self.rev_id) python2. 5/site- packages/ bzrlib/ decorators. py", line 192, in write_locked python2. 5/site- packages/ bzrlib/ branch. py", line 2096, in set_last_ revision_ info _run_post_ change_ branch_ tip_hooks( old_revno, old_revid) python2. 5/site- packages/ bzrlib/ branch. py", line 1634, in _run_post_ change_ branch_ tip_hooks python2. 5/site- packages/ bzrlib/ plugins/ dbus/hook. py", line 46, in on_post_ change_ branch_ tip Activity( ).advertise_ branch( params. branch) python2. 5/site- packages/ bzrlib/ plugins/ dbus/activity. py", line 71, in __init__ python2. 5/site- packages/ bzrlib/ plugins/ dbus/activity. py", line 49, in _get_bus python- support/ python2. 5/dbus/ _dbus.py" , line 217, in __new__ mainloop) python- support/ python2. 5/dbus/ _dbus.py" , line 106, in __new__ __new__ (subclass, bus_type, mainloop=mainloop) python- support/ python2. 5/dbus/ bus.py" , line 125, in __new__ for_bus( address_ or_type, mainloop=mainloop) .DBus.Error. Spawn.ExecFaile d: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
exclude=
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
revprops=
File "/usr/lib/
self.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
hook(params)
File "/usr/lib/
activity.
File "/usr/lib/
self.bus = _get_bus(bus)
File "/usr/lib/
return dbus.SessionBus()
File "/var/lib/
mainloop=
File "/var/lib/
bus = BusConnection.
File "/var/lib/
bus = cls._new_
DBusException: org.freedesktop
bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit']
encoding: 'UTF-8', fsenc: 'UT...