【问题标题】:Certificate not work when i try to update当我尝试更新时证书不起作用
【发布时间】:2012-02-20 10:39:13
【问题描述】:

祝大家有美好的一天。我正在使用 Google App Engine 1.6.2、Python 2.7、Windows 7x64,我创建了一个应用程序..上传了它......它成功地为一个弱者工作。但是当我今天早上试图进行更新时,luncher 给了我这个错误:

2012-02-20 12:26:41 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=myemail@gmail.com', '--passin', 'update', 'D:\\Dropbox\\Google\\handmade']"
Application: bubonchikhub; version: 1
Host: appengine.google.com
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 101, in <module>
    run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 97, in run_file
    execfile(script_path, globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3935, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3926, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2497, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3692, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2915, in Update
    self.UpdateVersion(rpcserver, self.basepath, appyaml)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2897, in UpdateVersion
    updatecheck.CheckForUpdates()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 572, in CheckForUpdates
    runtime=self.config.runtime)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 365, in Send
    f = self.opener.open(req)
  File "C:\Python27\lib\urllib2.py", line 394, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 412, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1207, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 363, in do_open
    url_error.reason.args[1])
fancy_urllib.InvalidCertificateException: Host 127.0.0.1:8888 returned an invalid certificate (_ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed): 
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
2012-02-20 12:26:43 (Process exited with code 1)

You can close this window now.


You can close this window now.

谁能帮助解决这个问题? 提前谢谢

【问题讨论】:

  • 再试一次,它偶尔会发生。看起来像是应用引擎本身的问题。
  • 对我有用的解决方案是删除 gae 证书 cf stackoverflow.com/a/14004826/5181

标签: google-app-engine


【解决方案1】:

您的请求可能通过本地代理。

【讨论】:

    【解决方案2】:

    升级到 Python 2.7.9 为我解决了这个问题。

    【讨论】:

    • 我有 Python 2.7.9,但升级到 2.7.13 为我解决了这个问题。
    【解决方案3】:

    您需要将代理的认证粘贴到google_appengine/lib/cacerts/cacerts.txt 的末尾

    【讨论】:

      【解决方案4】:

      这似乎与代理服务器有关,当我运行 fiddler 并尝试部署时,我收到此错误。当我关闭它时,部署工作正常。

      您将收到一个无效的证书错误,例如 fancy_urllib.InvalidCertificateException:主机 127.0.0.1:8888 返回了无效证书(_ssl.c:507:错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败):

      因此,请关闭您正在运行的代理服务器(假设这是您的问题)并运行 appcfg 部署!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-08-26
        • 2018-09-08
        • 2021-12-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多