Forums

uwsgi_response_write_body_do(): Broken pipe

I have a Flask-based dashboard application where all users can log in and use the system except for one specific account. Whenever this user attempts to log in, I receive a 502-backend error.

I have checked various logs and even added custom logging, but I haven’t been able to identify the root cause. Interestingly, when I run the application locally, this user is able to log in without any issues, which suggests that the problem might be related to the server environment or configuration.

Below are the relevant log entries I see after this user tries to log in:

2025-02-27 08:04:10 Thu Feb 27 08:04:10 2025 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /dashboard/ (ip 10.0.5.105) !!!

2025-02-27 08:04:10 Thu Feb 27 08:04:10 2025 - uwsgi_response_write_body_do(): Broken pipe [core/writer.c line 341] during GET /dashboard/ (10.0.5.105)

I’d really appreciate any insights or suggestions on what might be causing this issue. Thanks in advance!

It means the client disconnected before the server could send a response. It could be an issue with the internet connection of that particular user.

@nkahr Yes but its not the case, I tried logging in from different machines, devices, networks, everything, only that user is getting affected, and if I check backend logs, everything is working as expected as well

If that's only one user it looks like you need to look for something specific to that user.