Closed GoogleCodeExporter closed 8 years ago
I have discovered a work-around - I can call ssh directly and access the server
with the following command:
ssh -i ~/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o
CheckHostIP=no -o StrictHostKeyChecking=no rolands@130.211.127.13
Something in the gcloud update did something to bugger up my SDK.
Original comment by rol...@skywatch.co
on 26 Nov 2015 at 5:47
Thanks for reporting the issue.
Indeed you can use --dry-run flag to get equivalent ssh command:
gcloud compute --project "skywatch-app" ssh --zone "us-central1-f"
"adcp-master" --dry-run
Is the issue still reproducable? Can you send me (or attach here to this bug)
the content of your gcloud installation:
ls -lLR /Users/rolands/google-cloud-sdk > broken-gcloud-listing.txt
This will help to diagnose if indeed your installation is in broken state.
You can try also reinstalling, either by doing:
gcloud components reinstall
or deleting current installation directory and running
curl https://sdk.cloud.google.com | bash
Original comment by che...@google.com
on 26 Nov 2015 at 6:28
I tried re-installing the SDK using the curl command you specified above but
the problem still exists. I also ran the gcloud command with the --dry-run
option and I still have the same problem:
rolands-tor-m:.ssh rolands$ gcloud compute --project "skywatch-app" ssh --zone
"us-central1-f" "adcp-master" --dry-run
ERROR: gcloud crashed (SSLHandshakeError): [Errno 1] _ssl.c:504:
error:1006706B:elliptic curve routines:ec_GFp_simple_oct2point:point is not on
curve
broken-gcloud-listing.txt, generated using the command specified above, is
attached.
Thanks for your help.
Original comment by rol...@skywatch.co
on 26 Nov 2015 at 6:37
Attachments:
I could not find immediately anything wrong with your installation.
Can you reinstall to previous version via
export CLOUDSDK_COMPONENT_MANAGER_FIXED_SDK_VERSION=0.9.87
curl https://sdk.cloud.google.com | bash
and try again. If that does not work, and you remember which version you used
before the update, it would help if you can try that as well.
Original comment by che...@google.com
on 26 Nov 2015 at 9:38
Thank you for the update.
I had the same error after installing 0.9.87, but after installing 0.9.86
everything started working again.
I would appreciate you keeping this ticket open to keep me apprised of a fix
for this bug. Something in 0.9.87 update caused my gcloud compute commands to
start failing and it should be fixed. In the meantime I won't be running gcloud
update for awhile.
Your support is much appreciated!
Original comment by rol...@skywatch.co
on 26 Nov 2015 at 9:52
This looks like an issue with your Python or OpenSSL installation; the part of
the code that's failing is *not* Cloud SDK code; it's Python/OpenSSL code
(there may have been a Cloud SDK change that started to exercise this code
path, however).
https://trac.macports.org/ticket/38015 seems to be a similar issue.
Can you check which OpenSSL version you have? Running `openssl version` ought
to do it.
Original comment by z...@google.com
on 27 Nov 2015 at 8:30
Thank you for the update.
My OpenSSL version is:
OpenSSL 1.0.1c 10 May 2012
I'm running on a Mac, OSX Yosemite Version 10.10.5 (14F27)
Thanks,
Original comment by rol...@skywatch.co
on 29 Nov 2015 at 3:34
Hm. Can you run `openssl s_client -connect accounts.google.com:443`?
If it succeeds, it'll leave you with a lot of information about having
successfully established a connection. If not, it'll print an error and exit.
Original comment by z...@google.com
on 29 Nov 2015 at 4:20
Here is the result of the command. I hope it helps. Thanks again for your help.
rolands-tor-m:~ rolands$ openssl s_client -connect accounts.google.com:443
CONNECTED(00000003)
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify error:num=20:unable to get local issuer certificate
verify return:0
140735272813392:error:1006706B:elliptic curve
routines:ec_GFp_simple_oct2point:point is not on curve:ecp_oct.c:421:
140735272813392:error:1408D132:SSL routines:SSL3_GET_KEY_EXCHANGE:bad
ecpoint:s3_clnt.c:1677:
---
Certificate chain
0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=accounts.google.com
i:/C=US/O=Google Inc/CN=Google Internet Authority G2
1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2
i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
2 s:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIEoTCCA4mgAwIBAgIIPNa6vZaPggUwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UE
BhMCVVMxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEd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gIYYfaHR0cDovL3BraS5nb29nbGUuY29tL0dJQUcyLmNy
bDANBgkqhkiG9w0BAQsFAAOCAQEAZYW/zuG0TrPI1L1qLVRCzEhY2tTL5URq7PoZ
r3bfv5oKrZCy5yQf2pgwbJ0FXWV0Adv28VbIUSh7nNTMvBs/A7fplIoq5/7MkjKr
32nGBpDWP9EVBR8tXM9VfKqFqeTnQrDUm/ifHAmyv+kf+sQKBsp9V4ngfA3cNV7o
u3fRx9QZjB1LW3zZ3lUm9Q8DVq3WAkzq10AcSVC6Nkw7kN2HbWRPmpV3V0zBxIpt
ILE5gqhLuRn/XvV/LZMjypTwsGwPmjbxku4rQkwjaLymx4rEHzCENCOUk0wMGrKZ
YiNMaLMZAxePr2oedvwCANgkq16eteW7itVOskkQMVuZe9NRBA==
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=accounts.google.com
issuer=/C=US/O=Google Inc/CN=Google Internet Authority G2
---
No client certificate CA names sent
---
SSL handshake has read 3521 bytes and written 7 bytes
---
New, (NONE), Cipher is (NONE)
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1448913460
Timeout : 300 (sec)
Verify return code: 20 (unable to get local issuer certificate)
---
Original comment by rol...@skywatch.co
on 30 Nov 2015 at 7:59
Ahh, yes. There's something wrong with your OpenSSL installation. See the lines:
140735272813392:error:1006706B:elliptic curve routines:ec_GFp_simple_oct2point:point is not on curve:ecp_oct.c:421:
140735272813392:error:1408D132:SSL routines:SSL3_GET_KEY_EXCHANGE:bad ecpoint:s3_clnt.c:1677:
There's nothing we can do on our end about this. If you fix your SSL version,
everything should work.
Thanks for reporting!
Original comment by z...@google.com
on 30 Nov 2015 at 8:02
Original issue reported on code.google.com by
rol...@skywatch.co
on 26 Nov 2015 at 3:20