xcrouton
By:
xcrouton

Flask service not responding after running for a few days

August 23, 2017 160 views
Python Apache Python Frameworks Ubuntu 16.04

I have a Python Flask service running on my Ubuntu instance. I'm using WSGI and Apache to serve my application. Everything works well as soon as I launch the app and typically a few days afterwards. The problem is, after a few days, my service stops responding. When I ssh back into my instance, I can see python is still running, but the service no longer responds. Trying to curl to localhost results in Connection reset by peer timeout.

The service is still only being hit by a couple of developers, so I would be surprised if the problem is based on load. What can I do to try to diagnose this problem further?

Be the first one to answer this question.