R
Railway2y ago
DM

RLIMIT NPROC?

Is anyone familiar with the following error - or what could be causing it? OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 64: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
36 Replies
Percy
Percy2y ago
Project ID: e9489f6a-7b0a-45d9-8268-5cd182f9c22c
DM
DMOP2y ago
e9489f6a-7b0a-45d9-8268-5cd182f9c22c
Brody
Brody2y ago
how many workers are you trying to use
DM
DMOP2y ago
gunicorn --worker-class=gevent --worker-connections=100 --workers=30 app:app
Brody
Brody2y ago
that is farrrrrr too many workers (2 x 8) + 1 = 17 you should be using no more than 17, and even then its not recommended to just set your workers to the max number try 4 workers
DM
DMOP2y ago
Implemented that change last time based on feedback here while debugging timeouts 😬 Trying now
Brody
Brody2y ago
out of curiosity, who told you that?
DM
DMOP2y ago
Brody
Brody2y ago
i didnt say 30 i also gave you the equation 🙂
DM
DMOP2y ago
lol That you did. Not sure how I wound up with it at 30. Either way it's working now. The eternal battle between spending my weekend trying to make thing not fall apart, vs marketing or trying to improve usability.
Brody
Brody2y ago
is this the backend for yourmove.ai?
DM
DMOP2y ago
It is.
Brody
Brody2y ago
very cool
DM
DMOP2y ago
Looks like it crashed again 😮 Ugh
Brody
Brody2y ago
try a different worker class other than gevent?
DM
DMOP2y ago
as in removing that line altogether?
Brody
Brody2y ago
no, move to a different worker class
DM
DMOP2y ago
Sorry - I mean removing --worker-class=gevent so it returns to the default.
Brody
Brody2y ago
no lol use a different worker class not the default sync worker
DM
DMOP2y ago
Still getting the previous error btw. Reading about different worker classes now. OpenBLAS blas_thread_init: pthread_create failed for thread 48 of 64: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max What's the argument against gthread?
Brody
Brody2y ago
argument against gthread?
DM
DMOP2y ago
As the worker type. Disregard - don't mean to monopolize your time for thing I should be able to google.
Brody
Brody2y ago
don't worry about my time, but I don't know if I've told you that I'm not a python developer
DM
DMOP2y ago
I'm a data analyst, ne mechanical engineer lol
Brody
Brody2y ago
fancy
DM
DMOP2y ago
Would be great to take a sabatical and actually learn to code.
Brody
Brody2y ago
learning to code is overrated says the person who still hasn't learned to code
DM
DMOP2y ago
Explain?
Brody
Brody2y ago
lol just a stupid joke
DM
DMOP2y ago
Front-end for my site it built in low code and I hate it so much Alright. Set to eventlet - let's see how it goes. Still surprised that it started crashing despite no meaningful changes made. Still getting errors. What the ** OpenBLAS blas_thread_init: pthread_create failed for thread 63 of 64: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Brody
Brody2y ago
have you tried googling that error
DM
DMOP2y ago
Yes but not hard enough. Gimme a bit to try and solve.
DM
DMOP2y ago
It seems like a numpy issue. I found the following solution. Would the equivalent of implementing it on my end be: - Running the export in the console? - Setting as env variable - Changing the procfile?
Brody
Brody2y ago
set those variables in the railway service variables
DM
DMOP2y ago
@Brody minor / unrelated - but is there a way to see the request url in logs (or otherwise)?
Brody
Brody2y ago
im 99% sure you can configure gunicorn to log network requests to stdout, dont know how though maybe?? --access-logfile - https://docs.gunicorn.org/en/stable/settings.html#accesslog
Want results from more Discord servers?
Add your server