Application failed to respond
midhun98
HOBBYOP

2 years ago

Im getting this error whenever im deploying my Django application.I'm using docker.
Here is the link to my github repo https://github.com/midhun98/hospital_site

30 Replies

midhun98
HOBBYOP

2 years ago

fd0bd18d-392d-4b0d-af5c-395356468583


midhun98
HOBBYOP

2 years ago

1274351947595649000


midhun98
HOBBYOP

2 years ago

1274356144764354600



midhun98
HOBBYOP

2 years ago

I'm using docker in my app and the docs dont help me.


midhun98
HOBBYOP

2 years ago

it now returns HTTP ERROR 404


2 years ago

hmmm, not sure how those docs have anything to do with docker, they are applicable for every app you could run on railway


2 years ago

that 404 would be the code your app is returning


midhun98
HOBBYOP

2 years ago

this is my dockerfile

FROM python:3.12
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "hospital_site.wsgi:application"]



2 years ago

your own code is returning the 404 now, nothing to do with a dockerfile


2 years ago

do you have anything registered for the root route?


midhun98
HOBBYOP

2 years ago

i didnt understand. i mean nothing is loading in django app


midhun98
HOBBYOP

2 years ago

the django app was working properly till yesterday. but i dont know how it crashed today


2 years ago

^


midhun98
HOBBYOP

2 years ago

Can you look into my repo. Im completely stuck. I dont know whats causing the issue. No issues in my local


midhun98
HOBBYOP

2 years ago

1274419042244886800


2 years ago

something you changed yesterday broke something, maybe you will get more info if you enable debug mode


midhun98
HOBBYOP

2 years ago

i enabled debug mode. but it wont show any erros


2 years ago

?


midhun98
HOBBYOP

2 years ago

yes


midhun98
HOBBYOP

2 years ago

i mean its not a standard 404 page by my django app see screenshot

1274581072180678700


2 years ago

that would not be a 404 page that railway would return as you would see the railway logo, this is an application level issue.


midhun98
HOBBYOP

2 years ago

i have debug turned on in my project. it would show some django error messages if it was my app issue


2 years ago

I'm sorry but that is not a page that railway would show


midhun98
HOBBYOP

2 years ago

any other solution tried my best in resolving


2 years ago

you said the applicable worked up until recently, I would try reverting your repo to before you made that breaking change


midhun98
HOBBYOP

2 years ago

ok


midhun98
HOBBYOP

2 years ago

Closing this thread. It was a mistake from my side sorry Brody if I wasted ur time


2 years ago

no worries at all, in the future, please don't be so quick to think it's a platform issue


Loading...