Problem with deployment
joshuacreator-rgb
FREEOP

8 days ago

Hi Railway Support,

My deployment has been failing with this buildkit error across 6+ attempts:

"failed to solve: cannot copy to non-directory:

/var/lib/buildkit/runc-overlayfs/cachemounts/buildkit3470361651/app/

node_modules/.pnpm/@antfu+install-pkg@1.1.0/nodes_modules/package-manager-detector"

Project ID: 27493fdd-2af2-462e-8b0a-60950c1007c4

Service ID: ee8eb02d-371c-4755-aa8e-4acea9b6e7ff

Environment: staging (2e9d8f9d-8b8c-4500-88b9-a6f5c4c1c1c0)

Failed deployment IDs: 921f1310, 3409c95d, 9b31fef2, fb34609a, b4e63e70

The last successful deployment was af9bb67e on commit ab4d851.

The issue is in Railway's buildkit cache layer, not in my application code.

pnpm install completes successfully before the crash.

Please clear the build cache for this service so I can redeploy.

Thank you.

$10 Bounty

1 Replies

Railway
BOT

8 days ago

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

Status changed to Open Railway • 8 days ago


8 days ago

this does sound like the cache (or more like node modules ended up in the build context, ensure it's in ur gitignore). but, you can add the varible NO_CACHE=1 and try redeploying to trigger a new build. if it works, remove the variable after.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...