Commit fails for user other than the user owning X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr-dbus |
Confirmed
|
Undecided
|
Unassigned | ||
bzr (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
From a gnome-terminal logged in as russel I did:
sudo su - bazaarbook
in order to have a login as bazaarbook
I then went through a Bazaar branch start sequence:
|> bzr init MyNewWebsite
|> bzr status
bzr: ERROR: Not a branch: "/home/
|> cd MyNewWebsite/
|> bzr status
|> emacs index.html &
[1] 20581
|> fg
emacs index.html
|> bzr status
unknown:
index.html
|> bzr add index.html
added index.html
|> bzr status
added:
index.html
|> bzr commit -m "The Epoch." index.html
Committing to: /home/users/
added index.html
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/
author=author)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
revprops=
File "/usr/lib/
self.
File "/usr/lib/
return 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.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'The Epoch.', 'index.html']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
builddeb /usr/lib/
bzrtools /usr/lib/
dbus /usr/lib/
email /usr/lib/
gtk /usr/lib/
launchpad /usr/lib/
pqm /usr/lib/
rebase /usr/lib/
svn /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.
|> bzr status
working tree is out of date, run 'bzr update'
added:
index.html
|> echo $DISPLAY
|>
Changed in bzr: | |
status: | New → Invalid |
I experienced the same problem when I used bzr on remote server (no X) on Debian sid.
The same issue was brought up recently on http:// irclogs. ubuntu. com/2008/ 09/02/% 23ubuntu- devel.txt . The participants there found that the regression is caused by a change in dbus.
The workaround, as suggested in the IRC log, is to uninstall bzr-dbus for the time being.