Skip to content

Issues deploying Cloud Functions Revised #9853

Closed

Description

@josephconderlms

I think this may be related to #9735 . It looks like very similar behavior I am seeing when trying to deploy updates to my firebase functions.

[REQUIRED] Environment info

15.5.1

macOS

firebase deploy --only functions

[REQUIRED] Expected behavior

The function should deploy to the firebase environment-- it should be deploying, and passing the health check.

A note-- I see that when i execute the deploy of functions the firebase-functions library outputs a port it is running on. That number appears random-- some 8xxx number. But the failure on the cloud run indicates port 8080-- now that may be unrelated as the logs clearly indicate it can not load the module mentioned above.

Activity

  1. josephconderlms commented on Feb 1, 2026

    @josephconderlms
    Author

    I'm not sure I mentioned it-- but in the deployment log-- the log indicates:
    Detailed stack trace: Error: Cannot find module 'firebase-functions/v2/https'

    Then the healthcheck fails after a timeout and no deployment.

  2. vipshek commented on Feb 1, 2026

    @vipshek

    @josephconderlms Just flagging that your linked debug.txt above contains sensitive info like API keys - recommend you remove that file immediately and rotate credentials as they could be compromised.

    Separately, I'm seeing a similar issue, will file shortly.

  3. aalej commented on Feb 2, 2026

    @aalej
    Contributor

    Hey @josephconderlms, at the moment, it's difficult to determine what is causing this issue. I tried reproducing it, but no errors were raised when I tried deploying.

    To help us debug and check if the issue is with firebase-tools, could you please provide a minimal reproducible example? If you think the issue is caused by server side changes(similar to #9735), it may be worth reading out to our Firebase Support team to verify if this is the case.

    Regarding the random port 8xxx, this is not related to the error you mentioned. For context, when we deploy your functions, the Firebase CLI loads your functions code so that it can be discovered an analyzed(determine triggers, etc.). This port is only temporarily open and is only used during our functions discovery process. This is intentionally randomized to make sure we find an open port on your local machine, and is not used when the function is deployed on the container

  4. added
    Needs: Author Feedback
    on Feb 2, 2026
  5. josephconderlms commented on Feb 6, 2026

    @josephconderlms
    Author

    This issue is resolved. A custom NPM repository I use had an SSL cert expire. I did not notice this locally.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author Feedbackapi: functionstype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions