-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
How to compact the database? (struct.error: 'H' format requires 0 <= number <= 65535) #60
Comments
You can get a shell inside the container with the following command: |
Thanks @Mave95, I think I'm making progress. How can I stop the Here's what I've tried so far. With the container running, I ran
The
Once there, I can see that there's a python3 process
I tried to run the
I tried to shut down the server according to the documentation for terminating ElectrumX by using the
So instead, I tried sending the INT signal using the kill command:
This worked in shutting down the ElectrumX server, but it also shut down the container and booted me right out of the shell.
I'm not sure what to do next. How can I stop the |
You have to modify the entrypoint of your container to start it without running electrumx_server. Here's a tutorial that explains how: https://thorsten-hans.com/how-to-run-commands-in-stopped-docker-containers |
@jimbojw take a look here |
@sancoder Yes, thanks, I believe that's eventually what I did, to my recollection.
I 100% agree with this comment of yours. Having to muck about with containers is not a good UX. If we have to run periodic maintenance like compacting the database, it should at least be easy to perform. This doesn't have to be a manual process. |
Here's a one-liner I constructed to perform history compact operations. It should work on any system that has docker installed and that has r/w access to the electrum data set.
Regarding manual maintenance tasks, this specific issue (struct.error: 'H' format) occurs often enough for me, that I believe electrumx itself should gracefully detect and recover from these sort of issues. |
Could you supply simple instructions on how a user of
lukechilds/electrumx
can execute thecompact_history
command?I've been using the
lukechilds/electrumx
docker image successfully for many months. However recently my ElectrumX server raises exceptions as reported in kyuupichan/electrumx#185I understand from the aforementioned bug that I'm supposed to run something like this:
However, when I try to run
docker-compose
, it complains thus:I am a novice at docker, this is the only container that I run.
The text was updated successfully, but these errors were encountered: