Firebase Deploy Failed (Functions and Hosting)
Quick answer
Functions deploys need the Blaze plan and working Cloud Build and Artifact Registry. If the console says Blaze but deploy still fails, check the linked Google Cloud billing account, enabled APIs and service account permissions, and rerun with --debug.
Most likely fix: Verify billing
How to fix it
Try these in order — the most common fix is first.
1. Verify billing
- Firebase console > Usage and billing: confirm Blaze
- In Google Cloud console confirm the billing account is open and linked
Did this fix it?2. Enable APIs and check permissions
- Enable Cloud Build and Artifact Registry APIs
- Check the Cloud Build and compute service accounts have required roles
Did this fix it?3. Get the real error
- Run firebase deploy --only functions --debug
- Look in Cloud Build logs for the failing step
Did this fix it?4. Retry cleanly
- Run npm install and test locally with the emulator, then redeploy a single function with --only functions:name
Did this fix it?
Symptoms
firebase deploy fails with build errors, 'Failed to create function' or build status errors.
Why it happens
- Project on Spark or billing account closed/unlinked
- Cloud Build or Artifact Registry API disabled
- Build service account lacks permissions
- Transient build failures or timeouts
- Mismatched Node runtime or code errors
This guide also covers
- firebase deploy failed
- firebase deploy functions error
- firebase functions build failed
Still not working?
If Firebase keeps failing, you're not alone. See every Firebase problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther Firebase errors
- Firestore Missing or Insufficient Permissions (permission-denied)
- Firebase auth/invalid-api-key Error
- Firebase auth/network-request-failed Error
- Firebase auth/too-many-requests Error
- Firebase auth/operation-not-allowed Error
- Firestore Quota Exceeded (resource-exhausted)
- Firebase Unexpected Bill on Blaze Plan
- Firebase Cloud Messaging Notifications Not Received