Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin Wallet Can't Sync to Blockchain Without Throwing Errors
by
l008com
on 26/10/2017, 09:32:30 UTC
Here's another debug log from a slightly older backup of my wallet. This in the previous logs are from Windows bitcoin. I have the same problem with bitcoin on Mac. My best guess is the Mac bitcoin wallet has some kind of fatal bugs in it that poisons the wallet.data file in some way.

Quote
2017-10-26 09:11:37
2017-10-26 09:11:37 Bitcoin version v0.15.0.1
2017-10-26 09:11:37 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2017-10-26 09:11:50 Assuming ancestors of block 0000000000000000003b9ce759c2a087d52abc4266f8f4ebd6d768b89defa50a have valid signatures.
2017-10-26 09:11:51 Using the 'standard' SHA256 implementation
2017-10-26 09:11:53 Default data directory C:\Users\xxxxxx\AppData\Roaming\Bitcoin
2017-10-26 09:11:53 Using data directory C:\Users\xxxxxx\Desktop\Bitcoin Wallet
2017-10-26 09:11:53 Using config file C:\Users\xxxxxx\Desktop\Bitcoin Wallet\bitcoin.conf
2017-10-26 09:11:53 Using at most 125 automatic connections (2048 file descriptors available)
2017-10-26 09:11:53 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
2017-10-26 09:11:53 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2017-10-26 09:11:53 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2017-10-26 09:11:53 Using 4 threads for script verification
2017-10-26 09:11:54 scheduler thread start
2017-10-26 09:11:54 init message: Verifying wallet(s)...
2017-10-26 09:11:54 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2017-10-26 09:11:54 Using wallet wallet.dat
2017-10-26 09:11:54 CDBEnv::Open: LogDir=C:\Users\xxxxxx\Desktop\Bitcoin Wallet\database ErrorFile=C:\Users\xxxxxx\Desktop\Bitcoin Wallet\db.log
2017-10-26 09:11:57 Cache configuration:
2017-10-26 09:11:57 * Using 2.0MiB for block index database
2017-10-26 09:11:57 * Using 8.0MiB for chain state database
2017-10-26 09:11:57 * Using 290.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2017-10-26 09:11:57 init message: Loading block index...
2017-10-26 09:11:58 Opening LevelDB in C:\Users\xxxxxx\Desktop\Bitcoin Wallet\blocks\index
2017-10-26 09:11:59 Opened LevelDB successfully
2017-10-26 09:11:59 Using obfuscation key for C:\Users\xxxxxx\Desktop\Bitcoin Wallet\blocks\index: 0000000000000000
2017-10-26 09:12:23 LoadBlockIndexDB: last block file = 1042
2017-10-26 09:12:23 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=96, size=69957200, heights=491713...491822, time=2017-10-25...2017-10-26)
2017-10-26 09:12:23 Checking all blk files are present...
2017-10-26 09:12:28 LoadBlockIndexDB: transaction index disabled
2017-10-26 09:12:28 Opening LevelDB in C:\Users\xxxxxx\Desktop\Bitcoin Wallet\chainstate
2017-10-26 09:12:28 Opened LevelDB successfully
2017-10-26 09:12:28 Using obfuscation key for C:\Users\xxxxxx\Desktop\Bitcoin Wallet\chainstate: dc3087dba2ad642e
2017-10-26 09:12:28 Loaded best chain: hashBestChain=00000000000000000080d70ed46b5f912ea0f0ba22c0d097be52c0fb8586e2b7 height=491822 date=2017-10-26 08:42:16 progress=0.999979
2017-10-26 09:12:28 init message: Rewinding blocks...
2017-10-26 09:12:32 init message: Verifying blocks...
2017-10-26 09:12:32 Verifying last 6 blocks at level 3
2017-10-26 09:12:32 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2017-10-26 09:14:31 No coin database inconsistencies in last 7 blocks (7711 transactions)
2017-10-26 09:14:31  block index          153863ms
2017-10-26 09:14:31 init message: Loading wallet...
2017-10-26 09:14:31 nFileVersion = 130000
2017-10-26 09:14:31 Keys: 113 plaintext, 0 encrypted, 7 w/ metadata, 113 total
2017-10-26 09:14:32  wallet                  515ms
2017-10-26 09:14:32

************************
EXCEPTION: St13runtime_error       
GenerateNewKey: AddKey failed       
C:\Program Files\Bitcoin\bitcoin-qt.exe in Runaway exception       

2017-10-26 09:14:38 CDBEnv::EnvShutdown: Error -30974 shutting down database environment: DB_RUNRECOVERY: Fatal error, run database recovery