Grin-wallet init won't work; keeps recreating the .toml file

When I run
./grin-wallet init

I get this error “Wallet command failed: LibWallet Error: Lifecycle Error: grin-wallet.toml already exists in the target directory (/home/computername/.grin/main/grin-wallet.toml). Please remove it first”.

But when I remove this file with the rm command and try the init again, the file seems to be recreated on its own and just keeps giving me the same error in an endless loop.

Does anybody know how to get past this?
thanks!

Hi!
It looks like there may already be a wallet in your wallet_data folder, which is why init fails. The error message is a bit misleading. Could you move the existing folder with
mv ~/.grin/main ~/.grin/main.backup and then try
./grin-wallet init again?
Please keep the backup, as it may contain an existing wallet.

2 Likes