Bitcoin Forum
June 30, 2024, 05:23:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Building Databases error at 99%  (Read 626 times)
pimpsv (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 04, 2017, 05:43:47 PM
 #1

I keep receiving the same error with Armory installing. Has there been found a solution to this problem yet? I do not know what to do anymore. Already installed two times at two different computers..

It says: "Missing headers" and that I should close the program etc.

Is there an option to retreive my waller another way? I only have the root key.

Many thanks in advance.
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3682
Merit: 1347

Armory Developer


View Profile
June 04, 2017, 07:21:31 PM
 #2

post your logs

pimpsv (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 04, 2017, 07:25:35 PM
 #3

Please find below:

Log file opened at 1496598894: C:\Users\Pim\AppData\Roaming\Armory\armorycpplog.txt
-INFO  - 1496598922: (..\BlockUtils.cpp:918) blkfile dir: C:\Users\Pim\AppData\Roaming\Bitcoin\blocks
-INFO  - 1496598922: (..\BlockUtils.cpp:919) lmdb dir: C:\Users\Pim\AppData\Roaming\Armory\databases
-INFO  - 1496598922: (..\lmdb_wrapper.cpp:478) Opening databases...
-INFO  - 1496598922: (..\BlockUtils.cpp:1250) Executing: doInitialSyncOnLoad
-INFO  - 1496598922: (..\BlockUtils.cpp:1321) Total number of blk*.dat files: 893
-INFO  - 1496598922: (..\BlockUtils.cpp:1322) Total blockchain bytes: 119,508,352,348
-INFO  - 1496598922: (..\BlockUtils.cpp:1695) Reading headers from db
-INFO  - 1496598925: (..\BlockUtils.cpp:1721) Found 469753 headers in db
-DEBUG - 1496598925: (..\Blockchain.cpp:211) Organizing chain w/ rebuild
-WARN  - 1496598927: (..\BlockUtils.cpp:1351) --- Fetching SSH summaries for 1000 registered addresses
-INFO  - 1496598927: (..\BlockUtils.cpp:1364) Left off at file 892, offset 100308808
-INFO  - 1496598927: (..\BlockUtils.cpp:1367) Reading headers and building chain...
-INFO  - 1496598927: (..\BlockUtils.cpp:1368) Starting at block file 892 offset 100308808
-INFO  - 1496598927: (..\BlockUtils.cpp:1370) Block height 469752
-DEBUG - 1496598927: (..\Blockchain.cpp:211) Organizing chain w/ rebuild
-INFO  - 1496598929: (..\BlockUtils.cpp:1405) Looking for first unrecognized block
-INFO  - 1496598929: (..\BlockUtils.cpp:1556) Loading block data... file 892 offset 100308800
-ERROR - 1496598929: (..\BlockUtils.cpp:561) Next block header found at offset 100308808
-INFO  - 1496598929: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 892 offset 101298023
-INFO  - 1496598929: (..\BlockUtils.cpp:1422) Wrote blocks to DB in 0.001s
-INFO  - 1496598929: (..\BlockUtils.cpp:1439) Checking dupIDs from 0 onward
-ERROR - 1496598929: (..\BlockUtils.cpp:1462) missing 1 block headers
-ERROR - 1496598929: (..\BDM_mainthread.cpp:429) BDM thread failed: Missing headers! This is unexpected, Armory will have to close. If the error persists, do a factory reset.

goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3682
Merit: 1347

Armory Developer


View Profile
June 04, 2017, 07:57:36 PM
 #4

Are you using 0.93?

pimpsv (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 04, 2017, 08:00:53 PM
 #5

Yes. Previous time I installed 0.96 but that did not work either (got stuck somewhere during installation).

I use windows 7 therefore I thought I should use the older version. On the Armory website it also says under version 0.93 that it works with windows 7 (64 bit).
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3682
Merit: 1347

Armory Developer


View Profile
June 04, 2017, 08:59:00 PM
 #6

Delete this folder:

C:\Users\Pim\AppData\Roaming\Armory\databases

Then use 0.96


pimpsv (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 05, 2017, 07:16:36 AM
 #7

Okay, so now I get this error:

===
-INFO  - 1496639334: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 880 offset 133875024
-INFO  - 1496639338: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 881 offset 133819727
-INFO  - 1496639343: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 882 offset 133517641
-INFO  - 1496639349: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 883 offset 133415847
-INFO  - 1496639353: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 884 offset 133672526
-INFO  - 1496639356: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 885 offset 133693229
-INFO  - 1496639359: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 886 offset 133658435
-INFO  - 1496639365: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 887 offset 133789448
-INFO  - 1496639369: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 888 offset 133391608
-INFO  - 1496639375: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 889 offset 133752150
-INFO  - 1496639380: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 890 offset 133577279
-INFO  - 1496639385: (..\BlockUtils.cpp:589) Reading raw blocks finished at file 891 offset 133575052
-ERROR - 1496639385: (..\BDM_mainthread.cpp:429) BDM thread failed: failed to map file




And when I installed 0.96 on my other laptop, I get this message at 99% scanning transactions:

===

-INFO  - 1496620933: (..\BlockchainScanner.cpp:650) scanned from height #468513 to #468545
-INFO  - 1496620938: (..\BlockchainScanner.cpp:650) scanned from height #468546 to #468572
-INFO  - 1496620940: (..\BlockchainScanner.cpp:650) scanned from height #468573 to #468577
-INFO  - 1496620942: (..\BlockchainScanner.cpp:650) scanned from height #468578 to #468583
-INFO  - 1496620947: (..\BlockchainScanner.cpp:650) scanned from height #468584 to #468598
--ERROR - 1496621011-ERROR - 1496621011: (ERROR - 1496621011: (: (-..\BlockchainScanner.cpp:..\BlockchainScanner.cpp:ERROR - 1496621011: (..\BlockchainScanner.cpp:271) raw data does not match expected block hash
271) raw data does not match expected block hash
271..\BlockchainScanner.cpp:271) raw data does not match expected block hash
) raw data does not match expected block hash

What to do?
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3682
Merit: 1347

Armory Developer


View Profile
June 05, 2017, 11:44:07 AM
 #8

Same issue as you had before, one of the last few file in your blockchain data folder is corrupt.

You want to delete file 891 and later, start your node and let it fix itself. Then you can wipe Armory's DB and try again.

pimpsv (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 05, 2017, 07:35:57 PM
 #9

But Bitcoin Core itself is working properly. Only with Armory I got an error.

It is required to use 0.96? I have the feeling that it does not work on my windows 7 laptop as my whole computer gets SUPER slow during installation (which is not the case with the 0.93.3 software). Note that the computer is not that bad (i7, nvidia 6400 etc.).

Or can I also use 0.93.3 with windows 7? And secondly, do I understand you correct:

1. delete rev00891.dat t/m 00893
2. start Bitcoin Core
3. start Armory 0.93.3

?

Many thanks in advance.
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3682
Merit: 1347

Armory Developer


View Profile
June 05, 2017, 08:37:03 PM
 #10

Quote
It is required to use 0.96?

You should always update when possible. Use the testing build for 0.96.1:

https://github.com/goatpig/BitcoinArmory/releases/tag/v0.96.0.2-testing

Quote
Note that the computer is not that bad (i7, nvidia 6400 etc.)

The relevant factors are, in the following order:

- storage speed
- core count
- ram

Since your graphics card is low end (x400 for nvidia is as bad as it gets), I'm guessing your computer is short on RAM and uses a HDD.

Quote
Or can I also use 0.93.3 with windows 7

It won't be able to run on the SegWit chain when that comes around. It also has some security concerns seeing it still uses the phone home code.

Quote
1. delete rev00891.dat t/m 00893
2. start Bitcoin Core
3. start Armory 0.93.3

More like

Code:
1. delete blk00891.dat through 00893 (don't care about the rev files, they're generated on the fly during indexation)
2. Start Core, let it sync
3. Delete Armory's DB
4. Run Armory

pimpsv (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 05, 2017, 09:04:10 PM
 #11

Thanks for the info sir, already very helpful (and interesting). I will try the steps as described.

FYI I looked up the exact specs:
  • Intel® Core™ i7-2670QM processor
    6 GB DDR3 SDRAM
    NVIDIA® GeForce® GT555M DirectX® 11 2048 MB (although irrelevant)

Guess it is a HDD and not SDD, but a little better graphics.

Will post an update after steps tried!
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!