BitShares Forum

Main => Technical Support => Topic started by: bitmeat on August 30, 2014, 05:29:19 pm

Title: Wallet import crashes, older imports lose balance.
Post by: bitmeat on August 30, 2014, 05:29:19 pm
So I backup my data folders and my wallets religiously before/after each update.

With the new version, I can download sync/etc but only with a fresh install/clean data folder.

However trying to import the wallets crashes the system completely.

Someone said that wallets are deterministic and you can never lose the information, so long as you have the private key and the password.

So I figured ok, tried to import an older wallet - voila it didn't crash... HOWEVER I see 0 balances, and transaction show as sent to "UNKNOWN".

Given that I have the JSON from before that happened, could that still be used somehow to recover these UNKNOWN transactions?

Also, what about the people who ONLY exported the "bad" wallet ( I think this started in 0.4.8 )

Title: Re: Wallet problems...
Post by: bitmeat on August 30, 2014, 05:30:56 pm
Also worth noting, I thought this was a Windows problem. I did try to import the wallet on Ubuntu, it generated seg-fault.

How do I maximize the debug logging, so we can examine that?
Title: Re: Wallet import crashes, older imports lose balance.
Post by: bytemaster on August 30, 2014, 06:49:02 pm
Code: [Select]
wallet_recover_accounts <accounts_to_recover> [maximum_number_of_attempts]                         
wallet_recover_transaction <transaction_id_prefix> [recipient_account] 

In the 0.4.10 release these methods may help you recover balances and recipient information. 
Title: Re: Wallet import crashes, older imports lose balance.
Post by: liondani on August 30, 2014, 07:35:06 pm
with the json file you had problems try this: open it with a text editor and go to the last lines...  2 or 3 lines before the last line erase the last coma ( , ) and save the file.  Try importing the json file again from your wallet  :)
It was a wallet version that did that "mistake" , maybe you had make an export with the wallet that had this issue...
Title: Re: Wallet import crashes, older imports lose balance.
Post by: bitmeat on August 30, 2014, 07:49:32 pm
with the json file you had problems try this: open it with a text editor and go to the last lines...  2 or 3 lines before the last line erase the last coma ( , ) and save the file.  Try importing the json file again from your wallet  :)
It was a wallet version that did that "mistake" , maybe you had make an export with the wallet that had this issue...

I tried that, turned out this didn't have the comma.

I am more concerned that importing an older wallet makes the account unrecoverable.
Title: Re: Wallet import crashes, older imports lose balance.
Post by: bitmeat on August 30, 2014, 07:49:53 pm
In the 0.4.10 release these methods may help you recover balances and recipient information.

I don't see 0.4.10 in the tags on GitHub.
Title: Re: Wallet import crashes, older imports lose balance.
Post by: bytemaster on August 30, 2014, 07:56:22 pm
In the 0.4.10 release these methods may help you recover balances and recipient information.

I don't see 0.4.10 in the tags on GitHub.

Master branch.. 0.4.10 has not been finalized.  I am working on some wallet stuff now.
Title: Re: Wallet import crashes, older imports lose balance.
Post by: bitmeat on August 30, 2014, 08:02:56 pm
In the 0.4.10 release these methods may help you recover balances and recipient information.

I don't see 0.4.10 in the tags on GitHub.

Master branch.. 0.4.10 has not been finalized.  I am working on some wallet stuff now.

What you said about the recovery not taking into account market transactions, that makes sense. My last transactions are actually orders, so perhaps that's why old wallet doesn't get recovered.

I'll sync to master and rebuild and report back.

Title: Re: Wallet import crashes, older imports lose balance.
Post by: vikram on September 01, 2014, 09:45:38 pm
Are you letting the blockchain sync before importing the wallet backups? You will not see your balances before the chain is synced. Others have reported crashes when importing before fully synced.