BitShares Forum

Main => Technical Support => Topic started by: kanguro on January 16, 2018, 01:00:40 am

Title: Error on import_key, need help thanks
Post by: kanguro on January 16, 2018, 01:00:40 am
Hi, I am trying to follow the instructions to setup a witness node as in:
http://docs.bitshares.org/bitshares/tutorials/witness-howto.html

In the instructions below, what should I put in "accountname" and "owner wif key"?
I got the Owner Private Key for my account from the Web UI
(Permissions->Owner tab, clicking on the key icon and then the Show button in the dialog),

but for account name I tried both my login (account) id or the public key followed by the owner private key and no combination seems to work

This is the part of the tutorial I am trying to do:

>>> import_key <accountname> <owner wif key>
true
>>> import_key <accountname> <active wif key>
true
>>> list_my_accounts

But when I try the first import_key I get this:

10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:597 get_account

Any ideas? Any help appreciated, thanks :)
Title: Re: Error on import_key, need help thanks
Post by: sahkan on January 16, 2018, 02:04:35 am
 Is your CLI connected to a synced node?
Title: Re: Error on import_key, need help thanks
Post by: kanguro on January 16, 2018, 02:23:55 am
How would I know/check that?
I am running a full node myself. It seems to be working ok,  although it is still getting the blocks (has gotten to about 8M blocks so far)
Both Node and CLI are running on Docker images. CLI sets password and unlocks fine.
Title: Re: Error on import_key, need help thanks
Post by: kanguro on January 16, 2018, 02:26:21 am
Do I have to wait until my node has downloaded all the blocks?
Title: Re: Error on import_key, need help thanks
Post by: sahkan on January 16, 2018, 08:09:29 am
Do I have to wait until my node has downloaded all the blocks?
Yes
Title: Re: Error on import_key, need help thanks
Post by: kanguro on January 16, 2018, 02:58:21 pm
Thanks, node completed downloading blocks and it works now. I do have one other question but will use a new thread for that.
Thank you very much  :)