Google App Engine 部署错误 13 - 部署管理器操作失败
Google App Engine Deploy error 13 - Deployment Manager operation failed
我第一次尝试部署应用程序并在 'gcloud app deploy' 操作结束时获得它。
错误:(gcloud.app.deploy)错误响应:[13] Deployment Manager 操作失败,名称:operation-1522364367335-5689513556e59-0732922b-1662dc1e,错误:
[
{
"code":"RESOURCE_ERROR",
"location":"/deployments/aef-default-20180329t155754/resources/aef-default-20180329t155754-hcfw",
"message":{
"ResourceType":"compute.v1.firewall",
"ResourceErrorCode":"404",
"ResourceErrorMessage":{
"code":404,
"errors":[
{
"domain":"global",
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"reason":"notFound"
}
],
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"statusMessage":"Not Found",
"requestPath":"https://www.googleapis.com/compute/v1/projects/kubernetes-staging/global/firewalls",
"httpMethod":"POST"
}
}
},
{
"code":"RESOURCE_ERROR",
"location":"/deployments/aef-default-20180329t155754/resources/aef-default-20180329t155754-00it",
"message":{
"ResourceType":"compute.v1.instanceTemplate",
"ResourceErrorCode":"404",
"ResourceErrorMessage":{
"code":404,
"errors":[
{
"domain":"global",
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"reason":"notFound"
}
],
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"statusMessage":"Not Found",
"requestPath":"https://www.googleapis.com/compute/v1/projects/kubernetes-staging/global/instanceTemplates",
"httpMethod":"POST"
}
}
}
]
如错误所述,未找到默认的全球网络(名为 'default'),这似乎是您的应用未部署的原因。
您可以通过在 Cloud Shell 中执行以下命令来创建全局 network,然后再部署您的应用程序:
$ gcloud compute networks create default --subnet-mode auto
如果您没有修改原来的默认网络,则提示问题与您的app.yaml配置文件中的网络设置有关。可以在 here.
中找到有关配置这些设置的信息
如果您按照上述步骤仍然遇到问题,我建议您在 Public Issue Tracker 中创建一个新问题,并向我们提供您 app.yaml 的内容 文件以及您的项目 ID,我很乐意进一步调查。
(免责声明:我在 Google 云平台支持部门工作)
我第一次尝试部署应用程序并在 'gcloud app deploy' 操作结束时获得它。
错误:(gcloud.app.deploy)错误响应:[13] Deployment Manager 操作失败,名称:operation-1522364367335-5689513556e59-0732922b-1662dc1e,错误:
[
{
"code":"RESOURCE_ERROR",
"location":"/deployments/aef-default-20180329t155754/resources/aef-default-20180329t155754-hcfw",
"message":{
"ResourceType":"compute.v1.firewall",
"ResourceErrorCode":"404",
"ResourceErrorMessage":{
"code":404,
"errors":[
{
"domain":"global",
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"reason":"notFound"
}
],
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"statusMessage":"Not Found",
"requestPath":"https://www.googleapis.com/compute/v1/projects/kubernetes-staging/global/firewalls",
"httpMethod":"POST"
}
}
},
{
"code":"RESOURCE_ERROR",
"location":"/deployments/aef-default-20180329t155754/resources/aef-default-20180329t155754-00it",
"message":{
"ResourceType":"compute.v1.instanceTemplate",
"ResourceErrorCode":"404",
"ResourceErrorMessage":{
"code":404,
"errors":[
{
"domain":"global",
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"reason":"notFound"
}
],
"message":"The resource 'projects/kubernetes-staging/global/networks/default' was not found",
"statusMessage":"Not Found",
"requestPath":"https://www.googleapis.com/compute/v1/projects/kubernetes-staging/global/instanceTemplates",
"httpMethod":"POST"
}
}
}
]
如错误所述,未找到默认的全球网络(名为 'default'),这似乎是您的应用未部署的原因。
您可以通过在 Cloud Shell 中执行以下命令来创建全局 network,然后再部署您的应用程序:
$ gcloud compute networks create default --subnet-mode auto
如果您没有修改原来的默认网络,则提示问题与您的app.yaml配置文件中的网络设置有关。可以在 here.
中找到有关配置这些设置的信息如果您按照上述步骤仍然遇到问题,我建议您在 Public Issue Tracker 中创建一个新问题,并向我们提供您 app.yaml 的内容 文件以及您的项目 ID,我很乐意进一步调查。
(免责声明:我在 Google 云平台支持部门工作)