I was created a bzr+ssh repository but after trying to push, it returned an error like this:
I used Intrepid, with latest updates.
%%%%%%%%%%%%%
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', 'org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.\n')
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 802, in run
use_existing_dir=use_existing_dir)
File "/usr/lib/python2.5/site-packages/bzrlib/push.py", line 172, in _show_push_branch
stop_revision=revision_id)
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1779, in push
_override_hook_source_branch=_override_hook_source_branch)
File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1821, in _push_with_bound_branches
result = self._basic_push(target, overwrite, stop_revision)
File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1844, in _basic_push
graph=graph)
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1667, in update_revisions
self._set_last_revision_descendant(stop_revision, other)
File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1516, in _set_last_revision_descendant
self._translate_error(err, other_branch=other_branch)
File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1318, in _translate_error
self.repository._translate_error(err, branch=self, **context)
File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 365, in _translate_error
self.bzrdir._translate_error(err, repository=self, **context)
File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 96, in _translate_error
_translate_error(err, bzrdir=self, **context)
File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1514, in _set_last_revision_descendant
int(allow_diverged), int(allow_overwrite_descendant))
File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 111, in call
result, protocol = self.call_expecting_body(method, *args)
File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 124, in call_expecting_body
method, args, expect_response_body=True)
File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 60, in _call_and_read_response
expect_body=expect_response_body),
File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 265, in read_response_tuple
_translate_error(self.args)
File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 316, in _translate_error
raise errors.ErrorFromSmartServer(error_tuple)
ErrorFromSmartServer: Error received from smart server: ('error', 'org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.\n')
bzr 1.6 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'push']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.96.0dev1]
launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
qbzr /usr/lib/python2.5/site-packages/bzrlib/plugins/qbzr [0.9.2]
stats /usr/lib/python2.5/site-packages/bzrlib/plugins/stats [unknown]
upload /usr/lib/python2.5/site-packages/bzrlib/plugins/upload [0.1.0]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
%%%%%%%%%%
Output of bzr version
Bazaar (bzr) 1.6
Python interpreter: /usr/bin/python 2.5.2
Python standard library: /usr/lib/python2.5
bzrlib: /usr/lib/python2.5/site-packages/bzrlib
Bazaar configuration: /home/xxxxx/.bazaar
Bazaar log file: /home/xxxxx/.bzr.log
Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
(You shouldn't get a traceback; that was bzr bug 263527 which will be fixed in the 1.7 release.)
The problem here is on the server, almost certainly a bug in the bzr-dbus plugin. So I'm reassigning this bug to bzr-dbus.
Can you update this bug with the output of "bzr --version" and "bzr plugins"?
Also, can you look in the ~/.bzr.log on the server, and find the traceback for this error and attach it to this bug?