IOError: [Errno 104] Connection reset by peer

Got an error while serving development mode in port 8000

Exception happened during processing of request from ('', 1664)
Traceback (most recent call last):
 File "/usr/lib/python2.7/", line 593, in process_request_thread
   self.finish_request(request, client_address)
 File "/usr/lib/python2.7/", line 334, in finish_request
   self.RequestHandlerClass(request, client_address, self)
 File "/usr/lib/python2.7/", line 649, in __init__
 File "/home/hlanganisa_user/frappe-fmcg/env/local/lib/python2.7/site-packages/werkzeug/", line 216, in handle
   rv = BaseHTTPRequestHandler.handle(self)
 File "/usr/lib/python2.7/", line 340, in handle
 File "/home/hlanganisa_user/frappe-fmcg/env/local/lib/python2.7/site-packages/werkzeug/", line 247, in handle_one_request
   self.raw_requestline = self.rfile.readline()
IOError: [Errno 104] Connection reset by peer

what could be the reason.

Share the steps to reproduce this.

I have the same problem as well. My configuration is ubuntu 16 vm in the cloud connecting to mariadb in aws rdb

The same set of the source codes works fine if db sits on the same box.

Can this be looked at?


Same problem with development image on localhost:8000,
but only with the development image.

The production vm on the localhost.8080 is working well.

May be this is the reason: /I’m on NAT network settings on both cases/