Google cloud sdk installation failed.

9,265 views
Skip to first unread message

Stijn Van Antwerpen

unread,
Aug 10, 2015, 3:26:14 PM8/10/15
to google-cloud-sdk
After downloading and installing the GoogleCloudSDKInstaller (Windows) I have no 'Bin' folder.
Trying to run the install_google_cloud_sdk.py scrip myself result in following output:

C:\Program Files\Google\Cloud SDK\google-cloud-sdk>install_google_cloud_sdk.py --install-directory c:\GoogleCloudSDK
Traceback (most recent call last):
 
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\install_google_cloud_sdk.py", line 98, in <module>
    main
()
 
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\install_google_cloud_sdk.py", line 82, in main
    archive_path
= DownloadArchive(t, url)
 
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\install_google_cloud_sdk.py", line 62, in DownloadArchive
    req
= urlopen(url)
 
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
   
return opener.open(url, data, timeout)
 
File "C:\Python27\lib\urllib2.py", line 431, in open
    response
= self._open(req, data)
 
File "C:\Python27\lib\urllib2.py", line 449, in _open
   
'_open', req)
 
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
    result
= func(*args)
 
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
    context
=self._context)
 
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
   
raise URLError(err)
urllib2
.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

I 'm not behind a proxy.

Please advice.

Zachary Newman

unread,
Aug 10, 2015, 3:48:29 PM8/10/15
to Stijn Van Antwerpen, google-cloud-sdk

Is there anything strange or unusual about your Python installation, or installed certificates?

What happens if you run python.exe -c "from urllib2 import urlopen; urlopen('https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz')"? Can you load that URL (i.e. https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz) in a browser? How about using cUrl, wget, or any equivalent?


--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sdk/1066e93d-361d-4b4b-8f4a-86e950c31b52%40googlegroups.com.

Stijn Van Antwerpen

unread,
Aug 10, 2015, 4:03:36 PM8/10/15
to google-cloud-sdk, stijnvan...@gmail.com
python.exe -c "from urllib2 give the same output.

Downloading the file with a  browser is successful. 

Op maandag 10 augustus 2015 21:48:29 UTC+2 schreef Zachary Newman:

Zachary Newman

unread,
Aug 10, 2015, 4:07:22 PM8/10/15
to Stijn Van Antwerpen, google-cloud-sdk
OK, so it looks like there's something wrong with the way your Python installation handles SSL. Possibly related to this: http://bugs.python.org/issue23476

Can you upgrade to 2.7.10 and see if that fixes your problem?

Stijn Van Antwerpen

unread,
Aug 10, 2015, 4:09:24 PM8/10/15
to Zachary Newman, google-cloud-sdk
I started with a clean installation of python 2.7.10. This also is the only one installed.

Met vriendelijk groet,

Stijn V. Antwerpen
Mechelsesteenweg 72, 2830 Willebroek

Zachary Newman

unread,
Aug 10, 2015, 4:27:09 PM8/10/15
to Stijn Van Antwerpen, google-cloud-sdk
Apologies; for some reason, I thought you had mentioned that you were using Python 2.7.9, but I see now that you are not.

Regardless, this an issue with some combination of Python, OpenSSL, and/or the particular certificate roots installed on your machine and not the Cloud SDK, as the certificate Google is using at that URL is valid. As such, we aren't going to be of much help. Try looking down one of these avenues:

Stijn Van Antwerpen

unread,
Aug 10, 2015, 4:36:04 PM8/10/15
to google-cloud-sdk, stijnvan...@gmail.com
No problem. But still having the problem, any clue on how to fix it? I might have installed some openSsl tools in the past. But none that I currently need. Is there a way to "clean" the certificates used by python?

Op maandag 10 augustus 2015 22:27:09 UTC+2 schreef Zachary Newman:

Zachary Newman

unread,
Aug 10, 2015, 5:17:03 PM8/10/15
to Stijn Van Antwerpen, google-cloud-sdk
Sorry, I (and the Cloud SDK team) don't know exactly how Python configures its SSL certificate store. You may have more luck on StackOverflow or ServerFault.

Stijn Van Antwerpen

