Tim
Django with Gunicorn gives frequent [CRITICAL] WORKER TIMEOUTs on simple requests
I have been trying to deploy an app (no real users on this deploy yet). The deployment works, but some site requests that barely require any amount of back-end processing time (i.e. retrieve 1 model in the django admin without any calculated fields) will lead to Gunicorn timeouts. After a few seconds it will often work again, keep working for a while, and eventually go back to timeout's.
Suggestions are very much appreciated. I have 2 gunicorn workers and 2 replica's and I am the only user.
I am running it using docker with the following dockerfile
Where the entrypoint will do migrations and eventually run
25 replies
Logs filled with errors due to django allowed hosts settings
My issue is similar to https://discord.com/channels/713503345364697088/1172062119710171176/1172063615537385504
My logs are filled with stuff like this:
The site works fine, but it makes monitoring actual errors rather annoying. How to fix this?
12 replies
NS_ERROR_REDIRECT_LOOP
I am running a Django server using a docker file.
Project id a9861a99-1c51-4b34-8970-6e92d5cd7f47
The deploy log states that the gunicorn started succesfully, but I get an infinite redirect cycle when I try to access the website? Any suggestions how to avoid this? I don't have this problem on localhost.
So I am getting 301's to the same url looped.
7 replies