我是谷歌云服务的新手。我正在尝试AppEngine。我只是按照这里的python教程:https://developers.google.com/appengine/docs/python/gettingstartedpython27/uploading
我试图在Google中部署我的文件,但它不起作用,我不知道为什么!首先,我忘了修改app.yaml文件,但现在我已经填写了#34;应用程序"使用" direct-way-658"这是我的申请名称!
这里有日志信息:
2014-07-29 14:28:47 Running command: "['C:\\python27_x64\\python.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=akash.myeamail@gmail.com', '--passin', 'update', 'D:\\POCGOOGLE\\guestbook']"
02:28 PM Application: direct-way-658; version: 1
02:28 PM Host: appengine.google.com
02:28 PM Starting update of app: direct-way-658, version: 1
02:28 PM Getting current resource limits.
2014-07-29 14:28:48,681 ERROR appcfg.py:2395 An error occurred processing file '': <urlopen error [Errno 11004] getaddrinfo failed>. Aborting.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 126, in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 122, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5334, in <module>
main(sys.argv)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5325, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2963, in Run
self.action(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4991, in __call__
return method()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3762, in Update
self._UpdateWithParsedAppYaml(appyaml, self.basepath)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3815, in _UpdateWithParsedAppYaml
self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3698, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2385, in DoUpload
self.error_fh)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 468, in GetResourceLimits
resource_limits.update(_GetRemoteResourceLimits(logging_context))
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 438, in _GetRemoteResourceLimits
yaml_data = logging_context.Send('/api/appversion/getresourcelimits')
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1724, in Send
result = self.rpcserver.Send(url, payload=payload, **kwargs)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 409, in Send
f = self.opener.open(req)
File "C:\python27_x64\lib\urllib2.py", line 404, in open
response = self._open(req, data)
File "C:\python27_x64\lib\urllib2.py", line 422, in _open
'_open', req)
File "C:\python27_x64\lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\python27_x64\lib\urllib2.py", line 1222, 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 387, in do_open
raise url_error
urllib2.URLError: <urlopen error [Errno 11004] getaddrinfo failed>
2014-07-29 14:28:48 (Process exited with code 1)
You can close this window now.
你能帮帮我吗?
答案 0 :(得分:0)
你可以发布你的app.yaml吗?看起来它试图上传一个没有名字的文件&#34;处理文件时发生错误&#39;&#39;:。 。中止&#34;
答案 1 :(得分:0)
我在尝试上传.json文件时遇到了类似的问题,按照此处的建议https://gist.github.com/darktable/873098我编辑了我的App.yaml并添加了一个mime类型并且它有效。
application: your_app
version: 1
runtime: php
api_version: 1
handlers:
- url: /static
static_dir: static
- url: /.*
script: index.php
- url: /(.*\.json)
mime_type: application/json
static_files: static/\1
upload: static/(.*\.json)
expiration: "1h"
答案 2 :(得分:0)
谢谢大家的光临!但这是代理问题。我工作的compagny使用代理与互联网的所有连接我必须设置我的enrironment变量,以便谷歌应用程序引擎通过这个代理。
在Google SDK外壳中:
设置HTTP_PROXY = http:// name:pass @ proxy:port 设置HTTPS_PROXY = http:// name:pass @ proxy:port
然后lanch app:
appcfg.py更新name_of_the_app /