Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法部署到GAE_Python_Google App Engine_Python 2.7 - Fatal编程技术网

Python 无法部署到GAE

Python 无法部署到GAE,python,google-app-engine,python-2.7,Python,Google App Engine,Python 2.7,当我试图上传时,我遇到了这个错误,然后跟着它的指导老师执行回滚,然后我在这里遇到了另一个错误 08:38 AM Scanning files on local disk. 2013-01-30 08:38:30,884 ERROR appcfg.py:1856 Invalid character in filename: Icon Error 409: --- begin server output --- Another transaction by user SLim is already

当我试图上传时,我遇到了这个错误,然后跟着它的指导老师执行回滚,然后我在这里遇到了另一个错误

08:38 AM Scanning files on local disk.
2013-01-30 08:38:30,884 ERROR appcfg.py:1856 Invalid character in filename: Icon

Error 409: --- begin server output ---
Another transaction by user SLim is already in progress for app: s~pekkylab, version: 1. That user can undo the transaction with "appcfg rollback".
--- end server output ---
Password for myemail@email.com: If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***
08:41上午应用:pekkylab
上午8:41主持人:appengine.google.com
08:41 AM正在回滚更新。
回溯(最近一次呼叫最后一次):
文件“/usr/local/bin/appcfg.py”,第171行,在
运行\u文件(\uuuu文件,globals())
文件“/usr/local/bin/appcfg.py”,运行文件第167行
execfile(脚本路径,全局路径)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第4377行,在
主(系统argv)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,主文件第4368行
结果=AppCfgApp(argv).Run()
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第2605行,正在运行
自我行动(self)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第4103行,在__
返回方法()
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,回滚中的第3553行
self.\u回滚()
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,第3569行,在“回滚”中
appversion.Rollback()
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,回滚中的第2151行
self.Send(“/api/appversion/rollback”)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appcfg.py”,发送中第1842行
返回self.rpcserver.Send(url,有效负载=有效负载,**self.params)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/google/appengine/tools/appengine\u rpc.py”,第391行,发送
f=自动开启器开启(要求)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”,第391行,打开
响应=自身打开(请求,数据)
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”,第409行,打开
"开放",
文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”,第369行,在调用链中
结果=func(*args)
https_open中的文件“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py”,第1181行
返回self.do_open(httplib.HTTPSConnection,req)
文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/lib/fancy\u urllib/fancy\u urllib/\uuuuuuu init\uuuuuuu.py”,第379行,在do\u open中
url\u错误。原因。参数[1])
fancy_urllib.InvalidCertificateException:主机appengine.google.com返回了无效的证书(_ssl.c:499:错误:14090086:ssl例程:SSL3_GET_SERVER_证书:证书验证失败):
要了解更多信息,请参阅http://code.google.com/appengine/kb/general.html#rpcssl

有什么线索可以解释为什么会发生这种情况吗?

正如日志所述,图标的文件名中可能有一些奇怪的字符。 重命名它,并更新应用程序以使用重命名的版本


您应该手动回滚事务(“appcfg rollback”),然后再次尝试部署。

如日志所述,图标的文件名中可能有一些外来字符。 重命名它,并更新应用程序以使用重命名的版本


您应该手动回滚事务(“appcfg rollback”),然后再次尝试部署。

我猜您正在使用MacOS,而此文件就是
图标?
(阅读更多信息)。如果列出终端中的所有文件:
ls
,您可以轻松地验证它

要跳过该文件,请在
app.yaml
文件的末尾添加该文件并重新部署:

08:41 AM Application: pekkylab
08:41 AM Host: appengine.google.com
08:41 AM Rolling back the update.
Traceback (most recent call last):
  File "/usr/local/bin/appcfg.py", line 171, in <module>
    run_file(__file__, globals())
  File "/usr/local/bin/appcfg.py", line 167, in run_file
    execfile(script_path, globals_)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4377, in <module>
    main(sys.argv)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4368, in main
    result = AppCfgApp(argv).Run()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2605, in Run
    self.action(self)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4103, in __call__
    return method()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3553, in Rollback
    self._Rollback()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3569, in _Rollback
    appversion.Rollback()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2151, in Rollback
    self.Send('/api/appversion/rollback')
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1842, in Send
    return self.rpcserver.Send(url, payload=payload, **self.params)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py", line 391, in Send
    f = self.opener.open(req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1181, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 379, in do_open
    url_error.reason.args[1])
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (_ssl.c:499: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed): 
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
您可以在文档中阅读更多

此外,您可能需要在重新部署之前回滚:

skip_files:
- ^(.*/)?Icon\r

如果没有任何效果,请尝试部署到新的应用程序,然后改天再试:)

我猜您正在使用MacOS,而此文件就是
图标?
(请阅读更多信息)。如果列出终端中的所有文件:
ls
,您可以轻松地验证它

要跳过该文件,请在
app.yaml
文件的末尾添加该文件并重新部署:

08:41 AM Application: pekkylab
08:41 AM Host: appengine.google.com
08:41 AM Rolling back the update.
Traceback (most recent call last):
  File "/usr/local/bin/appcfg.py", line 171, in <module>
    run_file(__file__, globals())
  File "/usr/local/bin/appcfg.py", line 167, in run_file
    execfile(script_path, globals_)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4377, in <module>
    main(sys.argv)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4368, in main
    result = AppCfgApp(argv).Run()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2605, in Run
    self.action(self)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4103, in __call__
    return method()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3553, in Rollback
    self._Rollback()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3569, in _Rollback
    appversion.Rollback()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2151, in Rollback
    self.Send('/api/appversion/rollback')
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1842, in Send
    return self.rpcserver.Send(url, payload=payload, **self.params)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py", line 391, in Send
    f = self.opener.open(req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1181, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 379, in do_open
    url_error.reason.args[1])
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (_ssl.c:499: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed): 
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
您可以在文档中阅读更多

此外,您可能需要在重新部署之前回滚:

skip_files:
- ^(.*/)?Icon\r

如果没有任何效果,请尝试部署到新的应用程序,然后改天再试:)

尝试使用参数no_cookies以那种方式部署
appcfg.py update--no_cookies

尝试使用参数no_cookies以那种方式部署
appcfg.py update--没有cookies

您可能有一个自定义的应用程序文件夹图标。。。如果生成“隐藏”图标文件,请将其删除。

您的应用程序文件夹可能有一个自定义图标。。。如果生成一个“隐藏”图标文件,请将其删除。

我从未添加任何额外文件,只是更新了一些代码行。我从未添加任何额外文件,只是更新了一些代码行。谢谢回复。顺便说一句,在我添加这一行之后,它将跳过所有文件:/@SLim,这很奇怪。。试试
-^(.*/)?Icon*
-^Icon*
-^Icon?
@SLim。。哦,对不起。。你可能还是会拿到409。。因为是你开始的