Ruby Stack failed to deploy on Google Developers C

2019-03-03 18:02发布

问题:

I tried to deploy Ruby stack using Google Developers Console, but no success. I tried several times at other project, error was always the same (below).

Do you have any idea why it keeps failing?

2014/10/23 15:59:44
rubyStackBox: PENDING
2014/10/23 15:59:55~2014/10/23 16:06:01
rubyStackBox: DEPLOYING
2014/10/23 16:06:11
rubyStackBox: DEPLOYMENT_FAILED
Replica rubystackbox-eaeo failed with status PERMANENTLY_FAILING: Replica State changed to PERMANENTLY_FAILING. Replica was unhealthy 2 consecutive times.

回答1:

I replicated the issue you experienced several times and it also failed. What finally worked was playing with the zones/regions when deploying the ruby stack :

Developers console > Click-to-deploy > Set MySQL password > Advanced Options, choose a different zone and click Deploy.

Another useful tool when investigating this is Console Output. Even if the deployment fails, you can go to the VM instance and check View Output towards the bottom of the page. It will list all the packages and any errors encountered. The following command will achieve the same thing:

$ gcloud compute instances get-serial-port-output <INSTANCE_NAME> --project <PROJECT_ID> --zone <ZONE_NAME>

Please advise if still seeing issues.