Why is my container failing to start?
recurbuddy
HOBBYOP

2 years ago

Hi There,

I have just started using railway.app and deployed a particular branch post connecting with github. The problem is it keeps on failing during deployment and it doesn't show any error as well.

How can I debug what is going wrong?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

10 Replies


recurbuddy
HOBBYOP

2 years ago

Please find the build log.

Attachments


2 years ago

Do you have any start commands set in the service settings?


recurbuddy
HOBBYOP

2 years ago

No. but I have it in my Dockerfile - CMD command.

```

CMD ["gunicorn", "--workers", "9", "--threads", "4", "--worker-class", "gthread", "--bind", "0.0.0.0:8000", "--access-logfile", "/dev/stdout", "--error-logfile", "/dev/stderr", "submanager.wsgi:application"]

```


2 years ago

Do you have a volume on your service?


recurbuddy
HOBBYOP

2 years ago

@brody - You directed me in the right direction. Apparently railway.app had added custom start command on its own. I just removed it and it worked post redeployment.


recurbuddy
HOBBYOP

2 years ago

Thanks a lot


2 years ago

What was the custom start command?


recurbuddy
HOBBYOP

2 years ago

I don't remember now and I don't think I can get that post deleting it but it was something like `railway-nginx-gunicorn submanager.wsgi`


2 years ago

That's something you would have set.

But i'm glad you solved it!


Status changed to Solved brody almost 2 years ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...