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
Blockchain sync failure #6606
Comments
Same thing happens to bitcoind. C:\Program Files\Bitcoin\daemon>bitcoind.exe -datadir=H:\bitcoin This application has requested the Runtime to terminate it in an unusual way. debug.log : 2015-08-31 12:39:34 LevelDB read failure: Corruption: block checksum mismatch |
"Error reading from database: Database corrupted" levelDB corruption is usually caused by disk or memory corruption (while writing to disk). |
Unlikely this is RAM or DISK problem. OS runs stable for weeks, memtest report nothing. |
I reproduced exact same behavior in VM with Windows Server 2003 X64. |
I'd be interested to know if the same happens in that VM with Bitcoin 10.2. |
You are able to reproduce the failure on other hardware? |
Additional notice. Both 0.10.2 and 0.11.0 cannot start db sync when empty datadir is on "\vmware-host\shared folders" and successfully do when datadir is on windows network drive. 2015-09-01 09:51:55 init message: Loading block index... |
I have one guess. Trouble can be in memory mapped files. I know bitcoin core uses them, it can be seen in RamMap utility. PS. Bitcoin 0.11.0 linux x86, runs on different hardware node without VM. Already synced till 1 year old, still no problem. |
Yes, trouble was triggered by BURST miner. Without it sync was successful. |
Thanks for looking into this so deeply. This issue could be useful for other people that experience issues on windows. I still wonder how the combination of hw and sw caused corruption, but it's likely the problem lies outside bitcoin core if it affects other software negatively as well. |
One of the negative effects was the following. From bitcoin core perspective may be some checks are missing or db engine lack enough atomicity to rollback failing changes ? At the moment I can state : BURST miner can kill bitcoin db in some conditions, possibly when burst plots are on a large cluster volume. |
I'm on Bitcoin core v0.11.0 windows x64.
OS is Windows Server 2012 R2.
I've been using bitcoin core for years without significant problems, but last month something happened. Database got corrupted. I tried to delete all but wallet.dat, resync database. Tried ~5 times, put datadir to different hard drives. At random position sync stops with error. After process relaunch same error is displayed and program crashes with assertion.
The text was updated successfully, but these errors were encountered: