I kept on getting these bizarre exceptions that I can’t solve:
Transport closed @ ('127.0.0.1', 34446) and exception experienced during error handling
They started happening after I upgraded from 0.7.0 to 0.8.3. I am unsure if they are related, because my site also got some increase in traffic. But they are mysterious to me so I don’t know how to debug it. The exceptions are thrown on the server.py
I am going to assume that they are related to those RuntimeError which I also don’t know how to debug — what do they mean exactly?
Nov 27 05:01:06 ubuntu gunicorn[2097]: 2018-11-27 05:01:06,408 ERROR asyncio:683 | Fatal error on SSL transport
Nov 27 05:01:06 ubuntu gunicorn[2097]: protocol: <asyncio.sslproto.SSLProtocol object at 0x7f33df3e24e0>
Nov 27 05:01:06 ubuntu gunicorn[2097]: transport: <TCPTransport closed=True reading=False 0x2cb8878>
Nov 27 05:01:06 ubuntu gunicorn[2097]: Traceback (most recent call last):
Nov 27 05:01:06 ubuntu gunicorn[2097]: File "/usr/lib/python3.6/asyncio/sslproto.py", line 641, in _process_write_backlog
Nov 27 05:01:06 ubuntu gunicorn[2097]: self._on_handshake_complete)
Nov 27 05:01:06 ubuntu gunicorn[2097]: File "/usr/lib/python3.6/asyncio/sslproto.py", line 128, in do_handshake
Nov 27 05:01:06 ubuntu gunicorn[2097]: raise RuntimeError('handshake in progress or completed')
Nov 27 05:01:06 ubuntu gunicorn[2097]: RuntimeError: handshake in progress or completed
Nov 27 05:01:14 ubuntu gunicorn[2097]: 2018-11-27 05:01:14,516 ERROR root:443 | Transport closed @ ('127.0.0.1', 34896) and exception experienced during error handling
Nov 27 05:01:16 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34488) and exception experienced during error handling"]
Nov 27 05:01:17 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34490) and exception experienced during error handling"]
Nov 27 05:01:18 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34492) and exception experienced during error handling"]
Nov 27 05:01:18 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34494) and exception experienced during error handling"]
Nov 27 05:01:19 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34500) and exception experienced during error handling"]
Nov 27 05:01:20 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34502) and exception experienced during error handling"]
Nov 27 05:01:20 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34506) and exception experienced during error handling"]
Nov 27 05:01:21 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34514) and exception experienced during error handling"]
Nov 27 05:01:22 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34522) and exception experienced during error handling"]
Nov 27 05:01:23 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34526) and exception experienced during error handling"]
Nov 27 05:01:24 ubuntu gunicorn[2097]: ["Transport closed @ ('127.0.0.1', 34528) and exception experienced during error handling"]