Bitcoin Forum
June 16, 2024, 08:47:49 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I -reindex -reindex-chainstate on Armory - Ubuntu  (Read 767 times)
ZenDawgg (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
April 28, 2017, 02:45:02 PM
 #1

Hi,

I'm running Armory 0.95 on a minimal Ubuntu 16.04 install.

I'm letting Armory manage Bitcoind and have moved my block chain to different (larger) data drive.  It took awhile but I finally got everything up and running although it was not smooth sailing to do so (not a linux or Armory expert).  Anyway...

Everything was working for the past 4 weeks.  I'd start the PC every night and let it sync.

Last night however... the power went out for a few seconds and I don't have that PC on a battery back up.  Of course it happened in the middle of my sync.

Now Armory just sits and spins on Initializing Bitcoin Engine.

I checked the debug.log and it says to

Please restart with -reindex or -reindex-chainstate to recover.

How do I do that?

Thanks.

Zen

partial log file below:


2017-04-28 14:15:46 Bound to [::]:8333
2017-04-28 14:15:46 Bound to 0.0.0.0:8333
2017-04-28 14:15:46 Cache configuration:
2017-04-28 14:15:46 * Using 2.0MiB for block index database
2017-04-28 14:15:46 * Using 8.0MiB for chain state database
2017-04-28 14:15:46 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2017-04-28 14:15:46 init message: Loading block index...
2017-04-28 14:15:46 Opening LevelDB in /mnt/data/Bitcoin/blocks/index
2017-04-28 14:15:46 Opened LevelDB successfully
2017-04-28 14:15:46 Using obfuscation key for /mnt/data/Bitcoin/blocks/index: 0000000000000000
2017-04-28 14:15:46 Opening LevelDB in /mnt/data/Bitcoin/chainstate
2017-04-28 14:15:46 Corruption: 24 missing files; e.g.: /mnt/data/Bitcoin/chainstate/377259.ldb
2017-04-28 14:15:46 : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
2017-04-28 14:15:46 Aborted block database rebuild. Exiting.
2017-04-28 14:15:46 Shutdown: In progress...
2017-04-28 14:15:46 scheduler thread interrupt
2017-04-28 14:15:46 Shutdown: done
achow101
Staff
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
April 28, 2017, 03:02:16 PM
 #2

In the terminal, run
Code:
bitcoin-qt -reindex

This will start Bitcoin Core with reindexing. It will open up the GUI version of Core so you can follow the progress. When it is done, stop Bitcoin Core (File > Quit) and then start Armory as you would normally.

ZenDawgg (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
April 28, 2017, 05:57:39 PM
 #3

In the terminal, run
Code:
bitcoin-qt -reindex

This will start Bitcoin Core with reindexing. It will open up the GUI version of Core so you can follow the progress. When it is done, stop Bitcoin Core (File > Quit) and then start Armory as you would normally.

Thanks! 

I'll give it a try when I get home tonight.

Would I also need to run

Code:
bitcoin-qt -reindex-chainstate
achow101
Staff
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
April 28, 2017, 06:05:43 PM
 #4

Thanks!  

I'll give it a try when I get home tonight.

Would I also need to run

Code:
bitcoin-qt -reindex-chainstate
-reindex includes -reindex-chainstate as part of what it does. You won't need to include -reindex-chainstate

ZenDawgg (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
April 29, 2017, 06:34:09 PM
 #5

It took about 18 hours or so to reindex  Smiley

After that it would still not sync up.

Checking the debug log there were some permission denied errors in the blocks and chainstate directories.

I ended up chown and chmod them to the user that logs in.  Doubt that is the preferred way as far as security, but it opens and syncs up now.

Thanks!
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!