无法部署到GAE

2 投票
4 回答
2728 浏览
提问于 2025-04-17 14:08
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 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

有没有人知道为什么会这样?

4 个回答

0

可能在图标的文件名中有一些特殊字符,就像日志里说的那样。你可以试着重命名这个文件,然后更新你的应用程序,让它使用新的文件名。

你需要手动回滚这个操作(用“appcfg rollback”命令),然后再试着重新部署一次。

0

试着用这个参数来部署:appcfg.py update . --no_cookies

4

我猜你是在使用MacOS系统,这个文件是Icon?(想了解更多可以看这个链接)。你可以通过在终端输入ls来轻松确认一下,看看所有文件。

为了跳过这个文件,你需要在app.yaml文件的末尾添加一些内容,然后重新部署:

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

你可以在文档中了解更多关于跳过文件的信息。

另外,你可能需要在重新部署之前先回滚一下:

appcfg.py rollback /path/to/project

如果这些都不管用,试试部署到一个新的应用上,或者换个时间再试试 :)

撰写回答