bumplzz69 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Failed to fetch component listing from server #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when I run "curl https://sdk.cloud.google.com | bash" in terminal I get this 
error every time for about a month or so:

"ERROR: (gcloud.components.update) Failed to fetch component listing from 
server. Check your network settings and try again."

The download and unpack steps are running fine. Error shows up after 
"google-cloud-sdk/install.sh" starts.
Haven't noticed the exact moment when it first occurred though (install script 
was working fine month ago)

Some system info:

> uname -a
Darwin rstets-work 14.4.0 Darwin Kernel Version 14.4.0: Sun Apr 19 20:30:19 PDT 
2015; root:xnu-2782.30.2~2/RELEASE_X86_64 x86_64

> python --version
Python 2.7.9

> brew info python
python: stable 2.7.9 (bottled), HEAD
https://www.python.org
/usr/local/Cellar/python/2.7.9 (6137 files, 98M) *
  Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python.rb

Original issue reported on code.google.com by ro...@yippie.nl on 13 May 2015 at 8:15

GoogleCodeExporter commented 9 years ago
This is happening for more than just install. For example:
> + gcloud preview managed-instance-groups --zone us-central1-c...
> You do not currently have this command group installed.  Using it 
requires the installation of components: [preview]
> ERROR: (gcloud) Failed to fetch component listing from server. Check your 
network settings and try again.

Original comment by ja...@marttinen.ca on 25 May 2015 at 11:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Posted a hack solution on StackOverflow: 
http://stackoverflow.com/a/30448701/2066437

Original comment by ja...@marttinen.ca on 26 May 2015 at 2:56

GoogleCodeExporter commented 9 years ago
And then I get the error like this: "module object has no attribute 
''SSLContext".       

it's related with the python version but if I reinstall python with newer 
version installation of google cloud is still not processed properly.

Original comment by tadas.da...@gmail.com on 26 May 2015 at 7:40

GoogleCodeExporter commented 9 years ago
I believe this is an issue with Python and OpenSSL installed using homebrew on 
Mac. I was able to resolve the problem by uninstalling Python, 
installing/updating OpenSSL, and then installing Python with this new version 
of OpenSSL:
brew update
brew uninstall python
brew upgrade openssl
brew install python --with-brewed-openssl

Original comment by ja...@marttinen.ca on 27 May 2015 at 3:39