I need to clear cache to get a clean deploy
scottpatterson2
HOBBYOP

13 days ago

builder

COPY package*.json ./ cached

0ms

builder

WORKDIR /app cached

0ms

runner

COPY nginx.staging.conf /etc/nginx/templates/default.conf.template

0ms

runner

COPY --from=builder /app/dist /usr/share/nginx/html cached

0ms

Build Failed: build daemon returned an error < failed to solve: failed to compute cache key: failed to calculate checksum of ref zeciw362cyflasspg69sdjwyv::8q9krpsg5p2vn7m63vkl7m4jc: "/nginx.staging.conf": not found >

This is related to a buildkit issue.

$10 Bounty

11 Replies

Railway
BOT

13 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 13 days ago


Try setting NO_CACHE=1 in your variables and deploy.


scottpatterson2
HOBBYOP

8 days ago

buildkit cache error still persists


The error is happening because it cannot find the file nginx.staging.conf in your build context. Make sure the file exists in your repo, and isn't ignored by .dockerignore or .gitignore. It could be an incorrect path to the file as well.


scottpatterson2
HOBBYOP

8 days ago

The COPY path is now correct (./nginx.staging.conf)

The error still happens at cache validation — buildkit can't compute the checksum

This is not a file-exists or .gitignore problem

Railway needs to clear the buildkit cache on their infrastructure


There is no difference between COPY ./nginx.staging.conf and COPY nginx.staging.conf. The issue is most likely not cache, but what the error says (it just can't find the file in your build context). Can you confirm that the build succeeds locally? It's also worth checking if you have a root directory set in your service settings that might be messing up the build context.


scottpatterson2

The COPY path is now correct (./nginx.staging.conf) The error still happens at cache validation — buildkit can't compute the checksum This is not a file-exists or .gitignore problem Railway needs to clear the buildkit cache on their infrastructure

2 hours ago

Try disable the build cache yourself, add NO_CACHE=1 to the Service Variables, If it works, you can enable the cache again by removing the Variable


scottpatterson2
HOBBYOP

an hour ago

Deployment ID: c9bfb33f-5eb6-405c-8735-cbc24b1fe3ff

Error: "failed to calculate checksum of ref" for nginx.staging.conf

Statement: "This is a buildkit infrastructure issue. The builder instance (builder-xssjno) has a corrupted cache that needs to be cleared. This persists across multiple commits and rebuild attempts."


darseen

There is no difference between `COPY ./nginx.staging.conf` and `COPY nginx.staging.conf`. The issue is most likely not cache, but what the error says (it just can't find the file in your build context). Can you confirm that the build succeeds locally? It's also worth checking if you have a root directory set in your service settings that might be messing up the build context.

an hour ago

Also this


scottpatterson2
HOBBYOP

an hour ago

I get a message that the build team can resolve this but I have yet been able to reach a build team member


scottpatterson2
HOBBYOP

an hour ago

The NO_CACHE=1 variable setting does not work for me


Try selecting the service, press Cmd/Ctrl + K, then redeploy latest commit or redeploy source image.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...