Pages:
Author

Topic: Armory hangs on "Organizing Blockchain" (>12h). Grateful for any help. (Read 1461 times)

newbie
Activity: 16
Merit: 0
Thank - I will try it!
legendary
Activity: 3640
Merit: 1345
Armory Developer
It looks like the DB is sane, you should start ArmoryQt now while ArmoryDB is running.
newbie
Activity: 16
Merit: 0
Hi goatpig,

I think I let it run about 18 hours.

It appeared to have concluded a process, and I created another log file - ArmoryDB_log2.txt in my updated pastebin.

https://github.com/truebar/pastebin

The last line in the terminal was:

-INFO  - 01:10:12: (BDM_supportClasses.cpp:1891) Enabling zero-conf tracking

Is this Ok, along with the early log line:

-INFO  - 00:06:28: (BDM_Server.h:263) Listening on port 9001

Also, I noticed that running ArmoryDB on the terminal did not hang in the usual 2-4 hours as it does with Armory GUI running and bitcoind
running in the background. It just kept running on without stopping.

Lastly, when I killed the terminal running ArmoryDB, it looked done, but there was still some kind of process running in it, though nothing new
came on screen.

Also updated in my pastebin is a new file armory_log3.txt.

On December 17th, I ran first BitcoinCore Qt, and let up update the blockchain. Then I launched Armory. Armory still froze, but it got farther
than usual. The Scanning Transactions progress bar went all the way to 100%, and the timer said only 1 second left. But at that point, Armory froze.

Any ideas from this as to get Armory back up and running fully together with bitcoind? It has been a pretty frustrating process so far.

Thanks much,
cobbler7
legendary
Activity: 3640
Merit: 1345
Armory Developer
It looks like it updated the chain but has had time to do much more. How long did you let it run?
newbie
Activity: 16
Merit: 0
Hi goatpig,

Please see terminal output after running ArmoryDB at terminal.  File is ArmoryBD_log.txt

https://github.com/truebar/pastebin

The only thing I see in this I see of possible interest is:

-INFO  - 00:06:28: (BDM_Server.h:263) Listening on port 9001

Any ideas? Thanks much.
cobbler7

legendary
Activity: 3640
Merit: 1345
Armory Developer
From the the terminal, run ArmoryDB. Post the output from the terminal. You don't need bitcoind running for that.
newbie
Activity: 16
Merit: 0
I uploaded txt files of the odt ones to the pastebin, did you get/see them?

Thanks, cobbler7
legendary
Activity: 3640
Merit: 1345
Armory Developer
Can you please make it all text files. ODT I can't read in browser =/. I don't really want to have to download users' log files locally.
newbie
Activity: 16
Merit: 0

Thanks goatpig and HCP -- this updated directory below should have two netstat files, debug.log, and bitcoind last
run terminal log. Any ideas much appreciated.
Thanks,
cobbler7

https://github.com/truebar/pastebin

newbie
Activity: 16
Merit: 0
Thank s much goatpig and HCP for your continued help.

I have updated my pastebin https://github.com/truebar/pastebin
with the following 4 files:

-netstat run 1: scanning port 9001 with BOTH Armory and bitcoind running

-netstat run 2: scanning port 9001 with NEITHER Armory NOR bitcoind running

- armory debug.log

- screenshot of latest bitcoind terminal run

Re netstat, I still can't tell from these two files if anything is there that shouldn't be, or otherwise
is interfering with either Armory or Bitcoin.

Re armory debug.log, it is much like terminal output of bitcoind. Nothing jumps out to me as a
problem.

Re bitcoind run screenshot, this appears to me to indicate that the local bitcoin blockchain copy
is complete, or near complete, and not 100k blocks short of being complete. Any further ideas as
to what is going wrong in making Armory hang on "Organizing Blockchain" or "Scanning Tx"?

One further background fact, in case it matters. In doing re-installs of Armory and BitcoinCore,
I have been making use of a backup copy of the bitcoin blockchain that I keep on a external USB
hard drive. (This is specifically the contents of the .bitcoin directory.) For example, I get a new
computer, install BitcoinCore on it, but don't yet run it. Instead, I copy the contents of my
back up .bitcoin directory from the USB external drive to the .bitcoin directory on my new PC.
Only then do i run BitcoinCore Qt. Does/might this matter?

