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 cloud platform googlecompute创建实例时出错:等待实例创建时超时_Google Cloud Platform_Packer - Fatal编程技术网

Google cloud platform googlecompute创建实例时出错:等待实例创建时超时

Google cloud platform googlecompute创建实例时出错:等待实例创建时超时,google-cloud-platform,packer,Google Cloud Platform,Packer,我尝试用packer创建图像,但没有按计划进行,从一开始我在创建图像时有一个超时,我找不到任何帮助,有人已经遇到了这个问题?谢谢 ==> googlecompute: Checking image does not exist... ==> googlecompute: Creating temporary SSH key for instance... ==> googlecompute: Using image: debian-9-stretch-v20180105 ==&

我尝试用packer创建图像,但没有按计划进行,从一开始我在创建图像时有一个超时,我找不到任何帮助,有人已经遇到了这个问题?谢谢

==> googlecompute: Checking image does not exist...
==> googlecompute: Creating temporary SSH key for instance...
==> googlecompute: Using image: debian-9-stretch-v20180105
==> googlecompute: Creating instance...
    googlecompute: Loading zone: europe-west1-d
    googlecompute: Loading machine type: n1-standard-1
    googlecompute: Requesting instance creation...
    googlecompute: Waiting for creation operation to complete...
==> googlecompute: Error creating instance: time out while waiting for instance to create
Build 'googlecompute' errored: Error creating instance: time out while waiting for instance to create

我有一个类似的超时错误

解决方案是将正确的角色分配给服务用户。
至少应将Compute Engine实例管理员(v1)和服务帐户用户角色访问权限分配给服务用户,您正使用该用户运行打包程序。

提供更多详细信息,例如您的模板。我收到了一个错误的配置文件,我按照doc()重新生成了一个,现在它可以工作了,感谢您的帮助如果您能提供解决此问题的详细答案,请执行。否则,请删除此问题,因为它对其他人没有帮助。对不起,我无法回答或删除。