On startup, I get "Error: Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)"
As noted below, this message seems wrong as I was able to restart w/o issues - didn't reindex or download the blockchain again.
I am not asking for help with this. I just wanted to record this incident because #7494 was closed as fixed, but I ran into the same problem with 0.15.
Can you reliably reproduce the issue?
No.
If so, please list the steps to reproduce below:
- Run 0.14.2 in pruned mode
- Stop/start/stop 0.14.2 several times
- Upgrade to 0.15
- Start 0.15
I am not sure how I might reproduce this, but it's very much like this issue here: #7494#issue-132587553
I might have had a power failure or rebooted the host without shutting down this VM, I don't remember now. Today is Sep 18; I see in .bitcoin/chainstate that it seems Sep 10 was the last time I ran, and before that in August. It's possible that on Sep 10 I shut down the VM before it finished syncing which is one of possible reasons for this problem, mentioned in issue #7494.
What version of bitcoin-core are you using?
v0.15.0 (official binary)
Machine specs:
- OS: Ubuntu 16.04 LTS
- CPU: i7
- RAM: 16 G
- Disk size: 200 G
- Disk Type (HD/SDD): SSD
Any extra information that might be useful in the debugging process.
I just restarted. I did delete .lock before that, but I don't think it mattered.
Next time I started, there was no sign of any trouble. It doesn't look like Bitcoin had to completely resync . Wallet seems to be working OK (I don't have any funds in it, but getbalance and such doesn't give any errors; I never used wallet so it's empty).
Fail log:
# tail -f .bitcoin/debug.log
2017-09-18 12:58:57 init message: Loading block index...
2017-09-18 12:58:57 Opening LevelDB in /root/.bitcoin/blocks/index
2017-09-18 12:58:57 Opened LevelDB successfully
2017-09-18 12:58:57 Using obfuscation key for /root/.bitcoin/blocks/index: 0000000000000000
2017-09-18 12:59:00 LoadBlockIndexDB: last block file = 994
2017-09-18 12:59:00 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=58, size=46642763, heights=483555...484527, time=2017-09-05...2017-09-10)
2017-09-18 12:59:00 Checking all blk files are present...
2017-09-18 12:59:00 LoadBlockIndexDB(): Block files have previously been pruned
2017-09-18 12:59:00 LoadBlockIndexDB: transaction index disabled
2017-09-18 12:59:00 Opening LevelDB in /root/.bitcoin/chainstate
2017-09-18 12:59:02 Opened LevelDB successfully
2017-09-18 12:59:02 Using obfuscation key for /root/.bitcoin/chainstate: 268af1ce9bee0cb3
2017-09-18 12:59:02 Loaded best chain: hashBestChain=0000000000000000011c5c5d5158781964fa1c62c76436a7c048f3b60bf767ce height=484527 date=2017-09-10 15:00:52 progress=0.991703
2017-09-18 12:59:02 init message: Rewinding blocks...
2017-09-18 12:59:03 init message: Verifying blocks...
2017-09-18 12:59:03 Verifying last 6 blocks at level 3
2017-09-18 12:59:03 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2017-09-18 12:59:08 No coin database inconsistencies in last 7 blocks (8434 transactions)
2017-09-18 12:59:08 block index 10261ms
2017-09-18 12:59:08 init message: Loading wallet...
2017-09-18 12:59:08 nFileVersion = 140100
2017-09-18 12:59:08 Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total
2017-09-18 12:59:08 wallet 6ms
2017-09-18 12:59:08 keypool added 900 keys (0 internal), size=1000 (0 internal)
2017-09-18 12:59:08 Error: Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)
2017-09-18 12:59:08 scheduler thread interrupt
2017-09-18 12:59:08 Shutdown: In progress...
2017-09-18 12:59:08 Shutdown: done
2017-09-18 12:59:08 CDBEnv::EnvShutdown: Error 22 shutting down database environment: Invalid argument
^C
After that I checked db.log:
# cat db.log
Database handles still open at environment close
Open database handle: wallet.dat/main