无法在Ubuntu GCP VM上运行启动bash脚本

时间:2019-05-06 01:39:28

标签: google-cloud-platform startup

我正在尝试运行一个启动脚本,以启动一些正在运行的服务。

我正在寻找串行端口条目,并且看到以下内容。

May  6 09:34:10 idol startup-script: INFO Starting startup scripts.
May  6 09:34:10 idol startup-script: INFO Found startup-script-url in metadata.
May  6 09:34:10 idol startup-script: INFO Downloading url from https://storage.googleapis.com/start-up-scripts-idol-xxx/start12-2.sh to /startup-2f09c36f/tmp2i8jexl7 using authentication token.
May  6 09:34:10 idol systemd-resolved[727]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.


Ubuntu 18.04.2 LTS idol ttyS0

idol login: May  6 09:34:10 idol systemd-resolved[727]: message repeated 2 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
May  6 09:34:11 idol startup-script: INFO startup-script-url: /bin/bash: /startup-2f09c36f/tmp2i8jexl7: /bin/sh^M: bad interpreter: No such file or directory
May  6 09:34:11 idol startup-script: INFO startup-script-url: Return code 126.
May  6 09:34:11 idol startup-script: INFO Finished running startup scripts.
May  6 09:34:11 idol systemd[1]: Started Google Compute Engine Startup Scripts.

如何解决此问题,以免出现服务器返回的错误NXDOMAIN。

0 个答案:

没有答案