Bitcoin Forum

Bitcoin => Armory => Topic started by: Shadow89 on August 15, 2017, 03:46:46 PM



Title: Coins missing
Post by: Shadow89 on August 15, 2017, 03:46:46 PM
Hi there.

I have a little issue regarding my Armory wallet. I decided to transfer all my funds to Armory since I thought it might be safer than storing them online. I downloaded Armory to my work computer totally forgetting about having Bitcoin core installed. So i created a wallet and sent my bitcoins. I realised that I was missing bitcoin core to work so I backed up my wallet and downloaded Bitcoin core and Armory at home. I restored my wallet but no funds are showing.

I understand that my wallet has several addresses linked to my wallet ID so no funds should be gona walkabouts.

Can someone please assist and help me resolve this issue?

Thanks in advance for any help!

Cheers


Edit: I should add that i used the newst version at work and 0.95.1 at home since I had troubles installing the most recent version at home.


Title: Re: Coins missing
Post by: achow101 on August 15, 2017, 04:54:42 PM
Is Bitcoin Core fully synced? Is Armory fully synced? If neither of those are true, then you will not see your coins until both are synced.


Title: Re: Coins missing
Post by: Shadow89 on August 16, 2017, 06:56:49 AM
Hi, thanks for the reply.

I assume so. Armory says its connected and shows the amount of blocks in the bottom right corner. How do I know that it's fully synced?



Title: Re: Coins missing
Post by: HCP on August 16, 2017, 07:28:19 AM
If the number of blocks is 480,748 or higher, then chances are that Bitcoin Core is fully synced. If it is less than this number... then something isn't right.

Post your logs using pastebin.com


Title: Re: Coins missing
Post by: Shadow89 on August 16, 2017, 04:07:28 PM
Hi.

So number of blocks is 445,616 so somethings wrong. Below you can find my log! Cheers for the help guys!

https://pastebin.com/WE0BF4nD (https://pastebin.com/WE0BF4nD)


Title: Re: Coins missing
Post by: achow101 on August 16, 2017, 04:29:01 PM
Upgrade to the latest testing release: https://github.com/goatpig/BitcoinArmory/releases/tag/v0.96.1.2


Title: Re: Coins missing
Post by: Shadow89 on August 16, 2017, 08:09:01 PM
Alright, done. Armory is now showing 445616 Blocks. Balance is still 0.00 though. Getting a little nervous here :) Any further ideas?

Thanks again for the help!

Edit:
Again, I created and backed up my wallet right after installing Armory without Bitcoin Core installed. Just making sure thats clear.


Title: Re: Coins missing
Post by: achow101 on August 17, 2017, 06:06:12 AM
Check that Bitcoin Core is fully synced. Stop Armory and run just Bitcoin Core. If you don't see a green progress bar, hover your mouse over the checkmark or spinning circle in the bottom right hand corner and see if that matches the block height reported by block explorers like blockchain.info. It should be at least 480,891.


Title: Re: Coins missing
Post by: Shadow89 on August 17, 2017, 04:18:32 PM
I can confirm that Bitcoin Core is fully synced, it is showing 480956 (same number showing on blockchain.info). Could it have something to do with my first installation still being on my work computer? I only restored it using the paper back-up but that should be fine, shouldn't it? May I ask how many addresses are linked to one single wallet?

Thank you.

Edit: I think there might be an issue with Armory syncing with Core. Armory only shows 445616 blocks while Core shows the correct amount 480974. My transaction probably sits in between these two. I only sent my coins a few days ago. So I'll try to get Armory up to date. Any ideas are still most appreciated.


Title: Re: Coins missing
Post by: achow101 on August 17, 2017, 10:51:53 PM
Go to Help > Rescan and Rebuild Databases. Then restart Armory.


Title: Re: Coins missing
Post by: Shadow89 on August 18, 2017, 06:46:13 AM
Hi back.

Did that, same number of blocks. After that didn't work, I emptied the database folder and ran ArmoryDB.exe over night. The command line is still open but it doesn't seem to do anything. See below for a screen.

http://imgur.com/a/xbK0B

Is that it done or did it get stuck?



Title: Re: Coins missing
Post by: HCP on August 18, 2017, 07:15:40 AM
It seems like it didn't get the right number of blocks... it only got up to block file #723... it should be #960+

It seems like Armory is looking at the wrong blocks folder or something? Did you move/copy your blocks from: "C:\Users\Dustin\AppData\Roaming\Bitcoin\blocks" ?

If you look in the "Help -> Debug Window -> Information" window in Bitcoin Core... what is the value of "datadir"??


Title: Re: Coins missing
Post by: Shadow89 on August 18, 2017, 12:14:15 PM
Hey,

