Forums

SIGPIPE server error

Hi,

I'm getting this error in www.mywebsite.com.server.log:

2022-12-26 22:44:43 Mon Dec 26 22:44:43 2022 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /myRoute 2022-12-26 22:44:43 Mon Dec 26 22:44:43 2022 - uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 306] during GET /myRoute

What happens is that a bunch of requests go through with 200 response code and one pops up randomly with 500 response code every minute or so. There's a pop-up that appears on my website when the error occurs indicating that it's a server error.

My website works by getting data from a csv file and it periodically decreases the length of the csv to keep it at a certain number of rows. What I noticed is that when the csv isn't even close to that number of rows, the error never occurs. But when it's at that number of rows, the error shows up periodically as described above.

Any way someone can help me with this?

Thanks

The message you're seeing is not necessarily an error indicator -- what it means is that the client disconnected before the request has been processed. It may be caused because there's a short timeout set, or your request is being processed too long -- you may investigate which cause is more likely.

Could it be because a function is trying to read a csv that is being modified by another function at that point? To be more specific, this is the error that I'm getting when I inspect the error log: pandas.errors.EmptyDataError: No columns to parse from file . Also where would I check if there's a short timeout set?

Nevermind it's solved. Thank you!

OK -- glad to hear you worked it out!