-
Notifications
You must be signed in to change notification settings - Fork 364
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
NBXplorer stuck syncing meaning node is stuck on 99% #519
Comments
This was due to me using a pruned node and my server being down for enough time that NBXPlorer was trying to sync blocks that were no longer part of the pruned blocks in bitcoin. To resolve I had to set environment variables which told NBXPlorer where to sync from and also to rescan. Firstly I had to find out what block to start from (all commands run from the lcoation of By the way, to check other variables set you can do: Find out the current pruned height: In the info returned, look for Now set the following env vars: There were 3 different ways I found of setting the variables. I am not sure which method worked for me, so perhaps try them all until it works.
Note the use of colons
Then restart BTCPayServer. It was suggested in other threads to stop and start using these commands: You can check that NBXPlorer is now syncing from the correct block, using this command: This command worked for me, because the correct name for the NBXPlorer container was Hopefully that works, then you have to wait ages for it to sync. But it should now fully sync. I then got rid of the environment variables by deleting the entries I set above in the appropriate files and using the and then restarted everything for good measure: Hope that helps. For reference, these were some related issues that helped me to resolve this. Ceased to work BTC node state changing back and forth betweenNBXplorerSynching and notstarted NBXplorer synchronization hanging How to insure tracking from a specific point in time or startheight Using btc.startheight on a block lower than the pruned node |
This totally worked for me. Thanks! :D Only one correction, the command is "bitcoin-cli.sh getblockchaininfo" and not "bitcoin-cli.sh getblockchain info", just in case someone got stuck there |
Thanks for sharing this. Thank you! |
Thank you! I had to do this too on my fresh setup. 🙏 |
Same problem, it was down jus a few hours and now it's stuck at 99%.
root@btc:~/btcpayserver-docker# ./bitcoin-cli.sh getblockchain info Great. Now what? |
the command is "bitcoin-cli.sh getblockchaininfo" and not "bitcoin-cli.sh getblockchain info" |
Thanks, I just used NBXPLORER_BTCRESCAN=1 and nothing else, restarted and it fixed it. |
Issue arose after server was stopped for an ip change. Everything is updated and has been restarted several times. Server is a VPS running Debian 11 Bullseye with 2 CPU and 8GB RAM.
Web UI shows:
NBXplorer docker container logs show this loop:
Let me know what other info would be helpful.
The text was updated successfully, but these errors were encountered: