Skip to content

just setup fails as Firestore database already exists #146

Description

@gregoryfoster

Describe the Bug

During initial setup of an instance, running just setup [infrastructure_slug] [gcp_region] resulted in a fatal error indicating the Firestore database already existed.

ERROR: (gcloud.firestore.databases.create) Resource in projects [infrastructure_slug] is the subject of a conflict: Database already exists. Please use another database_id
error: Recipe `setup` failed on line 76 with exit code 1

Commenting out that line, and the preceding lines that had been executed once already, enabled the setup script to continue without error. I'm not sure where that Justfile is in this project, perhaps it's pulled in from elsewhere? But it's in the generated instance directory under SETUP/Justfile line 76.

gcloud firestore databases create --location=us-west1

Expected Behavior

The best I can figure, maybe there was a change in the preceding command which creates that resource?

gcloud app create --region=us-west1

This one didn't make sense to me.

Reproduction

Following the standard installation procedure.

Environment

Any additional information about your environment.

  • OS Version: [e.g. macOS 11.3.1]
  • Cookiecutter Version: [e.g. 0.5.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions