raspiblitz: [v1.9.0] Data is not in recognized format (wallet.dat)

After upgrading from v1.8 with existing data, provisioning was successful. Now there are problems with syncing.

Reading other issues it is similar to others but no issues with disk space. Running on a amd64 VM. I don’t think that is relevant here but to be sure.

debug log shows: Error: Failed to load database path '/mnt/hdd/bitcoin/wallet.dat'. Data is not in recognized format.

-rw------- 1 bitcoin bitcoin 12K Jun 10 12:41 /mnt/hdd/bitcoin/wallet.dat Blockchain Progress : 179 restarts Lightning Progress : prepare sync

Info screen: both bitcoin and LND Not Started | Not Ready Yet | No Data

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 22 (5 by maintainers)

Most upvoted comments

I was able to resolve this issue by modifying the bitcoin.conf and moving the existing wallet.dat. Previously the setting was:

main.wallet=wallet.dat

I commented this line out and then moved the wallet.dat to wallet.dat.backup

And then ran: sudo systemctl restart bitcoind

After restarting bitcoind regenerated the wallet.dat. If I left the file in place and only commented out that setting, it would still try to use the existing wallet.dat and fail. If I left the configuration in place but moved the file, it seems like bitcoind expected to find the wallet.dat file and failed.

Not sure about the others, but after upgrading to the latest release everything works as expected. No more issues.

I commented this line out and then moved the wallet.dat to wallet.dat.backup

Syncing now.

Edit: Synced. On the ‘INFO’ there was an error of missing /mnt/hdd/bitcoin/debug.log. After creating it the error was gone. In the WebGUI I could only see the settings page. Home and Apps gave a circle turning.

After a reboot it is OK.

@openoms Doesn’t work for me. Regardless of

main.walletdir=/mnt/hdd/bitcoin

set in bitcoin.conf or not, the error is

Error: Failed to load database path '/mnt/hdd/bitcoin'. Data is not in recognized format.

i case the is no file named wallet.dat because of sudo mv /mnt/hdd/bitcoin/wallet.dat /mnt/hdd/bitcoin/wallet.dat.backup. And it’s

Error: Failed to load database path '/mnt/hdd/bitcoin/wallet.dat'. Data is not in recognized format.

in case wallet.dat is still in place.

When I do that my sats are lost. Don’t like that. Can I safely downgrade to v1.8.0 if /mnt/hdd/raspiblitz.conf is v1.9.0?