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

Service crash: DB cursor counter overflow #3

Open
ivan-zynesis opened this issue Oct 14, 2022 · 0 comments
Open

Service crash: DB cursor counter overflow #3

ivan-zynesis opened this issue Oct 14, 2022 · 0 comments

Comments

@ivan-zynesis
Copy link
Collaborator

ivan-zynesis commented Oct 14, 2022

Background:

Oct 14 15:49:52 electrum-server electrumx_server[1354572]:   File "/home/ubuntu/.local/lib/python3.8/site-packages/electrumx/server/block_processor.py", line 356, in flush
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:     self.db.flush_dbs(self.flush_data(), flush_utxos,
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:   File "/home/ubuntu/.local/lib/python3.8/site-packages/electrumx/server/db.py", line 244, in flush_dbs
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:     self.flush_history()
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:   File "/home/ubuntu/.local/lib/python3.8/site-packages/electrumx/server/db.py", line 313, in flush_history
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:     self.history.flush()
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:   File "/home/ubuntu/.local/lib/python3.8/site-packages/electrumx/server/history.py", line 160, in flush
Oct 14 15:49:52 electrum-server electrumx_server[1354572]:     flush_id = pack_be_uint16(self.flush_count)
Oct 14 15:49:52 electrum-server electrumx_server[1354572]: struct.error: 'H' format requires 0 <= number <= 65535
Oct 14 15:49:52 electrum-server systemd[1]: electrumx.service: Succeeded.

related to spesmilo#88
Unable to flush history due to DB cursor counter > 64k

Proposed solution:

Setup cron job for electrumx_compact_history

@ivan-zynesis ivan-zynesis changed the title Service crash due to data row count to be flushed exceed 2^16 Service crash: DB cursor counter overflow Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant