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

server got shutdown after many days. struct.error: 'H' format requires 0 <= number <= 65535 #178

Closed
Jessie-1 opened this issue May 22, 2022 · 3 comments

Comments

@Jessie-1
Copy link

Jessie-1 commented May 22, 2022

Version : 1.16.0

error log : https://pastebin.com/raw/6QcDEErG

Same happened with latest commit fb037fb

error log : https://pastebin.com/raw/k55F2uAE

@cipig
Copy link
Contributor

cipig commented May 22, 2022

it's #88
you need to run electrumx_compact_history regularly to avoid it
how often depends on the coin's block time
i do it automatically with cron once a week

@Jessie-1
Copy link
Author

Can you share the cron job. Looks like the server needs to be shutdown before running it.

@cipig
Copy link
Contributor

cipig commented May 22, 2022

i have eg this

0 5 * * 2 sudo systemctl stop electrumx_KMD && COIN=Komodo DB_DIRECTORY=/electrumdb/KMD electrumx_compact_history && sudo systemctl start electrumx_KMD

to do it every Tuesday at 05:00
you may need to adapt it a bit though... i configured electrumx as systemd service and i also have the binaries in my PATH (/usr/local/bin)
you need to stop, start electrumx_compact_history by passing the COIN and DB_DIRECTORY variable to it and then start when it's done

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

2 participants