Forums

Flask App Randomly Down for 10–15 Minutes – No Errors, Only SIGPIPE in Logs

I’ve been having an issue with my Flask app on PythonAnywhere. A couple of times per day, the app just goes down for 10–15 minutes. During that time, when I open the URL (it’s an API endpoint), it doesn’t respond at all. Then, without me doing anything, it’s suddenly back up again.

The big problem: I use this API to handle customer purchases and write to my database. So when it’s down, I miss incoming data and have to handle things manually. It’s pretty painful.

Now here’s the weird part — I don’t see any errors in the access log, error log, or even the server log. The only thing that shows up is this:

2025-06-25 21:00:58 Wed Jun 25 21:00:58 2025 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /pabbly/portal_session (ip 10.0.4.170) !!!

That line appears during the downtime window, but I don’t know if it’s related or just a side effect. Is this something that can be caused by how Flask is set up? Or is it possibly an uptime issue on PythonAnywhere’s side?

Appreciate any insights!

Best, Sven

There was a hardware issue with one of our machines and it looks like it was related. Sorry for that.

Thanks for the quick reply, appreciate it.

Just wondering, is there a way to get notified when something like this happens? Maybe a status page I can follow or a place to subscribe?

No, we do not have that.

:[