pull down to refresh

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.
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
65 sats \ 1 reply \ @optimism 10h
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
Yes, I've opted for the pruned version. It's probably solved now. The loaded wallet name defaulted to "" somehow.
reply
21 sats \ 0 replies \ @optimism 10h
I think that's because wallet.dat used to be the default back when you could only have 1 wallet per node.
reply
listwallets will give you a name (maybe ["wallet"], I actually never tested this part myself)
and then unloadwallet <walletnamefromlist>
reply
reply
21 sats \ 9 replies \ @optimism 10h
ok try unloadwallet ""
reply
{ }
load wallet.dat now, it's taking some time
reply
42 sats \ 7 replies \ @optimism 10h
yeah it will rescan. looks like that worked.
reply
Ok. My node is still syncing. Is this going to take like very long?
reply
Yes, but it should run with sync.
Tell me you don't run this on a raspberry pi 4 and you have nothing to worry about.
reply
Like until it's synced, or until it has worked through my current blockheight? I mean the wallet to load obviously.
Lol, no it's not on raspberry.
{ "name": "wallet.dat", "warnings": [ "Wallet loaded successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future. Legacy wallets can be migrated to a descriptor wallet with migratewallet." ] }
Wallet completed loading in 682319ms
reply
21 sats \ 0 replies \ @optimism 10h
YAY
reply