electrumx crash
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 568
- Forks
- 447
- PR merge metrics
- No merged PRs in 30d
Description
electrumx_server[3841]: ERROR:electrumx:ElectrumX server terminated abnormally
electrumx_server[3841]: Traceback (most recent call last):
electrumx_server[3841]: File "/usr/local/bin/electrumx_server", line 35, in main
electrumx_server[3841]: asyncio.run(controller.run())
electrumx_server[3841]: File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
electrumx_server[3841]: return loop.run_until_complete(main)
electrumx_server[3841]: File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
electrumx_server[3841]: return future.result()
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/lib/server_base.py", line 129, in run
electrumx_server[3841]: await server_task
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/lib/server_base.py", line 102, in serve
electrumx_server[3841]: await self.serve(shutdown_event)
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/server/controller.py", line 134, in serve
electrumx_server[3841]: await group.spawn(wait_for_catchup())
electrumx_server[3841]: File "/home/electrum/.local/lib/python3.7/site-packages/aiorpcx/curio.py", line 242, in __aexit__
electrumx_server[3841]: await self.join()
electrumx_server[3841]: File "/home/electrum/.local/lib/python3.7/site-packages/aiorpcx/curio.py", line 211, in join
electrumx_server[3841]: raise task.exception()
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/server/mempool.py", line 366, in keep_synchronized
electrumx_server[3841]: await group.spawn(self._logging(synchronized_event))
electrumx_server[3841]: File "/home/electrum/.local/lib/python3.7/site-packages/aiorpcx/curio.py", line 242, in __aexit__
electrumx_server[3841]: await self.join()
electrumx_server[3841]: File "/home/electrum/.local/lib/python3.7/site-packages/aiorpcx/curio.py", line 211, in join
electrumx_server[3841]: raise task.exception()
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/server/mempool.py", line 263, in _refresh_hashes
electrumx_server[3841]: await self.api.on_mempool(touched, height)
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/server/controller.py", line 67, in on_mempool
electrumx_server[3841]: await self._maybe_notify()
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/server/controller.py", line 55, in _maybe_notify
electrumx_server[3841]: await self.notify(height, touched)
electrumx_server[3841]: File "/home/electrum/electrumx/electrumx/server/session.py", line 787, in _notify_sessions
electrumx_server[3841]: await self._task_group.spawn(session.notify, touched, height_changed)
electrumx_server[3841]: File "/home/electrum/.local/lib/python3.7/site-packages/aiorpcx/curio.py", line 148, in spawn
electrumx_server[3841]: self._add_task(task)
electrumx_server[3841]: File "/home/electrum/.local/lib/python3.7/site-packages/aiorpcx/curio.py", line 123, in _add_task
electrumx_server[3841]: raise RuntimeError('task group is closed')
electrumx_server[3841]: RuntimeError: task group is closed
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the failure from electrumx/server/mempool.py::_refresh_hashes through controller.py::_maybe_notify and session.py::_notify_sessions, focusing on the task-group lifecycle shown in the traceback. Reproduce the mempool notification path with the project’s existing server setup, then verify that the server no longer terminates with “task group is closed” under the same conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100