0

我的网站已经运行了一个月了。管理控制台和服务器日志中的一切看起来都很好。但是,每当我尝试使用 Launcher 进行部署时,都会收到以下错误:

12:25 AM Getting current resource limits.
2013-01-23 00:25:36,056 ERROR appcfg.py:2203 An error occurred processing file '': <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>. 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 4377, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4368, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2605, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4103, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3115, in Update
    self.UpdateVersion(rpcserver, self.basepath, appyaml)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3097, in UpdateVersion
    return appversion.DoUpload(paths, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2173, in DoUpload
    self.resource_limits = GetResourceLimits(self.rpcserver, self.config)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 358, in GetResourceLimits
    resource_limits.update(GetRemoteResourceLimits(rpcserver, config))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 329, in GetRemoteResourceLimits
    version=config.version)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 391, 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 10061] No connection could be made because the target machine actively refused it>
2013-01-23 00:25:36 (Process exited with code 1)

事实上,即使使用 Help -> Check For Updates... 也会显示以下警告:

Cannot perform proper version check.
cannot_contact_server
release: "1.7.4"
timestamp: 1352314290
api_versions: ['1']

有人知道是什么原因造成的吗?

4

1 回答 1

0

我的问题是我命名http_proxyhttps_proxy设置了 Python 的 urllib2 用来通过代理路由所有连接的环境变量。删除这些环境变量可以解决问题。

于 2013-01-23T14:45:39.947 回答