R
Railwayā€¢10mo ago
mecevik

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?
Solution:
web: gunicorn coin.wsgi --log-file -
web: gunicorn coin.wsgi --log-file -
...
Jump to solution
49 Replies
Percy
Percyā€¢10mo ago
Project ID: N/A
Fragly
Fraglyā€¢10mo ago
I recommend you take a look at this: https://docs.railway.app/guides/fixing-common-errors
mecevik
mecevikOPā€¢10mo ago
N/A I tried recommendations there but still happening.
Fragly
Fraglyā€¢10mo ago
what is your start command if you don't mind me asking? also do you see any errors?
mecevik
mecevikOPā€¢10mo ago
currently this: web: gunicorn 'coin.wsgi' I tried other commands but still same
Fragly
Fraglyā€¢10mo ago
try gunicorn -b 0.0.0.0 -p $PORT coin.wsgi
mecevik
mecevikOPā€¢10mo ago
The project first deployed succesfully but eventually it get the error : crashed
Fragly
Fraglyā€¢10mo ago
Oh, Mind sharing the error you're getting? šŸ¤”
mecevik
mecevikOPā€¢10mo ago
invalid type: string "gunicorn -b 0.0.0.0 -p $PORT coin.wsgi", expected a map : got this error
Fragly
Fraglyā€¢10mo ago
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
mecevik
mecevikOPā€¢10mo ago
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"
Fragly
Fraglyā€¢10mo ago
Mind sharing your build logs using this tool? https://bookmarklets.up.railway.app/log-downloader/
mecevik
mecevikOPā€¢10mo ago
[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?
Brody
Brodyā€¢10mo ago
you forgot a colon after web
mecevik
mecevikOPā€¢10mo ago
"web : gunicorn coin.wsgi:application --log-file -" should be like that way?
Brody
Brodyā€¢10mo ago
no space between web and the colon
mecevik
mecevikOPā€¢10mo ago
"web: gunicorn coin.wsgi:application --log-file -" right?
Brody
Brodyā€¢10mo ago
looks good dont know if the coin.wsgi:application part is correct in accordance with your project though
mecevik
mecevikOPā€¢10mo ago
/bin/bash: line 1: application: command not found I get this error now in deployedlogs Whic part should I check on my project?
Brody
Brodyā€¢10mo ago
share your repo please
mecevik
mecevikOPā€¢10mo ago
I think this is not related my project. Thanks for your help.
Brody
Brodyā€¢10mo ago
this isnt a railway problem, this is a problem with your start command, without seeing your repo i cant really advise further
mecevik
mecevikOPā€¢10mo ago
At first my project was working. I deleted it for some reasons, reinstalled it and get this problem.
Brody
Brodyā€¢10mo ago
id need to see your repo in order to advise on a correct start command otherwise im just blindly guessing
mecevik
mecevikOPā€¢10mo ago
GitHub
GitHub - mecevik/coin
Contribute to mecevik/coin development by creating an account on GitHub.
Brody
Brodyā€¢10mo ago
remove :application from the start command
mecevik
mecevikOPā€¢10mo ago
Excuse me ? Which part do you mean?
Solution
Brody
Brodyā€¢10mo ago
web: gunicorn coin.wsgi --log-file -
web: gunicorn coin.wsgi --log-file -
mecevik
mecevikOPā€¢10mo ago
oh! this application failed still same error
Brody
Brodyā€¢10mo ago
deploy logs please
mecevik
mecevikOPā€¢10mo ago
/bin/bash: line 1: application: command not foun
Brody
Brodyā€¢10mo ago
do you have a start command set in the service settings? if so, remove it
mecevik
mecevikOPā€¢10mo ago
sorry i am amateur where should I check it on?
Brody
Brodyā€¢10mo ago
in the service's settings
mecevik
mecevikOPā€¢10mo ago
There is custom comman in input "application --log-file -" do you mean this?
Brody
Brodyā€¢10mo ago
remove it
mecevik
mecevikOPā€¢10mo ago
Brody
Brodyā€¢10mo ago
deploy logs please
mecevik
mecevikOPā€¢10mo ago
/bin/bash: line 1: application: command not found
Brody
Brodyā€¢10mo ago
do you have a start command set in the service settings? if so, remove it
mecevik
mecevikOPā€¢10mo ago
I removed already Just checked and nothing there
Brody
Brodyā€¢10mo ago
redeploy the service
mecevik
mecevikOPā€¢10mo ago
Tried it still same error :/bin/bash: line 1: application: command not found
Brody
Brodyā€¢10mo ago
show me the table at the top of the build logs please
mecevik
mecevikOPā€¢10mo ago
ā•”ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā• 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 - ā•‘ ā•šā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•
Brody
Brodyā€¢10mo ago
you have the wrong start command set somewhere other than your Procfile, please remove it
mecevik
mecevikOPā€¢10mo ago
I deleted project reinstalled it and it works now great! I really appreciate for yor help friend!!
Brody
Brodyā€¢10mo ago
no problem!
Percy
Percyā€¢10mo ago
Something went wrong. Please try again.
Want results from more Discord servers?
Add your server