xevilads / google-cloud-sdk

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

Unable to authenticate with gcloud - possibly due to being behind a proxy #244

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command  gcloud auth login . What steps will reproduce the 
problem? What is the expected output? What do you see instead? Please provide 
any additional information below. Traceback  most recent call last :  File  
googlecloudsdk/calliope/cli.py , line 580, in Execute  result   args.cmd_func 
cli self, args args   File  googlecloudsdk/calliope/backend.py , line 1129, in 
Run  result   command_instance.Run args   File  
googlecloudsdk/calliope/exceptions.py , line 86, in TryFunc  return func *args, 
**kwargs   File  googlecloudsdk/gcloud/sdktools/auth/login.py , line 95, in Run 
 creds   self.DoWebFlow args.launch_browser   File  
googlecloudsdk/gcloud/sdktools/auth/login.py , line 153, in DoWebFlow  return 
c_store.AcquireFromWebFlow launch_browser launch_browser   File  
googlecloudsdk/core/credentials/store.py , line 384, in AcquireFromWebFlow  
http _Http     File  googlecloudsdk/core/credentials/flow.py , line 156, in Run 
 credential   flow.step2_exchange code, http http   File  oauth2client/util.py 
, line 137, in positional_wrapper  return wrapped *args, **kwargs   File  
oauth2client/client.py , line 1993, in step2_exchange  headers headers   File  
httplib2/__init__.py , line 1608, in request   response, content    
self._request conn, authority, uri, request_uri, method, body, headers, 
redirections, cachekey   File  httplib2/__init__.py , line 1350, in _request   
response, content    self._conn_request conn, request_uri, method, body, 
headers   File  httplib2/__init__.py , line 1306, in _conn_request  response   
conn.getresponse    output truncated 

Original issue reported on code.google.com by bdenn...@gmail.com on 8 Sep 2015 at 2:27

GoogleCodeExporter commented 8 years ago
Do you have http_proxy/https_proxy environment variables set?

Can you describe what kind of proxy you are behind?

Original comment by che...@google.com on 8 Sep 2015 at 12:58

GoogleCodeExporter commented 8 years ago
Hi,

Yes, I'm behind a squid proxy and can see that's caused problems for people in 
the past. I have set both environment variables but can see with tcpdump that 
it's still trying to connect out directly.

$ http_proxy="http://squid.int.example.com:8081" 
https_proxy="http://squid.int.example.com:8081" gcloud auth login

I also tried removing the "http://" from the start of the proxy string but 
without any luck. Will try again later this morning to see if I can coax it 
through the proxy.

-
Bowen

Original comment by bdenn...@gmail.com on 8 Sep 2015 at 10:03