Thanks much,
cobblert7
legendary
Activity: 3640
Merit: 1345
Armory Developer
cobbler7: I have run bitcoind and bitcoin-qt manually maybe 20+ times, then launched Armory.
No luck, it always hangs. I am sure at least a half dozen times, blockchain was current state before
I launched Armory. I don't know why Armory should be 100k blocks behind.

You have to start bitcoind and let it sync. 100k blocks short means you're missing some 25% of the chain? The later blocks are a lot heavier then the earlier ones. This would mean a few extra hours worth of bitcoind syncing to catch up.

Quote
cobbler7: I tried netstat :9001, both with bitcoin/Armory, and then on clean boot without them. Both
netstat logs are now in my updated pastebin. I can't make heads or tails of these logs. Is something
there that shouldn't be there? And if so, what should I do about it?

I checked the github page your linked in the previous thread, can't find any netstat output.

Quote
cobbler7: so I don't introduce anything new, can you tell me what the "clean" default terminal commands are to launch ArmoryDB, and then after that, ArmoryQt?

Type ArmoryDB or ArmoryQt in the terminal to start them. You are "introducing something new" in that approach in that you're not letting ArmoryQt control ArmoryDB, which reduces the degrees of freedom in the stack.
HCP
legendary
Activity: 2086
Merit: 4314
cobbler7: I have run bitcoind and bitcoin-qt manually maybe 20+ times, then launched Armory.
No luck, it always hangs. I am sure at least a half dozen times, blockchain was current state before
I launched Armory. I don't know why Armory should be 100k blocks behind.
Armory isn't 100k blocks behind... your bitcoind database is.

Quote
-INFO  - 21:24:04: (DatabaseBuilder.cpp:199) Reading headers from db
-INFO  - 21:24:07: (DatabaseBuilder.cpp:238) Found 626760 headers in db
...
-INFO  - 22:25:42: (DatabaseBuilder.cpp:134) scanning new blocks from #626760 to #626759
...
ArmoryDB reads your bitcoin block files directly... and these lines of debug from ArmoryDB show that ArmoryDB is only able to see 626760 blocks in your bitcoin block files.


If you're not running Bitcoin Core GUI, you might want to find the bitcoin "debug.log" file... and check in that to make sure that bitcoind is actually syncing properly... you should see "update tip" messages in debug.log if it is.... like this:
Code:
2021-12-06T04:20:24Z UpdateTip: new best=0000000000000000000652aa2bba5c40f43773386194967dc580446abbbd0be7 height=712815 version=0x20000004 log2_work=93.212644 tx=692645130 date='2021-12-06T04:20:16Z' progress=1.000000 cache=40.9MiB(219006txo)
2021-12-06T04:31:36Z UpdateTip: new best=000000000000000000011188e2434af142c05a91fdea0694e24631ea6a485fcc height=712816 version=0x3fffc004 log2_work=93.212656 tx=692646350 date='2021-12-06T04:31:25Z' progress=1.000000 cache=41.5MiB(223496txo)

Otherwise, it might also show errors as to why it isn't syncing properly.
newbie
Activity: 16
Merit: 0
Thanks goatpig. I will try it.

Some further comments/questions below.

goatpig
Insert Quote
1. Run bitcoind manually, you're behind some 100k blocks as far as Armory is concerned

cobbler7: I have run bitcoind and bitcoin-qt manually maybe 20+ times, then launched Armory.
No luck, it always hangs. I am sure at least a half dozen times, blockchain was current state before
I launched Armory. I don't know why Armory should be 100k blocks behind.

2. Make sure there are no zombie ArmoryDB instances
oat
cobbler7: pretty sure no zombies. I always hard boot before trying to re-run and reconstitute
bitcoincore/Armory.

3. Make sure nothing is listening on 9001

cobbler7: I tried netstat :9001, both with bitcoin/Armory, and then on clean boot without them. Both
netstat logs are now in my updated pastebin. I can't make heads or tails of these logs. Is something
there that shouldn't be there? And if so, what should I do about it?

Once bitcoind is caught up, start ArmoryDB from the terminal, let it catch up, post the log file back here if it doesn't get beyond block 700k. If ArmoryDB gets as far as "enabling zero conf parser", you can start ArmoryQt.

