This document presents troubleshooting techniques for Cloud Endpoints deployments in App Engine flexible environments. If you receive an error back from a request to your API, see Troubleshooting response errors for information on troubleshooting the error.
This section describes how to troubleshoot errors from
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
Check that your
Make sure that all the GCP services that Endpoints and ESP require are enabled on your project. See Checking required services for details.
Error messages about
When you configure
app.yaml before deploying, you must add the
endpoints_api_service section. The Extensible Service Proxy (ESP) needs the
settings that you specify in this section to obtain the configuration for your
service. You must specify either a configuration ID in the
config_id field, or
rollout_strategy: managed option, but not both. This option
configures ESP to use the latest deployed service configuration. When you
specify this option, within a minute after you deploy a new service
configuration, ESP detects the change and automatically begins using it. We
recommend that you specify this option instead of a specific configuration ID
for ESP to use.
endpoints_api_service: name: example-project-12345.appspot.com rollout_strategy: managed
endpoints_api_service section doesn't include the information that
ESP needs to obtain a service configuration, one of the following
messages is displayed:
You cannot specify both a configuration ID and
This error message is displayed when either
Viewing logs on an instance
App Engine crash and system logs provide information on why the application failed to launch or perform as intended. You can find further debugging information in the Endpoints log.
In the Google Cloud Platform Console, SSH into your virtual machine. See connecting to an instance for more information.
Use a text viewer such as
tail -f /var/log/nginx/error.log