chia-blockchain: [BUG] Can't sync wallet-node (Loop exception in sync Was not able to add blocks 1029930-1029962)

Describe the bug Can’t sync a wallet although the blockchain itself is synced. Have tried to delete both DBs - wallet and blockchain, and resynced again. Tried deleting the wallet and importing it back. The wallet is the latest version - 1.2.9

To Reproduce

Steps to reproduce the behavior:

  1. Start a wallet and try to Sync
  2. Go log and see the error
2021-10-25T10:48:11.386 wallet chia.full_node.weight_proof: INFO     validating 2725 sub epochs
2021-10-25T10:48:11.448 wallet chia.wallet.wallet_node    : INFO     Validated, fork point is 1029146
2021-10-25T10:48:11.449 wallet chia.wallet.wallet_node    : INFO     self.sync_event.set()
2021-10-25T10:48:11.470 wallet chia.wallet.wallet_node    : INFO     Have collected 1721 potential peaks
2021-10-25T10:48:11.474 wallet chia.wallet.wallet_node    : INFO     self.sync_event.set()
2021-10-25T10:48:11.475 wallet chia.wallet.wallet_node    : INFO     self.sync_event.set()
2021-10-25T10:48:12.402 full_node chia.full_node.full_node: INFO       Finished signage point 11/64: CC: 8f9d464d079ca17********************* RC: e50ef8b2786fe2************ 
2021-10-25T10:48:12.562 wallet chia.wallet.wallet_node    : INFO     Requesting blocks 1029931-1029963
2021-10-25T10:48:12.958 harvester chia.harvester.harvester: INFO     2 plots were eligible for farming 1205ec2e02... Found 0 proofs. Time: 0.54900 s. Total 280 plots
2021-10-25T10:48:13.167 full_node full_node_server        : INFO     Connection closed: 127.0.0.1, node id: 7fc545f45bf46c441***********
2021-10-25T10:48:13.168 full_node chia.full_node.full_node: INFO     peer disconnected {'host': '127.0.0.1', 'port': 8449}
2021-10-25T10:48:13.167 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 02f8f86aa0c96****
2021-10-25T10:48:14.176 wallet chia.wallet.wallet_node    : ERROR    Error while trying to fetch from peer:Was not able to obtain solution {'coin_name': '0xbd6dd88e84*****a4e925', 'height': 1029933} Traceback (most recent call last):
  File "chia\wallet\wallet_node.py", line 555, in batch_sync_to_peak
  File "chia\wallet\wallet_node.py", line 726, in fetch_blocks_and_validate
  File "chia\wallet\wallet_node.py", line 893, in get_additional_coin_spends
  File "chia\wallet\wallet_node.py", line 876, in fetch_puzzle_solution
ValueError: Was not able to obtain solution {'coin_name': '0xbd6dd88e84af***********', 'height': 1029933}

2021-10-25T10:48:14.177 wallet chia.wallet.wallet_node    : ERROR    Loop exception in sync Was not able to add blocks 1029931-1029963. 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 1029931-1029963

2021-10-25T10:48:14.178 wallet chia.wallet.wallet_node    : INFO     Loop end in sync job
2021-10-25T10:48:14.178 wallet chia.wallet.wallet_node    : INFO     Loop start in sync job
2021-10-25T10:48:14.179 wallet chia.wallet.wallet_node    : INFO     Have collected 1721 potential peaks
2021-10-25T10:48:14.181 wallet chia.wallet.wallet_node    : INFO     No peers to sync to
2021-10-25T10:48:14.182 wallet chia.wallet.wallet_node    : INFO     Loop end in sync job
2021-10-25T10:48:14.182 wallet chia.wallet.wallet_node    : INFO     Loop start in sync job
2021-10-25T10:48:14.183 wallet chia.wallet.wallet_node    : WARNING  bad peak response from peer None
2021-10-25T10:48:14.471 wallet wallet                     : INFO     Reconnecting to peer {'host': '127.0.0.1', 'port': 8444}
2021-10-25T10:48:14.478 wallet wallet_server              : INFO     Connected with full_node {'host': '127.0.0.1', 'port': 8444}

Expected behavior Wallet and blockchain can be synced to the netspace

Desktop

  • OS: Win10
  • CPU: AMD Ryzen 5 2600

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (7 by maintainers)

Most upvoted comments

Essentially it’s a beta/pre-release build from the main branch.

Hey @andriitalkstech it looks from your stack trace that you’re not yet running the latest main branch. You can use the exe installer found here: https://download-chia-net.s3-us-west-2.amazonaws.com/builds/ChiaSetup-1.2.116.exe.

Let us know if that fixes your problem thanks!

Or you can pull main, as it has been merged. Please let us know if this fixes your issue, or if you still have problems.