Bitcoin Forum
July 06, 2024, 10:05:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core Repeatedly Crashing  (Read 183 times)
dragblaze (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 14, 2017, 04:19:58 PM
 #1

Bitcoin Client Software and Version Number: Bitcoin Core 0.15.1

Operating System: Windows 10

System Hardware Specs:
Core i7 2 GHz processor, 8 GB RAM, adequate storage

Description of Problem: Bitcoin core crashes saying it cannot read from the database. Upon reopening the wallet is corrupt. I can salvage the wallet and initiate reindexing, which continues for some time before Bitcoin Core crashes again. Each time I make some progress in downloading the blockchain. Have excluded the bitcoin directory from on-access antivirus scanning. Also reinstalled Bitcoin Core which seemed to improve the situation for a short time. Any suggestions on what is wrong and how to improve stability of Bitcoin Core?

Any Related Addresses: N/A
Any Related Transaction IDs: N/A
Screenshot of the problem:
Log Files from the Bitcoin Client:
2017-12-14 15:52:31 Bitcoin version v0.15.1
2017-12-14 15:52:31 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2017-12-14 15:52:31 Assuming ancestors of block 0000000000000000003b9ce759c2a087d52abc4266f8f4ebd6d768b89defa50a have valid signatures.
2017-12-14 15:52:31 Setting nMinimumChainWork=000000000000000000000000000000000000000000723d3581fe1bd55373540a
2017-12-14 15:52:31 Using the 'standard' SHA256 implementation
2017-12-14 15:52:31 Using RdRand as an additional entropy source
2017-12-14 15:52:31 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
2017-12-14 15:52:40 Default data directory C:\Users\Zac\AppData\Roaming\Bitcoin
2017-12-14 15:52:40 Using data directory D:\Bitcoin
2017-12-14 15:52:40 Using config file D:\Bitcoin\bitcoin.conf
2017-12-14 15:52:40 Using at most 125 automatic connections (2048 file descriptors available)
2017-12-14 15:52:40 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2017-12-14 15:52:40 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2017-12-14 15:52:40 Using 2 threads for script verification
2017-12-14 15:52:40 scheduler thread start
2017-12-14 15:52:40 init message: Verifying wallet(s)...
2017-12-14 15:52:40 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2017-12-14 15:52:40 Using wallet wallet.dat
2017-12-14 15:52:40 CDBEnv::Open: LogDir=D:\Bitcoin\database ErrorFile=D:\Bitcoin\db.log
2017-12-14 15:52:43 Renamed wallet.dat to wallet.dat.1513266760.bak
2017-12-14 15:52:45 Salvage(aggressive) found 13604 records
2017-12-14 16:07:19 Cache configuration:
2017-12-14 16:07:19 * Using 2.0MiB for block index database
2017-12-14 16:07:19 * Using 8.0MiB for chain state database
2017-12-14 16:07:19 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2017-12-14 16:07:19 init message: Loading block index...
2017-12-14 16:07:19 Opening LevelDB in D:\Bitcoin\blocks\index
2017-12-14 16:10:55 Opened LevelDB successfully
2017-12-14 16:10:55 Using obfuscation key for D:\Bitcoin\blocks\index: 0000000000000000
2017-12-14 16:11:04 LoadBlockIndexDB: last block file = 602
2017-12-14 16:11:04 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=138, size=124933846, heights=425788...426042, time=2016-08-18...2016-08-20)
2017-12-14 16:11:04 Checking all blk files are present...
2017-12-14 16:11:04 LoadBlockIndexDB: transaction index disabled
2017-12-14 16:11:04 Opening LevelDB in D:\Bitcoin\chainstate
2017-12-14 16:11:38 Opened LevelDB successfully
2017-12-14 16:11:38 Using obfuscation key for D:\Bitcoin\chainstate: cb8c08779ad8c473
2017-12-14 16:11:38 Loaded best chain: hashBestChain=000000000000005a8317d2eb806f3499dcd55a29646ca29ee91930e1b3b59f31 height=233187 date=2013-04-26 03:46:48 progress=0.060050
2017-12-14 16:11:38 init message: Rewinding blocks...
2017-12-14 16:11:41 init message: Verifying blocks...
2017-12-14 16:11:41 Verifying last 6 blocks at level 3
2017-12-14 16:11:41 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2017-12-14 16:11:48 No coin database inconsistencies in last 7 blocks (2178 transactions)
2017-12-14 16:11:48  block index          268902ms
2017-12-14 16:11:48 init message: Loading wallet...
2017-12-14 16:12:00  wallet                11780ms
2017-12-14 16:12:00 init message: Rescanning...
2017-12-14 16:12:00 Rescanning last 1 blocks (from block 233186)...
2017-12-14 16:12:00  rescan                    0ms
2017-12-14 16:12:01 setKeyPool.size() = 2000
2017-12-14 16:12:01 mapWallet.size() = 0
2017-12-14 16:12:01 mapAddressBook.size() = 1
2017-12-14 16:12:01 mapBlockIndex.size() = 426043
2017-12-14 16:12:01 nBestHeight = 233187
2017-12-14 16:12:01 torcontrol thread start
2017-12-14 16:12:01 AddLocal([2601:642:4600:5380:9de0:4475:4d91:f292]:8333,1)
2017-12-14 16:12:01 Discover: Lenovo-PC - 2601:642:4600:5380:9de0:4475:4d91:f292
2017-12-14 16:12:01 AddLocal([2601:642:4600:5380:b563:fdc3:7226:4e4e]:8333,1)
2017-12-14 16:12:01 Discover: Lenovo-PC - 2601:642:4600:5380:b563:fdc3:7226:4e4e
2017-12-14 16:12:01 AddLocal([2001:0:9d38:90d7:8f4:25ff:b6b9:d001]:8333,1)
2017-12-14 16:12:01 Discover: Lenovo-PC - 2001:0:9d38:90d7:8f4:25ff:b6b9:d001
2017-12-14 16:12:01 Bound to [::]:8333
2017-12-14 16:12:01 Bound to 0.0.0.0:8333
2017-12-14 16:12:01 init message: Loading P2P addresses...
2017-12-14 16:12:01 UpdateTip: new best=000000000000006107475324198b63a8542e70e5ee7d1383de1c930dc613ebee height=233188 version=0x00000002 log2_work=69.869879 tx=16772093 date='2013-04-26 03:50:10' progress=0.060050 cache=0.1MiB(666txo)
2017-12-14 16:12:01 Loaded 64003 addresses from peers.dat  797ms
2017-12-14 16:12:01 init message: Loading banlist...
2017-12-14 16:12:01 init message: Starting network threads...
2017-12-14 16:12:01 net thread start
2017-12-14 16:12:01 dnsseed thread start
2017-12-14 16:12:01 addcon thread start
2017-12-14 16:12:01 opencon thread start
2017-12-14 16:12:01 msghand thread start
2017-12-14 16:12:01 init message: Done loading
2017-12-14 16:12:03 UpdateTip: new best=00000000000000fb252e99ac5751b1f855674c1b2c0aabd86de7b6aefbb5a2aa height=233189 version=0x00000002 log2_work=69.869931 tx=16772606 date='2013-04-26 04:03:22' progress=0.060052 cache=0.3MiB(2562txo)
2017-12-14 16:12:03 GUI: Platform customization: "windows"
2017-12-14 16:12:03 GUI: PaymentServer::LoadRootCAs: Loaded  56  root certificates
2017-12-14 16:12:03 UpdateTip: new best=0000000000000151b614440ca2c3dc1154fda6ae5d465191760108f8e7246088 height=233190 version=0x00000002 log2_work=69.869983 tx=16772874 date='2013-04-26 04:16:14' progress=0.060053 cache=0.4MiB(3123txo)
2017-12-14 16:12:03 UpdateTip: new best=00000000000000c5287325a39a560bd690e689a6170b16dcdb5ba7b9ebca4993 height=233191 version=0x00000002 log2_work=69.870034 tx=16772906 date='2013-04-26 04:33:42' progress=0.060053 cache=0.4MiB(3316txo)
2017-12-14 16:12:07 UpdateTip: new best=000000000000019b931e2ec75ffa2931ad60c230ecd10628a53b38137bd785b2 height=233192 version=0x00000002 log2_work=69.870086 tx=16773093 date='2013-04-26 05:02:54' progress=0.060054 cache=0.5MiB(3893txo)
2017-12-14 16:12:12 Loading addresses from DNS seeds (could take a while)
2017-12-14 16:12:19 196 addresses found from DNS seeds
2017-12-14 16:12:19 dnsseed thread exit
2017-12-14 16:12:25 UpdateTip: new best=0000000000000097fd6f0105a5e2729db5ab7e2a7a1e2e2f215032c292b9fd82 height=233193 version=0x00000002 log2_work=69.870137 tx=16774088 date='2013-04-26 05:07:52' progress=0.060057 cache=0.9MiB(6954txo)
2017-12-14 16:12:26 UpdateTip: new best=00000000000000cb91ed0e685132bb11340480139a693ec12c182af480abaa1b height=233194 version=0x00000002 log2_work=69.870189 tx=16774340 date='2013-04-26 05:11:05' progress=0.060058 cache=1.2MiB(8550txo)
2017-12-14 16:12:26 receive version message: /Satoshi:0.14.2/: version 70015, blocks=499279, us=73.70.47.254:60618, peer=0
2017-12-14 16:12:27 UpdateTip: new best=00000000000001bcccffd4013ba34bd0ef7e1dd4dcc2e76751d69ca3374e261c height=233195 version=0x00000002 log2_work=69.87024 tx=16774709 date='2013-04-26 05:21:08' progress=0.060060 cache=1.3MiB(9363txo)
2017-12-14 16:12:28 UpdateTip: new best=00000000000000eb04120de26de0b140dc1377a3bb2a6d20b155a5fd38d41eaa height=233196 version=0x00000002 log2_work=69.870292 tx=16774973 date='2013-04-26 05:28:25' progress=0.060061 cache=1.3MiB(9913txo)
2017-12-14 16:12:29 UpdateTip: new best=00000000000000197f26a313f1e182d507b21b7143f77ccce121b927ccb4ac6a height=233197 version=0x00000002 log2_work=69.870343 tx=16775339 date='2013-04-26 05:38:33' progress=0.060062 cache=1.5MiB(11068txo)
2017-12-14 16:12:31 UpdateTip: new best=00000000000000df00711e60fd5e01d2f9a35af2961b81796642d368192dea80 height=233198 version=0x00000002 log2_work=69.870395 tx=16775702 date='2013-04-26 05:52:27' progress=0.060063 cache=1.6MiB(12194txo)
2017-12-14 16:12:31 UpdateTip: new best=000000000000009066ea14c2aede377e660f09face9d197774f5e1f663aae001 height=233199 version=0x00000002 log2_work=69.870446 tx=16775768 date='2013-04-26 05:53:26' progress=0.060063 cache=1.6MiB(12448txo)
2017-12-14 16:12:33 UpdateTip: new best=0000000000000106ea348ecffa5e2afeae32ae04cba87a0f4d321bcad4448f1c height=233200 version=0x00000002 log2_work=69.870498 tx=16776507 date='2013-04-26 06:24:13' progress=0.060066 cache=1.9MiB(14337txo)
2017-12-14 16:12:34 UpdateTip: new best=000000000000003ab7c97fa5f7391102979ca5791bfdea664b53c31da5f84c1c height=233201 version=0x00000002 log2_work=69.870549 tx=16776994 date='2013-04-26 06:47:07' progress=0.060068 cache=2.2MiB(15900txo)
2017-12-14 16:12:34 UpdateTip: new best=000000000000013324e87fb9d580c213b810b15aa503f5070a04477de229f8a4 height=233202 version=0x00000002 log2_work=69.870601 tx=16777228 date='2013-04-26 06:52:09' progress=0.060069 cache=2.2MiB(16238txo)
2017-12-14 16:12:34 UpdateTip: new best=00000000000000729b243be18dd09f6d36fcc5c035023b987598d3f0b75ab295 height=233203 version=0x00000002 log2_work=69.870652 tx=16777355 date='2013-04-26 06:55:11' progress=0.060069 cache=2.2MiB(16421txo)
2017-12-14 16:12:34 receive version message: /Satoshi:0.15.0/: version 70015, blocks=499279, us=73.70.47.254:52248, peer=2
2017-12-14 16:12:35 UpdateTip: new best=00000000000000fb8b7eeacc6b073f39084f333c5ca282ef75ae7baa3f1a7c11 height=233204 version=0x00000002 log2_work=69.870704 tx=16777504 date='2013-04-26 06:59:12' progress=0.060070 cache=2.3MiB(16618txo)
2017-12-14 16:12:37 LevelDB read failure: Corruption: block checksum mismatch
2017-12-14 16:12:37 Corruption: block checksum mismatch
2017-12-14 16:13:33 version handshake timeout from 2
2017-12-14 16:18:43 Error reading from database: Database corrupted
SopaXT
Full Member
***
Offline Offline

