【发布时间】:2018-05-29 09:41:44
【问题描述】:
我正在尝试使用 appcfg.py 在 GAE 上部署我的项目更新,但出现以下错误:
Error 500: --- begin server output ---
<h3>Server Error</h3><p>A server error has occurred.</p>
--- end server output ---
我还尝试部署几周前成功部署的旧版本代码,但遇到了同样的错误。
有趣的是,我可以使用gcloud 命令成功部署。
我已经成为项目所有者 4 年了,我的权限没有任何变化。
这是我的 app.yaml:
application: *****
module: default
version: 1
runtime: python27
api_version: 1
instance_class: F4
# instance_class: F2
threadsafe: true
automatic_scaling:
min_idle_instances: 0
max_idle_instances: automatic
min_pending_latency: 30ms
max_pending_latency: automatic
libraries:
- name: webapp2
version: latest
- name: jinja2
version: latest
- name: pycrypto
version: "2.6"
- name: PIL
version: latest
你能帮我解决这个问题吗?
【问题讨论】:
-
这可能是
gcloud的问题,但这不是appcfg不起作用的原因。特别是因为我试图部署一个已经部署的旧代码。 -
好吧,GAE 方面的情况一直在发生变化,较旧的应用程序有时可能需要一些更新。使用的确切部署 cmd 是什么?除了错误之外,部署日志中还有其他内容吗?
-
我使用了
python "appcfg.py" update [project directory]。部署日志中没有其他值得注意的地方。 -
尝试指定
app.yaml文件:python appcfg.py [project directory]/app.yaml。自动检测有时无法按预期工作。并确保python解析为 python2(如果您还安装了 python3) -
对不起,我忘了说,但我确实指定了
app.yaml文件。