buildpacks icon indicating copy to clipboard operation
buildpacks copied to clipboard

Cloud run buildpack Node.js runtime error

Open georgeliu9 opened this issue 8 months ago • 2 comments

Our build using buildpack has been failing for about two weeks. It was perfectly fine over two weeks ago. The error is about node 22.x version cannot be found. Build use the following link https://dl.google.com/runtimes/ubuntu1804/nodejs/version.json to check node version. However, this link is giving 404 error.

-- 49 | 3 of 5 buildpacks participating 50 | google.nodejs.runtime 1.0.0 51 | google.nodejs.pnpm 0.1.0 52 | google.utils.label-image 0.0.2 53 | ===> RESTORING 54 | ===> BUILDING 55 | target distro name/version labels not found, reading /etc/os-release file 56 | === Node.js - Runtime ([email protected]) === 57 | 2025/04/24 12:39:49 [DEBUG] GET https://dl.google.com/runtimes/ubuntu1804/nodejs/version.json 58 | ERROR: failed to build: exit status 1 59 | -------------------------------------------------------------------------------- 60 | failed to build: (error ID: b765098b): 61 | invalid Node.js version specified: failed to resolve version matching: 22... You may need to use a different builder. Please check if the language version specified is supported by the os: ubuntu1804. You can refer to https://cloud.google.com/docs/buildpacks/builders for a list of compatible runtime languages per builder 62 | -------------------------------------------------------------------------------- 63 | Sorry your project couldn't be built. 64 | Our documentation explains ways to configure Buildpacks to better recognise your project: 65 | -> https://cloud.google.com/docs/buildpacks/overview 66 | If you think you've found an issue, please report it: 67 | -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new 68 | -------------------------------------------------------------------------------- 69 | ERROR: failed to build: executing lifecycle: failed with status code: 51 70 | Finished Step #0 - "Buildpack" 71 | ERROR 72 | ERROR: build step 0 "gcr.io/k8s-skaffold/pack" failed: step exited with non-zero status: 1

georgeliu9 avatar Apr 24 '25 12:04 georgeliu9

@georgeliu9 Can you share the command you have been using for doing the build? I want to specifically know the builder that you use.

HarshaliRaka avatar May 13 '25 10:05 HarshaliRaka

@georgeliu9 any updates ? Looks like the ubuntu18 builder was selected for the build and nodejs22 is not available for ubuntu18. Can you please use gcr.io/buildpacks/builder:google-22

YashBanka avatar Jun 01 '25 08:06 YashBanka

Hello @georgeliu9

I'm closing this issue due to a lack of response.

Based on the build logs, it appears the ubuntu18 builder was used, which does not support Node.js 22. As mentioned previously, please try your build again using the gcr.io/buildpacks/builder:google-22 builder.

If you continue to experience this problem, please provide the requested information and we can reopen the issue.

YashBanka avatar Aug 13 '25 17:08 YashBanka