Bitcoin Forum
November 29, 2026, 06:24:25 PM *
News: Latest Bitcoin Core release: 32.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Armory 0.96.5(-beta) got corrupted due to SSD filling up. Reinstall?  (Read 98 times)
packet-rat (OP)
Newbie
*
Offline

Activity: 2
Merit: 2


View Profile
November 22, 2026, 03:13:11 PM
Merited by ABCbits (1)
 #1

I've been using Armory 0.96.5 without trouble for about 7 years, running it under a Debian 10 LXC container to support the legacy Qt libraries on a newer Debian workstation.

All was well until a few days ago, when I stupidly let a runaway file copy fill up the partition containing this container's .armory and .bitcoin directories, while Armory and/or Bitcoin Core were initializing.

Since then, after freeing up space, while Bitcoin Core appears to still start OK, giving expecting console messages, Armory always hangs on Building Databases at the 99% (1 minute remaining) point, giving this message on console:

-ERROR - 09:25:21: (StringSockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version

and I notice its ArmoryDB process always crashes at the same time.  The last lines in its dbLog are always normal ones, such as

-INFO  - 09:25:10: (DatabaseBuilder.cpp:281) parsed block file #5879

but starting ArmoryDB separately, rather than letting Armory launch it, gives the console message "terminate called without an active exception" when it crashes at that 99% point.

I tried deleting/moving ~/.armory/databases to let that be rebuilt on startup, along with mempool.bin (not currently present) and dbLog.txt, which a bunch of NULL bytes ahead of its text lines, perhaps from the disk-full situation.  On restart, as expected Armory took much longer to initialize, rebuilding ~/.armory/databases, but this didn't help.  It still crashed at the same place.  Is there anything else in ~/.armory that's safe to remove, and will be replaced if missing?

In case a fault with Bitcoin Core corruption was responsible, I tried re-indexing the whole blockchain, which took more than a day (launching it with the -reindex flag), but that also didn't solve anything.  I didn't try to wipe and re-download all ~837G of blocks, or mess with anything else under ~/.bitcoin, but could try if there's any chance it would help.

Otherwise, I guess the best approach now might be to just wipe ~/.armory and reinstall, after saving my wallet details.  Could someone please advise on what files must be copied out at minimum, or the best way to do a backup/restore while replacing any corrupt data that might be in there?

Would it be a good idea to try updating to a newer Armory at the same time?

Thanks in advance for any help.
nc50lc
Legendary
*
Offline

Activity: 3346
Merit: 9398


Self-proclaimed Genius


View Profile
November 23, 2026, 05:43:13 AM
 #2

I didn't try to wipe and re-download all ~837G of blocks, or mess with anything else under ~/.bitcoin, but could try if there's any chance it would help.
If it's Bitcoin Core, it should be logged on its own "debug.log" file inside ~/.bitcoin directory.
Look out for errors and check if it's synced to the current blockchain tip height that should be 977153 (at the time of this reply)

But based from the FCGI error in Armory, it's most likely Amory.

packet-rat (OP)
Newbie
*
Offline

Activity: 2
Merit: 2


View Profile
November 23, 2026, 11:35:41 PM
Merited by nc50lc (1)
 #3

I tried moving away the entire ~/.armory directory and letting Armory create a fresh one, intending to restore from my paper backup. but it still crashed at the 99% point when building databases, suggesting something might actually be wrong on the Bitcoin Core side.  I'd checked the debug.log there earlier, but didn't catch anything obvious.

I ended up just restoring both directories from a a 2-month-old backup (newer ones were from after the corruption happened) and letting it redownload all blocks since then, which brought Armory back to normal.  All good again for now.

So, just a cautionary note to never let the drive fill up that Bitcoin Core and/or Armory are running from!  I'll cetainly be more careful about that now.
nc50lc
Legendary
*
Offline

Activity: 3346
Merit: 9398


Self-proclaimed Genius


View Profile
November 24, 2026, 05:01:50 AM
 #4

I ended up just restoring both directories from a a 2-month-old backup (newer ones were from after the corruption happened) and letting it redownload all blocks since then, which brought Armory back to normal.  All good again for now.
It's good that you have a backup.

Although it's kind of disappointing that we don't get to know the underlying issue and its solution for reference to those who might encounter that in the future.
Specially your case where the usual solution of rebuilding the database didn't work.

goatpig
Moderator
Legendary
*
Offline

Activity: 4298
Merit: 1431

Armory Developer


View Profile
November 24, 2026, 08:03:33 AM
 #5

It sounds like Core moved some data around in one of its block files as part of its recovery process. You have to rebuild the Armory database from scratch in that case. No need to touch your wallets for that.

nc50lc
Legendary
*
Offline

Activity: 3346
Merit: 9398


Self-proclaimed Genius


View Profile
November 24, 2026, 11:52:40 AM
 #6

It sounds like Core moved some data around in one of its block files as part of its recovery process. You have to rebuild the Armory database from scratch in that case. No need to touch your wallets for that.
This is the puzzling part,
He mentioned that he started it with a fresh .armory/databases and Armory rebuilt the database,
yet, the same issue happened at the same point.

Or are there other related files other than /databases dir that'll be rebuilt when using "Help->Rebuild and Rescan Databases" option?

goatpig
Moderator
Legendary
*
Offline

Activity: 4298
Merit: 1431

Armory Developer


View Profile
November 25, 2026, 05:19:18 PM
Merited by nc50lc (1)
 #7

The block parser can choke on certain malformed blocks, which could happen if a block is mangled during disk IO. I don't think Core would get rid of that block. A re-index heals the Core db, it doesn't change the chain data. That leaves Armory choking on the same block over and over. The user rolled back his chain data and it started working again, so that fits. A bunch of these deser errors have been fixed in 0.97 RC2.

nc50lc
Legendary
*
Offline

Activity: 3346
Merit: 9398


Self-proclaimed Genius


View Profile
November 26, 2026, 04:58:16 AM
Last edit: November 26, 2026, 07:54:14 AM by nc50lc
 #8

A bunch of these deser errors have been fixed in 0.97 RC2.
Thanks for the update.
So it can be something benign in Bitcoin Core but has an issue in the last stable version of Armory, but fixed in the recent test versions.

-edit-typo-

goatpig
Moderator
Legendary
*
Offline

Activity: 4298
Merit: 1431

Armory Developer


View Profile
November 26, 2026, 08:42:30 AM
 #9

There was a few cases where the block/tx parser would read a varint that announces some count or size, and it wouldn't check that enough data is available in the buffer before trying to read ahead. A block where the varint is mangled is a strong candidate to trigger this error.

The previous assumption was that a block on disk with a valid header is sound (because of the PoW cost), so only the merkle root check mattered. However this speculative issue would trigger before the merkle root check. This is because blocks have to be deserialized into transactions, and transactions need broken down into input, output and witness sections before the tx hashes can be computed to fill the merkle tree. With the extra sanity checks in place, RC2 should be immune to this.


nc50lc
Legendary
*
Offline

Activity: 3346
Merit: 9398


Self-proclaimed Genius


View Profile
November 27, 2026, 06:39:14 AM
 #10

Okay so for others who don't have an old blockchain snapshot (unlike OP).

The potential solution is to either upgrade to RC2,

Or delete the latest blk00xxxx.dat and revblk00xxxx.dat files where the issue should be
and let Core reindex to rebuild its database and redownload the remaining blocks.

goatpig
Moderator
Legendary
*
Offline

Activity: 4298
Merit: 1431

Armory Developer


View Profile
November 27, 2026, 09:36:52 AM
Merited by nc50lc (1)
 #11

Solution would be to try RC2 first, then if I did a bad job, belatedly re-download the chain. Or delete the specific blkXXXXX.dat file that triggers the issue and all its successors.

revXXXXX files are not downloaded, they're built on the fly, from the chain data. They match the block files indices 1:1 so while I don't know for sure, I presume Core assumes ownership of these all will reuse the file names regardless of the data they carry.

I'm hoping to tag RC2 and push binaries before xmass. This pass should be a lot more robust than RC1, I'll be happy to point any user with troubles towards it.

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!