Build fails with "failed to calculate checksum[...] ./nixpacks[...].nix not found"
okarmazin
PROOP
2 years ago
The build fails before even invoking my build command. Is there anything I can do? Seems like an issue unrelated to the project.
Build log until error:
╔══════════════════════════════ Nixpacks v1.21.2 ═════════════════════════════╗
║ build │ ./gradlew clean build -x check -Dquarkus.package.type=uber-jar ║
║─────────────────────────────────────────────────────────────────────────────║
║ setup │ jdk17, gradle ║
║─────────────────────────────────────────────────────────────────────────────║
║ start │ java $JAVA_OPTS -jar $(ls -1 build/libs/*jar | grep -v plain) ║
╚═════════════════════════════════════════════════════════════════════════════╝
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.94kB done
#1 DONE 0.0s
#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1707782610
#2 DONE 0.2s
#3 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1707782610@sha256:8f4b0fd95dc3311cf9a59f236d8d7d7f956fe21a2a1d64b53c82f12c4e859f09
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 111B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 2B done
#5 DONE 0.0s
#6 [stage-0 2/8] WORKDIR /app/
#6 CACHED
#7 [stage-0 3/7] COPY .nixpacks/nixpkgs-59dc10b5a6f2a592af36375c68fda41246794b86.nix .nixpacks/nixpkgs-59dc10b5a6f2a592af36375c68fda41246794b86.nix
#7 ERROR: failed to calculate checksum of ref 87f1e1dc-09d4-4b45-9a3c-f87372c758bd::89jrcmt31k303l1da1rbytu1m: "/.nixpacks/nixpkgs-59dc10b5a6f2a592af36375c68fda41246794b86.nix": not found
-----2 Replies
2 years ago
At first glance, this looks like a one-off glitch - have you tried redeploying?
okarmazin
PROOP
2 years ago
I had a rogue .dockerignore in the project root which should have been moved to a subdirectory.
I used the Quarkus project generator which puts source files in a single top-level Gradle project. I forgot to move the .dockerignore file to a subproject after I modularized the project structure.
Status changed to Solved Railway • about 2 years ago
