Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start ElectrumX server after server crash #653

Closed
kamk opened this issue Nov 22, 2018 · 2 comments

Comments

@kamk
Copy link

commented Nov 22, 2018

Server rebooted for no reason, no clean restart :(
Now possibly the DB is corrupted, when starting I'm getting this assertion error:

Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/aiorpcX-0.10.1-py3.7.egg/aiorpcx/util.py", line 118, in check_task
Nov 22 13:35:27 london022 electrumx_server[3057]: task.result()
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/electrumX-1.8.12-py3.7.egg/electrumx/server/controller.py", line 131, in serve
Nov 22 13:35:27 london022 electrumx_server[3057]: await group.spawn(wait_for_catchup())
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/aiorpcX-0.10.1-py3.7.egg/aiorpcx/curio.py", line 242, in __aexit__
Nov 22 13:35:27 london022 electrumx_server[3057]: await self.join(wait=self._wait)
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/aiorpcX-0.10.1-py3.7.egg/aiorpcx/curio.py", line 213, in join
Nov 22 13:35:27 london022 electrumx_server[3057]: raise task.exception()
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/electrumX-1.8.12-py3.7.egg/electrumx/server/block_processor.py", line 658, in fetch_and_process_blocks
Nov 22 13:35:27 london022 electrumx_server[3057]: await group.spawn(self._process_prefetched_blocks())
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/aiorpcX-0.10.1-py3.7.egg/aiorpcx/curio.py", line 242, in __aexit__
Nov 22 13:35:27 london022 electrumx_server[3057]: await self.join(wait=self._wait)
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/aiorpcX-0.10.1-py3.7.egg/aiorpcx/curio.py", line 213, in join
Nov 22 13:35:27 london022 electrumx_server[3057]: raise task.exception()
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/electrumX-1.8.12-py3.7.egg/electrumx/server/block_processor.py", line 56, in main_loop
Nov 22 13:35:27 london022 electrumx_server[3057]: if not await self._prefetch_blocks():
Nov 22 13:35:27 london022 electrumx_server[3057]: File "/home/electrum-sv/.pyenv/versions/3.7.1/lib/python3.7/site-packages/electrumX-1.8.12-py3.7.egg/electrumx/server/block_processor.py", line 118, in _prefetch_blocks
Nov 22 13:35:27 london022 electrumx_server[3057]: assert count == len(blocks)
Nov 22 13:35:27 london022 electrumx_server[3057]: AssertionError

Is it possible to repair DB somehow?

@kyuupichan

This comment has been minimized.

Copy link
Owner

commented Nov 23, 2018

Does this happen on every restart?

@kamk

This comment has been minimized.

Copy link
Author

commented Nov 23, 2018

Yes, I was trying couple more times but it couldn't be started.

I've deleted DB a re-synced it again. I'm thinking to move its DB to looped BTRFS volume and make periodic snapshots so it could be recovered in shorter time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.