R
Railway13mo ago
doodsie

Worker (pid:233) was sent SIGKILL! Perhaps out of memory?

[CRITICAL] WORKER TIMEOUT (pid:233)
Solution:
lesson of the day, don't get chat gpt to write you railway config
Jump to solution
42 Replies
Percy
Percy13mo ago
Project ID: N/A
doodsie
doodsieOP13mo ago
N/A
Brody
Brody13mo ago
I see that you're on hobby now, where you on hobby when you got this error?
doodsie
doodsieOP13mo ago
yes im in hobby, but i upgraded my plan already to pro
doodsie
doodsieOP13mo ago
i'm having this error
No description
Brody
Brody13mo ago
what do your memory metrics look like? and when you upgraded to pro, did you move your project over to your pro account?
doodsie
doodsieOP13mo ago
No description
doodsie
doodsieOP13mo ago
it looks like this yes i moved it to pro account alreadyy
Brody
Brody13mo ago
have you redeployed the project since
doodsie
doodsieOP13mo ago
yes i redeployed it already
Brody
Brody13mo ago
then you aren't running out of memory and that means there is a code issue here how long should a single http request take to your app?
doodsie
doodsieOP13mo ago
about 5 seconds
Brody
Brody13mo ago
there's an issue with your code, it's blocking the requests from finishing and causing issues, my recommendation would be to add debug logging, better error handling and telemetry data so that you can more easily debug your code
doodsie
doodsieOP13mo ago
can i dm you? and send you my git repository i think im having a problem in gunicorn code
Brody
Brody13mo ago
no sorry, this isn't an issue with Railway please follow my recommendation, without those things it would be very hard for you to debug
doodsie
doodsieOP13mo ago
this is my railway.yml build: start: name: python-start run: gunicorn -c gunicorn_config.py -b 0.0.0.0:$PORT -t 600 your_main:app
Brody
Brody13mo ago
railway does not have support for yaml
doodsie
doodsieOP13mo ago
what should i do instead?
Brody
Brody13mo ago
and if it did, that would not be the correct syntax a Procfile
doodsie
doodsieOP13mo ago
i think that is our problem should i change it to procfile?
Brody
Brody13mo ago
yes, that's one of the simplest ways to set a start command
doodsie
doodsieOP13mo ago
what should i put in start command sorry it was my first time deploying in railway
Brody
Brody13mo ago
use the command you sent above actually nevermind, forget a Procfile, set the start command in the service settings
doodsie
doodsieOP13mo ago
okay im gonna set it it shows this Error: No application module specified.
Brody
Brody13mo ago
your start command is incorrect, please review gunicorns documentation
doodsie
doodsieOP13mo ago
i changed it to this gunicorn -c gunicorn_config.py main:app and this is my gunicorn_config.py gunicorn_config.py bind = "0.0.0.0:$PORT" workers = 4 timeout = 120
Brody
Brody13mo ago
without reading the documentation myself I wouldn't be able to tell you if that's valid or not can't hurt to try
doodsie
doodsieOP13mo ago
No description
doodsie
doodsieOP13mo ago
bro what port should i use? should i follow the documentation $PORT or set it to 8000 instead
Brody
Brody13mo ago
gunicorn binds to 0.0.0.0:$PORT by default actually, so you can omit that
doodsie
doodsieOP13mo ago
should i remove the bind = "0.0.0.0:$PORT"
Brody
Brody13mo ago
yes, it's redundant
doodsie
doodsieOP13mo ago
thaaank youu so muchhh!! i will try it bro theres no error like critical error out of memory this is my new error now
doodsie
doodsieOP13mo ago
No description
Brody
Brody13mo ago
unfortunately a start command change didn't solve anything please follow my recommendations
doodsie
doodsieOP13mo ago
thank you i will do that!! hiii brody thank you so muchh man!!!
Brody
Brody13mo ago
what was the problem?
doodsie
doodsieOP13mo ago
the main problem is the railway.yml and removing the bind and port in gunicorn_config.py, now we are able to connect our app in railway
Brody
Brody13mo ago
awesome
doodsie
doodsieOP13mo ago
awesomee man!! thank you so muchh!! you helped us a lot
Solution
Brody
Brody13mo ago
lesson of the day, don't get chat gpt to write you railway config
doodsie
doodsieOP13mo ago
yeaah HAHAHAHA i learned my lesson!!!
Want results from more Discord servers?
Add your server