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

prune_blockchain cause entire node to hang on #9209

Closed
SyntheticBird45 opened this issue Feb 28, 2024 · 11 comments
Closed

prune_blockchain cause entire node to hang on #9209

SyntheticBird45 opened this issue Feb 28, 2024 · 11 comments

Comments

@SyntheticBird45
Copy link

Monero v0.18.3.1 syncing 99%, Linux 6.7 x86_64

prune_blockchain rpc methods cause node to hang on and don't react to SIGTERM. Killing process is the only solution.
The bug is consistent

@SyntheticBird45
Copy link
Author

command used for rpc:

curl http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"prune_blockchain","params":{"check":true}}' -H 'Content-Type: application/json'

@selsta
Copy link
Collaborator

selsta commented Feb 28, 2024

How long did you wait? The prune process can take multiple hours.

@SyntheticBird45
Copy link
Author

I waited 30 minute. node is already pruned and since i set check: true It shouldn't even trigger the pruning process

@SyntheticBird45
Copy link
Author

Issue is still happening when node is fully synced

@selsta
Copy link
Collaborator

selsta commented Feb 28, 2024

does entering check_blockchain_pruning in monerod also not work?

@SyntheticBird45
Copy link
Author

Yes

@SyntheticBird45
Copy link
Author

Just tested if it wasn't alacritty or terminal emulator causing issue but it is consistent across 3 other terminals.

@SyntheticBird45
Copy link
Author

Disk read I/O is increasing while hanging so it might be stuck at interacting with the database. I maybe stupid but is the prune_blockchain rpc command check the pruning state over all the database ?

@selsta
Copy link
Collaborator

selsta commented Feb 28, 2024

Do you have an SSD or HDD? Running check_blockchain_pruning took about 5 minutes on my system with SSD.

moneromooo said it reads all tx data so it can be lengthy

@SyntheticBird45
Copy link
Author

I've an SSD, however the filesystem is almost at capacity.

@SyntheticBird45
Copy link
Author

Looking at my I/O Read rate monerod will have finish to check in 1 hour. I believed that monerod didn't checked the all database for pruning state. If the hanging of monerod is something known during the check of the prune worker, I believe we can close this issue.

@selsta selsta closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants