modxevil / google-cloud-sdk

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

Cannot run `gcloud docker -a` #497

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

gcloud docker -a

What is the expected output? What do you see instead?

I expect to get a short-lived access token.

`Short-lived access for ['gcr.io', 'us.gcr.io', 'eu.gcr.io', 'asia.gcr.io', 
'b.gcr.io', 'bucket.gcr.io', 'appengine.gcr.io'] configured.`

What is the output of 'gcloud info'?

Google Cloud SDK [0.9.80]

Platform: [Linux, x86_64]
Python Version: [2.7.6 (default, Jun 22 2015, 17:58:13)  [GCC 4.8.2]]
Site Packages: [Disabled]

Installation Root: [/usr/lib/google-cloud-sdk]
Installed Components:
  core: [2015.09.25]
  core-nix: [2015.09.25]
  gcloud: [2015.09.25]
  gsutil-nix: [4.15]
  gsutil: [4.15]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: 
[:/opt/tivoli/tsm/client/ba/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/pup
petlabs/bin]
Cloud SDK on PATH: [False]

WARNING: There are old versions of the Google Cloud Platform tools on your 
system PATH.
  /usr/bin/git-credential-gcloud.sh
  /usr/bin/bq
  /usr/bin/gcloud
  /usr/bin/gsutil

Installation Properties: [/usr/lib/google-cloud-sdk/properties]
User Config Directory: [/home/dxia/.config/gcloud]
User Properties: [/home/dxia/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [614976407254-compute@developer.gserviceaccount.com]
Project: [steel-ridge-91615]

Current Properties:
  [core]
    project: [steel-ridge-91615]
    account: [614976407254-compute@developer.gserviceaccount.com]

Logs Directory: [/home/dxia/.config/gcloud/logs]
Last Log File: [/home/dxia/.config/gcloud/logs/2016.01.26/20.47.03.383677.log]

Please provide any additional information below.

cat /home/dxia/.config/gcloud/logs/2016.01.26/20.40.42.074755.log

2016-01-26 20:40:42,122 DEBUG    root            Loaded Command Group: 
['gcloud', 'docker']
2016-01-26 20:40:42,123 DEBUG    root            Running gcloud.docker with 
Namespace(__calliope_internal_deepest_parser=ArgumentParser(prog='gcloud.docker'
, usage=None, description='Provides the docker CLI access to the Google 
Container Registry.', version=None, formatter_class=<class 
'argparse.HelpFormatter'>, conflict_handler='error', add_help=False), 
account=None, authorize_only=True, cmd_func=<bound method Command.Run of 
<googlecloudsdk.calliope.backend.Command object at 0x7f43a0862c50>>, 
command_path=['gcloud', 'docker'], configuration=None, docker_host=None, 
document=None, extra_args=[], format=None, h=None, help=None, 
http_timeout=None, log_http=None, project=None, quiet=None, server=['gcr.io', 
'us.gcr.io', 'eu.gcr.io', 'asia.gcr.io', 'b.gcr.io', 'bucket.gcr.io', 
'appengine.gcr.io'], trace_email=None, trace_log=False, trace_token=None, 
user_output_enabled=None, verbosity=None, version=None).
2016-01-26 20:40:42,248 DEBUG    ___FILE_ONLY___ ''
Traceback (most recent call last):
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 590, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1222, in Run
    resources = command_instance.Run(args)
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/gcloud/sdktools/root/docker.py", line 100, in Run
    docker.UpdateDockerCredentials(server)
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/docker/docker.py", line 129, in UpdateDockerCredentials
    cred = store.Load()
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/store.py", line 238, in Load
    return AcquireFromGCE(account)
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/store.py", line 437, in AcquireFromGCE
    Refresh(creds)
  File "/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/store.py", line 267, in Refresh
    creds.refresh(http or _Http())
  File "/usr/lib/google-cloud-sdk/./lib/oauth2client/client.py", line 597, in refresh
    self._refresh(http.request)
  File "/usr/lib/google-cloud-sdk/./lib/oauth2client/gce.py", line 83, in _refresh
    response, content = http_request(uri)
  File "/usr/lib/google-cloud-sdk/./lib/httplib2/__init__.py", line 1608, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/google-cloud-sdk/./lib/httplib2/__init__.py", line 1350, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/google-cloud-sdk/./lib/httplib2/__init__.py", line 1306, in _conn_request
    response = conn.getresponse()
  File "/usr/lib/python2.7/httplib.py", line 1051, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 415, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 379, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''
2016-01-26 20:40:42,324 INFO     ___FILE_ONLY___ Traceback (most recent call 
last):

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 231, in 
main

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___     _cli.Execute()

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 590, in 
Execute

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___     result = 
args.cmd_func(cli=self, args=args)

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 
1222, in Run

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___     resources = 
command_instance.Run(args)

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/gcloud/sdktools/root/docker.py",
 line 100, in Run

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___     
docker.UpdateDockerCredentials(server)

2016-01-26 20:40:42,325 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/docker/docker.py", line 
129, in UpdateDockerCredentials

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___     cred = store.Load()

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/store.py", 
line 238, in Load

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___     return 
AcquireFromGCE(account)

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/store.py", 
line 437, in AcquireFromGCE

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___     Refresh(creds)

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/store.py", 
line 267, in Refresh

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___     creds.refresh(http or 
_Http())

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/oauth2client/client.py", line 597, in refresh

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___     self._refresh(http.request)

2016-01-26 20:40:42,326 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/oauth2client/gce.py", line 83, in _refresh

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___     response, content = 
http_request(uri)

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/httplib2/__init__.py", line 1608, in request

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___     (response, content) = 
self._request(conn, authority, uri, request_uri, method, body, headers, 
redirections, cachekey)

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/httplib2/__init__.py", line 1350, in _request

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___     (response, content) = 
self._conn_request(conn, request_uri, method, body, headers)

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___   File 
"/usr/lib/google-cloud-sdk/./lib/httplib2/__init__.py", line 1306, in 
_conn_request

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___     response = 
conn.getresponse()

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___   File 
"/usr/lib/python2.7/httplib.py", line 1051, in getresponse

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___     response.begin()

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___   File 
"/usr/lib/python2.7/httplib.py", line 415, in begin

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___     version, status, reason = 
self._read_status()

2016-01-26 20:40:42,327 INFO     ___FILE_ONLY___   File 
"/usr/lib/python2.7/httplib.py", line 379, in _read_status

2016-01-26 20:40:42,328 INFO     ___FILE_ONLY___     raise BadStatusLine(line)

2016-01-26 20:40:42,328 INFO     ___FILE_ONLY___ BadStatusLine: ''

2016-01-26 20:40:42,328 INFO     ___FILE_ONLY___
If you would like to report this issue, please run the following command:

2016-01-26 20:40:42,328 INFO     ___FILE_ONLY___   gcloud feedback

Original issue reported on code.google.com by d...@spotify.com on 26 Jan 2016 at 8:49