This page provides troubleshooting help and answers to frequently asked questions about using Cloud Storage for Firebase. If you can't find what you're looking for or need additional help, contact Firebase support.
General troubleshooting/FAQ
Go to the Cloud Storage documentation to learn more about the Changes for the default Cloud Storage bucket.
Go to the Cloud Storage documentation to learn more about the Changes for pricing plan requirements for Cloud Storage.
Here are some likely reasons for getting these errors:
The Cloud Storage for Firebase API isn't enabled for your project.
You can check if the API is enabled in the Google Cloud console. Learn how to find enabled APIs in your project and how to enable them in this Google Cloud guide.
The required service account for Cloud Storage for Firebase has one of the following issues:
The service account is missing required permissions.
The service account has been deleted. Note that in the Firebase console, a missing service account might manifest as a failure to add required IAM permissions.
For these two service account issues, see the related FAQ on this page.
Firebase uses service accounts to operate and manage services without sharing user credentials. When you create a Firebase project, you might notice that a number of service accounts are already available in your project.
The required service account for Cloud Storage for Firebase is scoped to your
project and is named:
service-PROJECT_NUMBER@gcp-sa-firebasestorage.iam.gserviceaccount.com
If you used Cloud Storage for Firebase before September 19, 2022, you might see
an additional service account on previously linked Cloud Storage buckets
named:
firebase-storage@system.gserviceaccount.com
You can view all service accounts for your project in the Service accounts tab of the Firebase console.
Add the required service account if it's missing
If you deleted the required service account or it's not present in your project, you can do one of the following to add the service account.
In the Firebase console, a missing service account might manifest as a failure to add required IAM permissions.
(Recommended) Automated: Use the
AddFirebaseREST endpoint to re-import your bucket into Firebase. You only need to call this endpoint once, not once for each linked bucket.Manual: Follow the steps in Creating and managing service accounts.
Following that guide, add a service account with the IAM role
Cloud Storage for Firebase Service Agentand service account name: .service-PROJECT_NUMBER@gcp-sa-firebasestorage.iam.gserviceaccount.com
Remove the required service account
We strongly discourage removing the service account because this might block access to your Cloud Storage buckets from your apps. To remove the service account from your project, follow the instructions in Disabling a service account.