Activity: 158
Merit: 113


View Profile
December 14, 2017, 04:55:06 PM
 #2

Seems like your blockchain is corrupted.
MAKE A BACKUP OF YOUR WALLET.DAT FIRST!
After backing your wallet up, go to %APPDATA%\Bitcoin and remove everything except wallet.dat.
Start your client again.

You'll also need to sync the blockchain again.

dragblaze (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 15, 2017, 05:32:29 AM
 #3

Thank you for the warning to back up the wallet.dat file. In my case my private keys are in an offline wallet (I use Armory). It is the public watching wallet that is having the trouble. I have already deleted the Bitcoin data directory and attempted to resync the blockchain twice. I will try it again and see if I get different results.

Appreciate the suggestion! If it ultimately doesn't work then I may just reconstitute the wallet from my paper backup.
dragblaze (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 15, 2017, 03:40:15 PM
 #4

After deleting the Bitcoin directory and launching again the application crashed overnight with this error:

---------------------------
Bitcoin - Error
---------------------------
Error: A fatal internal error occurred, see debug.log for details
---------------------------
OK   
---------------------------


The log says "database corrupted"

2017-12-15 11:18:13 UpdateTip: new best=00000000000000010154d8c1cd6ec994a8bf69a41a41d58bbcf763ecf79ded48 height=273202 version=0x00000002 log2_work=74.512194 tx=28633855 date='2013-12-05 14:08:53' progress=0.102442 cache=716.1MiB(5310987txo)
2017-12-15 11:18:13 UpdateTip: new best=00000000000000043ac878035099a23046d4943596a33eafcf9a773bdeaa5146 height=273203 version=0x00000002 log2_work=74.512356 tx=28634478 date='2013-12-05 14:14:57' progress=0.102444 cache=716.2MiB(5311611txo)
2017-12-15 11:18:13 UpdateTip: new best=00000000000000023311cdac73309085c526bbb9d9152ed80e942c54789806c6 height=273204 version=0x00000002 log2_work=74.512519 tx=28635094 date='2013-12-05 14:25:58' progress=0.102446 cache=716.2MiB(5311801txo)
2017-12-15 11:18:13 UpdateTip: new best=00000000000000016d3b406d4ffb14a970f16e12b16837f97c8d485bb40d4a36 height=273205 version=0x00000002 log2_work=74.512682 tx=28635160 date='2013-12-05 14:26:18' progress=0.102446 cache=716.2MiB(5311855txo)
2017-12-15 11:18:13 UpdateTip: new best=0000000000000003c96307c1a551bb4f030598b3a54faa305cd9f64b5d0384b5 height=273206 version=0x00000002 log2_work=74.512844 tx=28635392 date='2013-12-05 14:29:26' progress=0.102447 cache=716.3MiB(5312016txo)
2017-12-15 11:18:14 UpdateTip: new best=00000000000000018dcfb28a16bdbb3a7f18853a65c518ba2b05f81ea1d62f8c height=273207 version=0x00000002 log2_work=74.513007 tx=28635583 date='2013-12-05 14:31:22' progress=0.102448 cache=716.3MiB(5312289txo)
2017-12-15 11:18:14 UpdateTip: new best=000000000000000585c118d6700c5b8c46fe7c507e3bce881d40549d8975e09c height=273208 version=0x00000002 log2_work=74.51317 tx=28635769 date='2013-12-05 14:35:17' progress=0.102448 cache=716.3MiB(5312338txo)
2017-12-15 11:18:14 UpdateTip: new best=0000000000000005886c9f7aa4cd4486b618eb77898ad0f70c5cd45bf288eadb height=273209 version=0x00000002 log2_work=74.513332 tx=28636070 date='2013-12-05 14:41:27' progress=0.102450 cache=716.3MiB(5312516txo)
2017-12-15 11:18:14 UpdateTip: new best=00000000000000008aee5e878be763e5a45b0cd71e366bb0fb3889b89e5586c5 height=273210 version=0x00000002 log2_work=74.513495 tx=28636316 date='2013-12-05 14:41:27' progress=0.102450 cache=716.3MiB(5312377txo)
2017-12-15 11:18:14 Corruption: block checksum mismatch
2017-12-15 11:18:14 *** System error while flushing: Database corrupted
2017-12-15 11:37:52 ping timeout: 1200.044274s
2017-12-15 11:37:52 ping timeout: 1200.027263s
2017-12-15 11:37:52 ping timeout: 1200.002245s
2017-12-15 11:38:07 socket sending timeout: 1201s
2017-12-15 15:37:54 ERROR: ProcessNewBlock: ActivateBestChain failed
2017-12-15 15:37:54 tor: Thread interrupt
2017-12-15 15:37:54 opencon thread exit
2017-12-15 15:37:54 addcon thread exit
2017-12-15 15:37:54 torcontrol thread exit
2017-12-15 15:37:54 msghand thread exit
2017-12-15 15:37:59 scheduler thread interrupt
2017-12-15 15:37:59 Shutdown: In progress...
2017-12-15 15:37:59 net thread exit
2017-12-15 15:38:01 Dumped mempool: 0.0005s to copy, 0.034523s to dump
2017-12-15 15:38:01 Corruption: block checksum mismatch
2017-12-15 15:38:01 *** System error while flushing: Database corrupted
2017-12-15 15:38:04 Corruption: block checksum mismatch
2017-12-15 15:38:04 *** System error while flushing: Database corrupted
2017-12-15 15:38:07 Shutdown: done
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3444
Merit: 6748


Just writing some code


View Profile WWW
December 17, 2017, 06:57:39 AM
 #5

Stop Bitcoin Core. Go to the Bitcoin Core data directory. Delete the folder named "chainstate". Start Bitcoin Core again. It should prompt you about reindexing the database (if it does not, it will look like it is resyncing), click "Yes" when it does. It will now look like it is resyncing the blockchain. It is actually reindexing the blockchain, the blockchain is not being redownloaded. This will rebuild Bitcoin Core's internal databases and will take several hours.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!