Container failed to start issue
Every time I try to deploy an application, I run into an issue where the platform gives me the error "Container failed to start" and "Failed to start deployment." without anymore details.
41 Replies
Project ID:
404566f2-3f4d-4c60-af62-2478a44a8de6
please provide extra context about what you are trying to deploy and from where
sure, trying to deploy hono js api package in my turbo monorepo
from github
+ using dockerfile
please let me know if you need any more context
can you send the dockerfile?
looks alright, can you show the source of the service in the service settings
is this what you are looking for?
yep
do you have a volume?
no
how big is the built image?
1.434 GB
does this dockerfile work locally?
yeah and sorry the image is like ~2GB actually
read wrong thing
~2gb is kinda big, can you throw in another repo as a test, one that doesn't result in a large image
i used another repo of mine and it worked
it crashed but it deployed fine
so maybe I just need to reduce image size?
yes please attempt to get it below 1GB
ok will try tomorrow and come back with my findings
sounds good!
i got it down to 1.04GB and its still the same error
like this is kinda ridiculous there is no error description at all and I literally upgraded from free trial yesterday
are you able to confirm that this works locally?
the Dockerfile that is
yeah the image runs fine on my local machine
can you show me a screenshot of your service?
not sure exactly what you want me to ss
is this project id correct?
yeah
404566f2-3f4d-4c60-af62-2478a44a8de6
its the same
how are you getting that project id?
cmk k + copy project id
its the same thing in my project settings
@Ray - Container failed to start
!t
New reply sent from Help Station thread:
This thread has been escalated to the Railway team.You're seeing this because this thread has been automatically linked to the Help Station thread.
ok i just made a new project and it deployed fine wtf
could you please not touch the original project and service?
sure thing ill keep it up 👍
thanks!
it may just get redeployed to, is that fine?
yeah
New reply sent from Help Station thread:
Could you try switching the runtime in your service settings to "Legacy"?You're seeing this because this thread has been automatically linked to the Help Station thread.
^ ignore that, could you try removing the
cd
step from your start command? It shouldn't be needed
should likely just be pnpm start