cobbler7: so I don't introduce anything new, can you tell me what the "clean" default terminal commands are to launch ArmoryDB, and then after that, ArmoryQt?

Thanks much.
cobbler7
legendary
Activity: 3640
Merit: 1345
Armory Developer
1. Run bitcoind manually, you're behind some 100k blocks as far as Armory is concerned
2. Make sure there are no zombie ArmoryDB instances
3. Make sure nothing is listening on 9001

Once bitcoind is caught up, start ArmoryDB from the terminal, let it catch up, post the log file back here if it doesn't get beyond block 700k. If ArmoryDB gets as far as "enabling zero conf parser", you can start ArmoryQt.
newbie
Activity: 16
Merit: 0
cobbler7:

My Armory logfiles can be viewed at:

https://github.com/truebar/pastebin

Any further advice most appreciated.
Thanks,
cobbler7
HCP
legendary
Activity: 2086
Merit: 4314
Any thoughts/ideas on what I can do to fix this? Any feedback most appreciated.
As goatpig has mentioned, without being able to see the log files, it's going to be very difficult to understand what exactly is happening with your setup. Are there any obvious errors in the log files? Huh


Also, no idea why your whole computer is "freezing"... That isn't a normal situation, so possibly indicative of something other than Armory or Bitcoin Core causing issues Huh I've had Armory basically "freeze" (or seem like it has frozen) during the initial sync/scan... but the rest of the PC was functioning just fine.
legendary
Activity: 3640
Merit: 1345
Armory Developer
Hard to help you without logs.
newbie
Activity: 16
Merit: 0
Hi,
I have a quite similar issue. I am by this point a fairly experienced BitcoinCore and Armory user (since 2014 or 2015). So I have tried my usual tricks
and tilts on the Armory pinball machine, but nothing seems to work now.

I have been running Ubuntu 20.4, Armory 0.96.5, and BitcoinCore 0.21.1, on a one year old System76 laptop with 64GB ram and an
Intel® Core™ i7-10870H CPU @ 2.20GHz × 16. Plus Verizon Fios for Internet. I don't think my system is underpowered to run a BitcoinCore/
Armory combination.

My specific problem is, BitcoinCore and Armory repeatedly hang/freezes after running for 2-6 hours. It hangs on either "Organizing Blockchain".
Or if that process completes, it hangs on "Scanning Tx".

I have run it (the boot up) maybe 20x plus over the past 3 weeks, to no avail.  One time, when I wasn't there/didn't see it, it showed me my Armory wallet balances,
but when I got there, the whole computer was frozen, so I couldn't use Armory or anything, and had to reboot. A couple of other times, it completed the "Scanning
Tx" part (at 100%), but then froze my whole computer, and did NOT show me my wallet balances. But that is as far as I have got, after 3 weeks.

I have tried the usual tilts, which have worked before. Like:
- rebuild and rescan databases
- letting, and not letting, Armory run bitcoind in the background
- running bitcoind and bitcoin-qt first, and then manually launching Armory

Also, when I run bitcoind or bitoin-qt manually, BitcoinCore 0.21.1 runs normally and updates the bitcoin blockchain apparently up to
current state.

So the problem appears to be the handshaking of Armory 0.96.5. with BitcoinCore.

I realized tonight that BitcoinCore has been upgraded to 0.22.0. I am currently running an update of blockchain with that. Maybe that will solve the problem,
But I dunno if that will work.

Any thoughts/ideas on what I can do to fix this? Any feedback most appreciated.
Thanks in advance, cobbler7.



Follow-up (by cobbler7): my Armory log files can be viewed at: https://github.com/truebar/pastebin

Thank you


HCP
legendary
Activity: 2086
Merit: 4314
armorycpplog.txt may not show anything of great interest... I'd check out armorylog.txt and dbLog.txt in the first instance.

If you want more assistance, you'd need to post the contents of those log files (in full) to pastebin.com and then link the generated pastebin URL here so we can view the logs.

If you don't see any obvious errors in the log files, then you might want to use the "Rebuild and Rescan Databases" option in Armory's "Help" menu and see if that helps.
newbie
Activity: 16
Merit: 0
Thank you NC501c,
I will check that out.
Cobbler7
Pages:
Jump to: