gana2188 / google-cloud-sdk

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

cacerts.txt error in 2015.04.14 #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
$ gcloud preview app deploy dir

  ...
  File "/home/user/appengine/google-cloud-sdk/./lib/httplib2/__init__.py", line 80, in _ssl_wrap_socket
    cert_reqs=cert_reqs, ca_certs=ca_certs)
  File "/usr/lib/python2.7/ssl.py", line 912, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 521, in __init__
    self._context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory

I added a print statement to figure out which file it tries to read.

/home/user/appengine/google-cloud-sdk/lib/googlecloudsdk/appengine/lib/cacerts/c
acerts.txt

$ ls /home/user/appengine/google-cloud-sdk/lib/googlecloudsdk/appengine/lib/
appcfg                 appengine_client.py   external   
generate_source_context.py  __init__.pyc  yaml_parsing.py
appengine_adapter.py   appengine_client.pyc  flags.py   images                  
    util.py       yaml_parsing.pyc
appengine_adapter.pyc  docker                flags.pyc  __init__.py             
    util.pyc

As you can tell, no cacerts directory.

Original issue reported on code.google.com by pdknsk on 15 Apr 2015 at 7:37

GoogleCodeExporter commented 8 years ago
Thanks for the report.  Can you please attach the output of `gcloud info` 
including the version of Python you are running?

Original comment by markp...@google.com on 15 Apr 2015 at 8:54