etotheipi/BitcoinArmory

Armory stuck on "Initializing Bitcoin Engine" after changing the database location

Closed this issue · 8 comments

All three bars are empty, and the little wheel just keeps spinning. I'm seeing this problem after following these instructions on windows: https://support.bitcoinarmory.com/kb/article/16-change-or-move-the-blockchain-database-storage-location-for-armory-and-bitcoin-core

I already have a --satoshi-datadir flag in my shortcut that I added as per the instructions in that link. What could be going wrong here?

Potentially related issues:
#181
#268

I noticed that when I try to start up Bitcoin core, it asks me where I want to put the database, and I specify the place I moved the database to. It then tells me there's an "error opening block database" and asks me if i want to rebuild the block database now. I can abort, or press ok. If i press ok it says "error opening block database" and quits. Dick..

I tried reinstalling bitcoin core, but i get the same problem - it seems to not like the harddrive i'm trying to put it on.

This is probably related: bitcoin/bitcoin#6200

Ok, the solution was to run a chkdisk on the drive i was using to store these files. I was only able to figure this out by looking in Bitcoin Core's debug.log file. Can we please keep this issue open until Armory displays the proper error message to the user telling them what needs to be done (chkdsk)?

Hello. I'm going to close this issue. As mentioned in the referenced issue, all bets are off if a disk is improperly unmounted. Expecting engineers to write code anticipating such a case is, in general, a very bad idea. All bets really are off, and there are any number of problems that could show up in any number of permutations. How are engineers supposed to know what exactly one should do? The far simpler solution is to just not engage in dangerous behavior. I've been properly unloading my external drives since 2002 or so and have never had problems like these.

In addition, I've written forward-facing software. Trust me, it's easy for well-meaning messages to confuse users. Telling people to do things like run chkdsk will just cause users to expect us to fix their problems, even if it's really not an Armory issue.

If the BC Core contributors somehow decide to add logic looking for such a case, perhaps we'll consider adding it. For now, we're going to proceed with what we have. Sorry.

@droark A well meaning and misleading message is more helpful than no message at all. Should be easy to pass that message through. Imagining that this is an edgecase with most users is a mistake if you want this software to become more mainstream.