Application Crashed
Hello Friends! I am trying to depoloy my django project and get Application failed to respond. I think there is a platform related issue. Does this happen to you?
49 Replies
Project ID:
N/A
I recommend you take a look at this: https://docs.railway.app/guides/fixing-common-errors
N/A
I tried recommendations there but still happening.
what is your start command if you don't mind me asking?
also do you see any errors?
currently this: web: gunicorn 'coin.wsgi'
I tried other commands but still same
try
gunicorn -b 0.0.0.0 -p $PORT coin.wsgi
The project first deployed succesfully but eventually it get the error : crashed
Oh, Mind sharing the error you're getting? š¤
invalid type: string "gunicorn -b 0.0.0.0 -p $PORT coin.wsgi", expected a map : got this error
nevermind, I was told gunicorn listens on host 0.0.0.0 and on $PORT by default
so you can stick with your original command, my bad
I replaced my procfile to this command : "web: gunicorn coin.wsgi:application --log-file -" and I get this error in logs:"/bin/bash: line 1: application: command not found"
Mind sharing your build logs using this tool?
https://bookmarklets.up.railway.app/log-downloader/
[Region: us-west1]
==============
Using Nixpacks
==============
context: d776d9906b133814195c2237d677a052
Nixpacks build failed
Error: Reading Procfile
Caused by:
invalid type: string "web gunicorn coin.wsgi:application --log-file -", expected a map
Did you look at?
you forgot a colon after
web
"web : gunicorn coin.wsgi:application --log-file -" should be like that way?
no space between
web
and the colon"web: gunicorn coin.wsgi:application --log-file -" right?
looks good
dont know if the
coin.wsgi:application
part is correct in accordance with your project though/bin/bash: line 1: application: command not found I get this error now in deployedlogs
Whic part should I check on my project?
share your repo please
I think this is not related my project. Thanks for your help.
this isnt a railway problem, this is a problem with your start command, without seeing your repo i cant really advise further
At first my project was working. I deleted it for some reasons, reinstalled it and get this problem.
id need to see your repo in order to advise on a correct start command
otherwise im just blindly guessing
remove
:application
from the start commandExcuse me ? Which part do you mean?
Solution
oh!
this application failed
still same error
deploy logs please
/bin/bash: line 1: application: command not foun
do you have a start command set in the service settings?
if so, remove it
sorry i am amateur where should I check it on?
in the service's settings
There is custom comman in input "application --log-file -" do you mean this?
remove it
deploy logs please
/bin/bash: line 1: application: command not found
do you have a start command set in the service settings? if so, remove it
I removed already
Just checked and nothing there
redeploy the service
Tried it still same error :/bin/bash: line 1: application: command not found
show me the table at the top of the build logs please
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā Nixpacks v1.20.0 āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā setup ā python311, gcc ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā install ā python -m venv --copies /opt/venv && . /opt/venv/bin/activate ā
ā ā && pip install -r requirements.txt ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā start ā application --log-file - ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
you have the wrong start command set somewhere other than your Procfile, please remove it
I deleted project reinstalled it and it works now great! I really appreciate for yor help friend!!
no problem!
Something went wrong. Please try again.