Tips for debugging intermittent 502s with Daphne

33 views
Skip to first unread message

Keith Hackbarth

unread,
Oct 7, 2020, 6:20:35 PM10/7/20
to Django users
Hey all, 

Was hoping to get some advice about how to debug intermittent 502 using Daphne
  • I observe connection error in the NGIX logs (where I"m using proxy_pass) Connection refused) while connecting to upstream
  • I observe in NGIX logs that it correlates with spike in inbound requests.
  • However, I'm seeing nothing in my Daphne logs to suggest that there is an error happening downstream.
I've ruled out slowness and networking issues, so I'm assuming that Daphne is running out of connections. But have no idea where I could look to validate this assumption or what the next steps would be.

Any advice?

Dvs Khamele

unread,
Oct 11, 2020, 1:04:51 PM10/11/20
to django...@googlegroups.com
Hi do you hire contract based python/django freelancer?
 We can help you in this and related tasks at fair prices. Reply or send email to div...@pythonmate.com
Best Regards, 
Divyesh Khamele,
Pythonmate

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/89f42085-15f1-4578-a0c2-ee12534bc773n%40googlegroups.com.

Claudio Tubertini

unread,
Oct 11, 2020, 1:27:32 PM10/11/20
to Django users
Please add your nginx conf, this error may be connected to gthe setup of the server.
Reply all
Reply to author
Forward
0 new messages