Errno 10054远程主机强行关闭现有连接。 - 怎么调试?

时间:2012-11-13 15:19:05

标签: python google-app-engine

我第一次使用Google App Engine,我对这个错误感到困惑,我无法理解如何进一步调试。

我在我的帐户下创建了一个应用程序,然后我尝试通过Google App Engine Launcher将python文件上传到其中。但我一直在犯这个错误。

08:39 PM Host: appengine.google.com
08:39 PM Application: gappproxytestapp; version: 1
08:39 PM 
Starting update of app: gappproxytestapp, version: 1
08:39 PM Getting current resource limits.
2012-11-13 20:40:32,505 ERROR appcfg.py:2202 An error occurred processing file '': <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host>. Aborting. 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 171, in <module>
    run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 167, in run_file
    execfile(script_path, globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4322, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4313, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2599, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4048, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3065, in Update
    self.UpdateVersion(rpcserver, self.basepath, appyaml)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3047, in UpdateVersion
    lambda path: self.opener(os.path.join(basepath, path), 'rb'))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2172, in DoUpload
    self.resource_limits = GetResourceLimits(self.rpcserver, self.config)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 357, in GetResourceLimits
    resource_limits.update(GetRemoteResourceLimits(rpcserver, config))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 328, in GetRemoteResourceLimits
    version=config.version)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 389, in Send
    f = self.opener.open(req)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 418, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1215, 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 383, in do_open
    raise url_error
urllib2.URLError: <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host>
2012-11-13 20:40:32 (Process exited with code 1)**

You can close this window now.

如何进一步调试?好像urllib2遇到了HTTPS问题。但这很奇怪,因为我并没有落后于任何本地代理,而且我从未遇到任何其他HTTPS问题。

2 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。我关闭了Google App Engine Launcher并再次启动它,并试图上传应用程序,它运行正常。

答案 1 :(得分:0)

我遇到了同样的问题。即使我尝试不同的PC,操作系统,更新最新的SDK或其他解决方案,它也不起作用。我怀疑这是Google App Engine服务器端的问题。等了一天之后,一切都很好。因此,如果您遇到同样的问题,等待一天可能是一个不错的选择。