Dockerfile deployment fails with "No such container"
I'm trying out Railway for the first time and having a weird issue with deployment.
I connected to a GitHub repo with a Dockerfile, and Railway automatically tried to deploy the app. According to the logs, the Docker image was built and published. Then, the status changed to "Deploying" and it hung for about 5 minutes. After that, this appeared in the logs:
I already tried redeploying and got the same result.
25 Replies
Project ID:
02d06474-014d-4110-a28f-e0e1b082aa06
02d06474-014d-4110-a28f-e0e1b082aa06
have you since tried removing that deployment and making a new one?
no, but I can try that
I've removed the deployment but I don't see a way to add a new one.
Should I push an empty commit to the repo? Or should I just remove the whole service and re-add it?
empty commit will do it
okay, new deployment is building…
same issue. The build failed about 5 minutes after the status changed to Deploying
can you send the dockerfile?
yeah looks fine to me, have you set any build or start commands in the settings
No, just added the repo
have you tested this dockerfile locally?
I tested building but not running it, one moment
running fails with an error about permissions on the start script. that's probably the issue
I really wish that error would show up in the logs on Railway
yeah that's odd
for the script you'd likely need to do a chmod +x on it
yeah, I'm trying that now and re-running locally
Yeah, it definitely should have showed. Weird it went though and then was just liked “no container”
it's probably a failure mode they haven't thought of. since it was an error from the docker daemon, not from the container.
that's the error. all on one line.
Is the start script in your project prior to adding it to the container, or is it generated in your build? I can’t view your docker file on my phone
the start script is in the project. and it wasn't executable, so that's probably the issue.
I'm working on building and testing locally before I try again to push to Railway
this is their dockerfile
Thanks Brody!
just needs +x on that script
Yeah, more than likely
it works now, thank you for the prompt to actually try it locally
awesome
Always best to test locally my dude