Skip to content

Instantly share code, notes, and snippets.

@TimothyFitz
Created September 12, 2018 00:24
Show Gist options
  • Save TimothyFitz/2d929f907c4cad47a7c8da8e0944b19e to your computer and use it in GitHub Desktop.
Save TimothyFitz/2d929f907c4cad47a7c8da8e0944b19e to your computer and use it in GitHub Desktop.
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: [2018-09-06 11:48:35,581] ERROR in app: Exception on /scrape [POST]
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: Traceback (most recent call last):
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/monolith/database/mysql/handle.py", line 56, in fetch
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: await cur.execute(query, params)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/cursors.py", line 240, in execute
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from self._query(query)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/cursors.py", line 461, in _query
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from conn.query(q)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 409, in query
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from self._read_query_result(unbuffered=unbuffered)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 603, in _read_query_result
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from result.read()
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 924, in read
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: first_packet = yield from self.connection._read_packet()
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 541, in _read_packet
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: packet_header = yield from self._read_bytes(4)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 585, in _read_bytes
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: raise OperationalError(2013, msg) from e
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([Errno 32] Broken pipe)')
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: During handling of the above exception, another exception occurred:
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: Traceback (most recent call last):
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 579, in _read_bytes
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: data = yield from self._reader.readexactly(num_bytes)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/streams.py", line 656, in readexactly
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: raise self._exception
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 579, in _read_bytes
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: data = yield from self._reader.readexactly(num_bytes)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/streams.py", line 670, in readexactly
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: block = yield from self.read(n)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/streams.py", line 627, in read
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from self._wait_for_data('read')
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/streams.py", line 457, in _wait_for_data
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from self._waiter
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield self # This tells Task to wait for completion.
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: future.result()
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: raise self._exception
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/usr/lib/python3.5/asyncio/selector_events.py", line 700, in write
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: n = self._sock.send(data)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: BrokenPipeError: [Errno 32] Broken pipe
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: The above exception was the direct cause of the following exception:
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: Traceback (most recent call last):
[...snip...]
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/monolith/database/mysql/handle.py", line 73, in fetch
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: await self._conn.rollback()
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 346, in rollback
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: yield from self._read_ok_packet()
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 315, in _read_ok_packet
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: pkt = yield from self._read_packet()
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 541, in _read_packet
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: packet_header = yield from self._read_bytes(4)
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: File "/home/findmine/virtualenv/lib/python3.5/site-packages/aiomysql/connection.py", line 585, in _read_bytes
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: raise OperationalError(2013, msg) from e
Sep 06 11:48:35 internal-2jk0 gunicorn[24796]: pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([Errno 32] Broken pipe)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment