本文档介绍如何排查 App Engine 柔性环境中的 Cloud Endpoints 部署问题。如果向 API 发送请求后收到错误响应,请参阅排查响应错误问题,了解如何排查此类错误问题。
部署错误
本部分介绍如何排查 gcloud app deploy 错误。
错误消息
问题排查
Your deployment has failed to become healthy in the allotted time and
therefore was rolled back. If you believe this was an error, try adjusting the
app_start_timeout_sec setting in the
readiness_check section.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-25。"],[[["This document provides troubleshooting guidance for Cloud Endpoints deployments in App Engine flexible environments, specifically addressing errors encountered during the `gcloud app deploy` process."],["If your deployment fails due to health checks, adjust the `app_start_timeout_sec` setting in the `readiness_check` section of your `app.yaml` file, ensuring it's higher than the default of 300 seconds and ensuring all necessary Google Cloud services are enabled."],["When configuring `app.yaml`, the `endpoints_api_service` section should include either `config_id` or `rollout_strategy: managed`, but not both, with `rollout_strategy: managed` recommended for automatic service configuration updates."],["Errors related to `rollout_strategy` indicate either an invalid combination of `config_id` and `rollout_strategy` settings or a missing `config_id` when `rollout_strategy` is not set to `managed`, which is resolvable by modifying the `app.yaml` file and redeploying."],["App Engine logs, including crash, system and Endpoints logs, can be accessed via SSH to an instance to help pinpoint the source of issues, utilizing tools like tail to view log data."]]],[]]