Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create database path '/home/simnet/.bitcoin/regtest'. Database already exists. #10

Open
gijswijs opened this issue May 21, 2021 · 1 comment

Comments

@gijswijs
Copy link

Lately I've been getting the following error:

bitcoind1_1  | + WALLET_NAME=
bitcoind1_1  | + WALLET_DIR=/home/simnet/.bitcoin/regtest/wallets/
bitcoind1_1  | + [[ -e /home/simnet/.bitcoin/regtest/wallets/ ]]
bitcoind1_1  | + ./bitcoin-cli.sh createwallet ''
bitcoind1_1  | error code: -4
bitcoind1_1  | error message:
bitcoind1_1  | Wallet file verification failed. Failed to create database path '/home/simnet/.bitcoin/regtest'. Database already exists.

It happens if I start a Simverse for a second time. So the first time everything runs fine. I then stop it (either with CTRL+C or with /dc stop) and if I run ./dc up again it results in this error.

@gijswijs
Copy link
Author

Deleting wallet.dat seems to be a workaround

rm ~/simverse/_workspace/default/_volumes/bitcoind-data-bitcoind1/regtest/wallet.dat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant