python - 部署 gcloud python 应用程序时出错 - 它是什么?
问题描述
尝试通过 gcloud 部署 python Web 应用程序时出现此错误 - 在您编写 gcloud app deploy 代码时出现 y/n 问题之后
ERROR: (gcloud.app.deploy) The operation "operations/acf.p2-222084527338-d61d0401-cb0a-4f69-a07c-131799bd4cf8" resulted in a failure "[Hook call/poll resulted in failed op for service 'compute.googleapis.com': The service is currently being deactivated and deactivation must complete before activation can occur.
Help Token: Ae-hA1M43mY8ADlPerCsLr9bUDXGJzibJgQCO0CGx3Kz1JRn6XpVB5Q_ebTfPxKEuaBwHKVFwspMAyx7_epjrFKFEzDDbDBy_oYncVroZlxGECPx] with failed services [compute.googleapis.com]".
Details: "[<DetailsValueListEntry
additionalProperties: [<AdditionalProperty
key: '@type'
value: <JsonValue
string_value: 'type.googleapis.com/google.rpc.PreconditionFailure'>>, <AdditionalProperty
key: 'violations'
value: <JsonValue
array_value: <JsonArray
entries: [<JsonValue
object_value: <JsonObject
解决方案
您似乎正在部署到 App Engine flex。
这将 Compute Engine 虚拟机用于 (App Engine) 应用实例。
您必须使用|启用 Compute Engine 才能使用 App Engine flex。
我怀疑(!?)您项目中的某个人在您尝试部署应用程序之前禁用了 Compute Engine,它告诉您,如果您想部署到 App Engine flex,则需要(重新)启用 Compute Engine。
推荐阅读
- node.js - 错误:fsEvents 不是函数(使用 Jest 和 create-react-app)
- .htaccess - 如何使用查询参数将所有 www 请求重定向到非 www
- xcode - 如何在库中获取 Xcode 11.3.1 视图和指示器?
- docker - 如何在 docker 文件中运行 docker 命令?
- python - 如何使用机器人框架进行价值验证?
- plugins - 使用附加插件共享电源点卡座
- java - 如何从特定行和列的 JAVA 程序中的数据库中获取值?
- azure-functions - Azure 函数部署因 Azure Pipeline 中的 Azure CLI 2.2.0 更新而失败
- bash - 将 Git 拉取命令输出写入文件
- javascript - 如何在 EJS 递归视图文件夹中提供静态文件?