-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy Error: Insufficient permissions to configure a trigger (permission denied for bucket) #184
Comments
Hi @JohnEMSammons do you have multiple users adding images? Having |
Can I ask how you created your Firebase project? Did you simply create the project normally through the Firebase app console? Is it an older project? (we had bugs at some point where Cloud Storage buckets were not created wit the right permissions but that should be fixed) Basically it seems you may have hit a bug. Try re-creating a new firebase project and let us know if that should fix this issue... |
This was integrated into an existing Firebase project. The project was originally created a few months ago. I will move to a new Firebase project and see how it goes. What is the procedure for correcting existing firebase projects with permissions issues? |
I started a new project and now I can deploy. the function is still not working however. What should my storage rules be? I am currently getting the following in my blurOffensiveImages log: 3:20:05.407 PM when I change the rules permission to user level, then nothing is able to post to the bucket, and I get the spin icon forever. I went through all of the code labs to confirm the details, and I believe I have followed all of the steps. John |
I just had the same problem. I looked at a new project permissions and noticed that in the old project there were some missing. To fix it try these steps:
UPDATE (April 14, 2017) I just found that in order to use GCS API to upload/move/delete files there are other permissions to add:
Only newly uploaded files will get the new permissions, the older ones will have to be set up manually. |
👍 Thanks for the Help @dogeweb that's exactly it. |
👍 That was the issue with my old project. Thanks DogeWeb! |
Thanks @dogeweb for the update. I needed to update "object default permissions" in addition to the "bucket permissions" as well. All is working now. |
I had this problem ("Insufficient permissions to configure a trigger") -- but the solution turned out to be something different entirely. The Google user I'm logged in as has access to multiple Google Cloud projects. I had to set the |
thanks @mikeknapp , adding "--project=" worked for me! |
When I add the blurOffensiveImages code, and deploy I get the following error:
! functions[blurOffensiveImages]: Deploy Error: Insufficient permissions to (re)configure a trigger (permission denied for bucket friendlychat-XXXXXXXXXX.com). Please, give owner permissions to the editor role of the bucket and try again.
I removed the full url.
I followed the tutorial correctly as far as I can tell.
My current storage rules are as follows:
// Grants a user access to a node matching their user ID
service firebase.storage {
match /b/{bucket}/o {
// Files look like: "user//path/to/file.txt"
match /user/{userId}/{allPaths=**} {
allow read, write: if request.auth.uid == userId;
}
}
}
Did I miss something?
Thanks,
John
The text was updated successfully, but these errors were encountered: