gana2188 / google-cloud-sdk

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

Unable to run "gcloud auth login" on newly installed machine #62

Open GoogleCodeExporter opened 9 years ago

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

Run gcloud auth login in google cloud sdk shell

What is the expected output? What do you see instead?
we should be able to authenticate with google cloud, but i see below error:

  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\frontend.py", line 274,
in _Execute
    pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\backend.py", line 882, i
n Run
    result = command_instance.Run(args)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\calliope\exceptions.py", line 78,
 in TryFunc
    return func(*args, **kwargs)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud\sdktools\auth\login.py", line 82, i
n Run
    creds = self.DoWebFlow(args.launch_browser)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud\sdktools\auth\login.py", line 125,
in DoWebFlow
    return c_store.AcquireFromWebFlow(launch_browser=launch_browser)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\core\credentials\store.py", line
339, in AcquireFromWebFlow
    http=_Http())
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\core\credentials\flow.py", line 1
56, in Run
    credential = flow.step2_exchange(code, http=http)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\oauth2client\util.py", line 132, in positional_w
rapper
    return wrapped(*args, **kwargs)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\oauth2client\client.py", line 1283, in step2_exc
hange
    headers=headers)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\httplib2\__init__.py", line 1608, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey
)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\httplib2\__init__.py", line 1350, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\httplib2\__init__.py", line 1306, in _conn_reque
st
    response = conn.getresponse()
  File "C:\python27_x64\lib\httplib.py", line 1033, in getresponse
    raise ResponseNotReady()
httplib.ResponseNotReady

C:\Program Files\Google\Cloud SDK>

What is the output of 'gcloud info'?

  gae-python: [2014.05.06]
  core-win: [2014.06.03]
  windows-ssh-tools: [2014.07.15]
  app-engine-python-extras: [1.9.6]
  gae-python-launcher-win: [1.9.7]
  gsutil: [4.4]
  bq: [2.0.18]
  dns: [2014.08.07]
  sql: [2014.08.07]
  gcutil: [1.16.4]
  bq-win: [2.0.17]
System PATH: [C:\Program Files\Google\Cloud 
SDK\google-cloud-sdk\bin\..\bin\sdk;C:\python27_x64\;C:\Program Files\Google
\Cloud 
SDK\google-cloud-sdk\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem
;C:\windows\System32\WindowsPower
Shell\v1.0\;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program 
Files\Microsoft SQL Server\110\Tools\Binn\
;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;]
Cloud SDK on PATH: [True]

Installation Properties: [C:\Program Files\Google\Cloud 
SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\jezh\AppData\Roaming\gcloud]
User Properties: [C:\Users\jezh\AppData\Roaming\gcloud\properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [thorvpn888@gmail.com]
Project: [undeadthor2014]

Current Properties:
  [core]
    project: [undeadthor2014]
    account: [thorvpn888@gmail.com]
    disable_usage_reporting: [True]
    user_output_enabled: [True]

Logs Directory: [C:\Users\jezh\AppData\Roaming\gcloud\logs]
Last Log File: 
[C:\Users\jezh\AppData\Roaming\gcloud\logs\2014.08.12\21.53.43.538000.log]

C:\Program Files\Google\Cloud SDK>

Please provide any additional information below.

Newly installed google cloud sdk on surface pro 3. windows 8.1. 

Tried to reinstall/reboot, didn't work

Original issue reported on code.google.com by thorvpn...@gmail.com on 12 Aug 2014 at 1:59

GoogleCodeExporter commented 9 years ago
Are you behind any sort of proxy server?

Original comment by rdayal@google.com on 27 Aug 2014 at 1:36

GoogleCodeExporter commented 9 years ago

Original comment by rdayal@google.com on 27 Aug 2014 at 1:36

GoogleCodeExporter commented 9 years ago
Hi, I've the same problem and yes I'm behind a proxy

Original comment by helmar.c...@gmail.com on 23 Dec 2014 at 1:14

GoogleCodeExporter commented 9 years ago
We have support for proxies via the http_proxy and https_proxy environment 
variables.  If you set those to the correct settings, you should be able to 
authenticate.  We do not currently support authenticated proxies, but we are 
working on that.

Original comment by markp...@google.com on 29 Dec 2014 at 5:07