英文:
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".
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论