创建GCP无服务器VPC连接时出错(“代码”:13)

时间:2020-10-15 14:28:20

标签: google-cloud-platform google-cloud-sql google-cloud-run

尝试创建无服务器的VPC连接,但总是收到相同的错误

错误:(gcloud.compute.networks.vpc-access.connectors.create){ “代码”:13 “ message”:“发生内部错误:无法创建VPC Access连接器。请删除该连接器 }

尝试了以下

  1. 参考链接:Serverless VPC Access
  2. 尝试了Troubleshooting中的所有步骤-在上一页底部提到了
  3. 尝试了各种IP范围,例如10.8.0.0、10.128.0.0、10.160.0.0-无用
  4. 创建了一个新项目,并尝试在那里创建访问,结果相同
  5. 如果我将区域更改为 us-central1 (而不是 asia-south1 ),则
  6. 工作。见下文
gcloud compute networks vpc-access connectors create cloud-sql-connector \
    --network default \
    --region us-central1 \
    --range 10.8.0.0/28

Created connector [cloud-sql-connector]

gcloud compute networks vpc-access connectors describe cloud-sql-connector --region us-central1

ipCidrRange: 10.8.0.0/28
maxThroughput: 300
minThroughput: 200
name: projects/PROJECT_ID/locations/us-central1/connectors/cloud-sql-connector
network: default
state: READY
  1. 失败,如果尝试使用 asia / south1 (根据文档supported regions的一部分)
gcloud compute networks vpc-access connectors create sql-connector \
    --network default \
    --region asia-south1 \
    --range 10.8.0.0/28

ERROR: (gcloud.compute.networks.vpc-access.connectors.create) {
  "code": 13,
  "message": "An internal error occurred: Failed to create a VPC Access connector. Please delete the connector manually."
}

1 个答案:

答案 0 :(得分:0)

该特定区域似乎存在持续存在的问题,因为它的容量不足。

当我尝试使用Cloud Console而不是相关的gcloud命令创建连接器时,asia-south1区域甚至都不会显示。

请注意,您不是唯一报告此问题的用户。我建议您从GCP的问题跟踪器中注视并监视以下Public Issue,以获取相关团队的最新信息。