pull down to refresh

Wallet file verification failed. Refusing to load database. Data file '/Users/user/Library/Application Support/Bitcoin/wallets/wallet.dat' is already loaded.

I got this error after removing the blockchain and resyncing. I obviously kept the wallets folder. I think this error appeared after i started resyncing.

I can't run any wallet commands now as the command line stays blank and doesn't throw any errors.

Which version? Also I think that this is a legacy (bdb) wallet.

reply

27.1.0
Yeah could be, i must have installed it in late 2020.

reply

Did you try to unloadwallet -> loadwallet wallet?

reply

error code: -18
error message:
Requested wallet does not exist or is not loaded

Listwallets returns an empty array.
And then when I load the wallet I get the original error message (top).
The file wallet.dat exists though.

reply

listwallets will give you a name (maybe ["wallet"], I actually never tested this part myself)

and then unloadwallet <walletnamefromlist>

reply
reply

ok try unloadwallet ""

reply

{
}

load wallet.dat now, it's taking some time

You gotta have the seed phrase, right? It's easier to just wipe that one and re-import! I read that issue might be linked to pruned nodes.

reply

Yes, I've opted for the pruned version. It's probably solved now. The loaded wallet name defaulted to "" somehow.

reply

I think that's because wallet.dat used to be the default back when you could only have 1 wallet per node.

reply

No seed phrases in bitcoin core!!! (at least it was last time I was awake which was in 2017 lol)

reply

You're right! It's been a few years since I last reinstalled Bitcoin Core. I totally forgot about that.

reply

running multiple wallet instances at once?

reply

no, i shouldnt

reply