【问题标题】:Google App Engine python37 is ignoring entrypointGoogle App Engine python37 忽略入口点
【发布时间】:2019-09-13 10:35:54
【问题描述】:

从昨天开始,GAE 在app.yaml 中忽略了我的entrypoint

我的app.yaml

runtime: python37

entrypoint: gunicorn -k eventlet -b :$PORT main:app

导致以下日志输出:

2019-04-24 07:39:58 default[20190423t203005]  [2019-04-24 07:39:58 +0000] [8] [INFO] Starting gunicorn 19.9.0
2019-04-24 07:39:58 default[20190423t203005]  [2019-04-24 07:39:58 +0000] [8] [INFO] Listening at: http://0.0.0.0:8081 (8)
2019-04-24 07:39:58 default[20190423t203005]  [2019-04-24 07:39:58 +0000] [8] [INFO] Using worker: threads

但工人应该是eventlet 而不是threads

【问题讨论】:

    标签: python google-app-engine google-cloud-platform


    【解决方案1】:

    据我们所知,这实际上是 Google App Engine 的一个问题。配置的入口点被忽略。事件从昨天开始。我们最好的猜测是,这是由于在部署期间配置 gvisor 容器入口点的过程发生了更新(可能是 App Engine 或 gVisor 破坏了它)。

    如果您更改日志以显示所有日志:

    你会看到执行入口点永远是:

    Running /bin/sh /bin/sh -c exec gunicorn main:app --workers 1 -c /config/gunicorn.py
    

    我们正在提交罚单。如果可以,你也应该这样做。

    【讨论】:

    猜你喜欢
    • 2022-06-23
    • 2019-02-28
    • 1970-01-01
    • 2017-09-24
    • 2021-07-31
    • 2019-03-27
    • 1970-01-01
    • 1970-01-01
    • 2021-10-14
    相关资源
    最近更新 更多