Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google compute engine Google.startup.script中的Google计算引擎VM实例错误_Google Compute Engine_Google Cloud Platform - Fatal编程技术网

Google compute engine Google.startup.script中的Google计算引擎VM实例错误

Google compute engine Google.startup.script中的Google计算引擎VM实例错误,google-compute-engine,google-cloud-platform,Google Compute Engine,Google Cloud Platform,在重新启动Google Compute Engine VM实例时,我看到以下错误: startupscript: Finished running startup script /var/run/google.startup.script xxxx accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable&

在重新启动Google Compute Engine VM实例时,我看到以下错误:

startupscript: Finished running startup script /var/run/google.startup.script

xxxx accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>

xxxx accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
startupscript:已完成运行启动脚本/var/run/google.startup.script
来自元数据的xxxx帐户:尝试更新帐户时出现警告错误:
来自元数据的xxxx帐户:尝试更新帐户时出现警告错误:

可能是什么问题?

更新:查看原始问题并重新设置格式后,看起来启动时出现了网络错误(由于
中的文本被视为HTML且不可查看而被隐藏),因此我先前的答案(以下)可能不适用。把它留在这里以备将来参考

请同时检查您的网络设置、防火墙等


原文:

中可能有语法错误。格式为:

<username>:<protocol> <key-blob> <username@example.com>
并检查格式


然后,您可以在您的实例上执行此操作。

在重新启动虚拟机之前,您是否更改了网络设置或防火墙规则?您仍然可以SSH到这个实例中吗?它是否有能力到达其他实例或网络?
curl http://metadata/computeMetadata/v1/project/attributes/sshKeys \
     -H "Metadata-Flavor: Google"