Author Topic: cli unlock command returns aes error  (Read 1703 times)

0 Members and 1 Guest are viewing this topic.

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
BTW it would be nice if in the future this returned a state value (success) instead of just NULL. IMHO

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
I figured it out... it needs a better error message. Even though i can use the light client against it the cli client needs to have set_password run before hand as they don't share data.

Offline brads

  • Full Member
  • ***
  • Posts: 55
    • View Profile
If I remember correctly, cli_wallet cannot import GUI wallet. You have to create a new wallet in cli and import your privates keys (I did it a few hours ago).

Offline brads

  • Full Member
  • ***
  • Posts: 55
    • View Profile
I would say bad password but I guess you already checked it.

Can you try with cli_wallet (console), you just have to type : unlock your_password

I'm far to be an expert but I spent this afternoon with cli.

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
So no one is using the rpc api? :-( this stinks I can't bring bts back up on the exchange until I get this solved :-(

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
this is my request

Code: [Select]
{"jsonrpc":"2.0","id":1,"method":"unlock","params":["MyPasswordHere"]}
which seems correct according to http://docs.bitshares.eu/api/cli_wallet.html

Code: [Select]
{"id":1,"error":{"code":1,"message":"18 aes_exception: AES error\nerror during aes 256 cbc decrypt final\n    {\"s\":\"error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length\"}\n    th_a  aes.cpp:263 fc::aes_decrypt\n\n    {}\n    th_a  wallet.cpp:3122 graphene::wallet::wallet_api::unlock","data":{"code":18,"name":"aes_exception","message":"AES error","stack":[{"context":{"level":"error","file":"aes.cpp","line":263,"method":"fc::aes_decrypt","hostname":"","thread_name":"th_a","timestamp":"2015-10-16T17:12:49"},"format":"error during aes 256 cbc decrypt final","data":{"s":"error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length"}},{"context":{"level":"warn","file":"wallet.cpp","line":3122,"method":"graphene::wallet::wallet_api::unlock","hostname":"","thread_name":"th_a","timestamp":"2015-10-16T17:12:49"},"format":"","data":{}}]}}}
any idea why this is failing? my lite client has no problem unlocking with my password and wrong final block height seems meaningless since the system is synced and should have nothing to do with unlocking.
any help appreciated :-)
« Last Edit: October 16, 2015, 05:23:05 pm by ByronP »