Error creating firestore database: Resource in projects "gcp id" is the subject of a conflict: Database already exists. Please use another database_id

huangapple go评论52阅读模式
英文:

Error creating firestore database: Resource in projects "gcp id" is the subject of a conflict: Database already exists. Please use another database_id

问题

我正在尝试使用以下命令创建Google Cloud Firestore数据库:

gcloud alpha firestore databases create --location=northamerica-northeast1 --type=firestore-native

这在几天前运行正常。在最近的gcloud更新后,该命令开始失败,并显示以下错误:

ERROR: (gcloud.alpha.firestore.databases.create) 资源在项目 "Google Cloud项目ID" 中存在冲突:数据库已存在。请使用另一个database_id

PS:在运行上述命令之前,我确实使用以下命令创建了gcloud应用程序:
gcloud app create --region=northamerica-northeast1

我尝试过不使用alpha命令运行,但仍然出现相同的错误。

还尝试使用--database标志设置数据库ID:

gcloud alpha firestore databases create --location=northamerica-northeast1 --type=firestore-native --database=default
英文:

I am trying to create googl cloud firestore database using the following command:

gcloud alpha firestore databases create --location=northamerica-northeast1 --type=firestore-native

This was working fine few days back. After a recent gcloud update the command has started failing with the error:

ERROR: (gcloud.alpha.firestore.databases.create) Resource in projects "google cloud project id" is the subject of a conflict: Database already exists. Please use another database_id

PS: I do create glcoud app before running the above command using the following:
gcloud app create --region=northamerica-northeast1

I tried adding using the command without alpha but still the same error.

Also tried setting the database id using --database flag

gcloud alpha firestore databases create --location=northamerica-northeast1 --type=firestore-native --database=default

答案1

得分: 1

尝试使用新的项目 ID 进行创建 -

gcloud firestore databases create --location=${REGION} --database=newname

请随意使用您自定义的名称,而不是 "newname"。

英文:

Try creating with new Project ID -

gcloud firestore databases create --location=${REGION} --database=newname

Feel free to use your custom name instead of "newname".

huangapple
  • 本文由 发表于 2023年4月19日 23:25:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76056280.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定