2
不能部署託管虛擬機的AppEngine:不能部署託管虛擬機:SSL CA證書錯誤
$ gcloud preview app --project=myproj deploy .
12:17 PM Host: appengine.google.com
Traceback (most recent call last):
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 209, in <module>
main()
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 205, in main
_cli.Execute()
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 621, in Execute
result = args.cmd_func(cli=self, args=args)
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1088, in Run
result = command_instance.Run(args)
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/calliope/exceptions.py", line 86, in TryFunc
return func(*args, **kwargs)
File "/Users/anentropic/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/deploy.py", line 114, in Run
push.PrepareVmRuntime(runner)
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/push.py", line 41, in PrepareVmRuntime
output = runner.Run('prepare_vm_runtime')
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appengine_adapter.py", line 281, in Run
error_code = app.Run()
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appcfg/appcfg.py", line 2847, in Run
self.action(self)
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appcfg/appcfg.py", line 4347, in __call__
return method()
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appcfg/appcfg.py", line 3874, in PrepareVmRuntimeAction
app_id=self.options.app_id)
File "/Users/anentropic/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/external/tools/appengine_rpc_httplib2.py", line 220, in Send
url, method=method, body=payload, headers=headers)
File "/Users/anentropic/google-cloud-sdk/./lib/oauth2client/util.py", line 129, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Users/anentropic/google-cloud-sdk/./lib/oauth2client/client.py", line 533, in new_request
redirections, connection_type)
File "/Users/anentropic/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 "/Users/anentropic/google-cloud-sdk/./lib/httplib2/__init__.py", line 1350, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/Users/anentropic/google-cloud-sdk/./lib/httplib2/__init__.py", line 1272, in _conn_request
conn.connect()
File "/Users/anentropic/google-cloud-sdk/./lib/httplib2/__init__.py", line 1036, in connect
self.disable_ssl_certificate_validation, self.ca_certs)
File "/Users/anentropic/google-cloud-sdk/./lib/httplib2/__init__.py", line 80, in _ssl_wrap_socket
cert_reqs=cert_reqs, ca_certs=ca_certs)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 891, in wrap_socket
ciphers=ciphers)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 507, in __init__
self._context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory
是否有正確的重新安裝程序?我做了'gcloud組件重裝',但我仍然得到錯誤。我的'gcloud info'返回:http://pastebin.com/raw.php?i=xyVz9y9a – Anentropic
這似乎是特定於python 2.7.9。我試圖找出修復此修復程序的工程師,但同時您可以使用此工具回滾到最新版本: export CLOUDSDK_COMPONENT_MANAGER_SNAPSHOT_URL = http://dl.google.com/dl/cloudsdk/發佈/組件-v0.9.55.json gcloud組件更新 – dlorenc
這對我有用,對Void linux有同樣的問題。 – manveru