babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 05, 2018, 02:00:24 PM |
|
I'm trying Armory wallet and after a quick initial sync the bottom right corner of the window counts like 20k blocks less than my full node tell me has synced. And armory tells me it's fully synced.
I've configured bitcoin install dir to point to where I'm downloading the blockchaind data. and the bitcoin home dir to default home > .bitcoin.
|
|
|
|
bob123
Legendary
Offline
Activity: 1624
Merit: 2481
|
|
September 05, 2018, 02:05:03 PM |
|
This can happen if your blockchain is missing some blocks past the height where armory is stuck. Which version are you using ? We need your armory log to exactly find out what's happening. Please either post it between [ code] and [ /code] tags or use https://pastebin.com/ and provide us the link.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4318
<insert witty quote here>
|
|
September 06, 2018, 05:11:56 AM |
|
How did you configure Armory? Did you use .conf files, command line arguments or the GUI? This is quite useful if you have setup Bitcoin Core to use non-default locations: https://btcarmory.com/docs/pathingps. don't use [ code ] tags... it simply isn't likely to fit... just use pastebin to post your logs
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 06, 2018, 10:29:59 AM Last edit: September 06, 2018, 05:56:09 PM by babadoo |
|
This can happen if your blockchain is missing some blocks past the height where armory is stuck. Which version are you using ? We need your armory log to exactly find out what's happening. Please either post it between [ code] and [ /code] tags or use https://pastebin.com/ and provide us the link. here's a the log paste for the last day: https://pastebin.com/XApd78za. I changed satoshi datadir and it synced for 2h but still shows less blocks. with bitcoin-cli getblockchaininfo I can see my node is fully synced.
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 06, 2018, 10:42:06 AM |
|
How did you configure Armory? Did you use .conf files, command line arguments or the GUI? This is quite useful if you have setup Bitcoin Core to use non-default locations: https://btcarmory.com/docs/pathingps. don't use [ code ] tags... it simply isn't likely to fit... just use pastebin to post your logs the GUI. at File > Settings. I'm pointing Bitcoin Home Dir to the folder containing blocks folder. I left blank Bitcoin Install dir.
|
|
|
|
bob123
Legendary
Offline
Activity: 1624
Merit: 2481
|
|
September 06, 2018, 10:44:26 AM |
|
2018-09-06 09:18:01 (ERROR) -- SDM.py:307 - Bitcoind could not be found in the specified installation: 2018-09-06 09:18:01 (ERROR) -- SDM.py:309 - /mount/node 2018-09-06 09:18:01 (ERROR) -- SDM.py:310 - Bitcoind is being started from: 2018-09-06 09:18:01 (ERROR) -- SDM.py:311 - /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:171 - Found bitcoind in the following places: 2018-09-06 09:18:01 (INFO) -- SDM.py:173 - /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:173 - /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:175 - Using: /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:339 - Called startBitcoind 2018-09-06 09:18:01 (WARNING) -- SDM.py:441 - Spawning bitcoind with command: /usr/bin/bitcoind -datadir=/home/user/.bitcoin -dbcache=2000
Did you configure the core path to be in /mount/node ? Because armory seems to not be able to find it. It is using /usr/bin/bitcoind. Is this the correct path for your core installation ?
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 06, 2018, 05:00:07 PM Last edit: September 06, 2018, 06:14:59 PM by babadoo |
|
2018-09-06 09:18:01 (ERROR) -- SDM.py:307 - Bitcoind could not be found in the specified installation: 2018-09-06 09:18:01 (ERROR) -- SDM.py:309 - /mount/node 2018-09-06 09:18:01 (ERROR) -- SDM.py:310 - Bitcoind is being started from: 2018-09-06 09:18:01 (ERROR) -- SDM.py:311 - /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:171 - Found bitcoind in the following places: 2018-09-06 09:18:01 (INFO) -- SDM.py:173 - /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:173 - /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:175 - Using: /usr/bin/bitcoind 2018-09-06 09:18:01 (INFO) -- SDM.py:339 - Called startBitcoind 2018-09-06 09:18:01 (WARNING) -- SDM.py:441 - Spawning bitcoind with command: /usr/bin/bitcoind -datadir=/home/user/.bitcoin -dbcache=2000
Did you configure the core path to be in /mount/node ? Because armory seems to not be able to find it. It is using /usr/bin/bitcoind. Is this the correct path for your core installation ? ok, here's my setup Bitcoin Core 0.16.0 is already running as a daemon, binary is at /usr/bin/bitcoind. daemon is started with -conf=/etc/bitcoin/bitcoin.conf, config file has option datadir=/mount/node Armory menu, File > Settings > General tab > Bitcoin home dir: /mount/node and Bitcoin install dir: /usr/bin. I deleted ~/.armory and resynced but still shows less blocks. Right now I'm doing Help > Rebuild and Rescan Databases. edit: scan stopped, still showing less blocks
|
|
|
|
PhoenixFire
Member
Offline
Activity: 270
Merit: 36
|
|
September 07, 2018, 12:18:00 AM |
|
ok, here's my setup
Bitcoin Core 0.16.0 is already running as a daemon, binary is at /usr/bin/bitcoind.
daemon is started with -conf=/etc/bitcoin/bitcoin.conf, config file has option datadir=/mount/node
Armory menu, File > Settings > General tab > Bitcoin home dir: /mount/node and Bitcoin install dir: /usr/bin.
I deleted ~/.armory and resynced but still shows less blocks. Right now I'm doing Help > Rebuild and Rescan Databases.
edit: scan stopped, still showing less blocks
The bitcoind that is getting fired up by Armory is looking in the wrong place, then. I'd suspect one of the many similar parameters is getting mixed up here given that Armory is trying to find bitcoind in your satoshi-datadir (i.e. blockchain folder). Unclear to me, but are you planning to fire up bitcoind manually yourself (or via services etc.) or let Armory spawn it as needed? You say already running... so leaning to the former you'd want to uncheck the "Let Armory run Bitcoin Core/bitcoind in the background" option. At least initially I think you should pass in --satoshi-datadir=/mount/node as an argument or satoshi-datadir="/mount/node" as a config option in armoryqt.conf (won't exist by default) A fresh log after that would help
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 07, 2018, 08:40:26 AM Last edit: September 07, 2018, 08:52:03 AM by babadoo |
|
ok, here's my setup
Bitcoin Core 0.16.0 is already running as a daemon, binary is at /usr/bin/bitcoind.
daemon is started with -conf=/etc/bitcoin/bitcoin.conf, config file has option datadir=/mount/node
Armory menu, File > Settings > General tab > Bitcoin home dir: /mount/node and Bitcoin install dir: /usr/bin.
I deleted ~/.armory and resynced but still shows less blocks. Right now I'm doing Help > Rebuild and Rescan Databases.
edit: scan stopped, still showing less blocks
The bitcoind that is getting fired up by Armory is looking in the wrong place, then. I'd suspect one of the many similar parameters is getting mixed up here given that Armory is trying to find bitcoind in your satoshi-datadir (i.e. blockchain folder). Unclear to me, but are you planning to fire up bitcoind manually yourself (or via services etc.) or let Armory spawn it as needed? You say already running... so leaning to the former you'd want to uncheck the "Let Armory run Bitcoin Core/bitcoind in the background" option. At least initially I think you should pass in --satoshi-datadir=/mount/node as an argument or satoshi-datadir="/mount/node" as a config option in armoryqt.conf (won't exist by default) A fresh log after that would help bitcoind starts as a service automatically. I followed these instructions ( https://github.com/bitcoin/bitcoin/blob/master/doc/init.md). I unchecked the setting "Let Armory run Bitcoin Core/bitcoind in the background" and started armory from command line with armory --satoshi-datadir="/mount/node" It scans (sigh again) for one hour but it still ends up showing less blocks. edit: new paste log https://pastebin.com/38fUaNi1edit2: it shows 'Connected (528884 blocks)' whereas bitcoin-cli getblockchaininfo says 540320.
|
|
|
|
PhoenixFire
Member
Offline
Activity: 270
Merit: 36
|
|
September 07, 2018, 02:15:54 PM |
|
bitcoind starts as a service automatically. I followed these instructions ( https://github.com/bitcoin/bitcoin/blob/master/doc/init.md). I unchecked the setting "Let Armory run Bitcoin Core/bitcoind in the background" and started armory from command line with armory --satoshi-datadir="/mount/node" It scans (sigh again) for one hour but it still ends up showing less blocks. edit: new paste log https://pastebin.com/38fUaNi1edit2: it shows 'Connected (528884 blocks)' whereas bitcoin-cli getblockchaininfo says 540320. Thanks for doing that - logs look more sane now. Keep the satoshi param there (or move to the config file). Try Armory's Help > Rebuild and Rescan Databases but note that it will take a while as it is rebuilding from scratch. If you'd like a better diagnosis before doing the rebuild posting your dblog.txt would be helpful. Check you haven't got any duplicate processes running too: one bitcoind, one ArmoryDB (and make sure it isn't running before you launch ArmoryQt).
|
|
|
|
goatpig
Moderator
Legendary
Offline
Activity: 3738
Merit: 1360
Armory Developer
|
|
September 09, 2018, 09:03:14 AM |
|
Would need to see dbLog.txt
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 09, 2018, 01:19:42 PM |
|
Would need to see dbLog.txt
here it is. still showing less blocks even after specifying satoshi-datadir as phoenixfire said dblog https://pastebin.com/UhAd6VnZbut there's more. i read in the logs that the scan end at file #1294. I can see at my /mount/node/blocks folder that my block files have different permission starting file #1295. pic https://i.imgur.com/jKjqUGS.png. maybe it's because of that? I didn't change any permissions manually. I've never touched that folder maybe it's a bitcoin core thing? should I try changing the permissions manually?
|
|
|
|
bob123
Legendary
Offline
Activity: 1624
Merit: 2481
|
|
September 09, 2018, 03:21:19 PM |
|
You definitely need to change the permissions. Currently only the user bitcoin is allowed to read the files. But armory (running either under your (executing) user or own 'armory user') needs to have read permissions. You can change the permissions (of all .dat files in this directory) to rw-r--r-- with this command: I have no clue why core changed the default permissions from this block on. Neither do i have a clue why core creates the .dat files with execute permissions. That's cleary not needed. So, if you are fine with changing ALL permissions in this directory, feel free to use the above command.
|
|
|
|
goatpig
Moderator
Legendary
Offline
Activity: 3738
Merit: 1360
Armory Developer
|
|
September 09, 2018, 07:25:13 PM |
|
but there's more. i read in the logs that the scan end at file #1294. I can see at my /mount/node/blocks folder that my block files have different permission starting file #1295.
Those log entries are only indicative of progress and do not represent an exhaustive list of the block files that have been parsed. Simply put, any thread that manages to grab the verbose lock ouputs whatever file it finished parsing. You want to run this process with a wallet loaded, as this log indicates the db has no addresses to track atm. It would yield more relevant information in the log.
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 09, 2018, 07:26:40 PM Last edit: September 09, 2018, 07:42:08 PM by babadoo |
|
You definitely need to change the permissions. Currently only the user bitcoin is allowed to read the files. But armory (running either under your (executing) user or own 'armory user') needs to have read permissions. You can change the permissions (of all .dat files in this directory) to rw-r--r-- with this command: I have no clue why core changed the default permissions from this block on. Neither do i have a clue why core creates the .dat files with execute permissions. That's cleary not needed. So, if you are fine with changing ALL permissions in this directory, feel free to use the above command. If it's a core thing, did you experience the same issue? I'm not changing the permission until I got confirmation from more users. Maybe it's a security feature I'm not aware of.
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 09, 2018, 07:33:32 PM |
|
but there's more. i read in the logs that the scan end at file #1294. I can see at my /mount/node/blocks folder that my block files have different permission starting file #1295.
Those log entries are only indicative of progress and do not represent an exhaustive list of the block files that have been parsed. Simply put, any thread that manages to grab the verbose lock ouputs whatever file it finished parsing. You want to run this process with a wallet loaded, as this log indicates the db has no addresses to track atm. It would yield more relevant information in the log. here's the log. I didn't do a rescan, just added a wallet. https://pastebin.com/iD3x2tqzI'm rescanning again.
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 10, 2018, 10:30:03 AM Last edit: September 10, 2018, 12:10:52 PM by babadoo |
|
but there's more. i read in the logs that the scan end at file #1294. I can see at my /mount/node/blocks folder that my block files have different permission starting file #1295.
Those log entries are only indicative of progress and do not represent an exhaustive list of the block files that have been parsed. Simply put, any thread that manages to grab the verbose lock ouputs whatever file it finished parsing. You want to run this process with a wallet loaded, as this log indicates the db has no addresses to track atm. It would yield more relevant information in the log. The rescan finished. Here's a new log. With one wallet loaded. It keeps processing less blocks. https://pastebin.com/uWxCadc7When the scan finished the GUI said the node was disconnected (but it was not). I restart and it counts less nodes but it prints 'connected'. edit: I also found this merge https://github.com/bitcoin/bitcoin/pull/4286 that mentions Armory. I'm not using -disablewallet or -sysperm options. Maybe what I should do is use those params and change manually the previous blockfile permissions, but I'm not sure if that's the most secure thing to do.
|
|
|
|
goatpig
Moderator
Legendary
Offline
Activity: 3738
Merit: 1360
Armory Developer
|
|
September 11, 2018, 12:07:57 AM |
|
This is the first time I hear of this issue. I guess you are left with blindly changing file permissions on new block data files and see where it takes you. If you have some coding in you, I can tell you where to add print statements to debug this thoroughly.
|
|
|
|
babadoo (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
September 11, 2018, 09:34:09 AM |
|
This is the first time I hear of this issue. I guess you are left with blindly changing file permissions on new block data files and see where it takes you. If you have some coding in you, I can tell you where to add print statements to debug this thoroughly.
I can't code. I change all files permissions at /mount/node/blocks to 755 and still not loading all the blocks! the log files are the same than before.
|
|
|
|
goatpig
Moderator
Legendary
Offline
Activity: 3738
Merit: 1360
Armory Developer
|
|
September 12, 2018, 11:34:55 AM |
|
You wouldn't have to code per se, you'd have to add the lines I give you at specific spots and run make.
|
|
|
|
|