R
Railway2y ago
Vini

failed to calculate checksum of ref moby, docker error when building rust project

hi deployment fails for a Rust project of mine with the following error:
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::qu7awiix4z3utfhv8qihdbrkc: failed to walk /var/lib/docker/tmp/buildkit-mount2628049258/app/bin: lstat /var/lib/docker/tmp/buildkit-mount2628049258/app/bin: no such file or directory

Error: Docker build failed
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::qu7awiix4z3utfhv8qihdbrkc: failed to walk /var/lib/docker/tmp/buildkit-mount2628049258/app/bin: lstat /var/lib/docker/tmp/buildkit-mount2628049258/app/bin: no such file or directory

Error: Docker build failed
14 Replies
Percy
Percy2y ago
Project ID: 91f2781d-e68a-49b0-b238-f9c31ede5b1e
Vini
ViniOP2y ago
project ID: 91f2781d-e68a-49b0-b238-f9c31ede5b1e
Brody
Brody2y ago
are you using your own dockerfile?
Vini
ViniOP2y ago
no @Brody I just setup the build and run commands to use cargo
Brody
Brody2y ago
nixpacks should be able work work that stuff out itself, try again but remove any build or start commands you have set yourself
Vini
ViniOP2y ago
hmmm okay, let me try again, thanks. i thought i had to setup those if it wasn't the default it shows (as yarn run dev for example)
Brody
Brody2y ago
what where the default build and start commands? (as listed in the build plan table at the top of the build)
Vini
ViniOP2y ago
those were the ones I set up manually (cargo build --release and cargo run --release) after your suggestion of just removing those, build worked and the project started to run but it had these printed out in the deploy logs Error: VersionMismatch(1684451354) And then it crashed
Brody
Brody2y ago
that would be an issue with your app, I don't know what would cause that though
Vini
ViniOP2y ago
doesn't seem to be an app output though, would nix related logs also be output there?
Brody
Brody2y ago
is that log under the deploy tab?
Vini
ViniOP2y ago
yes
Brody
Brody2y ago
then that would be an output from your app, or whatever the start command ran, nixpacks stuff is done during build
Vini
ViniOP2y ago
ohhhh okay, thank you so much @Brody I got it to build thanks to you
Want results from more Discord servers?
Add your server