Failed to build an image. Please check the build logs for more details.
adminpreetiinfotech-scms
FREEOP

11 days ago

stage-0

RUN nix-env -if .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix && nix-collect-garbage -d

42s

unpacking 'https://github.com/NixOS/nixpkgs/archive/ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.tar.gz' into the Git cache...

unpacking 'https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz' into the Git cache...

installing 'ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env'

error:

… while calling the 'derivationStrict' builtin

at <nix/derivation-internal.nix>:37:12:

36|

37| strict = derivationStrict drvAttrs;

| ^

38|

… while evaluating derivation 'ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env'

whose name attribute is located at /nix/store/lwi59jcfwk2lnrakmm1y5vw85hj3n1bi-source/pkgs/stdenv/generic/make-derivation.nix:375:7

… while evaluating attribute 'passAsFile' of derivation 'ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env'

at /nix/store/lwi59jcfwk2lnrakmm1y5vw85hj3n1bi-source/pkgs/build-support/trivial-builders/default.nix:60:9:

59| inherit buildCommand name;

60| passAsFile = [ "buildCommand" ]

| ^

61| ++ (derivationArgs.passAsFile or [ ]);

(stack trace truncated; use '--show-trace' to show the full, detailed trace)

error: undefined variable 'nodejs_24'

at /app/.nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix:19:9:

18| '')

19| nodejs_24 pnpm

| ^

20| ];

Build Failed: build daemon returned an error < failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1 >

Attachments

$10 Bounty

1 Replies

Status changed to Open Railway 11 days ago


domehane
FREE

11 days ago

Hello,

try switching your builder from nixpacks to railpack in your railway service settings bc railway has officially moved on from nixpacks and railpack is now the default it handles node versioning way better and avoids this whole nixpkgs snapshot issue entirely

Hope this help you :)


Welcome!

Sign in to your Railway account to join the conversation.

Loading...