unread,
Aug 11, 2015, 4:29:22 AM8/11/15
to Zachary Newman, google-cloud-sdk
Oké thx! I will give it a try on other fora. I have now a direction to search in.(I 'm also new to python :-) )

Ipsita Mohapatra

unread,
Sep 14, 2015, 10:30:34 AM9/14/15
to google-cloud-sdk
I faced the same issue, any fix?

Zachary Newman

unread,
Sep 14, 2015, 10:35:54 AM9/14/15
to Ipsita Mohapatra, google-cloud-sdk
We'll see if Stijn gets back to us. Unfortunately, the Cloud SDK doesn't know all of the details here, as it's a Python configuration issue. Please try on StackOverflow or ServerFault.

Sorry that we can't be of more help.

--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.

Ipsita Mohapatra

unread,
Sep 14, 2015, 10:52:07 AM9/14/15
to google-cloud-sdk, ipsitamo...@gmail.com
Unfortunately I get the error (shown in the attached picture) but when I try to manually install Python 2.7.10 (and also put C:\Python27\python.exe in my System environment variable "Path") and then come back to install Google Cloud SDK, I get the same error still. :( 
Capture.PNG

Zachary Newman

unread,
Sep 14, 2015, 10:54:09 AM9/14/15
to Ipsita Mohapatra, google-cloud-sdk

Your path should contain C:\Python27, not C:\Python27\python.exe.

Another option is to set the system environment variable CLOUDSDK_PYTHON to C:\Python27\python.exe (not C:\Python27 :) )


Ipsita Mohapatra

unread,
Sep 14, 2015, 10:57:45 AM9/14/15
to google-cloud-sdk, ipsitamo...@gmail.com
I fixed it according to what you prescribed, but the error persists.

Zachary Newman

unread,
Sep 14, 2015, 11:02:45 AM9/14/15
to Ipsita Mohapatra

(list->BCC, will CC back in if our solution to this issue is general)

Can you post the output of the following commands, run in a command prompt?

echo %CLOUDSDK_PYTHON%
echo %PATH%
python.exe --version
%CLOUDSDK_PYTHON% --version

Please sanitize for any personal information.


Stijn Van Antwerpen

unread,
Sep 14, 2015, 2:16:43 PM9/14/15
to google-cloud-sdk
I was not able to get is working. I managed to do what I wanted to do without the cloud sdk.

Indeed it seems to be the problem with the authentication chain. There is a lot to find about a X509_V_FLAG_TRUSTED_FIRST that can be used to fix te problem. But I think this should be used from within the installer. 

Op maandag 10 augustus 2015 21:26:14 UTC+2 schreef Stijn Van Antwerpen:

Zachary Newman

unread,
Sep 14, 2015, 5:39:58 PM9/14/15
to Stijn Van Antwerpen, google-cloud-sdk

This is a problem from the interaction between the OS and Python, and therefore largely out of the control of the installer. We’re looking into a couple of ways to smooth over this and reduce false positives, but if your Python installation is rejecting certificates from Google, that’s a security concern that we probably shouldn’t be ignoring.

Sorry to hear that you never got it working. In the future, you can always visit the Cloud Console, which has an “Activate Google Cloud Shell” button in the upper-right (for now; it may be moved). This will open a browser-based terminal to a shell running on a Google Cloud VM, with gcloud installed.


--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.

Evgeniy Jonson

unread,
Sep 21, 2015, 11:27:01 AM9/21/15
to google-cloud-sdk
I solve that problem when install 2.7.0 version Python

Valentin Stanciu

unread,
Sep 21, 2015, 11:34:39 AM9/21/15
to Evgeniy Jonson, google-cloud-sdk
I wouldn't use an outdated python version. 2.7.10 has A LOT of bug fixes and security fixes that 2.7.0 doesn't have.
If the SSL changes in 2.7.9 are causing problems, at least downgrade to 2.7.8 instead of all the way to 2.7.0.

Valentin

--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.

Evgeniy Jonson

unread,
Sep 21, 2015, 12:28:05 PM9/21/15
to google-cloud-sdk, saro...@gmail.com
- install 2.7.0 or 2.7.8
- install gcloud SDK
- install 2.7.10
Profit ;)
Reply all
Reply to author
Forward
0 new messages