Build step not running on Firebase App Hosting
Environment
A github repo with nitro with firebase_app_hosting preset enabled & a firebase project with App Hosting enabled connected to the repo
Reproduction
https://github.com/vis97c/nitro-firebase-test
Describe the bug
The cloud build process never runs the build step for nitro, meaning no ".output" path will ever run, breaking any further deployment steps.
Additional context
This issue was originally opened on nuxt side: https://github.com/nuxt/nuxt/issues/31826
The issue persist on a minimal nitro repro.
Logs
**APP HOSTING DEPLOY LOG**
generic::failed_precondition: Revision 'nitro-firebase-test-build-2025-04-21-001' 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=test-759ef&resource=cloud_run_revision/service_name/nitro-firebase-test/revision_name/nitro-firebase-test-build-2025-04-21-001&advancedFilter=resource.type%3D%22cloud_run_revision%22%0Aresource.labels.service_name%3D%22nitro-firebase-test%22%0Aresource.labels.revision_name%3D%22nitro-firebase-test-build-2025-04-21-001%22 For more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start
**CLOUD RUN FAILED LOG, unable to find .output path**
Error: Cannot find module '/workspace/.output/server/index.mjs'
at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Module._load (node:internal/modules/cjs/loader:1043:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49 {
**SUCCESSFULL CLOUD BUILD, no build step:**
starting build "df65ac39-69d6-4d70-9c0c-deb191b3169a"
FETCHSOURCE
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /workspace/.git/
From https://github.com/vis97c/nitro-firebase-test
* branch 71c299ec7a9e24dc84eed51a1a6bde97a4e3c87d -> FETCH_HEAD
HEAD is now at 71c299e setup app hosting
GitCommit:
71c299ec7a9e24dc84eed51a1a6bde97a4e3c87d
BUILD
Starting Step #0 - "ubuntu"
Pulling image: ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
Digest: sha256:1e622c5f073b4f6bfad6632f2616c7f59ef256e96fe78bf6a595d1dc4376ac02
Status: Downloaded newer image for ubuntu:latest
docker.io/library/ubuntu:latest
Finished Step #0 - "ubuntu"
Starting Step #1 - "preparer"
Pulling image: gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
296af0355d8a6dfeb9dd513820312430e29df281: Pulling from buildpacks/firebase-app-hosting-22/builder
7478e0ac0f23: Already exists
c3dd5f38958c: Pulling fs layer
9709bf2b448f: Pulling fs layer
a74c2b09bb07: Pulling fs layer
999e8b229476: Pulling fs layer
1c9c383d63bc: Pulling fs layer
8f56d1d34e53: Pulling fs layer
182afb1fe5dc: Pulling fs layer
1a82443b3661: Pulling fs layer
2ac72a9c7e8e: Pulling fs layer
1182a6567613: Pulling fs layer
a32a099c9a20: Pulling fs layer
ce58163d65af: Pulling fs layer
ab5065110e9b: Pulling fs layer
52f20bf313bd: Pulling fs layer
42ac8026e9a4: Pulling fs layer
565b08242743: Pulling fs layer
548eb8f86e6e: Pulling fs layer
aba207a2a2a1: Pulling fs layer
2b84881ebdca: Pulling fs layer
4f4fb700ef54: Pulling fs layer
99e0f735f13b: Pulling fs layer
48c38496089a: Pulling fs layer
999e8b229476: Waiting
1c9c383d63bc: Waiting
8f56d1d34e53: Waiting
182afb1fe5dc: Waiting
1a82443b3661: Waiting
2ac72a9c7e8e: Waiting
1182a6567613: Waiting
a32a099c9a20: Waiting
ce58163d65af: Waiting
ab5065110e9b: Waiting
52f20bf313bd: Waiting
42ac8026e9a4: Waiting
565b08242743: Waiting
548eb8f86e6e: Waiting
aba207a2a2a1: Waiting
2b84881ebdca: Waiting
4f4fb700ef54: Waiting
99e0f735f13b: Waiting
48c38496089a: Waiting
c3dd5f38958c: Verifying Checksum
c3dd5f38958c: Download complete
c3dd5f38958c: Pull complete
999e8b229476: Verifying Checksum
999e8b229476: Download complete
a74c2b09bb07: Verifying Checksum
a74c2b09bb07: Download complete
1c9c383d63bc: Verifying Checksum
1c9c383d63bc: Download complete
8f56d1d34e53: Verifying Checksum
8f56d1d34e53: Download complete
182afb1fe5dc: Verifying Checksum
182afb1fe5dc: Download complete
1a82443b3661: Verifying Checksum
1a82443b3661: Download complete
2ac72a9c7e8e: Verifying Checksum
2ac72a9c7e8e: Download complete
1182a6567613: Verifying Checksum
1182a6567613: Download complete
a32a099c9a20: Verifying Checksum
a32a099c9a20: Download complete
ce58163d65af: Verifying Checksum
ce58163d65af: Download complete
ab5065110e9b: Verifying Checksum
ab5065110e9b: Download complete
52f20bf313bd: Verifying Checksum
52f20bf313bd: Download complete
42ac8026e9a4: Verifying Checksum
42ac8026e9a4: Download complete
9709bf2b448f: Verifying Checksum
9709bf2b448f: Download complete
565b08242743: Download complete
548eb8f86e6e: Verifying Checksum
548eb8f86e6e: Download complete
2b84881ebdca: Verifying Checksum
2b84881ebdca: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
aba207a2a2a1: Verifying Checksum
aba207a2a2a1: Download complete
99e0f735f13b: Verifying Checksum
99e0f735f13b: Download complete
48c38496089a: Verifying Checksum
48c38496089a: Download complete
9709bf2b448f: Pull complete
a74c2b09bb07: Pull complete
999e8b229476: Pull complete
1c9c383d63bc: Pull complete
8f56d1d34e53: Pull complete
182afb1fe5dc: Pull complete
1a82443b3661: Pull complete
2ac72a9c7e8e: Pull complete
1182a6567613: Pull complete
a32a099c9a20: Pull complete
ce58163d65af: Pull complete
ab5065110e9b: Pull complete
52f20bf313bd: Pull complete
42ac8026e9a4: Pull complete
565b08242743: Pull complete
548eb8f86e6e: Pull complete
aba207a2a2a1: Pull complete
2b84881ebdca: Pull complete
4f4fb700ef54: Pull complete
99e0f735f13b: Pull complete
48c38496089a: Pull complete
Digest: sha256:b9f2101b272793a52d47e2175da58c9d939b4e10399912af06789e036e246acf
Status: Downloaded newer image for gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
2025/04/21 14:58:49 FIREBASE_CONFIG has no availability specified, applying the default of 'BUILD' and 'RUNTIME'
2025/04/21 14:58:49 Final app hosting schema:
runConfig:
cpu: null
memoryMiB: 512
concurrency: null
maxInstances: 100
minInstances: 0
vpcAccess: null
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
scripts:
runCommand: node .output/server/index.mjs
buildCommand: yarn build
outputFiles:
serverApp:
include:
- .output
2025/04/21 14:58:49 Final app hosting schema:
runConfig:
cpu: null
memoryMiB: 512
concurrency: null
maxInstances: 100
minInstances: 0
vpcAccess: null
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
scripts:
runCommand: node .output/server/index.mjs
buildCommand: yarn build
outputFiles:
serverApp:
include:
- .output
Finished Step #1 - "preparer"
Starting Step #2 - "pack"
Pulling image: gcr.io/k8s-skaffold/pack
Using default tag: latest
latest: Pulling from k8s-skaffold/pack
396c31837116: Pulling fs layer
9776b10d5c8c: Pulling fs layer
52cb9ac3197f: Pulling fs layer
9776b10d5c8c: Verifying Checksum
9776b10d5c8c: Download complete
396c31837116: Verifying Checksum
396c31837116: Download complete
52cb9ac3197f: Verifying Checksum
52cb9ac3197f: Download complete
396c31837116: Pull complete
9776b10d5c8c: Pull complete
52cb9ac3197f: Pull complete
Digest: sha256:221c0c0d9a90f46f108bb888a1da9e99c82ff631e8b1c63b0223ea951752bd53
Status: Downloaded newer image for gcr.io/k8s-skaffold/pack:latest
gcr.io/k8s-skaffold/pack:latest
296af0355d8a6dfeb9dd513820312430e29df281: Pulling from buildpacks/firebase-app-hosting-22/builder
Digest: sha256:b9f2101b272793a52d47e2175da58c9d939b4e10399912af06789e036e246acf
Status: Image is up to date for gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
latest: Pulling from buildpacks/firebase-app-hosting-22/run
c7ff1e1c28ca: Pulling fs layer
d36ff6414fea: Pulling fs layer
9b9b5a9de773: Pulling fs layer
917bb5b8123d: Pulling fs layer
09fa1de13312: Pulling fs layer
917bb5b8123d: Waiting
09fa1de13312: Waiting
d36ff6414fea: Verifying Checksum
d36ff6414fea: Download complete
9b9b5a9de773: Verifying Checksum
9b9b5a9de773: Download complete
c7ff1e1c28ca: Verifying Checksum
c7ff1e1c28ca: Download complete
09fa1de13312: Verifying Checksum
09fa1de13312: Download complete
917bb5b8123d: Verifying Checksum
917bb5b8123d: Download complete
c7ff1e1c28ca: Pull complete
d36ff6414fea: Pull complete
9b9b5a9de773: Pull complete
917bb5b8123d: Pull complete
09fa1de13312: Pull complete
Digest: sha256:104c8ca4f1bb70b4043786f3d7df53b773567b532cb95d8b679b56197b7e708b
Status: Downloaded newer image for gcr.io/buildpacks/firebase-app-hosting-22/run:latest
===> ANALYZING
Image with name "us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-21-002" not found
===> DETECTING
target distro name/version labels not found, reading /etc/os-release file
google.nodejs.runtime 1.0.0
google.nodejs.yarn 2.1.0
google.nodejs.firebasebundle 0.0.1
===> RESTORING
===> BUILDING
target distro name/version labels not found, reading /etc/os-release file
=== Node.js - Runtime ([email protected]) ===
2025/04/21 14:58:59 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
Adding image label google.runtime-version: nodejs20
2025/04/21 14:58:59 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
***** CACHE MISS: "nodejs"
Installing Node.js v20.19.0.
2025/04/21 14:59:00 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/nodejs-20.19.0.tar.gz
=== Node.js - Yarn ([email protected]) ===
***** CACHE MISS: "yarn_engine"
Installing Yarn v4.8.0
2025/04/21 14:59:02 [DEBUG] GET https://repo.yarnpkg.com/4.8.0/packages/yarnpkg-cli/bin/yarn.js
Setting environment variable PATH=/layers/google.nodejs.yarn/yarn_engine/bin:/layers/google.nodejs.runtime/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
WARNING: Skipping adding auth token to /home/cnb/.yarnrc.yml. Unable to find Artifact Registry in /workspace/.yarnrc.yml.
--------------------------------------------------------------------------------
Running "yarn install --immutable"
➤ YN0000: · Yarn 4.8.0
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 315ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 585 packages were added to the project (+ 142.43 MiB).
➤ YN0000: └ Completed in 7s 959ms
➤ YN0000: ┌ Link step
➤ YN0007: │ esbuild@npm:0.25.2 must be built because it never has been before or the last one failed
➤ YN0007: │ @parcel/watcher@npm:2.5.1 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.11 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3s 863ms
➤ YN0000: · Done in 12s 345ms
Done "yarn install --immutable" (13.088517361s)
Pruning devDependencies
--------------------------------------------------------------------------------
Running "yarn workspaces focus --all --production"
➤ YN0000: · Yarn 4.8.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ - @babel/code-frame@npm:7.26.2, @babel/helper-string-parser@npm:7.25.9, @babel/helper-validator-identifier@npm:7.25.9, @babel/parser@npm:7.27.0, and 659 more.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 1s 165ms
➤ YN0000: · Done in 1s 249ms
Done "yarn workspaces focus --all --production" (1.867676308s)
=== Node.js - Firebasebundle ([email protected]) ===
Copying static assets.
Setting run command from apphosting.yaml: node .output/server/index.mjs
===> EXPORTING
Adding layer 'google.nodejs.runtime:node'
Adding layer 'google.nodejs.yarn:env'
Adding layer 'google.nodejs.yarn:yarn_engine'
Adding layer 'buildpacksio/lifecycle:launch.sbom'
Added 1/1 app layer(s)
Adding layer 'buildpacksio/lifecycle:launcher'
Adding layer 'buildpacksio/lifecycle:config'
Adding layer 'buildpacksio/lifecycle:process-types'
Adding label 'io.buildpacks.lifecycle.metadata'
Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Adding label 'google.runtime-version'
Setting default process type 'web'
Saving us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-21-002...
*** Images (24086c390540):
us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-21-002
Adding cache layer 'google.nodejs.runtime:node'
Adding cache layer 'google.nodejs.yarn:yarn_engine'
Successfully built image 'us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-21-002'
Finished Step #2 - "pack"
Starting Step #3 - "publisher"
Already have image (with digest): gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
2025/04/21 14:59:31 Final build schema:
runConfig:
cpu: null
memoryMiB: 512
concurrency: null
maxInstances: 100
minInstances: 0
vpcAccess: null
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
metadata:
adapterPackageName: nitropack
adapterVersion: 2.11.9
framework: nitro
frameworkVersion: 2.x
. Note that any unset runConfig fields will be set to reasonable default values.
Finished Step #3 - "publisher"
PUSH
Pushing us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-21-002
The push refers to repository [us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test]
83d85471d9f8: Preparing
28cf3af6d359: Preparing
b95feea05494: Preparing
c6a459888d05: Preparing
36f9de0748c4: Preparing
40492643ff05: Preparing
958d4387adfe: Preparing
47b4e1d78ac9: Preparing
b8269820b0b6: Preparing
a78cc8b4ab20: Preparing
f2934629780f: Preparing
8d55bb752712: Preparing
65c636ce09f2: Preparing
40492643ff05: Waiting
958d4387adfe: Waiting
47b4e1d78ac9: Waiting
b8269820b0b6: Waiting
a78cc8b4ab20: Waiting
f2934629780f: Waiting
8d55bb752712: Waiting
65c636ce09f2: Waiting
36f9de0748c4: Pushed
28cf3af6d359: Pushed
c6a459888d05: Pushed
83d85471d9f8: Pushed
b8269820b0b6: Layer already exists
b95feea05494: Pushed
f2934629780f: Layer already exists
a78cc8b4ab20: Layer already exists
8d55bb752712: Layer already exists
65c636ce09f2: Layer already exists
958d4387adfe: Pushed
40492643ff05: Pushed
47b4e1d78ac9: Pushed
build-2025-04-21-002: digest: sha256:c924b1b1d93b73d9d4534f2dfff6726e9f6a7d745359bb04d17d464cfd078baf size: 3035
DONE
Normally, you shouldn't need to add apphosting.yml, and .apphosting/bundle.yaml.
Please check nitro-deploys for a working deployment example to firebase app hosting.
The cloud build process never runs the build step for nitro
Can you please share full cloud build logs?
This is the "complete" cloud build log. This time with zero config. But take into account that in a real scenario I need to define the resources I want for my Instance as well as environment variable and secrets.
starting build "1f7949d1-0972-4dc1-88f8-dffd5011010d"
FETCHSOURCE
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /workspace/.git/
From https://github.com/vis97c/nitro-firebase-test
* branch 8ea87a7103fc47a12294044f35bca01680832619 -> FETCH_HEAD
HEAD is now at 8ea87a7 zero config
GitCommit:
8ea87a7103fc47a12294044f35bca01680832619
BUILD
Starting Step #0 - "ubuntu"
Pulling image: ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
Digest: sha256:1e622c5f073b4f6bfad6632f2616c7f59ef256e96fe78bf6a595d1dc4376ac02
Status: Downloaded newer image for ubuntu:latest
docker.io/library/ubuntu:latest
Finished Step #0 - "ubuntu"
Starting Step #1 - "preparer"
Pulling image: gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
296af0355d8a6dfeb9dd513820312430e29df281: Pulling from buildpacks/firebase-app-hosting-22/builder
7478e0ac0f23: Already exists
c3dd5f38958c: Pulling fs layer
9709bf2b448f: Pulling fs layer
a74c2b09bb07: Pulling fs layer
999e8b229476: Pulling fs layer
1c9c383d63bc: Pulling fs layer
8f56d1d34e53: Pulling fs layer
182afb1fe5dc: Pulling fs layer
1a82443b3661: Pulling fs layer
2ac72a9c7e8e: Pulling fs layer
1182a6567613: Pulling fs layer
a32a099c9a20: Pulling fs layer
ce58163d65af: Pulling fs layer
ab5065110e9b: Pulling fs layer
52f20bf313bd: Pulling fs layer
42ac8026e9a4: Pulling fs layer
565b08242743: Pulling fs layer
548eb8f86e6e: Pulling fs layer
aba207a2a2a1: Pulling fs layer
2b84881ebdca: Pulling fs layer
4f4fb700ef54: Pulling fs layer
99e0f735f13b: Pulling fs layer
48c38496089a: Pulling fs layer
ce58163d65af: Waiting
ab5065110e9b: Waiting
52f20bf313bd: Waiting
42ac8026e9a4: Waiting
999e8b229476: Waiting
1c9c383d63bc: Waiting
8f56d1d34e53: Waiting
182afb1fe5dc: Waiting
1a82443b3661: Waiting
2ac72a9c7e8e: Waiting
1182a6567613: Waiting
a32a099c9a20: Waiting
565b08242743: Waiting
548eb8f86e6e: Waiting
aba207a2a2a1: Waiting
2b84881ebdca: Waiting
4f4fb700ef54: Waiting
99e0f735f13b: Waiting
48c38496089a: Waiting
c3dd5f38958c: Verifying Checksum
c3dd5f38958c: Download complete
c3dd5f38958c: Pull complete
999e8b229476: Verifying Checksum
999e8b229476: Download complete
a74c2b09bb07: Verifying Checksum
a74c2b09bb07: Download complete
1c9c383d63bc: Verifying Checksum
1c9c383d63bc: Download complete
8f56d1d34e53: Verifying Checksum
8f56d1d34e53: Download complete
182afb1fe5dc: Verifying Checksum
182afb1fe5dc: Download complete
1a82443b3661: Verifying Checksum
1a82443b3661: Download complete
2ac72a9c7e8e: Verifying Checksum
2ac72a9c7e8e: Download complete
a32a099c9a20: Verifying Checksum
a32a099c9a20: Download complete
1182a6567613: Verifying Checksum
1182a6567613: Download complete
ab5065110e9b: Verifying Checksum
ab5065110e9b: Download complete
ce58163d65af: Verifying Checksum
ce58163d65af: Download complete
42ac8026e9a4: Verifying Checksum
42ac8026e9a4: Download complete
52f20bf313bd: Verifying Checksum
52f20bf313bd: Download complete
548eb8f86e6e: Verifying Checksum
548eb8f86e6e: Download complete
565b08242743: Verifying Checksum
565b08242743: Download complete
9709bf2b448f: Verifying Checksum
9709bf2b448f: Download complete
2b84881ebdca: Verifying Checksum
2b84881ebdca: Download complete
aba207a2a2a1: Verifying Checksum
aba207a2a2a1: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
99e0f735f13b: Verifying Checksum
99e0f735f13b: Download complete
48c38496089a: Verifying Checksum
48c38496089a: Download complete
9709bf2b448f: Pull complete
a74c2b09bb07: Pull complete
999e8b229476: Pull complete
1c9c383d63bc: Pull complete
8f56d1d34e53: Pull complete
182afb1fe5dc: Pull complete
1a82443b3661: Pull complete
2ac72a9c7e8e: Pull complete
1182a6567613: Pull complete
a32a099c9a20: Pull complete
ce58163d65af: Pull complete
ab5065110e9b: Pull complete
52f20bf313bd: Pull complete
42ac8026e9a4: Pull complete
565b08242743: Pull complete
548eb8f86e6e: Pull complete
aba207a2a2a1: Pull complete
2b84881ebdca: Pull complete
4f4fb700ef54: Pull complete
99e0f735f13b: Pull complete
48c38496089a: Pull complete
Digest: sha256:b9f2101b272793a52d47e2175da58c9d939b4e10399912af06789e036e246acf
Status: Downloaded newer image for gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
2025/04/22 20:18:26 FIREBASE_CONFIG has no availability specified, applying the default of 'BUILD' and 'RUNTIME'
2025/04/22 20:18:26 Final app hosting schema:
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
2025/04/22 20:18:26 Final app hosting schema:
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
Finished Step #1 - "preparer"
Starting Step #2 - "pack"
Pulling image: gcr.io/k8s-skaffold/pack
Using default tag: latest
latest: Pulling from k8s-skaffold/pack
396c31837116: Pulling fs layer
9776b10d5c8c: Pulling fs layer
52cb9ac3197f: Pulling fs layer
9776b10d5c8c: Verifying Checksum
9776b10d5c8c: Download complete
396c31837116: Verifying Checksum
396c31837116: Download complete
52cb9ac3197f: Verifying Checksum
52cb9ac3197f: Download complete
396c31837116: Pull complete
9776b10d5c8c: Pull complete
52cb9ac3197f: Pull complete
Digest: sha256:221c0c0d9a90f46f108bb888a1da9e99c82ff631e8b1c63b0223ea951752bd53
Status: Downloaded newer image for gcr.io/k8s-skaffold/pack:latest
gcr.io/k8s-skaffold/pack:latest
296af0355d8a6dfeb9dd513820312430e29df281: Pulling from buildpacks/firebase-app-hosting-22/builder
Digest: sha256:b9f2101b272793a52d47e2175da58c9d939b4e10399912af06789e036e246acf
Status: Image is up to date for gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
latest: Pulling from buildpacks/firebase-app-hosting-22/run
c7ff1e1c28ca: Pulling fs layer
d36ff6414fea: Pulling fs layer
9b9b5a9de773: Pulling fs layer
917bb5b8123d: Pulling fs layer
09fa1de13312: Pulling fs layer
917bb5b8123d: Waiting
09fa1de13312: Waiting
d36ff6414fea: Verifying Checksum
d36ff6414fea: Download complete
c7ff1e1c28ca: Verifying Checksum
c7ff1e1c28ca: Download complete
9b9b5a9de773: Verifying Checksum
9b9b5a9de773: Download complete
09fa1de13312: Verifying Checksum
09fa1de13312: Download complete
917bb5b8123d: Verifying Checksum
917bb5b8123d: Download complete
c7ff1e1c28ca: Pull complete
d36ff6414fea: Pull complete
9b9b5a9de773: Pull complete
917bb5b8123d: Pull complete
09fa1de13312: Pull complete
Digest: sha256:104c8ca4f1bb70b4043786f3d7df53b773567b532cb95d8b679b56197b7e708b
Status: Downloaded newer image for gcr.io/buildpacks/firebase-app-hosting-22/run:latest
===> ANALYZING
Image with name "us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-22-001" not found
===> DETECTING
target distro name/version labels not found, reading /etc/os-release file
======== Output: [email protected] ========
WARNING: Error parsing version from lock file, defaulting to package.json version
(error ID: ed3204e7):
Failed to find version for package @angular-devkit/build-angular in yarn lockfile
err: [email protected] (1)
======== Output: [email protected] ========
WARNING: Error parsing version from lock file, defaulting to package.json version
(error ID: ed3204e7):
Failed to find version for package @angular-devkit/build-angular in yarn lockfile
err: [email protected] (1)
======== Output: [email protected] ========
WARNING: Error parsing version from lock file, defaulting to package.json version
(error ID: ed3204e7):
Failed to find version for package @angular-devkit/build-angular in yarn lockfile
err: [email protected] (1)
google.nodejs.runtime 1.0.0
google.nodejs.yarn 2.1.0
google.nodejs.firebasebundle 0.0.1
===> RESTORING
===> BUILDING
target distro name/version labels not found, reading /etc/os-release file
=== Node.js - Runtime ([email protected]) ===
2025/04/22 20:18:36 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
Adding image label google.runtime-version: nodejs20
2025/04/22 20:18:36 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
***** CACHE MISS: "nodejs"
Installing Node.js v20.19.0.
2025/04/22 20:18:37 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/nodejs-20.19.0.tar.gz
=== Node.js - Yarn ([email protected]) ===
***** CACHE MISS: "yarn_engine"
Installing Yarn v4.8.0
2025/04/22 20:18:41 [DEBUG] GET https://repo.yarnpkg.com/4.8.0/packages/yarnpkg-cli/bin/yarn.js
Setting environment variable PATH=/layers/google.nodejs.yarn/yarn_engine/bin:/layers/google.nodejs.runtime/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
WARNING: Skipping adding auth token to /home/cnb/.yarnrc.yml. Unable to find Artifact Registry in /workspace/.yarnrc.yml.
--------------------------------------------------------------------------------
Running "yarn install --immutable"
➤ YN0000: · Yarn 4.8.0
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 303ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 585 packages were added to the project (+ 142.43 MiB).
➤ YN0000: └ Completed in 6s 993ms
➤ YN0000: ┌ Link step
➤ YN0007: │ esbuild@npm:0.25.2 must be built because it never has been before or the last one failed
➤ YN0007: │ @parcel/watcher@npm:2.5.1 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.11 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3s 417ms
➤ YN0000: · Done in 10s 916ms
Done "yarn install --immutable" (11.623415293s)
Pruning devDependencies
--------------------------------------------------------------------------------
Running "yarn workspaces focus --all --production"
➤ YN0000: · Yarn 4.8.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ - @babel/code-frame@npm:7.26.2, @babel/helper-string-parser@npm:7.25.9, @babel/helper-validator-identifier@npm:7.25.9, @babel/parser@npm:7.27.0, and 659 more.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 1s 156ms
➤ YN0000: · Done in 1s 235ms
Done "yarn workspaces focus --all --production" (1.803550934s)
=== Node.js - Firebasebundle ([email protected]) ===
bundle.yaml does not exist, assuming default configs
Copying static assets.
===> EXPORTING
Adding layer 'google.nodejs.runtime:node'
Adding layer 'google.nodejs.yarn:env'
Adding layer 'google.nodejs.yarn:yarn_engine'
Adding layer 'buildpacksio/lifecycle:launch.sbom'
Added 1/1 app layer(s)
Adding layer 'buildpacksio/lifecycle:launcher'
Adding layer 'buildpacksio/lifecycle:config'
Adding layer 'buildpacksio/lifecycle:process-types'
Adding label 'io.buildpacks.lifecycle.metadata'
Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Adding label 'google.runtime-version'
Setting default process type 'web'
Saving us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-22-001...
*** Images (40a2ec6e21ce):
us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-22-001
Adding cache layer 'google.nodejs.runtime:node'
Adding cache layer 'google.nodejs.yarn:yarn_engine'
Successfully built image 'us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-22-001'
Finished Step #2 - "pack"
Starting Step #3 - "publisher"
Already have image (with digest): gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
2025/04/22 20:19:07 Final build schema:
runConfig:
cpu: null
memoryMiB: null
concurrency: null
maxInstances: null
minInstances: null
vpcAccess: null
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
. Note that any unset runConfig fields will be set to reasonable default values.
Finished Step #3 - "publisher"
PUSH
Pushing us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-22-001
The push refers to repository [us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test]
83d85471d9f8: Preparing
dba609e245f5: Preparing
b95feea05494: Preparing
81ff2fc82086: Preparing
36f9de0748c4: Preparing
40492643ff05: Preparing
958d4387adfe: Preparing
47b4e1d78ac9: Preparing
b8269820b0b6: Preparing
a78cc8b4ab20: Preparing
f2934629780f: Preparing
8d55bb752712: Preparing
65c636ce09f2: Preparing
40492643ff05: Waiting
958d4387adfe: Waiting
47b4e1d78ac9: Waiting
b8269820b0b6: Waiting
a78cc8b4ab20: Waiting
f2934629780f: Waiting
8d55bb752712: Waiting
65c636ce09f2: Waiting
81ff2fc82086: Pushed
36f9de0748c4: Pushed
83d85471d9f8: Pushed
dba609e245f5: Pushed
b8269820b0b6: Layer already exists
a78cc8b4ab20: Layer already exists
b95feea05494: Pushed
958d4387adfe: Pushed
f2934629780f: Layer already exists
8d55bb752712: Layer already exists
40492643ff05: Pushed
65c636ce09f2: Layer already exists
47b4e1d78ac9: Pushed
build-2025-04-22-001: digest: sha256:8b5d4aa4343ea64aa2baad2902537c75972fe0c4626552a27001c44715089070 size: 3038
DONE
Then after switching to npm I got an error, but at least the build command ran
starting build "a69dd306-b4cf-4f80-ac40-4c25e01f6d9e"
FETCHSOURCE
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /workspace/.git/
From https://github.com/vis97c/nitro-firebase-test
* branch 20407375d37b75ece1a29883c3d24cd2fa875388 -> FETCH_HEAD
HEAD is now at 2040737 switch to npm
GitCommit:
20407375d37b75ece1a29883c3d24cd2fa875388
BUILD
Starting Step #0 - "ubuntu"
Pulling image: ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
Digest: sha256:1e622c5f073b4f6bfad6632f2616c7f59ef256e96fe78bf6a595d1dc4376ac02
Status: Downloaded newer image for ubuntu:latest
docker.io/library/ubuntu:latest
Finished Step #0 - "ubuntu"
Starting Step #1 - "preparer"
Pulling image: gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
296af0355d8a6dfeb9dd513820312430e29df281: Pulling from buildpacks/firebase-app-hosting-22/builder
7478e0ac0f23: Already exists
c3dd5f38958c: Pulling fs layer
9709bf2b448f: Pulling fs layer
a74c2b09bb07: Pulling fs layer
999e8b229476: Pulling fs layer
1c9c383d63bc: Pulling fs layer
8f56d1d34e53: Pulling fs layer
182afb1fe5dc: Pulling fs layer
1a82443b3661: Pulling fs layer
2ac72a9c7e8e: Pulling fs layer
1182a6567613: Pulling fs layer
a32a099c9a20: Pulling fs layer
ce58163d65af: Pulling fs layer
ab5065110e9b: Pulling fs layer
52f20bf313bd: Pulling fs layer
42ac8026e9a4: Pulling fs layer
565b08242743: Pulling fs layer
548eb8f86e6e: Pulling fs layer
aba207a2a2a1: Pulling fs layer
2b84881ebdca: Pulling fs layer
4f4fb700ef54: Pulling fs layer
99e0f735f13b: Pulling fs layer
48c38496089a: Pulling fs layer
2ac72a9c7e8e: Waiting
1182a6567613: Waiting
a32a099c9a20: Waiting
ce58163d65af: Waiting
ab5065110e9b: Waiting
52f20bf313bd: Waiting
42ac8026e9a4: Waiting
565b08242743: Waiting
548eb8f86e6e: Waiting
aba207a2a2a1: Waiting
2b84881ebdca: Waiting
4f4fb700ef54: Waiting
99e0f735f13b: Waiting
48c38496089a: Waiting
999e8b229476: Waiting
1c9c383d63bc: Waiting
8f56d1d34e53: Waiting
182afb1fe5dc: Waiting
1a82443b3661: Waiting
c3dd5f38958c: Verifying Checksum
c3dd5f38958c: Pull complete
999e8b229476: Verifying Checksum
999e8b229476: Download complete
1c9c383d63bc: Verifying Checksum
1c9c383d63bc: Download complete
a74c2b09bb07: Verifying Checksum
a74c2b09bb07: Download complete
182afb1fe5dc: Verifying Checksum
182afb1fe5dc: Download complete
8f56d1d34e53: Verifying Checksum
8f56d1d34e53: Download complete
2ac72a9c7e8e: Verifying Checksum
2ac72a9c7e8e: Download complete
1a82443b3661: Verifying Checksum
1a82443b3661: Download complete
1182a6567613: Verifying Checksum
1182a6567613: Download complete
a32a099c9a20: Verifying Checksum
a32a099c9a20: Download complete
ce58163d65af: Verifying Checksum
ce58163d65af: Download complete
ab5065110e9b: Verifying Checksum
ab5065110e9b: Download complete
52f20bf313bd: Verifying Checksum
52f20bf313bd: Download complete
42ac8026e9a4: Verifying Checksum
42ac8026e9a4: Download complete
565b08242743: Verifying Checksum
565b08242743: Download complete
548eb8f86e6e: Verifying Checksum
548eb8f86e6e: Download complete
2b84881ebdca: Verifying Checksum
2b84881ebdca: Download complete
aba207a2a2a1: Verifying Checksum
aba207a2a2a1: Download complete
9709bf2b448f: Verifying Checksum
9709bf2b448f: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
99e0f735f13b: Verifying Checksum
99e0f735f13b: Download complete
48c38496089a: Verifying Checksum
48c38496089a: Download complete
9709bf2b448f: Pull complete
a74c2b09bb07: Pull complete
999e8b229476: Pull complete
1c9c383d63bc: Pull complete
8f56d1d34e53: Pull complete
182afb1fe5dc: Pull complete
1a82443b3661: Pull complete
2ac72a9c7e8e: Pull complete
1182a6567613: Pull complete
a32a099c9a20: Pull complete
ce58163d65af: Pull complete
ab5065110e9b: Pull complete
52f20bf313bd: Pull complete
42ac8026e9a4: Pull complete
565b08242743: Pull complete
548eb8f86e6e: Pull complete
aba207a2a2a1: Pull complete
2b84881ebdca: Pull complete
4f4fb700ef54: Pull complete
99e0f735f13b: Pull complete
48c38496089a: Pull complete
Digest: sha256:b9f2101b272793a52d47e2175da58c9d939b4e10399912af06789e036e246acf
Status: Downloaded newer image for gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
2025/04/22 20:44:53 FIREBASE_CONFIG has no availability specified, applying the default of 'BUILD' and 'RUNTIME'
2025/04/22 20:44:53 Final app hosting schema:
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
2025/04/22 20:44:53 Final app hosting schema:
env:
- variable: FIREBASE_CONFIG
value: '{"databaseURL":"","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
- RUNTIME
- variable: FIREBASE_WEBAPP_CONFIG
value: '{"apiKey":"AIzaSyAeeGeIrCfa5gFKZFeOZeoOvsnauyBxMYU","appId":"1:341332509000:web:1ad4ebd63e38c263adb37d","authDomain":"test-759ef.firebaseapp.com","databaseURL":"","messagingSenderId":"341332509000","projectId":"test-759ef","storageBucket":"test-759ef.firebasestorage.app"}'
availability:
- BUILD
Finished Step #1 - "preparer"
Starting Step #2 - "pack"
Pulling image: gcr.io/k8s-skaffold/pack
Using default tag: latest
latest: Pulling from k8s-skaffold/pack
396c31837116: Pulling fs layer
9776b10d5c8c: Pulling fs layer
52cb9ac3197f: Pulling fs layer
9776b10d5c8c: Verifying Checksum
9776b10d5c8c: Download complete
396c31837116: Verifying Checksum
396c31837116: Download complete
52cb9ac3197f: Verifying Checksum
52cb9ac3197f: Download complete
396c31837116: Pull complete
9776b10d5c8c: Pull complete
52cb9ac3197f: Pull complete
Digest: sha256:221c0c0d9a90f46f108bb888a1da9e99c82ff631e8b1c63b0223ea951752bd53
Status: Downloaded newer image for gcr.io/k8s-skaffold/pack:latest
gcr.io/k8s-skaffold/pack:latest
296af0355d8a6dfeb9dd513820312430e29df281: Pulling from buildpacks/firebase-app-hosting-22/builder
Digest: sha256:b9f2101b272793a52d47e2175da58c9d939b4e10399912af06789e036e246acf
Status: Image is up to date for gcr.io/buildpacks/firebase-app-hosting-22/builder:296af0355d8a6dfeb9dd513820312430e29df281
latest: Pulling from buildpacks/firebase-app-hosting-22/run
c7ff1e1c28ca: Pulling fs layer
d36ff6414fea: Pulling fs layer
9b9b5a9de773: Pulling fs layer
917bb5b8123d: Pulling fs layer
09fa1de13312: Pulling fs layer
917bb5b8123d: Waiting
09fa1de13312: Waiting
d36ff6414fea: Verifying Checksum
d36ff6414fea: Download complete
c7ff1e1c28ca: Verifying Checksum
c7ff1e1c28ca: Download complete
9b9b5a9de773: Verifying Checksum
9b9b5a9de773: Download complete
09fa1de13312: Verifying Checksum
09fa1de13312: Download complete
917bb5b8123d: Verifying Checksum
917bb5b8123d: Download complete
c7ff1e1c28ca: Pull complete
d36ff6414fea: Pull complete
9b9b5a9de773: Pull complete
917bb5b8123d: Pull complete
09fa1de13312: Pull complete
Digest: sha256:104c8ca4f1bb70b4043786f3d7df53b773567b532cb95d8b679b56197b7e708b
Status: Downloaded newer image for gcr.io/buildpacks/firebase-app-hosting-22/run:latest
===> ANALYZING
Image with name "us-central1-docker.pkg.dev/test-759ef/firebaseapphosting-images/nitro-firebase-test:build-2025-04-22-003" not found
===> DETECTING
target distro name/version labels not found, reading /etc/os-release file
google.nodejs.runtime 1.0.0
google.nodejs.npm 1.1.0
google.nodejs.firebasebundle 0.0.1
===> RESTORING
===> BUILDING
target distro name/version labels not found, reading /etc/os-release file
=== Node.js - Runtime ([email protected]) ===
2025/04/22 20:45:02 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
Adding image label google.runtime-version: nodejs20
2025/04/22 20:45:03 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
***** CACHE MISS: "nodejs"
Installing Node.js v20.19.0.
2025/04/22 20:45:04 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/nodejs-20.19.0.tar.gz
=== Node.js - Npm ([email protected]) ===
***** CACHE MISS: "npm_modules"
Installing application dependencies.
--------------------------------------------------------------------------------
Running "npm ci --quiet --no-fund --no-audit (NODE_ENV=development)"
added 567 packages in 17s
Done "npm ci --quiet --no-fund --no-audit (NODE_ENV=development)" (17.14311027s)
--------------------------------------------------------------------------------
Running "npm run build"
> build
> nitro build
[error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (node_modules/rollup/dist/native.js:64:9)
at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at cjsLoader (node:internal/modules/esm/translators:298:15)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:240:7)
at ModuleJob.run (node:internal/modules/esm/module_job:263:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
[cause]: Cannot find module '@rollup/rollup-linux-x64-gnu'
Require stack:
- /workspace/node_modules/rollup/dist/native.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Module._load (node:internal/modules/cjs/loader:1043:27)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at requireWithFriendlyError (node_modules/rollup/dist/native.js:46:10)
at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
[error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
Done "npm run build" (1.336791189s)
--------------------------------------------------------------------------------
failed to build: (error ID: 1a2262f3):
> build
> nitro build
[error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (node_modules/rollup/dist/native.js:64:9)
at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at cjsLoader (node:internal/modules/esm/translators:298:15)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:240:7)
at ModuleJob.run (node:internal/modules/esm/module_job:263:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
[cause]: Cannot find module '@rollup/rollup-linux-x64-gnu'
Require stack:
- /workspace/node_modules/rollup/dist/native.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Module._load (node:internal/modules/cjs/loader:1043:27)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at requireWithFriendlyError (node_modules/rollup/dist/native.js:46:10)
at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
[error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
NOTE: Running the default build script can be skipped by passing the empty environment variable "GOOGLE_NODE_RUN_SCRIPTS=" to the build
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 51
Finished Step #2 - "pack"
ERROR
ERROR: build step 2 "gcr.io/k8s-skaffold/pack" failed: step exited with non-zero status: 1
Ran into this issue: https://github.com/GoogleCloudPlatform/buildpacks/issues/360 on buildpacks from 2 years ago (still open) and guess what? I added the gcp-build script and now the build is done, sadly the deployment isn't working, but I'm getting there. Again google support doing the bare minimum.
Other thing I noticed, the cloud run expects a start script:
After the nitro build I injected a start script into the .output/server/package.json pointing to index.mjs, this isn't done by nitro.
Now it seems like the nitro server is running but cloud run still complains. Even though the listening message comes from nitro.
Not sure how to follow after this.
Thanks for sharing investigations
/cc @nitrojs/firebase-apphosting
Hi Firebaser here, I forked your sample app and was able to deploy it successfully without modifications
We do have a known issue where if at some point the cloud run instance doesn't find your server it will stop bumping up the revisions so I suspect you're running into that issue. You can either try to go to cloud run and manually bump up the revision or try the same deploy again but with a new backend. Sorry you're running into issues please report back with how that goes!
Hi Firebaser here, I forked your sample app and was able to deploy it successfully without modifications
We do have a known issue where if at some point the cloud run instance doesn't find your server it will stop bumping up the revisions so I suspect you're running into that issue. You can either try to go to cloud run and manually bump up the revision or try the same deploy again but with a new backend. Sorry you're running into issues please report back with how that goes!
Applied the changes to my main projects and created a new backend and indeed is now is working. Thanks!
@pi0 Still a start script is required. I think the preset should at least be inyecting that one. The gcp one is on firebase side to fix.
i am running in to the same issue after trying to move from Firebase Hosting to Firebase App Hosting
I had to add "scripts": { "gcp-build": "nuxt build", in package.json for the build script to run.
However i am getting below error message while the build is running:
[info] Building client...
--
| [info] vite v7.2.4 building client environment for production...
| [info] transforming...
| [info] ✓ 14 modules transformed.
| [error] ✗ Build failed in 985ms
| [error] [nuxi] Nuxt Build Error: [vite:css] [postcss] Cannot find module './../../../../../tailwind.config.ts'
| Require stack:
| - /layers/google.nodejs.yarn/yarn_modules/node_modules/.cache/nuxt/.nuxt/tailwind/postcss.mjs
| file: /workspace/app/assets/css/tailwind.css:undefined:NaN
| at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
| at Function.resolve (node:internal/modules/helpers:157:19)
| at _resolve (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:246378)
| at jiti (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:249092)
| at /layers/google.nodejs.yarn/yarn_modules/node_modules/.cache/nuxt/.nuxt/tailwind/postcss.mjs:5:25
| at evalModule (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:251913)
| at jiti (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:249841)
| at /layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/lib/lib/load-config.js:52:26
| at loadConfig (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/lib/lib/load-config.js:62:6)
| at getTailwindConfig (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:71:116)
| error Command failed with exit code 1.
| info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
| Done "yarn run gcp-build" (13.009522055s)
| --------------------------------------------------------------------------------
| failed to build: (error ID: 8a831076):
| yarn run v1.22.22
| $ nuxt build
| [log] [nuxi] Nuxt 4.2.1 (with Nitro 2.12.9, Vite 7.2.4 and Vue 3.5.24)
| [info] [nuxt:tailwindcss] Using Tailwind CSS from ~/assets/css/tailwind.css
| [warn] [nuxt-vuefire module] You activated both SSR and auth but you are not providing a service account for the admin SDK. See https://vuefire.vuejs.org/nuxt/getting-started.html#configuring-the-admin-sdk.
| [info] Tiptap Editor initialized
| [success] [@nuxt/content] Processed 2 collections and 56 files in 3268.57ms (0 cached, 56 parsed)
| [info] [nuxi] Building for Nitro preset: `firebase-app-hosting`
| [info] Building client...
| [info] vite v7.2.4 building client environment for production...
| [info] transforming...
| [info] ✓ 14 modules transformed.
| [error] ✗ Build failed in 985ms
| [error] [nuxi] Nuxt Build Error: [vite:css] [postcss] Cannot find module './../../../../../tailwind.config.ts'
| Require stack:
| - /layers/google.nodejs.yarn/yarn_modules/node_modules/.cache/nuxt/.nuxt/tailwind/postcss.mjs
| file: /workspace/app/assets/css/tailwind.css:undefined:NaN
| at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
| at Function.resolve (node:internal/modules/helpers:157:19)
| at _resolve (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:246378)
| at jiti (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:249092)
| at /layers/google.nodejs.yarn/yarn_modules/node_modules/.cache/nuxt/.nuxt/tailwind/postcss.mjs:5:25
| at evalModule (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:251913)
| at jiti (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:249841)
| at /layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/lib/lib/load-config.js:52:26
| at loadConfig (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/lib/lib/load-config.js:62:6)
| at getTailwindConfig (/layers/google.nodejs.yarn/yarn_modules/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:71:116)
| error Command failed with exit code 1.
| info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
| ERROR: failed to build: exit status 1
| ERROR: failed to build: executing lifecycle: failed with status code: 51
@crunchwrap89 seems like nuxt-vue-fire is missing the service_account.json file and since that file shouldn't be versioned you probably have to provide an alternative way of configuration. You could use secrets on your confirmation file for your hosting.
@crunchwrap89 seems like nuxt-vue-fire is missing the service_account.json file and since that file shouldn't be versioned you probably have to provide an alternative way of configuration. You could use secrets on your confirmation file for your hosting.
Hi, im aware of that warning, but it doesnt have anything to do with this build fail unfortunately. I did notice now though that the memory heap is full, i increased the memory and then i got further. Looks like i must increase it to 6k+ to actually get past the vite modules transformation step