Deployment always fails with context canceled and COPY errors
abnadabybonaparte
FREEOP

7 months ago

Hello! My deploys are consistently failing with errors like:

[dependencies 2/5] RUN apk add --no-cache python3 make g++

process "/bin/sh -c apk add --no-cache python3 make g++" did not complete successfully: exit code: 1: context canceled: context canceled

or

COPY --chown=nodejs:nodejs sre/ ./sre/

failed to calculate checksum of ref ...: "/#": not found

What I've tried:

- Changed deploy region multiple times

- Ensured Dockerfile and package.json are in the project root

- Set the correct build and start commands in railway.json

- Waited and tried again after some hours

My repo: [coloque o link do seu repo aqui]

Project: [coloque o nome do projeto ou ID Railway]

This has persisted for over [coloque o tempo, por exemplo: 24h].

Is there a known issue, or am I missing something?

Thanks for your help!

$10 Bounty

2 Replies

Railway
BOT

7 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


fra
HOBBYTop 10% Contributor

7 months ago

as you mentioned the package.json can you add node_modules to .dockerignore and try again?


Loading...