我正在尝试在Google应用引擎上部署我的应用 但得到以下错误
Starting update of app: timezzzzpass, version: 4
Scanning files on local disk.
2011-06-06 17:46:22,095 ERROR appcfg.py:1965 An unexpected error occurred. Aborting.
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1914, in DoUpload
missing_files = self.Begin()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1627, in Begin
self.Send('/api/appversion/create', payload=self.config.ToYAML())
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1577, in Send
return self.rpcserver.Send(url, payload=payload, **self.params)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 365, in Send
f = self.opener.open(req)
File "C:\Python25\lib\urllib2.py", line 374, in open
response = self._open(req, data)
File "C:\Python25\lib\urllib2.py", line 392, in _open
'_open', req)
File "C:\Python25\lib\urllib2.py", line 353, in _call_chain
result = func(*args)
File "C:\Python25\lib\urllib2.py", line 1109, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 367, in do_open
raise url_error
URLError: <urlopen error (11001, 'getaddrinfo failed')>
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\appcfg.py", line 76, in <module>
run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\appcfg.py", line 72, in run_file
execfile(script_path, globals_)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3592, in <module>
main(sys.argv)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3583, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2229, in Run
self.action(self)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3368, in __call__
return method()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2630, in Update
app_summary = self.UpdateVersion(rpcserver, self.basepath, appyaml)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2619, in UpdateVersion
lambda path: open(os.path.join(basepath, path), 'rb'))
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1914, in DoUpload
missing_files = self.Begin()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1627, in Begin
self.Send('/api/appversion/create', payload=self.config.ToYAML())
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1577, in Send
return self.rpcserver.Send(url, payload=payload, **self.params)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 365, in Send
f = self.opener.open(req)
File "C:\Python25\lib\urllib2.py", line 374, in open
response = self._open(req, data)
File "C:\Python25\lib\urllib2.py", line 392, in _open
'_open', req)
File "C:\Python25\lib\urllib2.py", line 353, in _call_chain
result = func(*args)
File "C:\Python25\lib\urllib2.py", line 1109, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 367, in do_open
raise url_error
urllib2.URLError: <urlopen error (11001, 'getaddrinfo failed')>
2011-06-06 17:46:22 (Process exited with code 1)
You can close this window now.
如何解决这个问题......提前谢谢
答案 0 :(得分:0)
我认为您是经过身份验证的代理,它阻止您部署应用程序。
If you are running appcfg.py behind an HTTP proxy, you must tell appcfg.py the name of the proxy. To set an HTTP proxy for appcfg.py, set the http_proxy and https_proxy environment variables.
Using Windows (in Command Prompt):
set HTTP_PROXY=http://cache.mycompany.com:3128
set HTTPS_PROXY=http://cache.mycompany.com:3128
appcfg.py update myapp
如果您在经过身份验证的代理后面运行应用程序。你可以试试这样的东西
set HTTP_PROXY=http://companyLogin:pwd@www-proxy.company.org.au:8080
set HTTPS_PROXY=http://companyLogin:pwd@www-proxy.company.org.au:8080
答案 1 :(得分:0)
如果您不在代理服务器后面,某些应用程序设置可能会导致此问题。
将您的端口设置为有效的端口(例如8080),并确保将Deployment Server设置为appengine.google.com