eos icon indicating copy to clipboard operation
eos copied to clipboard

cleos wallet create fails if default wallet directory does not exist

Open rbw3821 opened this issue 8 years ago • 6 comments

If the default wallet directory does not exist, then cleos wallet create fails. Note that cleos provides no option to specify the wallet directory.

To replicate, use the following.

$ rm -rf ~/eosio-wallet
$ ls ~/eosio-wallet/
ls: /Users/testuser/eosio-wallet/: No such file or directory

$ cleos wallet create
2825981ms thread-0   main.cpp:2659                 main                 ] Failed with error: unspecified (0)
Unable to open file: /Users/testuser/eosio-wallet/./default.wallet

$ mkdir ~/eosio-wallet
$ cleos wallet create
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5HtHxSKr9hu9vcYDTH7u3sSMiCSA6yynngwZ4mo1aPSEgxFE1hz"

It fails regardless of whether the default wallet is being used or a named wallet is used.

rbw3821 avatar Jun 12 '18 22:06 rbw3821

Hi. I tried to create wallet and everything is ok but I unable to find ~/eosio-wallet folder to remove it. Because there is no method to remove wallet I am using Ubuntu and follow install Docker on https://developers.eos.io/

bachvtuan avatar Jun 15 '18 10:06 bachvtuan

~/eosio-wallet is the default directory on the Mac. In my case, this was /Users/testuser/eosio-wallet. Some other changes were made to the wallet code last night and I am not seeing this problem now.

On Fri, Jun 15, 2018 at 4:58 AM, Tuan [email protected] wrote:

Hi. I tried to create wallet and everything is ok but I unable to find ~/eosio-wallet folder to remove it. Because there is no method to remove wallet I am using Ubuntu and follow install Docker on https://developers.eos.io/

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/4064#issuecomment-397586704, or mute the thread https://github.com/notifications/unsubscribe-auth/AX83uHT5Ba2KuHiLGyJKN39BtgN18JFZks5t85NLgaJpZM4UlQGT .

-- Rick

rbw3821 avatar Jun 15 '18 17:06 rbw3821

Actually, the part of the problem that is no longer being seen is keosd failing when it is started by cleos AND the wallet directory doesn't exist. There is still a problem with keosd failing if the wallet directory is removed after keosd is running. Attempts to create a wallet after the directory is removed fail.

On Fri, Jun 15, 2018 at 11:02 AM, Rick Whitner [email protected] wrote:

~/eosio-wallet is the default directory on the Mac. In my case, this was /Users/testuser/eosio-wallet. Some other changes were made to the wallet code last night and I am not seeing this problem now.

On Fri, Jun 15, 2018 at 4:58 AM, Tuan [email protected] wrote:

Hi. I tried to create wallet and everything is ok but I unable to find ~/eosio-wallet folder to remove it. Because there is no method to remove wallet I am using Ubuntu and follow install Docker on https://developers.eos.io/

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/4064#issuecomment-397586704, or mute the thread https://github.com/notifications/unsubscribe-auth/AX83uHT5Ba2KuHiLGyJKN39BtgN18JFZks5t85NLgaJpZM4UlQGT .

-- Rick

-- Rick

rbw3821 avatar Jun 15 '18 17:06 rbw3821

In my case it is located at /tmp/eosio/data

bachvtuan avatar Jun 18 '18 03:06 bachvtuan

Running Ubuntu 16.04 (using cleos from docker) I can confirm that my wallet data is in: /tmp/eosio/data

ovi-rosu avatar Jul 29 '18 19:07 ovi-rosu

In order to focus our efforts on issues that are currently creating difficulty for the community we are closing tickets that were created prior to the EOSIO 2.0 release. If you believe this issue is still relevant please feel free to reopen it or create a new one. Thank you for your continued support of EOSIO!

aclark-b1 avatar Jul 31 '20 18:07 aclark-b1