【发布时间】:2021-08-15 09:38:42
【问题描述】:
我是 Google Cloud 的新手,我只是想部署我的第一个流线型 Web 应用。我在命令行中的 Windows 上。我已经完成了 Google Cloud“Hello World”示例,它没有任何错误。
当我部署 streamlit webapp 时,在等待“更新服务器”3-4 分钟后出现以下错误:
ERROR: (gcloud.app.deploy) Error Response: [9] Flex operation projects/XXXX/regions/us-central1/operations/f0c89d22-2d09-410d-bf99-fc49ad337800 error [FAILED_PRECONDITION]: An internal error occurred while processing task /app-engine-flex/flex_await_healthy/flex_await_healthy>2021-05-27T06:13:50.278Z10796.jc.0: 2021-05-27 06:15:32.787 An update to the [server] config option section was detected. To have these changes be reflected, please restart streamlit.
这是我的 app.yaml 文件:
service: default
runtime: custom
env: flex
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
【问题讨论】:
-
我按照medium article 中发布的示例进行操作,但无法重现此错误。在使用
gcloud components update更新 gcloud 后尝试部署您的应用程序。此外,请确保您以管理员身份运行 SDK。如果错误再次出现,请运行gcloud app deploy app.yaml --verbosity=debug以尝试获取更多指定错误。 -
谢谢,我的 Dockerfile 中有错误。现在我不再收到错误消息了。
标签: gcloud google-app-engine-python app-engine-flexible streamlit