User could not checkin with bzr on OpenSolaris.

Asked by Tim Miao

Binary package hint: bzr

Steps to reproduce:
1. Download the bzr source code and install it on OpenSolaris 2010.03 release.
2. Login to launchpad with user id: "bzr launchpad-login $user_id"

Results:
Error occurs, user was told follow messages:

bzr: ERROR: Connection error: curl connection error (error setting certificate verify locations:
  CAfile: /etc/curl/curlCA
  CApath: none
)
on https://launchpad.net/~$user_id/%2Bsshkeys

Additional info:
This problem does not happen on Ubuntu.
The bzr version is:
Bazaar (bzr) 2.1.0
  Python interpreter: /usr/bin/python 2.6.4
  Python standard library: /usr/lib/python2.6
  Platform: Solaris-2.11-i86pc-i386-32bit-ELF
  bzrlib: /usr/lib/python2.6/site-packages/bzrlib
  Bazaar configuration: /home/work/.bazaar
  Bazaar log file: /home/work/.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 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.

Bazaar is part of the GNU Project to produce a free operating system.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

Hi Tim,

The message indicates that bzr can't open an SSL connection to Launchpad because it can't verify the SSL certificate. This arguably indicates an installation problem with the Curl https library on your system. On Ubuntu this could be fixed by installing the 'ca-certificates' package; maybe there is something similar for Solaris?

If we can't verify the certificate it's probably hard for bzr to use ssl. However if you just want to use ssh with Launchpad you can work around this by adding something like this into your ~/.bazaar/authentication.conf:

[Launchpad]
host = .launchpad.net
scheme = ssh
user = tim-miao

and in ~/.bazaar/bazaar.conf section "GENERAL"

launchpad_username = tim-miao

Revision history for this message
Martin Pool (mbp) said :
#2

(see above)

Revision history for this message
Tim Miao (tim-miao) said :
#3

Thanks for the quick response, I tried the workaround to modified the configuration files, but it doesn't work for me.

Revision history for this message
Martin Pool (mbp) said :
#4

On 22 March 2010 19:03, Tim Miao <email address hidden> wrote:
> Question #105156 on bzr in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/bzr/+question/105156
>
>    Status: Answered => Open
>
> Tim Miao is still having a problem:
> Thanks for the quick response, I tried the workaround to modified the
> configuration files, but it doesn't work for me.

After you make those changes in the config files, you won't need to do
lp-login - just try to access a Launchpad branch directly.

That may actually still fail when trying to expand the lp: name, but
you should be able to use a fully expanded ssh url:

 bzr branch bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev /tmp/bzr

should work.
--
Martin <http://launchpad.net/~mbp/>

Revision history for this message
Tim Miao (tim-miao) said :
#5

I tried the bzr checkout, but it fails and give me such informations:
bzr: ERROR: Don't know how to handle SSH connections. Please set BZR_SSH environment variable.

I set the BZR_SSH to ssh, but it still reports error:
bzr: ERROR: Unrecognised value for BZR_SSH environment variable: ssh

Revision history for this message
Wouter van Heyst (larstiq) said :
#6

On Mon, Mar 22, 2010 at 09:09:52AM -0000, Tim Miao wrote:
> Question #105156 on bzr in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/bzr/+question/105156
>
> Status: Answered => Open
>
> Tim Miao is still having a problem:
> I tried the bzr checkout, but it fails and give me such informations:
> bzr: ERROR: Don't know how to handle SSH connections. Please set BZR_SSH environment variable.
>
> I set the BZR_SSH to ssh, but it still reports error:
> bzr: ERROR: Unrecognised value for BZR_SSH environment variable: ssh

`bzr help env-variables` mentions BZR_SSH can take one of the options:

    paramiko, openssh, sshcorp, plink

If you have openssh installed (I assume you do), the question is, why
isn't bzr finding it? What does 'which ssh` say?

Wouter van Heyst

Revision history for this message
Tim Miao (tim-miao) said :
#7

Yes, I have the openssh installed, and I have no idea why bzr could not find it. I tried to set 'BZR_SSH' to 'ssh', '/usr/bin/ssh', it always says "bzr: ERROR: Unrecognised value for BZR_SSH environment variable: ssh" or "bzr: ERROR: Unrecognised value for BZR_SSH environment variable: /usr/bin/ssh".

The answer of 'which ssh' is '/usr/bin/ssh'.

Revision history for this message
Gordon Tyler (doxxx) said :
#8

Try setting BZR_SSH to 'openssh'.

Revision history for this message
Tim Miao (tim-miao) said :
#9

Thank you, Gordon, after I set BZR_SSH to 'openssh', it resolves the problem.
This should be a problem when installing bzr and using bzr on an OpenSolaris distribution, because the user needs to build a new copy of openssh client besides the system provided ssh by default. Could anyone please take a look at this issue on OpenSolaris, and try to make bzr working with OpenSolaris/Solaris ssh client smoothly.

Thanks.

Revision history for this message
Martin Pool (mbp) said :
#10

On 23 March 2010 15:18, Tim Miao <email address hidden> wrote:
> Question #105156 on bzr in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/bzr/+question/105156
>
> Tim Miao posted a new comment:
> Thank you, Gordon, after I set BZR_SSH to 'openssh', it resolves the problem.
> This should be a problem when installing bzr and using bzr on an OpenSolaris distribution, because the user needs to build a new copy of openssh client besides the system provided ssh by default. Could anyone please take a look at this issue on OpenSolaris, and try to make bzr working with OpenSolaris/Solaris ssh client smoothly.

Hi, thanks for pointing that out.

In general any SSH client will do, but we need to know the particular
implementation to use, because they all have different command line
syntax and bzr makes up a command line to pass down.

According to http://mediacast.sun.com/users/janp2/media/sunssh-012008-062009_public.pdf
"SunSSH" is a fork of OpenSSH. So we could probably just add a SunSSH
mode that runs the 'ssh' command and uses openssh syntax.

--
Martin <http://launchpad.net/~mbp/>

Revision history for this message
Martin Pool (mbp) said :
#11

bug 544786 asks for specific sunssh support

Revision history for this message
Tim Miao (tim-miao) said :
#12

Thanks for the detailed information, and waiting for the fix to bug 544786.

Can you help with this problem?

Provide an answer of your own, or ask Tim Miao for more information if necessary.

To post a message you must log in.