thank you too for the reply. No, I did not move my blocks. I restarted Armory now without running Bitcoin Core and seems to be doing something. It's connected and it shows zero blocks, current status "Preparing Databases" and changing numbers. I'm gonna let it work for a while, see what happens.

Update: See below for current status.

http://imgur.com/a/DXDvb

It's not moving forward but filling up my harddrive. Is that what it's supposed to do?


Title: Re: Coins missing
Post by: moredread67 on August 18, 2017, 02:02:11 PM
Go to Help > Rescan and Rebuild Databases. Then restart Armory.

I have experienced the same problem since I started a few months ago. I transferred 0.01 coins from my mobile wallet to Armory but it never fully synced with the network. The application would crash somewhere during a database scan and I never saw my coins again.
I did check on bitref.com and saw that the coins were still there, it was just a matter of Armory not seeing the transactions.

Now I tried again, with the latest testing (windows) client, and did Rescan Balance -- this fixed the problem for me!


Title: Re: Coins missing
Post by: Shadow89 on August 18, 2017, 02:35:53 PM
@moredread67:
Thanks for your reply. I tried that too, didn't work for me.

@HCP:
Datadir is D:\Program Files\Bitcoin

Should be fine. Armory definitely does not sync properly. I checked the box in Armory "Let bitcoind run in background" since this is the only time Armory seems to be actually doing something. I'm still a little confused what to fill in the blanks tho:

Bitcoin install dir I pointed to D:\Program Files\Bitcoin\daemon
Bitcoin home dir I pointed to D:\Program Files\Bitcoin

Is this correct?





Title: Re: Coins missing
Post by: Casimir1904 on August 18, 2017, 02:54:00 PM
I had the same once.
Some block files was corrupted.
You can fix that easly by running bitcoind -reindex ( Takes few hours ).

After that you need to rebuild the armory DB as well.

EDIT:
If you need your coins you can always extract the privkey of the address you sent the coins to and import it in another wallet.


Title: Re: Coins missing
Post by: Shadow89 on August 18, 2017, 10:08:17 PM
Cool, I'll try that too. I don't need my coins straight away, I know they're not gone gone. I'd like to get armory to work just out of curiosity but thankls for the tip anyway!

I'm just a little puzzled what you mean by "running bitcoind -reindex". Would you mind explaining what exactly you mean? Thanks guys!


Title: Re: Coins missing
Post by: HCP on August 19, 2017, 03:14:55 AM
@HCP:
Datadir is D:\Program Files\Bitcoin

Should be fine. Armory definitely does not sync properly. I checked the box in Armory "Let bitcoind run in background" since this is the only time Armory seems to be actually doing something. I'm still a little confused what to fill in the blanks tho:

Bitcoin install dir I pointed to D:\Program Files\Bitcoin\daemon
Bitcoin home dir I pointed to D:\Program Files\Bitcoin

Is this correct?
No... If Bitcoin Core is indicating that your "Datadir" is D:\Program Files\Bitcoin, then you have somehow setup the Bitcoin Core datadir in a non standard location... Note: there are TWO locations for Bitcoin Core... one is the installation folder for the application itself... this usually goes to "C:\Program Files\Bitcoin"... but I suspect you may have installed it somewhere else?

Then there is the Bitcoin Core "data" directory... this is the directory where Bitcoin Core stores your wallet and the blockchain data. By default, this is usually "C:\Users\YOURUSER\AppData\Roaming\Bitcoin"... however, you indicated that your "datadir" is set to "D:\Program Files\Bitcoin"??!? ???


Can you please confirm that you have a "D:\Program Files\Bitcoin" directory... and that it contains the following Folders:
blocks
chainstate
database

and that it has files like:
.lock
debug.log
fee_estimates.dat
mempool.dat
wallet.dat


Title: Re: Coins missing
Post by: Shadow89 on August 21, 2017, 10:44:12 AM
Hi back. Sorry for the late reply, I was away for the weekend.

@HCP

I'm sorry, I have made a mistake. The data directory is located inside the Bitcoin installation "D:\Program Files\Bitcoin\Bitcoin"-directory. It contains all the files you mentioned. It's D:\ because C:\ is my OS SSD with only 256Gigs, so I installed it onto the bigger D:\ drive. The installation directory is "D:\Program Files\Bitcoin".

Could these locations may cause the problems?





Title: Re: Coins missing
Post by: HCP on August 21, 2017, 11:31:59 AM
Ok... in that case, set the Bitcoin install directory to "D:\Program Files\Bitcoin" (without the quotes).... and the datadir as "D:\Program Files\Bitcoin\Bitcoin" (again, with the quotes)... and tick the box that says "let Armory start Bitcoind in the background"...

Then make sure that Bitcoin Core is shutdown... and restart Armory.


