OK, I did as requested, just I noticed that I left enabled the "allow armory to run its own bitcoind process" enabled. Let me know if it's critical and I should try again without. Anyway, here's what happens:
I delete (move) the "databases" dir and the old logs.
I launch "ArmoryDB --db-type=DB_BARE" from a shell (bitcoind not running). I see a lot of lines like "-INFO - 20:05:31: (DatabaseBuilder.cpp:272) parsed block file #843" and after some time it finishes:
gaglia@myhost:~$ ArmoryDB --db-type=DB_BARE
/home/gaglia
/home/gaglia
/home/gaglia/.armory/databases is not a valid path
logging in /home/gaglia/.armory/dbLog.txt
-INFO - 18:39:54: (main.cpp:32) Running on 4 threads
-INFO - 18:39:54: (main.cpp:33) Ram usage level: 4
-INFO - 18:39:54: (BlockUtils.cpp:908) blkfile dir: /home/gaglia/.bitcoin/blocks
-INFO - 18:39:54: (BlockUtils.cpp:909) lmdb dir: /home/gaglia/.armory/databases
-INFO - 18:39:54: (lmdb_wrapper.cpp:388) Opening databases...
-INFO - 18:39:54: (BDM_Server.h:249) Listening on port 9001
-INFO - 18:39:54: (BlockUtils.cpp:1092) Executing: doInitialSyncOnLoad
-INFO - 18:39:54: (DatabaseBuilder.cpp:190) Reading headers from db
-WARN - 18:39:54: (lmdb_wrapper.cpp:1175) No headers in DB yet!
-INFO - 18:39:54: (DatabaseBuilder.cpp:229) Found 1 headers in db
-INFO - 18:39:54: (DatabaseBuilder.cpp:70) updating HEADERS db
-INFO - 18:46:06: (DatabaseBuilder.cpp:272) parsed block file #3
-INFO - 18:46:23: (DatabaseBuilder.cpp:272) parsed block file #7
-INFO - 18:46:41: (DatabaseBuilder.cpp:272) parsed block file #11
...
...
...
-INFO - 20:14:40: (DatabaseBuilder.cpp:272) parsed block file #887
-INFO - 20:18:51: (Blockchain.cpp:246) Organizing chain
-INFO - 20:18:53: (Blockchain.cpp:360) Organized chain in 1.57471s
-INFO - 20:18:57: (DatabaseBuilder.cpp:75) updated HEADERS db in 5943s
-INFO - 20:18:57: (BDM_supportClasses.cpp:1873) Enabling zero-conf tracking
After a couple of minutes I open another terminal and run armory. The GUI starts, but it's stuck at 0% of "Scanning Transaction History". After a few seconds, the ArmoryDB process exits:
-INFO - 20:18:57: (DatabaseBuilder.cpp:75) updated HEADERS db in 5943s
-INFO - 20:18:57: (BDM_supportClasses.cpp:1873) Enabling zero-conf tracking
-INFO - 20:23:46: (BDM_Server.cpp:1074) registered bdv: 23b472deb9079773902f
-INFO - 20:23:50: (BDM_supportClasses.cpp:378) Starting address registration process
Killed
gaglia@myhost:~$
On the armory side nothing changed: the GUI is still stuck with the bar at 0%. The terminal window says:
gaglia@myhost:~$ armory
Gtk-Message: Failed to load module "canberra-gtk-module"
/home/gaglia
Log file doesn't exist [yet]
(ERROR) ArmoryUtils.py:3747 - Unsupported language specified. Defaulting to English (en)
/usr/lib/armory/armoryengine/Transaction.py:2790: SyntaxWarning: import * only allowed at module level
def PyCreateAndSignTx_old(srcTxOuts, dstAddrsVals):
(ERROR) ArmoryQt.py:1194 - 8 attempts to load blockchain failed. Remove mempool.bin.
(ERROR) ArmoryQt.py:1199 - File mempool.bin does not exist. Nothing deleted.
-ERROR - 20:26:47: (StringSockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version
Then I close the armory window. Here is what happens on terminal:
File "/usr/bin/../lib/armory/ArmoryQt.py", line 5950, in
os._exit(QAPP.exec_())
File "/usr/bin/../lib/armory/ArmoryQt.py", line 5426, in closeForReal
TheSDM.stopBitcoind()
File "/usr/lib/armory/SDM.py", line 490, in stopBitcoind
LOGERROR(e)
File "/usr/lib/armory/armoryengine/ArmoryUtils.py", line 833, in LOGERROR
traceback.print_stack()
(ERROR) ArmoryQt.py:5435 - Strange error during shutdown
Traceback (most recent call last):
File "/usr/bin/../lib/armory/ArmoryQt.py", line 5426, in closeForReal
TheSDM.stopBitcoind()
File "/usr/lib/armory/SDM.py", line 490, in stopBitcoind
LOGERROR(e)
File "/usr/lib/armory/armoryengine/ArmoryUtils.py", line 831, in LOGERROR
logging.error(callerStr + logstr)
TypeError: cannot concatenate 'str' and 'exceptions.RuntimeError' objects
Notice that the bitcoin daemon is still running, and I have to kill it:
root@myhost:/home/gaglia# pgrep bitcoind
6197
The dbLog.txt doesn't show anything more than what I reported, up to the "killed" line. Here is the armorylog.txt :
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1138 - C++ block utilities loaded successfully
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:667 - Executing popen: free -m
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:667 - Executing popen: ['cat', '/proc/cpuinfo']
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1255 -
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1256 -
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1257 -
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1258 - ************************************************************
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1259 - Invoked: /usr/bin/../lib/armory/ArmoryQt.py
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1260 - ************************************************************
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1261 - Loading Armory Engine:
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1262 - Armory Version : 0.96.0.4
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1263 - Armory Build: : 98578163de
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1264 - PyBtcWallet Version : 1.35
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1265 - Detected Operating system: Linux
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1266 - OS Variant : debian-9.0-
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1267 - User home-directory : /home/gaglia
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1268 - Satoshi BTC directory : /home/gaglia/.bitcoin/
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1269 - Armory home dir : /home/gaglia/.armory/
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1270 - Detected System Specs :
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1271 - Total Available RAM : 7.68 GB
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1272 - CPU ID string : Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1273 - Number of CPU cores : 4 cores
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1274 - System is 64-bit : True
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1275 - Preferred Encoding : UTF-8
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1276 - Machine Arch : x86_64
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1277 - Available HDD (ARM) : 58 GB
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1278 - Available HDD (BTC) : 58 GB
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1279 -
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1280 - Network Name: Main Network
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1281 - Satoshi Port: 8333
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1282 - Do wlt check: True
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1283 - Named options/arguments to armoryengine.py:
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - thread_count : -1
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - rescan : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - ignoreAllZC : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - rescanBalance : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - disableModules : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - port : None
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - interport : 8223
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - coverageOutputDir: None
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - forceWalletCheck: False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - regtest : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - rebuild : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - nettimeout : 2
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - datadir : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - clearMempool : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - offline : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - armoryDBDir : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - armorydb_port : 9001
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - satoshiPort : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - useTorSettings : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - netlog : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - keypool : 100
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - coverageInclude : None
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - forceOnline : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - redownload : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - rpcBindAddr : 127.0.0.1
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - armorydb_ip : 127.0.0.1
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - multisigFile : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - ram_usage : -1
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - mtdebug : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - logDisable : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - settingsPath : /home/gaglia/.armory/ArmorySettings.txt
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - language : en
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - db_type : DB_FULL
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - doDebug : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - enableDetSign : True
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - disableConfPermis: False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - testnet : False
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - rpcport : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - satoshiHome : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - satoshiRpcport : DEFAULT
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - logFile : /home/gaglia/.armory/ArmoryQt.py.log.txt
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1285 - verbosity : None
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1286 - Other arguments:
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1289 - ************************************************************
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:1692 - C++ block utilities loaded successfully
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:3590 - Using settings file: /home/gaglia/.armory/ArmorySettings.txt
2017-07-08 20:23:43 (ERROR) -- ArmoryUtils.py:3747 - Unsupported language specified. Defaulting to English (en)
2017-07-08 20:23:43 (INFO) -- ArmoryUtils.py:3750 - Using Language: en
2017-07-08 20:23:43 (INFO) -- BDM.py:365 - Using the asynchronous/multi-threaded BlockDataManager.
2017-07-08 20:23:43 (INFO) -- BDM.py:366 - Blockchain operations will happen in the background.
2017-07-08 20:23:43 (INFO) -- BDM.py:367 - Devs: check TheBDM.getState() before asking for data.
2017-07-08 20:23:43 (INFO) -- BDM.py:368 - Registering addresses during rescans will queue them for
2017-07-08 20:23:43 (INFO) -- BDM.py:369 - inclusion after the current scan is completed.
2017-07-08 20:23:44 (INFO) -- ArmoryUtils.py:3590 - Using settings file: /home/gaglia/.armory/ArmorySettings.txt
2017-07-08 20:23:44 (INFO) -- ArmoryQt.py:2050 - loadWalletsAndSettings
2017-07-08 20:23:44 (INFO) -- ArmoryQt.py:2110 - Loading wallets...
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:2175 - Number of wallets read in: 4
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:2180 - Wallet (XXX): "Wallet test1 " (Encrypted)
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:2180 - Wallet (XXX): "Wallet test2 " (Encrypted)
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:2180 - Wallet (XXX): "Wallet test3 " (Encrypted)
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:2180 - Wallet (XXX): "Primary Wallet " (Encrypted)
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1752 - acquiring process mutex...
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1391 - setupUriRegistration
2017-07-08 20:23:46 (INFO) -- ArmoryUtils.py:667 - Executing popen: gconftool-2 --get /desktop/gnome/url-handlers/bitcoin/command
2017-07-08 20:23:46 (INFO) -- ArmoryUtils.py:667 - Executing popen: xdg-mime query default x-scheme-handler/bitcoin
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:565 - Usermode: Advanced
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1687 - Changing usermode:
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1688 - From: Advanced
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1696 - To: Advanced
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1825 - startBitcoindIfNecessary
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1861 - setSatoshiPaths
2017-07-08 20:23:46 (INFO) -- ArmoryUtils.py:667 - Executing popen: ['whereis', 'bitcoind']
2017-07-08 20:23:46 (INFO) -- SDM.py:289 - "whereis" returned: ['/opt/bitcoin-0.14.1/bin/bitcoind']
2017-07-08 20:23:46 (INFO) -- SDM.py:169 - Found bitcoind in the following places:
2017-07-08 20:23:46 (INFO) -- SDM.py:171 - /opt/bitcoin-0.14.1/bin/bitcoind
2017-07-08 20:23:46 (INFO) -- SDM.py:171 - /opt/bitcoin-0.14.1/bin/bitcoind
2017-07-08 20:23:46 (INFO) -- SDM.py:173 - Using: /opt/bitcoin-0.14.1/bin/bitcoind
2017-07-08 20:23:46 (INFO) -- SDM.py:337 - Called startBitcoind
2017-07-08 20:23:46 (INFO) -- ArmoryUtils.py:667 - Executing popen: [u'/opt/bitcoin-0.14.1/bin/bitcoind', '-datadir=/home/gaglia/.bitcoin/']
2017-07-08 20:23:46 (INFO) -- SDM.py:450 - PID of bitcoind: 6197
2017-07-08 20:23:46 (INFO) -- SDM.py:451 - PID of armory: 6170
2017-07-08 20:23:46 (INFO) -- ArmoryUtils.py:667 - Executing popen: ['python', '/usr/lib/armory/guardian.py', '6170', '6197']
2017-07-08 20:23:46 (INFO) -- ArmoryQt.py:1913 - Setting netmode: 1
2017-07-08 20:23:49 (INFO) -- ArmoryQt.py:1895 - loadBlockchainIfNecessary
2017-07-08 20:23:49 (ERROR) -- ArmoryQt.py:1194 - 8 attempts to load blockchain failed. Remove mempool.bin.
2017-07-08 20:23:49 (ERROR) -- ArmoryQt.py:1199 - File mempool.bin does not exist. Nothing deleted.
2017-07-08 20:23:50 (INFO) -- ArmoryQt.py:1913 - Setting netmode: 1
2017-07-08 20:23:50 (INFO) -- ArmoryQt.py:4644 - Dashboard switched to "Scanning" mode
2017-07-08 20:23:50 (INFO) -- ArmoryQt.py:4644 - Dashboard switched to "Scanning" mode
2017-07-08 20:23:50 (INFO) -- ArmoryQt.py:4644 - Dashboard switched to "Scanning" mode
2017-07-08 20:45:18 (INFO) -- ArmoryQt.py:5422 - BDM state is scanning -- force shutdown BDM
2017-07-08 20:45:18 (INFO) -- SDM.py:464 - Called stopBitcoind
2017-07-08 20:45:18 (ERROR) -- ArmoryQt.py:5435 - Strange error during shutdown
Traceback (most recent call last):
File "/usr/bin/../lib/armory/ArmoryQt.py", line 5426, in closeForReal
TheSDM.stopBitcoind()
File "/usr/lib/armory/SDM.py", line 490, in stopBitcoind
LOGERROR(e)
File "/usr/lib/armory/armoryengine/ArmoryUtils.py", line 831, in LOGERROR
logging.error(callerStr + logstr)
TypeError: cannot concatenate 'str' and 'exceptions.RuntimeError' objects
2017-07-08 20:45:18 (INFO) -- ArmoryQt.py:5437 - Attempting to close the main window!
What's going on here?
thanks in advance again for any help!