Skip to content

Firestore Rules deployment fails with HTTP 409 Requested entity already exists after successful Ruleset creation #10819

Description

@wearlindelacruz-oss

Environment

  • firebase-tools: 15.24.0
  • Google Cloud SDK: 556.0.0
  • Windows 11
  • Firebase Project ID: smartcut-501cc
  • Authentication: Project Owner

Problem

I am unable to deploy Firestore Security Rules.

The rules compile successfully.

The Firebase CLI successfully creates a new Ruleset.

Deployment fails when updating the Firestore release with:

HTTP 409
Requested entity already exists

Publishing the exact same rules from the Firebase Console also fails with:

An unknown error occurred.

What I already verified

  • Project Owner permissions
  • Correct Firebase project
  • Firebase CLI reinstalled
  • Rules compile successfully
  • Ruleset creation succeeds
  • Same behavior from Firebase Console
  • Same behavior after reinstalling firebase-tools
  • Same behavior after using Google Cloud SDK

Debug log

The debug log shows:

  1. Rules compilation succeeds.
  2. A new Ruleset is created successfully.
  3. Updating the existing release cloud.firestore fails.
  4. The deployment ends with HTTP 409.

Steps to reproduce

firebase deploy --only firestore:rules

Expected behavior

The new Ruleset should become the active Firestore Security Rules release.

Actual behavior

Deployment always fails with:

HTTP 409
Requested entity already exists

Additional information

I also tried:

  • Reinstalling firebase-tools
  • Publishing directly from Firebase Console
  • Using Google Cloud SDK
  • Calling the Firebase Rules REST API

The REST API also failed when attempting to update the release.

This appears to be related to updating the Firestore Rules release rather than compiling the Ruleset.

The issue is reproducible every time.

Debug excerpt

Rules compiled successfully.
Ruleset created successfully.
Release update fails with HTTP 409 Requested entity already exists.

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