Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: (gcloud.preview.app.deploy)

What might be the reason for getting the following error while deploying my Nodejs code to google cloud?

ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying).

like image 381
Jobi Avatar asked Oct 30 '22 09:10

Jobi


1 Answers

There's no one cause for this error, as Adam mentioned.

You'll need to check the logs on the instances themselves, or SSH into them and see what's happening, or check the VM Builder logs, to which a link will be provided when you run the deploy command, and which you can also find in the Logs Viewer by selecting "Container Builder" as the resource to view logs for (usual default is "App Engine").

A common cause is not implementing a 200-response handler for /_ah/health, but there are any number of other root causes. It could even simply be that it's taking a long time for the instance to come up, for various reasons, and it's perfectly healthy - the deploy command just gave up on polling its status.

like image 95
Nick Avatar answered Nov 13 '22 20:11

Nick