R
Railway14mo 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
Percy14mo ago
Project ID: e9489f6a-7b0a-45d9-8268-5cd182f9c22c
DM
DM14mo ago
e9489f6a-7b0a-45d9-8268-5cd182f9c22c
Brody
Brody14mo ago
how many workers are you trying to use
DM
DM14mo ago
gunicorn --worker-class=gevent --worker-connections=100 --workers=30 app:app
Brody
Brody14mo 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
DM14mo ago
Implemented that change last time based on feedback here while debugging timeouts 😬 Trying now
Brody
Brody14mo ago
out of curiosity, who told you that?
DM
DM14mo ago
Brody
Brody14mo ago
i didnt say 30 i also gave you the equation 🙂
DM
DM14mo 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
Brody14mo ago
is this the backend for yourmove.ai?
DM
DM14mo ago
It is.
Brody
Brody14mo ago
very cool
DM
DM14mo ago
Looks like it crashed again 😮 Ugh
Brody
Brody14mo ago
try a different worker class other than gevent?
DM
DM14mo ago
as in removing that line altogether?
Brody
Brody14mo ago
no, move to a different worker class
DM
DM14mo ago
Sorry - I mean removing --worker-class=gevent so it returns to the default.
Brody
Brody14mo ago
no lol use a different worker class not the default sync worker
DM
DM14mo 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
Brody14mo ago
argument against gthread?
DM
DM14mo ago
As the worker type. Disregard - don't mean to monopolize your time for thing I should be able to google.
Brody
Brody14mo 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
DM14mo ago
I'm a data analyst, ne mechanical engineer lol
Brody
Brody14mo ago
fancy
DM
DM14mo ago
Would be great to take a sabatical and actually learn to code.
Brody
Brody14mo ago
learning to code is overrated says the person who still hasn't learned to code
DM
DM14mo ago
Explain?
Brody
Brody14mo ago
lol just a stupid joke
DM
DM14mo 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
Brody14mo ago
have you tried googling that error
DM
DM14mo ago
Yes but not hard enough. Gimme a bit to try and solve.
DM
DM14mo 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
Brody14mo ago
set those variables in the railway service variables
DM
DM14mo ago
@Brody minor / unrelated - but is there a way to see the request url in logs (or otherwise)?
Brody
Brody14mo 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