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 Answer 1

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.

3
  • Thank you, it works now. I am now using entrypoint. Thank you. Jul 4, 2018 at 15:01
  • @LucasGuerreiro you can upvote the answer as well :-) Jul 5, 2018 at 9:35
  • I would love to, but I don't have enough reputation :) Jul 5, 2018 at 12:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .