Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.03k forks source link

[BUG] Connecting to wallet circle #8801

Closed MinerKrich closed 3 years ago

MinerKrich commented 3 years ago

I have a problem: Chia 1.2.9 starts up, but it doesn't work, what should I do? I am attaching a screenshot. bug Chia 1 2 9

ASPANSolutions commented 3 years ago

Wait patiently the "connecting to wallet" can take a while but it does eventually load up.

loppefaaret commented 3 years ago

As mentioned above, it can take a whole to come up - it has to load up the databases, and initialise them. If you still have this after 20 minutes, it is likely that something under the hood is not working as intended. if you can find the log located under your users folder ~\.chia\mainnet\log\debug.log there might be some ERROR reported that can help shed some light on the issue ?

you can also check if windows defender did some protection on anything related to chia ("chia" in that path name) some people need to reinstall, some have a corrupted database that needs to be manually removed. but if you could check debug.log that should be reported there if so.

Septennial5 commented 3 years ago

I also have this never ending circle loader, it was all fine prior to this 1.2.9 version. Now even if i run previous versions i get the same thing.

MinerKrich commented 3 years ago

Here's what's in the debug.log file:

wallet chia.wallet.wallet_node: ERROR Loop exception in sync Was not able to add blocks 982676-982708. Traceback (most recent call last): File "chia \ wallet \ wallet_node.py", line 608, in sync_job File "chia \ wallet \ wallet_node.py", line 668, in _sync File "chia \ wallet \ wallet_node.py", line 565, in batch_sync_to_peak RuntimeError: Was not able to add blocks 982676-982708

Septennial5 commented 3 years ago

2021-10-12T17:01:00.844 full_node asyncio : ERROR Task exception was never retrieved future: <Task finished name='Task-5' coro=<FullNodePeers.close() done, defined at chia\server\node_discovery.py:534> exception=AttributeError("'FullNodePeers' object has no attribute 'connection'")> Traceback (most recent call last): File "chia\server\node_discovery.py", line 535, in close File "chia\server\node_discovery.py", line 120, in _close_common AttributeError: 'FullNodePeers' object has no attribute 'connection' 2021-10-12T17:01:53.472 full_node chia.full_node.full_node: WARNING Block validation time: 3.87 seconds, cost: 189469588, percent full: 1.722%

Septennial5 commented 3 years ago

After uninstalling Chia and deleting everything from "mainnet" folder - it worked. I backed up "db" folder but forgot to do the same with "wallet" so now i will be stuck on syncing it for like forever.

loppefaaret commented 3 years ago

@MinerKrich are you still having this issue ? perhaps you need to try and move out the wallet DB: WINDOWS WALLET DATABASE RESET

Close down the Chia app, and open up a PowerShell window, and execute the below command:

mv ~\.chia\mainnet\wallet\db\block* ~\Desktop\

Then try opening up the Chia app again. If it worked, you can remove the files we put on the Desktop. Note that if you got new plots that points to a plotNFT, the wallet needs to sync pass the latest edit before it farms correctly!

MinerKrich commented 3 years ago

Thanks. Already solved the problem. Made changes to config.yaml, after that it worked

loppefaaret commented 3 years ago

Issue solved, closing, @MinerKrich could you tell us what exactly you changed that made it work ?