Title: Re: Coins missing
Post by: Shadow89 on August 22, 2017, 06:56:19 AM
Thank you @HPC, but I think I have tried that before, but I ca't 100% recall doing so.

Bitcoin Core is catching up at the moment, so I'll try what you suggested as soon as it's done.

Edit: I've done everything and Armory seemed to be doing something. It's now showing "Scanning" at the top area where the wallets are shown. I checked last night before I went to bed and it was at 94%, so I decided to let it run overnight. This morning it was back at 0% (see screen below) and it hasn't done anything since. Armory has not stopped working the program works normally.

Should I just let it run for another while to come or should I do something else (i.e. restart it)? Thanks again.

http://imgur.com/a/B7iUv


Title: Re: Coins missing
Post by: HCP on August 22, 2017, 09:39:04 AM
So the block count in Armory is increasing as new blocks are mined?

It's just the scanning thing at the top?


Title: Re: Coins missing
Post by: Shadow89 on August 22, 2017, 09:48:20 AM
@HPC:
Correct, block count is now increasing. Just the scanning thing at the top seems to be stuck. Would a balance rescan help?



Title: Re: Coins missing
Post by: goatpig on August 22, 2017, 10:31:42 AM
@HPC:
Correct, block count is now increasing. Just the scanning thing at the top seems to be stuck. Would a balance rescan help?

No, that doesn't affect the chain length.

Post a fresh log.


Title: Re: Coins missing
Post by: Shadow89 on August 22, 2017, 10:43:42 AM
You can find a fresh log here: https://pastebin.com/M7KJh9fU (https://pastebin.com/M7KJh9fU)


Title: Re: Coins missing
Post by: goatpig on August 22, 2017, 11:37:48 AM
What's the issue exactly?


Title: Re: Coins missing
Post by: Shadow89 on August 22, 2017, 11:52:31 AM
Armory is stuck at scanning my balance (earlier posted screen, "Scanning 0%").


Title: Re: Coins missing
Post by: goatpig on August 22, 2017, 11:55:46 AM
Turn off auto bitcoind in Files > Settings and restart Armory.


Title: Re: Coins missing
Post by: Shadow89 on August 22, 2017, 12:18:55 PM
Geeze, its finally there. Thank you so much for your help. Sorry for any inconveniences due to stupidity ;)

So, I turned off auto bitcoind, how do I proceed in the future? Just turn on Bitcoin Core before I start Armory? Or turn auto bitcoind back on, let it sync then turn off/restart again?

Cheers again for the help!

Edit: All good, I turned auto bitcond on again and everything seems to be fine now. Thanks guys, much appreciated! 8)


Title: Re: Coins missing
Post by: goatpig on August 22, 2017, 12:30:37 PM
Geeze, its finally there. Thank you so much for your help. Sorry for any inconveniences due to stupidity ;)

So, I turned off auto bitcoind, how do I proceed in the future? Just turn on Bitcoin Core before I start Armory? Or turn auto bitcoind back on, let it sync then turn off/restart again?

Cheers again for the help!

Edit: All good, I turned auto bitcond on again and everything seems to be fine now. Thanks guys, much appreciated! 8)

Your autobitcoind does work atm as it doesn't know where to find bitcoind. You'd have to either give it the path your binary folder or disable it or you'll run into more issues.


Title: Re: Coins missing
Post by: Shadow89 on August 22, 2017, 12:55:54 PM
Okay, done. I disabled it and have Bitcoin Core running manually in the background. The "Connected" status in Armory is now in purple. Is this correct? :)

Edit: So Armory doesn't automatically update the amount of blocks when auto bitcoind turned off. Bitcoin Core is showing on more block than Armory.


Title: Re: Coins missing
Post by: goatpig on August 22, 2017, 08:52:16 PM
Start BitcoinQt with -disablewallet. Then start Armory the usual way. Once you get a new block, check the peer tab on BitcoinQt, do you see an instance of ArmoryDB connected?


Title: Re: Coins missing
Post by: Shadow89 on August 23, 2017, 07:32:53 AM
Okay, did that. Now Armory is increasing the blocks as it goes. In BitcoinQT there is an instance of Armory, though it doesn't explicitely say ArmoryDB but I guess that's okay? The amount of blocks in Armory is still written in purple but the blocks are increasing.

Thanks.


Title: Re: Coins missing
Post by: goatpig on August 23, 2017, 11:21:32 AM
Well then your issue is 2 fold:

Your node tends to kick you out, and you don't have the RPC enabled.

Find your bitoin.conf file (create it if it's missing) in the Bitcoin datadir, and add these 2 lines in there:

Code:
addnode=127.0.0.1
server=1


Title: Re: Coins missing
Post by: Shadow89 on August 28, 2017, 07:26:51 AM
Just wanted to say that everything is working smoothly now. Thanks for help guys! :)