Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: StyriaTrading on May 19, 2021, 04:16:54 PM



Title: Bitcoin Core help / Deletet Path warning
Post by: StyriaTrading on May 19, 2021, 04:16:54 PM
I created a wallet at a customized path after Bitcoin Core installation. Then I decided to delete this folder manually and to create a wallet at the standard path.

Now I am getting warning messages (see picture) everytime I am starting Bitcoin Core regarding this deleted, customized path.

How can I get rid of them?

https://ibb.co/3BwQkNj


Title: Re: Bitcoin Core help / Deletet Path warning
Post by: BitMaxz on May 19, 2021, 05:51:13 PM
That's the error if you already deleted the existing path including the wallet.dat file.

To solve this put the folder back including the wallet file or if you want it to another path you can use -wallet=(Path)

Here's the sample

Code:
C:> bitcoin-qt -wallet=c:\Users\ZZZ\Documents\wallet1.dat

Only if you have a backup wallet.dat file if you don't have a wallet.dat file then try this one below

Use this command:

Code:
$ bitcoin-wallet -wallet=wallet.dat create

And this
Code:
Then start the bitcoin-core by specifying the wallets, for instance:

$ bitcoind -server -walletdir=/home/netsamir/.bitcoin/wallets/wallet.dat
Source: https://bitcoin.stackexchange.com/questions/24383/how-can-i-create-a-new-wallet-on-bitcoin-core

Let me know if this one works.


Title: Re: Bitcoin Core help / Deletet Path warning
Post by: NotATether on May 19, 2021, 07:22:32 PM
You need to open your settings.json file and remove the offending path from the wallet key.

Erasing the settings file with just brackets remaining {} will also work but this will also wipe the rest of your settings.


Title: Re: Bitcoin Core help / Deletet Path warning
Post by: HCP on May 20, 2021, 12:34:30 AM
Bitcoin Core defaults to opening the last wallet that you had open when you shut it down. If you shut down Bitcoin Core (without explicitly closing the wallet file first, using "File -> Close Wallet") and then subsequently deleted the wallet file, then Bitcoin Core will be attempting to automatically re-open a (now) non-existant file. :-\

If NotATether's solution doesn't work, also make sure that there isn't a "wallet=" line in the bitcoin.conf file... although, I concur with NotATether that the most likely culprit will be the "wallet" value in your settings.json file (which should be located in your Bitcoin Core datadir)

If you want to prevent this from happening again in the future... whenever you are planning to delete a wallet.dat file... make sure that you use the "File -> Close Wallet" option in Bitcoin Core to make sure the wallet file has been properly "closed" before you shutdown Bitcoin Core... Bitcoin Core will then remove it from the settings.json record and will not attempt to re-open the wallet when the application is re-started.


Title: Re: Bitcoin Core help / Deletet Path warning
Post by: NotATether on May 20, 2021, 04:44:36 AM
If NotATether's solution doesn't work, also make sure that there isn't a "wallet=" line in the bitcoin.conf file... although, I concur with NotATether that the most likely culprit will be the "wallet" value in your settings.json file (which should be located in your Bitcoin Core datadir)

There shouldn't be a wallet folder in the bitcoin.conf, as this is strictly a Bitcoin QT problem (bitcoind doesn't does not use the settings.json AFAIK).


Title: Re: Bitcoin Core help / Deletet Path warning
Post by: StyriaTrading on May 20, 2021, 07:30:28 PM
You need to open your settings.json file and remove the offending path from the wallet key.

Erasing the settings file with just brackets remaining {} will also work but this will also wipe the rest of your settings.

Thank you all - this one solved it in seconds :)