We have two tryton + docker installations. One with a traefik proxy and one with an apache proxy.
The second works perfectly. The first generates random “bad gateways”.
We tried different settings in traefik, labels and in uwsgi.conf but nothing changes, we always get random "bad gateway. This happens even after login.
Do you have an idea of the cause and what we could do to solve this problem?
thanks in advance.
For me it looks like the proxy is not waiting long enough the answer and close the connection earlier.
This is probably because you are using lazy-apps so trytond is not started directly but only on the first request but the starting of trytond may take times.
Thank you for your answers.
I tried both suggestions. But I get the same error message (bad gateway) after 3 clicks!
I also tried removing the Threads, playing with the timeout, keepalive but nothing changes!
I also added workers, processes.
Do you have a docker configuration with uwsgi or without that works?
msg=“‘500 Internal Server Error’ caused by: http: server closed idle connection”
msg=“‘502 Bad Gateway’ caused by: readfrom tcp 172.23.0.3:53680->172.23.0.6:8000: write tcp 172.23.0.3:53680->172.23.0.6:8000: write: broken pipe”