Skip to content

Internal error during firebase deploy --only hosting with Next.js 15 #9879

Description

@GScandelari

Environment info

  • firebase-tools version: latest (used in GitHub Actions)
  • Platform: GitHub Actions (ubuntu-latest)
  • Node version: 20
  • Next.js version: 15.5.9
  • Firebase SDK version: 11.1.0

Steps to reproduce

  1. Run firebase deploy --only hosting for a Next.js 15 project
  2. Build completes successfully
  3. Deploy fails at the final step

Expected behavior

Deploy should complete successfully.

Actual behavior

Deploy fails with:
Error: An Internal error has occurred. Please try again in a few minutes. If this error persists, please open an issue at https://github.com/firebase/firebase-tools

The error occurs after:
i functions: generating the service identity for pubsub.googleapis.com...
i functions: generating the service identity for eventarc.googleapis.com...

Additional context

  • The build phase completes successfully (74 static pages generated)
  • The error has persisted for several hours across multiple retry attempts
  • Previous deploys to the same project worked fine
  • The function being deployed is ssrcurvamestra (SSR for Next.js)

Full log output shows the deploy reaches the final stage before failing:
i functions: packaged .firebase/curva-mestra/functions (85.07 MB) for uploading
i functions: ensuring required API run.googleapis.com is enabled...
i functions: ensuring required API eventarc.googleapis.com is enabled...
i functions: ensuring required API pubsub.googleapis.com is enabled...
i functions: ensuring required API storage.googleapis.com is enabled...
✔ functions: required API eventarc.googleapis.com is enabled
✔ functions: required API storage.googleapis.com is enabled
✔ functions: required API pubsub.googleapis.com is enabled
✔ functions: required API run.googleapis.com is enabled
i functions: generating the service identity for pubsub.googleapis.com...
i functions: generating the service identity for eventarc.googleapis.com...

Error: An Internal error has occurred.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions