spesmilo / electrumx

Alternative implementation of spesmilo/electrum-server
MIT License
429 stars 343 forks source link

server start normaly but after 4 or 5 mit it show this error. plaese provide correct answers. #260

Closed thakurabu closed 2 months ago

thakurabu commented 2 months ago

ERROR:electrumx:ElectrumX server terminated abnormally Traceback (most recent call last): File "/electrumx/electrumx_server", line 35, in main asyncio.run(controller.run()) File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete File "/electrumx/electrumx/lib/server_base.py", line 129, in run await server_task File "/electrumx/electrumx/lib/server_base.py", line 102, in serve await self.serve(shutdown_event) File "/electrumx/electrumx/server/controller.py", line 134, in serve await group.spawn(wait_for_catchup()) File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 255, in aexit await self.join() File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 213, in join raise task.exception() File "/electrumx/electrumx/server/block_processor.py", line 702, in fetch_and_process_blocks await group.spawn(self._process_prefetched_blocks()) File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 255, in aexit await self.join() File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 213, in join raise task.exception() File "/electrumx/electrumx/server/block_processor.py", line 663, in _process_prefetched_blocks await self.check_and_advance_blocks(blocks) File "/electrumx/electrumx/server/block_processor.py", line 230, in check_and_advance_blocks await self._maybe_flush() File "/electrumx/electrumx/server/block_processor.py", line 368, in _maybe_flush await self.flush(flush_arg) File "/electrumx/electrumx/server/block_processor.py", line 358, in flush await self.run_in_thread_with_lock(flush) File "/electrumx/electrumx/server/block_processor.py", line 212, in run_in_thread_with_lock return await asyncio.shield(run_in_thread_locked()) File "/electrumx/electrumx/server/block_processor.py", line 211, in run_in_thread_locked return await run_in_thread(func, args) File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 68, in run_in_thread return await get_event_loop().run_in_executor(None, func, args) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/electrumx/electrumx/server/block_processor.py", line 357, in flush self.estimate_txs_remaining) File "/electrumx/electrumx/server/db.py", line 244, in flush_dbs self.flush_history() File "/electrumx/electrumx/server/db.py", line 313, in flush_history self.history.flush() File "/electrumx/electrumx/server/history.py", line 160, in flush flush_id = pack_be_uint16(self.flush_count) struct.error: 'H' format requires 0 <= number <= 65535

ecdsa commented 2 months ago

did you try to adjust FLUSH_COUNT_LIMIT in your settings? default is 65535

thakurabu commented 2 months ago

version: "3.7" services: electrs: container_name: electrs image: lukechilds/electrumx:latest volumes:

thakurabu commented 2 months ago

Yes

On Tue, 30 Apr, 2024, 4:24 pm ThomasV, @.***> wrote:

did you try to adjust FLUSH_COUNT_LIMIT in your settings? default is 65535

— Reply to this email directly, view it on GitHub https://github.com/spesmilo/electrumx/issues/260#issuecomment-2084986094, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIFVKK3NVQY5BXC3KYCT47DY75Z6JAVCNFSM6AAAAABG7TM6HGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUHE4DMMBZGQ . You are receiving this because you authored the thread.Message ID: @.***>

SomberNight commented 2 months ago

duplicate of https://github.com/spesmilo/electrumx/issues/88

you should run the electrumx_compact_history script, while the server is stopped, using the same environment variables as otherwise