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:
- Rules compilation succeeds.
- A new Ruleset is created successfully.
- Updating the existing release
cloud.firestore fails.
- 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.
Environment
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:
Publishing the exact same rules from the Firebase Console also fails with:
What I already verified
Debug log
The debug log shows:
cloud.firestorefails.Steps to reproduce
Expected behavior
The new Ruleset should become the active Firestore Security Rules release.
Actual behavior
Deployment always fails with:
Additional information
I also tried:
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