Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Versions

firebase-tools: v15.15.0

Steps to reproduce

  1. Install dependencies
  2. Run export TEST_PROJECT_ID=YOUR_PROJECT_ID
    • TEST_PROJECT_ID is used in deploy and delete scripts
  3. Run bash deploy.sh
deployment error
$ bash deploy.sh
deploying only: functions:main-codebase,functions:other-codebase
(node:17469) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

=== Deploying to 'PROJECT_ID'...

i  deploying functions
i  functions: preparing codebase main-codebase for deployment
i  functions: preparing codebase other-codebase for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
i  functions: Loading and analyzing source code for codebase main-codebase to determine what to deploy
Serving at port 8570

i  functions: Loading and analyzing source code for codebase other-codebase to determine what to deploy
Serving at port 8237

i  extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
i  functions: preparing dist/main-codebase directory for uploading...
i  functions: packaged /Users/PATH/10402-mcve/dist/main-codebase (70.26 KB) for uploading
i  functions: preparing dist/other-codebase directory for uploading...
i  functions: packaged /Users/PATH/10402-mcve/dist/other-codebase (70.26 KB) 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...
i  functions: generating the service identity for pubsub.googleapis.com...
i  functions: generating the service identity for eventarc.googleapis.com...
✔  functions: dist/other-codebase source uploaded successfully
✔  functions: dist/main-codebase source uploaded successfully
i  functions: creating Node.js 24 (2nd Gen) function main-codebase:helloWorldFromMainCodebase_00(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function main-codebase:helloWorldFromMainCodebase_01(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function main-codebase:makeUppercaseMainCodebase_00(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function other-codebase:helloWorldFromOtherCodebase_00(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function other-codebase:helloWorldFromOtherCodebase_01(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function other-codebase:makeUppercaseOtherCodebase_00(us-central1)...
✔  functions[main-codebase:helloWorldFromMainCodebase_00(us-central1)] Successful create operation.
Could not create or update Cloud Run service helloworldfromothercodebase-00, Container Healthcheck failed. Revision 'helloworldfromothercodebase-00-00001-cuj' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.

Logs URL: https://console.cloud.google.com/logs/viewer?project=PROJECT_ID&resource=cloud_run_revision/service_name/helloworldfromothercodebase-00/revision_name/helloworldfromothercodebase-00-00001-cuj&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22helloworldfromothercodebase-00%22%0Aresource.labels.revision_name%3D%22helloworldfromothercodebase-00-00001-cuj%22
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start
Could not create or update Cloud Run service makeuppercaseothercodebase-00, Container Healthcheck failed. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.

Logs URL: https://console.cloud.google.com/logs/viewer?project=PROJECT_ID&resource=cloud_run_revision/service_name/makeuppercaseothercodebase-00/revision_name/makeuppercaseothercodebase-00-00001-noc&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22makeuppercaseothercodebase-00%22%0Aresource.labels.revision_name%3D%22makeuppercaseothercodebase-00-00001-noc%22
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start
✔  functions[main-codebase:helloWorldFromMainCodebase_01(us-central1)] Successful create operation.
Could not create or update Cloud Run service helloworldfromothercodebase-01, Container Healthcheck failed. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.

Logs URL: https://console.cloud.google.com/logs/viewer?project=PROJECT_ID&resource=cloud_run_revision/service_name/helloworldfromothercodebase-01/revision_name/helloworldfromothercodebase-01-00001-cor&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22helloworldfromothercodebase-01%22%0Aresource.labels.revision_name%3D%22helloworldfromothercodebase-01-00001-cor%22
For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start
✔  functions[main-codebase:makeUppercaseMainCodebase_00(us-central1)] Successful create operation.
⚠  functions: Deploys failed. Skipping deletes.

Functions deploy had errors with the following functions:
        other-codebase:helloWorldFromOtherCodebase_00(us-central1)
        other-codebase:helloWorldFromOtherCodebase_01(us-central1)
        other-codebase:makeUppercaseOtherCodebase_00(us-central1)
Function URL (main-codebase:helloWorldFromMainCodebase_00(us-central1)): https://us-central1-PROJECT_ID.cloudfunctions.net/helloWorldFromMainCodebase_00
Function URL (main-codebase:helloWorldFromMainCodebase_01(us-central1)): https://us-central1-PROJECT_ID.cloudfunctions.net/helloWorldFromMainCodebase_01
Error: There was an error deploying functions:
- Error Failed to create function helloWorldFromOtherCodebase_00 in region us-central1
- Error Failed to create function helloWorldFromOtherCodebase_01 in region us-central1
- Error Failed to create function makeUppercaseOtherCodebase_00 in region us-central1

Notes

The issue is not reproducible on firebase-tools v15.14.0

  1. Run node deleteFunctions.js
    • deletes all the functions declared in all codebases
    • this takes a while to complete
  2. Run bash deploy.sh
deployment successful
$ bash deploy.sh
deploying only: functions:main-codebase,functions:other-codebase
(node:19632) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

=== Deploying to 'PROJECT_ID'...

i  deploying functions
i  functions: preparing codebase main-codebase for deployment
i  functions: preparing codebase other-codebase for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
i  functions: Loading and analyzing source code for codebase main-codebase to determine what to deploy
Serving at port 8017

i  functions: Loading and analyzing source code for codebase other-codebase to determine what to deploy
Serving at port 8030

i  extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
i  functions: preparing dist/main-codebase directory for uploading...
i  functions: packaged /Users/PATH/10402-mcve/dist/main-codebase (70.26 KB) for uploading
i  functions: preparing dist/other-codebase directory for uploading...
i  functions: packaged /Users/PATH/10402-mcve/dist/other-codebase (70.26 KB) 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...
i  functions: generating the service identity for pubsub.googleapis.com...
i  functions: generating the service identity for eventarc.googleapis.com...
✔  functions: dist/other-codebase source uploaded successfully
✔  functions: dist/main-codebase source uploaded successfully
i  functions: creating Node.js 24 (2nd Gen) function main-codebase:helloWorldFromMainCodebase_00(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function main-codebase:helloWorldFromMainCodebase_01(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function main-codebase:makeUppercaseMainCodebase_00(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function other-codebase:helloWorldFromOtherCodebase_00(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function other-codebase:helloWorldFromOtherCodebase_01(us-central1)...
i  functions: creating Node.js 24 (2nd Gen) function other-codebase:makeUppercaseOtherCodebase_00(us-central1)...
✔  functions[other-codebase:helloWorldFromOtherCodebase_01(us-central1)] Successful create operation.
✔  functions[other-codebase:helloWorldFromOtherCodebase_00(us-central1)] Successful create operation.
✔  functions[main-codebase:helloWorldFromMainCodebase_00(us-central1)] Successful create operation.
✔  functions[main-codebase:helloWorldFromMainCodebase_01(us-central1)] Successful create operation.
✔  functions[other-codebase:makeUppercaseOtherCodebase_00(us-central1)] Successful create operation.
✔  functions[main-codebase:makeUppercaseMainCodebase_00(us-central1)] Successful create operation.
Function URL (main-codebase:helloWorldFromMainCodebase_00(us-central1)): https://us-central1-PROJECT_ID.cloudfunctions.net/helloWorldFromMainCodebase_00
Function URL (main-codebase:helloWorldFromMainCodebase_01(us-central1)): https://us-central1-PROJECT_ID.cloudfunctions.net/helloWorldFromMainCodebase_01
Function URL (other-codebase:helloWorldFromOtherCodebase_00(us-central1)): https://us-central1-PROJECT_ID.cloudfunctions.net/helloWorldFromOtherCodebase_00
Function URL (other-codebase:helloWorldFromOtherCodebase_01(us-central1)): https://us-central1-PROJECT_ID.cloudfunctions.net/helloWorldFromOtherCodebase_01

✔  Deploy complete!

Project Console: https://console.firebase.google.com/project/PROJECT_ID/overview

Enabled experiments

│ Enabled │ Name                           │ Description                                                                 │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ functionsv2deployoptimizations │ Optimize deployments of v2 firebase functions                               │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ webframeworks                  │ Native support for popular web frameworks                                   │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ pintags                        │ Adds the pinTag option to Run and Functions rewrites                        │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ apphosting                     │ Allow CLI option for Frameworks                                             │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ genkit                         │ Enable Genkit related features.                                             │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ mcp                            │ Adds experimental `firebase mcp` command for running a Firebase MCP server. │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ fdcift                         │ Enable instrumentless trial for Data Connect                                │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ fdcwebhooks                    │ Enable Firebase Data Connect webhooks feature.                              │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ y       │ fdcrealtime                    │ Enable Firebase Data Connect realtime feature.                              │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ n       │ deletegcfartifacts             │ Add the functions:deletegcfartifacts command to purge docker build images   │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ n       │ legacyRuntimeConfigCommands    │ Expose legacy functions.config() CLI commands                               │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ n       │ appsinit                       │ Adds experimental `apps:init` command.                                      │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ n       │ mcpalpha                       │ Opt-in to early MCP features before they're widely released.                │
├─────────┼────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────┤
│ n       │ apptesting                     │ Adds experimental App Testing feature                                       │
└─────────┴────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────┘

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages