2026-09-28 17:25:49,786 INFO core: Event loop thread started, running loop forever
2026-09-28 17:25:50,087 INFO core: Scheduling _init_accounts on event loop (alive=True)
2026-09-28 17:25:50,092 INFO core: _init_accounts coroutine started
2026-09-28 17:25:50,093 INFO core: _init_accounts_inner: starting DB migrations
2026-09-28 17:25:50,099 INFO core: status() clients=0 connected=False forwarding=False
2026-09-28 17:30:09,442 ERROR core: _init_accounts failed: (2006, "MySQL server has gone away (ConnectionResetError(104, 'Connection reset by peer'))")
Traceback (most recent call last):
  File "/home/wovewbge/virtualenv/quill.nx.kg/3.13/lib/python3.13/site-packages/pymysql/connections.py", line 834, in _write_bytes
    self._sock.sendall(data)
    ~~~~~~~~~~~~~~~~~~^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/wovewbge/quill.nx.kg/core.py", line 114, in _init_accounts
    await self._init_accounts_inner()
  File "/home/wovewbge/quill.nx.kg/core.py", line 141, in _init_accounts_inner
    self._lock_conn = await self._run_db(self.db.acquire_core_lock)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wovewbge/quill.nx.kg/core.py", line 96, in _run_db
    return await self.loop.run_in_executor(self._executor, func, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/alt/python313/lib64/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/wovewbge/quill.nx.kg/db.py", line 87, in acquire_core_lock
    conn = _create_connection()
  File "/home/wovewbge/quill.nx.kg/db.py", line 15, in _create_connection
    return pymysql.connect(
           ~~~~~~~~~~~~~~~^
        host=config.MYSQL_HOST,
        ^^^^^^^^^^^^^^^^^^^^^^^
    ...<13 lines>...
        connect_timeout=5,
        ^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/wovewbge/virtualenv/quill.nx.kg/3.13/lib/python3.13/site-packages/pymysql/connections.py", line 372, in __init__
    self.connect()
    ~~~~~~~~~~~~^^
  File "/home/wovewbge/virtualenv/quill.nx.kg/3.13/lib/python3.13/site-packages/pymysql/connections.py", line 702, in connect
    self._request_authentication()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/wovewbge/virtualenv/quill.nx.kg/3.13/lib/python3.13/site-packages/pymysql/connections.py", line 999, in _request_authentication
    self.write_packet(data)
    ~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/wovewbge/virtualenv/quill.nx.kg/3.13/lib/python3.13/site-packages/pymysql/connections.py", line 760, in write_packet
    self._write_bytes(data)
    ~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/wovewbge/virtualenv/quill.nx.kg/3.13/lib/python3.13/site-packages/pymysql/connections.py", line 837, in _write_bytes
    raise err.OperationalError(
        CR.CR_SERVER_GONE_ERROR, f"MySQL server has gone away ({e!r})"
    )
pymysql.err.OperationalError: (2006, "MySQL server has gone away (ConnectionResetError(104, 'Connection reset by peer'))")
2026-09-28 17:30:09,460 INFO core: status() clients=0 connected=False forwarding=False
