Check SSH keys at time of running launchpad login and provide informative error messages if something is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
When attempting to grab a branch on a new machine, I first used the launchpad-login command to specify my username, which appeared to work fine. Next, I tried to fetch a branch, but was greeted with the following error message:
$ bzr branch lp:myproject
Permission denied (publickey).
bzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)
It says publickey sort of in passing, but what I paid most attention to was the suggestions in the error message: "check connectivity and permissions..."
So in order to try and get more details I tried running the command with the suggested arguments:
$ bzr branch lp:myproj -Dhpss
Permission denied (publickey).
bzr: ERROR: 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/
from_location)
File "/usr/lib/
bzrdir = klass.open(
File "/usr/lib/
return BzrDir.
File "/usr/lib/
return format.
File "/usr/lib/
return self._open(
File "/usr/lib/
return remote.
File "/usr/lib/
response = self._client.
File "/usr/lib/
result, protocol = self.call_
File "/usr/lib/
method, args, expect_
File "/usr/lib/
expect_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
AttributeError: 'ProtocolThreeD
bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:myproj', '-Dhpss']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.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.
----------
Again, not very helpful (to me).
After searching around the web some I found someone with a similar error message (https:/
So my request is:
Would it be possible to
1) Check the ssh key at the time the user uses the command "launchpad-login" and display a simple message "e.g. You have not yet added a public ssh key for this machine. etc," and
2) Provide a more informative message when the user tries to do some other action?
Both of these would be very helpful :)
tags: |
added: lp-login removed: launchpad-login |
tags: | added: check-for-breezy |
I think there may be a bug already for 1. It may even already be fixed in a newer release of bzr?
Part 2 is a bug that has definitely been fixed in subsequent releases of bzr.