首页 > 解决方案 > GCE startup script fails to run on Ubuntu 18.04

问题描述

I am launching an instance on GCP using gcloud compute and specifying the URL of my script using the metadata param. The script fails to run, when I check the metadata, the script url is there. The logs have no mention of any errors.

When I sudo -i and copy the script down from the bucket and execute, it runs fine.

Instance is running Ubuntu 18.04. Any ideas?

标签: google-cloud-platformgoogle-compute-enginegsutil

解决方案


I believe that the issue you are facing is related to a Google Known issue with the new Image Ubuntu 18.04.

In particular after the update of the image gsutil is not available during the startup, therefore you will be not able to download it and it will fail.

I advice you to check the public issue, and to star it to follow and receive the updates:


推荐阅读