google-cloud-platform - 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?
解决方案
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:
推荐阅读
- python - 将谷歌分析跟踪代码添加到 Dash 应用程序
- c - 用于检查结构(结构)的 Lex 程序
- flutter - 限制键盘事件,直到子小部件更新
- c++ - Curl with wxThreads blocks thread after a few iterations
- python-3.x - ValueError:无法将大小为 662250 的数组重塑为形状 (883,22,1000,1)
- angular - TranslocoLocale pipes injected into a service causes unit test errors
- node.js - Is there is a way for me to host my express api on the internet?
- ruby-on-rails - ActiveRecord #collection 方法不返回所有保存的集合
- php - 成功提交 PHP 后隐藏登录表单
- ansible - Ansible 从循环中拉出块设备 UUID,并用于挂载模块上的变量