0

I am trying to deploy a python application and I am receiving the following error message:

ERROR: (gcloud.app.deploy) Error Response: [4] 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.

My app.yaml is:

runtime: python
runtime_config:
  python_version: 3
env: flex
service: newservice
handlers:
- url: /
  script: hello.py

manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10

I believe the problem is related to the yaml file, since I have deployed a sample application previously with no problems (using entrypoint), then when I added a new python script and referred to it on the yaml file (using the handlers, since it is a message blockers) I started to get this error.

1 Answers1

1

You're right, the mistake is in the app.yaml file - you used the handlers section which exists only for the standard GAE environment. Check the app.yaml flexible Python runtime reference for details on how the file should look like. You have also plenty of examples in this GitHub repo.

arudzinska
  • 166
  • 5