How to Fix Chia “Connecting to wallet” problem

In this article i will show how to easy fix Chila “Connecting to wallet” problem in Windows.

Sometimes afters unscheduled restart Chia wallet database file can get corrupted, and wallet can’t be opened.

To fix that wee need delete wallet database file.

Fix Chia “Connecting to wallet problem in Windows 10:

  1. Close Chia Wallet

    Close the Chia wallet or exit

  2. Kill Chia process

    Kill all Chia processes from “Task Manager”

  3. Delete Chia wallet database

    Navigate to: C:\Users\YourUserName\.chia\mainnet\db
    Delete all bolockchain* files.
    delete chia wallet database
    Re-open wallet.

That’s it!

Discuss article in ArsTech Forum

   

If you like what you are reading, please:

Buy me a coffeeBuy me a coffee

arstech

32 Comments

  1. Many thanks, this worked insofar as I was able to connect to the GUI and it no longer hangs – however the Wallet section is now saying I have 0XCH when I had a number of XCH previously. Are you certain that deleting these files will have no affect on Wallet holdings? If so please confirm when the CHX will show again?

  2. It didn’t work for me.

    The only thing that has worked for me is to delete the config.yaml, open the program, it asked to open the firewall ports again, it still did not work, close it and reopen the program again, and now it works.

  3. Please change in your solution.
    You deleting the Full node… Not the Wallet DB!
    After that you need a full resyncronisation!

    This is the correct folder!
    C:\Users\~NAME~\.chia\mainnet\wallet\db

  4. Put IPCONFIG/ALL values for into tcp/ipv4 settings . Choose manual and enter those values from ipcofing on your machine

  5. Ok, I think there might be a lot if reasons why it would fail to connect to the wallet or start up or anything. In my case it was saying “Connecting to wallet” and the memory usage would continuously grow past 50GB and so on.

    In my case the c:\Users\username\.chia\mainnet\config\config.yaml file was entirely corrupted. I deleted it. Hoped for the best and it actually started correctly.

    The way to debug it is (this may or may not work for you):
    1. Close all chia processes in task manager
    2. Open a terminal and type the command at step 3 and hit enter
    3. “C:\Users\username\AppData\Local\chia-blockchain\app-1.1.6\chia.exe” stop wallet
    4. Now the chia GUI will start but that’s irrelevant. What’s important is that you can look at the terminal and get a hint of why it is failing. If you can identify an error stacktrace signature then it would be easier. In my case it was saying “yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
    in “C:\Users\username\.chia\mainnet\config\config.yaml”, position 0″. And that was my hint

  6. I found this worked and did not require re-synchronization:
    Navigate to the C:\Users\your_name\.chia\mainnet folder and rename the wallet folder to something else (bwallet say).
    Start Chia. it will still not connect to your wallet. Terminate Chia.
    From Task Manager, stop the 4 start_* processes (start_farmer.exe, start_full_node.exe, start_harvester.exe and start_wallet.exe).
    Delete the newly created wallet folder then change the name of the bwallet folder back to wallet.
    Start Chia.

Leave a Reply