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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With