R
Railway14mo 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
Percy14mo ago
Project ID: 91f2781d-e68a-49b0-b238-f9c31ede5b1e
Vini
Vini14mo ago
project ID: 91f2781d-e68a-49b0-b238-f9c31ede5b1e
Brody
Brody14mo ago
are you using your own dockerfile?
Vini
Vini14mo ago
no @Brody I just setup the build and run commands to use cargo
Brody
Brody14mo 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
Vini14mo 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
Brody14mo ago
what where the default build and start commands? (as listed in the build plan table at the top of the build)
Vini
Vini14mo 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
Brody14mo ago
that would be an issue with your app, I don't know what would cause that though
Vini
Vini14mo ago
doesn't seem to be an app output though, would nix related logs also be output there?
Brody
Brody14mo ago
is that log under the deploy tab?
Vini
Vini14mo ago
yes
Brody
Brody14mo ago
then that would be an output from your app, or whatever the start command ran, nixpacks stuff is done during build
Vini
Vini14mo 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
More Posts
Postgres connection issue in production environment, can connect manually```django.db.utils.OperationalError: connection to server at "containers-****.railway.app" (IP), por(React with Vite) -> ReactRouter 404 Routing Error on Page reloadHi everybody! I hosted a react app on this platform and I'm getting 404 errors on page reloads. Goihow can I change the environment variable for my Railway project?I want to change environment variable for nocodb but can't figure out where I need to change that vaDeployment crashes with confusing TypeErrorSo, I have a piece of code that works flawlessly in my project. But the same piece of code in my newIs it possible to use Fonts?Hello, I have a Node.js server where I use the Sharp library to turn SVG's into other image formats.Datatype TIMEHello, I have a database postgresql in local and I have datatype time on columns. It works well. butNode graceful shutdownsI have a node task manager process deployed to Railway that I'm trying to get to gracefully shutdownAlpine.js button from standard Laravel Breeze package not working in prodThe weird thing is that it works perfectly locally. But in production https://manul-shop-productionIf a DJANGO process is failing because of the workersI do some maths in my django app on railway. It's complicated, and CPU bound. I have the current DevMy estimated bill is tripling every two days and falling back to 0 again.Hi, i need help, i'm not getting answers either from mail or from the message sent from the platform