墙内用不了?
$ gcloud auth login
Traceback (most recent call last):
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/gcloud/
gcloud.py", line 101, in <module>
main()
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/gcloud/
gcloud.py", line 98, in main
_loader.Execute()
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/calliope/
__init__.py", line 1440, in Execute
post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/calliope/
__init__.py", line 1063, in _Execute
pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/calliope/
__init__.py", line 795, in Run
result =
command_instance.Run(args)
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/calliope/
exceptions.py", line 84, in TryFunc
return func(*args, **kwargs)
File "/usr/home/pubby/google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/
login.py", line 53, in Run
launch_browser = args.launch_browser and not c_gce.Metadata().connected
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/core/credentials/
gce.py", line 179, in Metadata
_metadata_lock.lock(function=_CreateMetadata, argument=None)
File "/usr/local/lib/python2.7/
mutex.py", line 44, in lock
function(argument)
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/core/credentials/
gce.py", line 178, in _CreateMetadata
_metadata = _GCEMetadata()
File "/usr/home/pubby/google-cloud-sdk/bin/../lib/google/cloud/sdk/core/credentials/
gce.py", line 66, in __init__
numeric_project_id = urllib2.urlopen(req, timeout=1).read()
File "/usr/local/lib/python2.7/
urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/local/lib/python2.7/
urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/local/lib/python2.7/
urllib2.py", line 422, in _open
'_open', req)
File "/usr/local/lib/python2.7/
urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/
urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/local/lib/python2.7/
urllib2.py", line 1187, in do_open
r = h.getresponse(buffering=True)
File "/usr/local/lib/python2.7/
httplib.py", line 1045, in getresponse
response.begin()
File "/usr/local/lib/python2.7/
httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python2.7/
httplib.py", line 373, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''