Am getting this error when trying to deploy an old project
lbwaks
HOBBYOP

10 months ago

"nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
unpacking 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz' into the Git cache…
installing '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
error:
… while calling the 'derivationStrict' builtin
at :37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while evaluating derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
whose name attribute is located at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/stdenv/generic/make-derivation.nix:300:7
… while evaluating attribute 'passAsFile' of derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/build-support/trivial-builders/default.nix:88:7:
87| inherit buildCommand name;
88| passAsFile = [ "buildCommand" ]
| ^
89| ++ (derivationArgs.passAsFile or []);
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute 'dev' missing
at /app/.nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix:19:13:
18| '')
19| gcc postgresql_16.dev python39
| ^
20| ];
Did you mean doc?
How do I resolve this

7 Replies

lbwaks
HOBBYOP

10 months ago

55529abc-7669-47e0-a058-0fb9a461288d


10 months ago

Hello,

Can you try switching to the Railpack builder in your service settings?


lbwaks
HOBBYOP

10 months ago

Hello


lbwaks
HOBBYOP

10 months ago

am getting copy .

0s

copy /app/.venv

context canceled: context canceled

0s

copy /app

failed to calculate checksum of ref u8kdapugv18ryf1i4qaurz1l4::jqox89ejz28lpo6u5obdx69mh: "/app/net/bin/python": not found

0s
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref u8kdapugv18ryf1i4qaurz1l4::jqox89ejz28lpo6u5obdx69mh: "/app/net/bin/python": not found


10 months ago

Hey, can you confirm that you did switch to Railpack? https://docs.railway.com/guides/build-configuration#railpack


lbwaks
HOBBYOP

10 months ago

yes


lbwaks
HOBBYOP

10 months ago

I switched


Loading...