-
Notifications
You must be signed in to change notification settings - Fork 387
Thread Exception When building database #105
Comments
It looks to me that this error originated in bitcoind. What is in your .bitcoin/debug.log when this happens? You may have to reindex bitcoind. |
Yup, looks like the bitcoind was still indexing the blockchain, it had the headers but not the blocks. So basically just missing some exception handling and retry behavior when trying to do catchup if bitcoind returns errors. |
Go into wait_on_bitcoind instead of raising an exception when an unexpected bitcoind error number is returned. This allows the server to wait for bitcoind rather than just bailing out with.
fix issue #105 Thread Exception When building database
"Can't read from disk" sounds worse than not having caught up? I actually had this issue once with a corrupted blockchain and had to resync bitcoind |
I'm fairly certain this is due to the 'fast' new method of Bitcoin Core doing catchup, it downloads the headers first, then the full block data later. In this case, the headers were downloaded so it's in the BlockIndex. It only checks if it has the blockdata if Pruning is enabled, but since pruning isn't enabled, until bitcoind catches up, it'll still fail to read the block Not really sure if an upstream change needs make to return a separate error code, or if bitcoind.py should just handle this as 'bitcoind still warming up' |
I noticed if the download from the foundry is ahead of what bitcoind has processed so far, the server will start up and then halt with no sort of error messages. I had to run the server by hand to get an actual error message out of it.
The text was updated successfully, but these errors were encountered: