Title: Stuck on "Preparing Database" and Armory never shows "Online" Post by: someonewhoisntme on August 31, 2020, 08:12:37 PM Fix?
Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: nc50lc on September 01, 2020, 07:08:05 AM Start by adding some information aside from the one in the title.
Example: your Armory version, OS, etc, and the dev may ask you to post a few lines of your 'armorylog.txt'. If you've somehow installed 0.96 like this guy: URGENT: Armory always stuck either Building DB or Scanning. (https://bitcointalk.org/index.php?topic=5271924.0) Then upgrade to the latest version 0.96.5. Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: BitMaxz on September 01, 2020, 03:46:52 PM If you can check the logs you can find something like "DB version mismatch" in case if this is your problem even upgrading does not solve the issue you will need to delete the folder named databases. You can find it under C:\Users\(YourUsername)\AppData\Roaming\Armory
If still doesn't work much better post the partial logs(For privacy purposes) here. So that we can find what exactly happen why the Armory is always "Preparing Database". Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: someonewhoisntme on September 01, 2020, 08:31:48 PM I'm on Windows 10 and I've installed 96.5. Here's the logs:
Quote (ERROR) ArmoryUtils.pyc:3735 - Unsupported language specified. Defaulting to English (en) (ERROR) BDM.pyc:268 - setSatoshiDir: directory does not exist: C:\Users\****\AppData\Roaming\Bitcoin (ERROR) ArmoryQt.py:1862 - Failed to setup SDM Traceback (most recent call last): File "ArmoryQt.py", line 1857, in startBitcoindIfNecessary File "SDM.pyc", line 190, in setupSDM BitcoindError: bitcoind not found (ERROR) BDM.pyc:268 - setSatoshiDir: directory does not exist: C:\Users\****\AppData\Roaming\Bitcoin (WARNING) SDM.pyc:402 - Spawning DB with command: C:\Program Files (x86)\Armory\ArmoryDB.exe --db-type="DB_FULL" --cookie --satoshi-port=8333 --datadir="C:\Users\****\AppData\Roaming\Armory\" --dbdir="C:\Users\****\AppData\Roaming\Armory\databases" (ERROR) BDM.pyc:197 - DB error: C:\Users\****\AppData\Roaming/Bitcoin/blocks is not a valid path (ERROR) ArmoryUtils.pyc:3735 - Unsupported language specified. Defaulting to English (en) (ERROR) BDM.pyc:268 - setSatoshiDir: directory does not exist: C:\Users\****\AppData\Roaming\Bitcoin (ERROR) ArmoryQt.py:1862 - Failed to setup SDM Traceback (most recent call last): File "ArmoryQt.py", line 1857, in startBitcoindIfNecessary File "SDM.pyc", line 190, in setupSDM BitcoindError: bitcoind not found (ERROR) BDM.pyc:197 - DB error: C:\Users\****\AppData\Roaming/Bitcoin/blocks is not a valid path Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: HCP on September 01, 2020, 10:32:32 PM I'm on Windows 10 and I've installed 96.5. Here's the logs: Do you actually have Bitcoin Core installed and fully synced? If so, what is the "datadir" value that Bitcoin Core shows in the "Window -> Information" screen? ??? Quote (ERROR) BDM.pyc:268 - setSatoshiDir: directory does not exist: C:\Users\****\AppData\Roaming\Bitcoin ... (ERROR) BDM.pyc:197 - DB error: C:\Users\****\AppData\Roaming/Bitcoin/blocks is not a valid path If you don't have Bitcoin Core installed, then Armory will not be able to function properly, as Armory requires a non-pruning instance of Bitcoin Core to be installed and fully synced to function properly. Armory directly scans Bitcoin Core block data and uses the Bitcoin Core RPC interface to send/receive transaction information etc. Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: BitMaxz on September 02, 2020, 10:31:37 PM If you already have Bitcoin core and it's fully synced but in different folder locations you can edit the armory settings.
This is what it looks like https://i.imgur.com/hRqgFIN.png Edit them to the right directory path and it should be fixed your issue. Or you can manually set it under properties and add this line at the end Target Code: --datadir=<path to datadir> Code: --satoshi-datadir=<path to datadir> Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 04, 2020, 09:12:15 AM Hi.
I have the same problem, unfortunately. Running Windows 10 Pro 2004, Armory v0.96.5 I have installed and synced Bitcoin Core 0.20 and pointed Armory toward it's install dir. Here is the log from armorylog.txt Code: 2020-09-04 09:53:15 (INFO) -- ArmoryQt.py:5490 - Attempting to close the main window! In Armory settings, I have changed the database dir to D:\somedir\Crypto\Armory\Database, but it remains empty. The log looks OK to me, so any pointers? UPDATE: I see now that Armory is in fact working on something; filling up this directory with files, over 1000 (76Gig) so far: D:\somedir\Crypto\Armory\Bitcoin Blockchain Data\blocks. Is there any explanation on what this is, and how long it will take to complete? Thanks. Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: bob123 on September 04, 2020, 12:13:43 PM I see now that Armory is in fact working on something; filling up this directory with files, over 1000 (76Gig) so far: D:\somedir\Crypto\Armory\Bitcoin Blockchain Data\blocks. Is there any explanation on what this is, and how long it will take to complete? It's the blockchain data. Armory needs core do be installed and fully synced. You are starting core with the datadir argument D:\\somedir\\Crypto\\Armory\\Bitcoin Blockchain Data': Code: 2020-09-04 09:55:09 (INFO) -- ArmoryUtils.pyc:689 - Executing popen: [u'D:\\somedir\\Crypto\\Bitcoin\\daemon\\bitcoind.exe', '-datadir=D:\\somedir\\Crypto\\Armory\\Bitcoin Blockchain Data'] The blockchain is being downloaded, processed and saved in this directory. If you already have the blockchain downloaded, you need to point armory towards the correct directory. Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 04, 2020, 01:04:35 PM I see now that Armory is in fact working on something; filling up this directory with files, over 1000 (76Gig) so far: D:\somedir\Crypto\Armory\Bitcoin Blockchain Data\blocks. Is there any explanation on what this is, and how long it will take to complete? It's the blockchain data. Armory needs core do be installed and fully synced. You are starting core with the datadir argument D:\\somedir\\Crypto\\Armory\\Bitcoin Blockchain Data': Code: 2020-09-04 09:55:09 (INFO) -- ArmoryUtils.pyc:689 - Executing popen: [u'D:\\somedir\\Crypto\\Bitcoin\\daemon\\bitcoind.exe', '-datadir=D:\\somedir\\Crypto\\Armory\\Bitcoin Blockchain Data'] The blockchain is being downloaded, processed and saved in this directory. If you already have the blockchain downloaded, you need to point armory towards the correct directory. I see. I already synced through the Bitcoin Core. It took 300gig space and 12 hours to do. But when setting up Armory, I didn't see the connection, so Armory does the same thing all over in it's own directory. I'll just point to the Bitcoin Core directory then. I understand a bit more now, thank you! Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: bob123 on September 04, 2020, 02:02:02 PM Make sure to only change the "Bitcoin Home Dir" setting:
That's where armory will look for the blockchain files. You don't need to change the "Armory Database Dir". Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 04, 2020, 03:15:24 PM Make sure to only change the "Bitcoin Home Dir" setting: That's where armory will look for the blockchain files. You don't need to change the "Armory Database Dir". Yep, that's what I did. Still haven't come online, though. I hope it doesn't take this long every time I reboot my computer or something, lol Thanks again. Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: HCP on September 04, 2020, 09:08:48 PM The trick is to find what is being reported as the "datadir" within Bitcoin Core... and then use that value with Armory.
Have a look at the following menu option in Bitcoin Core: "Windows -> Information": https://talkimg.com/images/2023/11/15/zf3FD.png Then copy the "Datadir" value to the "Bitcoin Home Dir" setting in Armory... That will guarantee that Armory uses the already downloaded/synced Bitcoin Core data correctly. NOTE: DO NOT use the "Blocksdir"!! Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 05, 2020, 12:37:03 PM Aaah, not sure how much more time I should bother making a client work, but Armory still hasn't come online.
So I synced up the block dir in Bitcoin Core as well. So right now both Armory and Bitcoin Core has their own block directory. And after sync, they both have the same amount of files and the same size and file numbers. The Bitcoin Core GUI is online, the Armory GUI is still stuck in "Preparing Database" Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 05, 2020, 04:22:17 PM Just took a quick glance on your log. Do characters used for the name of user differ from English ones? If yes you may need to change them (create new user). If not, close Armory and delete its data base directory i.e. C:\Users\****\AppData\Roaming\Armory\databases. Then launch again. Hi.No, my username does not contain any non English letter. But my keyboard output is Norwegian, though. Anyway, Armory seems to keep the blocks folder up to date. The latest file rev02225.dat is just updated, but I started the program hours ago. It's just that it will never go online. I will try to delete the database folder (even though it is empty) Another thing: The program takes a long time to start and stop. About 5 mins to start, and about 20 mins to stop. Is that normal? Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: HCP on September 05, 2020, 11:54:18 PM No... that isn't normal... something is definitely not working correctly. You'll need to post your log files so we can figure out what exactly is going wrong.
In Armory, "File -> Export Log File..." Then copy/paste the contents of the generated .txt file to pastebin.com, click "create" and then post the generated pastebin URL here. Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 06, 2020, 11:36:57 AM No... that isn't normal... something is definitely not working correctly. You'll need to post your log files so we can figure out what exactly is going wrong. In Armory, "File -> Export Log File..." Then copy/paste the contents of the generated .txt file to pastebin.com, click "create" and then post the generated pastebin URL here. Here goes: https://pastebin.com/4M61s70j Thank you Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: goatpig on September 06, 2020, 01:15:07 PM Port 9001 is most likely busy.
Title: Re: Stuck on "Preparing Database" and Armory never shows "Online" Post by: GD_Dal on September 07, 2020, 06:19:19 AM Port 9001 is most likely busy. This actually fixed it.After some digging, I found out it was the Intel(R) Graphics Command Center Service that was using the port, as seen here: https://github.com/eclipse/mosquitto/issues/1580 I stopped that service, and Armory was able to move forward. It still took many many hours for it to start, but it got there in the end. Thank you |