Can not deploy application because of Node 16 EOL
kierzniakPRO
a year ago
Can'y deploy application because of Node 16 EOL
Hello,
I can not deploy my application because of error
error: nodejs_16 has been removed as it is EOL.
I can't upgrade my app to te latest version of node. What I can do about that?
Full log:
#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1715645001
#2 DONE 0.3s
#3 [stage-0 1/11] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1715645001@sha256:0adbb12760de3fbd024031e191540449b0e9003d298dbf698b6b48708750530e
#3 DONE 0.0s
#4 [stage-0 2/11] WORKDIR /app/
#4 CACHED
#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s
#6 [internal] load build context
#6 transferring context: 59.00MB 0.4s done
#6 DONE 0.4s
#7 [stage-0 3/10] COPY .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix
#7 CACHED
#8 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d
#8 32.21 installing 'bf446f08bff6814b569265bef8374cfdd3d8f0e0-env'
#8 32.97 error:
#8 32.97 … while calling the 'derivationStrict' builtin
#8 32.97 at :9:12:
#8 32.97 8|
#8 32.97 9| strict = derivationStrict drvAttrs;
#8 32.97 | ^
#8 32.97 10|
#8 32.97
#8 32.97 … while evaluating derivation 'bf446f08bff6814b569265bef8374cfdd3d8f0e0-env'
#8 32.97 whose name attribute is located at /nix/store/0mh3vks8cyvqq94dhqjpx9hmx8k537gl-source/pkgs/stdenv/generic/make-derivation.nix:331:7
#8 32.97
#8 32.97 … while evaluating attribute 'passAsFile' of derivation 'bf446f08bff6814b569265bef8374cfdd3d8f0e0-env'
#8 32.97 at /nix/store/0mh3vks8cyvqq94dhqjpx9hmx8k537gl-source/pkgs/build-support/trivial-builders/default.nix:69:9:
#8 32.97 68| inherit buildCommand name;
#8 32.97 69| passAsFile = [ "buildCommand" ]
#8 32.97 | ^
#8 32.97 70| ++ (derivationArgs.passAsFile or [ ]);
#8 32.97
#8 32.97 (stack trace truncated; use '--show-trace' to show the full, detailed trace)
#8 32.97
#8 32.97 error: nodejs_16 has been removed as it is EOL.
#8 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
-----
> [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d:
32.97 … while evaluating attribute 'passAsFile' of derivation 'bf446f08bff6814b569265bef8374cfdd3d8f0e0-env'
32.97 at /nix/store/0mh3vks8cyvqq94dhqjpx9hmx8k537gl-source/pkgs/build-support/trivial-builders/default.nix:69:9:
32.97 68| inherit buildCommand name;
32.97 69| passAsFile = [ "buildCommand" ]
32.97 | ^
32.97 70| ++ (derivationArgs.passAsFile or [ ]);
32.97
32.97 (stack trace truncated; use '--show-trace' to show the full, detailed trace)
32.97
32.97 error: nodejs_16 has been removed as it is EOL.
-----
Dockerfile:8
-------------------
6 |
7 | COPY .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix
8 | >>> RUN nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d
9 |
10 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
Error: Docker build failed
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Answered on discord, but will answer here just for visibility -
You would need to write a Dockerfile for your app to use your desired node version.
For future reference, I don't know what post came first, but please don't duplicate post across platforms.
Status changed to Solved railway[bot] • about 1 year ago