decred / dcrdex

The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
Other
187 stars 100 forks source link

BTC/LTC Wallet Recovery not working on WIndows #3055

Open bochinchero opened 3 weeks ago

bochinchero commented 3 weeks ago

See logs - this was on Bisonw-desktop 1.0.0

2024-11-01 13:38:08.522 [ERR] WEB: error recovering btc wallet: failed to move wallet data to backup folder: unable to move wallet data: mkdir C:\Users\user\AppData\Local\Dexc\mainnet\assetdb-backup\btc\mainnet\2024-11-01T13:38:08: The filename, directory name, or volume label syntax is incorrect.
2024-11-01 13:38:12.864 [ERR] WEB: no wallet for 0 -> btc
dev-warrior777 commented 3 weeks ago

@bochinchero Thanks for posting the issue. Your query would be best dealt with by the support team.

Please see the link below to our dedicated support line:

Please do not click that @bochinchero .. although I doubt you would ;-) I will let you report it!

dev-warrior777 commented 3 weeks ago

See logs - this was on Bisonw-desktop 1.0.0

2024-11-01 13:38:08.522 [ERR] WEB: error recovering btc wallet: failed to move wallet data to backup folder: unable to move wallet data: mkdir C:\Users\user\AppData\Local\Dexc\mainnet\assetdb-backup\btc\mainnet\2024-11-01T13:38:08: The filename, directory name, or volume label syntax is incorrect.
2024-11-01 13:38:12.864 [ERR] WEB: no wallet for 0 -> btc

Hi, can you tell me the steps you took to get to recovery please. The full log might be helpful also. Thanks!

bochinchero commented 3 weeks ago

@dev-warrior777

There were no issues with the wallet before then - I just pressed the Recover button on the wallet settings dialog which should make a backup and reinitialize it (see example below - this was after I intentionally replaced the wallet database with a blank text file).

wallets-settings-recover

I believe the error is because it's trying to create a folder with colons in the name: 2024-11-01T13:38:08: which isn't a valid path in windows.

dev-warrior777 commented 3 weeks ago

Thanks for the extra info .. I will take a look first on Linux (no windows setup rn) to see if the command is generally working.

dev-warrior777 commented 3 weeks ago

To be clear:

  1. You replaced this? image
  2. You did the replacement when bisonw was "live" or you stopped bisonw .. replaced wallet.db with a blank text file then restarted?

The folders should be similar in Windows

Thanks!

bochinchero commented 2 weeks ago

@dev-warrior777 the error recovering btc wallet: failed to move wallet data to backup folder error occured before I replaced anything - basically the repro steps are:

  1. go to BTC/LTC wallet
  2. open wallet settings
  3. press recover.

It works in linux but not in windows.

dev-warrior777 commented 2 weeks ago

Thanks for reply .. I think fixed now in PR #3056