Skip to content

Error: Firestore database configuration is missing in firebase.json. #8678

Closed

Description

@steveoh

This commit, fd33db9, introduces a bug with the error message we are seeing.

@joehan you may need to revisit this new features expectations as it's giving problems to folks who have used firebase init with older versions than 14.4.0 that don't have the following fields populated.

It appears the CLI needs the location and database props to be available in the firebase.json or deployment fails. These properties have not been required before and were not in the firebase init experience until 2 weeks ago in 14.4.0. This broke our CI and nothing is mentioned in the release documentation about adding them.

"database": {
    "type": "string"
},
"location": {
    "type": "string"
},

[REQUIRED] Environment info

firebase-tools: 14.5.0

Platform: GitHub Ubuntu runner and macOS

[REQUIRED] Test case

This isn't possible for a deployment scenario.

[REQUIRED] Steps to reproduce

firebase.json with

"firestore": {
  "rules": "firestore.rules",
  "indexes": "firestore.indexes.json"
},

run firebase deploy

[REQUIRED] Expected behavior

firebase deploy functions. Only functions and hosting files are expected to change during this deploy.

[REQUIRED] Actual behavior

Our deploy pipeline that worked earlier today just started to fail with Firestore database configuration is missing in firebase.json after no changes to the firebase.json

i  deploying firestore
i  firestore: reading indexes from firestore.indexes.json...
i  cloud.firestore: checking firestore.rules for compilation errors...
✔  cloud.firestore: rules file firestore.rules compiled successfully

Error: Firestore database configuration is missing in firebase.json.

Activity

  1. google-oss-bot commented on May 30, 2025

    @google-oss-bot
    Collaborator

    This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

  2. CambodianCoder commented on May 30, 2025

    @CambodianCoder

    Same issue here. No changes were made to the firebase.json file.

    Image
  3. added a commit that references this issue on May 30, 2025
  4. brianmontero commented on May 30, 2025

    @brianmontero

    Having the same problem for 1 gen. Cloud Functions, deployed throughout the day without problems until this error came up (no changes to the firebase.json file either), any idea when this could be resolved?

  5. stellan-wu commented on May 30, 2025

    @stellan-wu

    This temporary fix makes my deployment work:

    • Update firebase-tools to the latest version: npm install -g firebase-tools
    • Re-run firebase init in project root directory, which will overwrite the corresponding section of the 'firebase.json' file back to the default configuration, but it will also add database and location configuration.
  6. Artl13 commented on May 30, 2025

    @Artl13

    Same issue with deployment... Firestore database configuration is missing in firebase.json
    when roll back to previous ver, works fine

  7. aalej commented on May 30, 2025

    @aalej
    Contributor

    Hey folks, apologies for the issue this has caused and thanks bringing this to our attention. This does seem like a bug on the latest version since the firebase.json configs set up with older versions like v14.3.1 are raising errors during deployments.

    Let me check this with our engineering team.

  8. ArturAmpilogov commented on May 30, 2025

    @ArturAmpilogov

    As it was mentioned, firebase-tools got the breaking config changes.

    Add to your firebase.json file the following fields:

    • database - required,
    • location - if not set, will default to nam5

    Example:

    {
      "firestore": {
        "database": "(default)",
        "location": "europe-west2",
        "rules": "firestore.rules",
        "indexes": "firestore.indexes.json"
      },
      // rest config
    }
    
  9. dimitardanailov commented on May 30, 2025

    @dimitardanailov

    I'd like to confirm. My team tested and used the previous version: [email protected]. The problem is related with the latest version deployed several hours ago.

  10. joehan commented on May 30, 2025

    @joehan
    Member

    Hi all, extremely sorry for the inconvience here - this was not intended to be a breaking change and I overlooked this during code review. I've got a fix for the immediate issue going in soon, and we'll release a patch version today to fix this. Going forward, I'm going to look into how our CI tests missed this and fix that as well.

  11. moved this from Needs Acknowledgment to Done in [Cloud] Extensions + Functionson May 30, 2025
  12. added a commit that references this issue on Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions