User could not checkin with bzr on OpenSolaris.
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:/
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-
bzrlib: /usr/lib/
Bazaar configuration: /home/work/.bazaar
Bazaar log file: /home/work/.bzr.log
Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://
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:
- 2010-03-23
- Last reply:
- 2010-03-23
This question was originally filed as bug #543942.
| 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/
[Launchpad]
host = .launchpad.net
scheme = ssh
user = tim-miao
and in ~/.bazaar/
launchpad_username = tim-miao
| Martin Pool (mbp) said : | #2 |
(see above)
| 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.
| 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:/
>
> 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:
should work.
--
Martin <http://
| 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
| 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:/
>
> 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
| 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'.
| Gordon Tyler (doxxx) said : | #8 |
Try setting BZR_SSH to 'openssh'.
| 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.
| 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:/
>
> 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://
"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://
| Martin Pool (mbp) said : | #11 |
bug 544786 asks for specific sunssh support
| 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.
