Closed languagemaniac closed 10 months ago
I have deleted all the containers including the database, and recreated everything. The issue persists.
Maybe I updated something and somehow it broke tandoor?
By the way, happy holidays! I don't expect an answer during these days but posting this here to keep it updated
Comment out these two lines. I don't know if it's related, but I don't know what behavior is with a blank value set.
''' POSTGRES_PASSWORD_FILE= SECRET_KEY_FILE= '''
Comment out these two lines. I don't know if it's related, but I don't know what behavior is with a blank value set.
''' POSTGRES_PASSWORD_FILE= SECRET_KEY_FILE= '''
I did it but the issue persists after rebooting.
Changes won't take effect at reboot, you need to rebuild the container.
Changes won't take effect at reboot, you need to rebuild the container.
Ok, i rebuilt but sadly the issue persists
I think i might have found a solution
https://stackoverflow.com/questions/10855197/frequent-worker-timeout
We had the same problem using Django+nginx+gunicorn. From Gunicorn documentation we have configured the graceful-timeout that made almost no difference.
After some testings, we found the solution, the parameter to configure is: timeout (And not graceful timeout). It works like a clock..
So, Do:
1) open the gunicorn configuration file
2) set the TIMEOUT to what ever you need - the value is in seconds
NUM_WORKERS=3
TIMEOUT=120
exec gunicorn ${DJANGO_WSGI_MODULE}:application \
--name $NAME \
--workers $NUM_WORKERS \
--timeout $TIMEOUT \
--log-level=debug \
--bind=127.0.0.1:9000 \
--pid=$PIDFILE
But how can I access this file? I don't know where that is in my system, i looked up the version of gunicorn installed in my system, and the version doesn't match the one that the log outputs (the part where it says "Starting gunicorn 20.1.0")
So maybe the conf file is inside the container?
I tried searching for it but didn't find it
The most likely cause of Worker with pid X was terminated due to signal 9
type errors are low memory conditions. You can try setting worker and thread counts.
But you'll need to troubleshoot memory conditions on the host machine to identify root cause.
The most likely cause of
Worker with pid X was terminated due to signal 9
type errors are low memory conditions. You can try setting worker and thread counts.But you'll need to troubleshoot memory conditions on the host machine to identify root cause.
That link is a bit too difficult for me to understand. Could you guide me setting worker and thread counts?
I'm running this on a pi 3b+ and i guess it's because I only have 1Gb of ram and too many things installed. I'm saving to upgrade to something better.
The most likely cause of
Worker with pid X was terminated due to signal 9
type errors are low memory conditions. You can try setting worker and thread counts.But you'll need to troubleshoot memory conditions on the host machine to identify root cause.
That link is a bit too difficult for me to understand. Could you guide me setting worker and thread counts?
I'm running this on a pi 3b+ and i guess it's because I only have 1Gb of ram and too many things installed. I'm saving to upgrade to something better.
Nevermind, I solved it. Now i have another issue. Will open a new issue to make it more clear.
Issue
Hi, I have an issue and no idea what caused it. It was working fine yesterday... I have this installed on my 64bit raspberry pi os on my Raspberry pi.
The database is apparently ok. Anyways I made a backup in SQL format as described in the docs.
I have no idea where to start. I deleted the web container and recreated it, but the issue persists.
Tandoor Version
Latest, can't see the number since the web is down
OS Version
Raspberry pi os bullseye
Setup
Docker / Docker-Compose
Reverse Proxy
No reverse proxy
Other
No response
Environment file
Docker-Compose file
Relevant logs