Bitcoin Forum
October 03, 2025, 10:13:01 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Bitcoin RPC loadwallet Error - Wallet file verification failed on: September 07, 2022, 04:00:36 PM
Can you check the permissions on the wallet file and post the here (ls -l in the parent directory where the wallet file is and then show us the first 10 characters that should look something like -rwxrw----) just in case it's that, you could also try doing that with the parent folder if you made it yourself to check bitcoin core has the rights to see files inside the folder.
Of course I'm sending right away

Wallet file ls -l:

total 1876
drwx------ 2 systemd-coredump systemd-coredump   4096 Sep  7 16:23 database
-rw------- 1 systemd-coredump systemd-coredump      0 Sep  7 14:55 db.log
-rw------- 1 systemd-coredump systemd-coredump 958464 Sep  7 15:50 hey.dat
-rw------- 1 systemd-coredump systemd-coredump 958464 Sep  7 17:56 wallet.dat


Parent bitcoin file ls -l:

drwx------ 2 systemd-coredump systemd-coredump     4096 Sep  7 14:07 ariswallet
-rw------- 1 systemd-coredump systemd-coredump       31 Sep  7 10:54 banlist.json
-rw------- 1 systemd-coredump systemd-coredump        2 Sep  7 13:33 bitcoind.pid
drwx------ 3 systemd-coredump systemd-coredump   184320 Sep  7 17:58 blocks
drwx------ 2 systemd-coredump systemd-coredump    90112 Sep  7 17:57 chainstate
-rw------- 1 systemd-coredump systemd-coredump 62182892 Sep  7 17:58 debug.log
-rw------- 1 systemd-coredump systemd-coredump   247985 Sep  7 13:32 fee_estimates.dat
drwx------ 3 systemd-coredump systemd-coredump     4096 Sep  7 15:50 lastwallet
-rw------- 1 systemd-coredump systemd-coredump       18 Sep  7 13:32 mempool.dat
drwx--x--x 2 systemd-coredump systemd-coredump     4096 Sep  7 13:33 nudewallet
-rw------- 1 systemd-coredump systemd-coredump   821890 Sep  7 17:48 peers.dat
-rw------- 1 systemd-coredump systemd-coredump       47 Sep  7 14:55 settings.json
drwx--x--x 2 systemd-coredump systemd-coredump     4096 Sep  7 13:33 testwallet
2  Bitcoin / Bitcoin Technical Support / Re: Bitcoin RPC loadwallet Error - Wallet file verification failed on: September 07, 2022, 02:46:03 PM
Response body: Wallet file verification failed. Failed to load database path '/lastwallet/hey.dat'. Path does not exist.

The parameter has to be either a folder, either a filename (not a file path!). You've still put a path there, of course it's not working.
Maybe nc50lc's answer makes it clearer?

Sorry, same error.

I try with all kinds of link structures / I get an error whether I put it or not. I tried all link structures.
3  Bitcoin / Bitcoin Technical Support / Re: Bitcoin RPC loadwallet Error - Wallet file verification failed on: September 07, 2022, 01:53:25 PM
how can i bypass this error

but certainly not the full path.
Of course, this may mean some adaptations in filenames or paths.


All the examples on the net seem to be loading wallet.dat without a path. Is it a problem for you to put into the datadir the wallet(s) you're planning to load?

I get file validation error when directory name and folder path are correct

If I mistype the directory name I get another error because, Wallet file verification failed.

Response body: Wallet file verification failed. Failed to load database path '/lastwallet/hey.dat'. Path does not exist.
4  Bitcoin / Bitcoin Technical Support / Bitcoin RPC loadwallet Error - Wallet file verification failed on: September 07, 2022, 12:41:54 PM
Hi!

I am using my own bitcoin node server. I get the following error while making load wallet with RPC.


Request body:

{"jsonrpc": "1.0", "id": "curltest", "method": "loadwallet", "params": ["/home/bitcoin/.bitcoin/<mywalletname>/backup.dat"]}


Response body:

{
    "result": null,
    "error": {
        "code": -4,
        "message": "Wallet file verification failed. Invalid -wallet path '/home/bitcoin/.bitcoin/<mywalletname>/backup.dat'. -wallet path should point to a directory where wallet.dat and database/log.HuhHuhHuh? files can be stored, a location where such a directory could be created, or (for backwards compatibility) the name of an existing data file in -walletdir (\"/home/bitcoin/.bitcoin\")"
    },
    "id": "curltest"
}

how can i bypass this error
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!