Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

๐Ÿ”ฅ Service Accounts for Firebase Got Removed โ€“ Need Recovery Help

Hello Google Cloud Community,
I recently encountered an issue where the service accounts connected to my Firebase project in Google Cloud got removed.

Specifically, my default service account (PROJECT_ID@appspot.gserviceaccount.com) and the Compute Engine service account (PROJECT_NUMBER-compute@developer.gserviceaccount.com) are missing, and my Firebase Functions deployment is failing with a 404 NOT FOUND error.

Problem Details:
I can no longer see my default Firebase service accounts in IAM & Admin > Service Accounts.
Deployments to Firebase Functions fail with the following error:

 

Error: Service account projects/-/serviceAccounts/PROJECT_NUMBER-compute@developer.gserviceaccount.com was not found.

 


I checked the IAM & Admin > Service Accounts section, and it shows "Deleted Service Account".
I did not manually delete these accounts, and I am unsure if Google automatically removed them.
What I Have Tried:


โœ…Checked the Google Cloud Console > IAM & Admin > Service Accounts (Accounts are missing).
โœ…Attempted to restore the service accounts, but I couldn't find a way to do so.
โœ…Verified that Cloud Functions API and Firebase Admin API are enabled.
โœ…Checked Google Cloud billing, and my project is still active.
โœ…Tried deploying Firebase Functions, but the error persists.

Questions:
1) Is there a way to restore deleted service accounts in Google Cloud?
2) Has Google ever automatically removed service accounts? Under what conditions?
3) If I manually recreate the service accounts, how do I properly configure permissions for Firebase and Cloud Functions to work again?

Iโ€™d really appreciate any guidance on how to recover my service accounts or properly set up new ones! Thanks in advance for your help. ๐Ÿ™

@emanuelweinsjo 

 

1 4 1,344