error on firebase deploy --only storage:rules

941 views
Skip to first unread message

David Asher

unread,
Jul 29, 2020, 11:55:14 AM7/29/20
to Firebase Google Group
I am getting the following error

$ firebase deploy --only storage:rules

=== Deploying to 'test-nnnnn'...

i  deploying storage
i  firebase.storage: checking config/firebase-storage.rules for compilation errors...
+  firebase.storage: rules file config/firebase-storage.rules compiled successfully
i  storage: uploading rules config/firebase-storage.rules...

Error: Cannot release resource type "firebase.storage"

The Internet seems to know nothing about this error. Any pointers would be much appreciated!
My rules file is attached.

Thanks,
David

firebase-storage.rules

Rachel Myers

unread,
Jul 29, 2020, 12:59:16 PM7/29/20
to fireba...@googlegroups.com
Tracked the error down here; it looks like you may not have a default bucket set in storage. Can you share your firebase.json file to confirm that?

The error message should have pointed you in this direction. Sorry about that. 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2c7e393b-b7eb-45e9-9bb8-c0afca2871bbo%40googlegroups.com.

Rachel Myers

unread,
Jul 29, 2020, 1:06:51 PM7/29/20
to fireba...@googlegroups.com
Can you try deploying storage, and see if that works? `firebase deploy --only storage`

David Asher

unread,
Jul 29, 2020, 1:56:47 PM7/29/20
to Firebase Google Group
Correct - the problem was the definition of the bucket in the firebase.json file.
Thanks!

David Asher

unread,
Jul 29, 2020, 1:56:49 PM7/29/20
to Firebase Google Group
SOLVED: the problem wasn't in the rules definition, but the firebase.json file which needed a storage.bucket property.


On Wednesday, July 29, 2020 at 11:55:14 AM UTC-4, David Asher wrote:
Reply all
Reply to author
Forward
0 new messages