Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Wallet State Manager #19232

Open
SlightlyNoobish opened this issue Feb 4, 2025 · 2 comments
Open

[Bug] Wallet State Manager #19232

SlightlyNoobish opened this issue Feb 4, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@SlightlyNoobish
Copy link

What happened?

What happened?

Keep getting spammed in logs with the same error over and over

if you watch the gui, what happens, during the error, the wallet sync checkmark dissapears as it errors

Image

overall, this desynch is causing about 2% loss on mining

Image

Traceback (most recent call last):
File "chia\wallet\wallet_state_manager.py", line 1900, in _add_coin_states
File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0xc048bca36a8bd10ff6fc005b16c4c93dc2519cbbc564245126f9f419d5ecf7d1', 'height': 1523612}
2025-02-04T14:13:00.369 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 107dfe65d3596f33f1844b91bf9f3ab1f41ac6192cacce96d794408ba2499198, puzzle_hash: b9c1553c41b7afa01c93f8266f661205ea4887d5d534627167d505a77f1ced19, amount: 1337000 }, spent_height: None, created_height: Some(1534723) }, error: Was not able to obtain solution {'coin_name': '0x107dfe65d3596f33f1844b91bf9f3ab1f41ac6192cacce96d794408ba2499198', 'height': 1534723}

Version

2.5,0

What platform are you using?

Windows

What ui mode are you using?

GUI

Relevant log output

2025-02-04T14:13:00.313 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 3ff07eb358e8255a65c30a2dce0e5fbb0000000000000000000000000015f337, puzzle_hash: f38004f0a8af313c1128b23422d0169ba24b35cfe8dc0fce786ed7374dd7c803, amount: 250028801001 }, spent_height: Some(1523539), created_height: Some(1438521) }, error: Was not able to obtain solution {'coin_name': '0x0dd36f9c9b0b28526161026f2126993f83fdc15f3b025442a07bc2ad35f8bcdf', 'height': 1523539}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1900, in _add_coin_states
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0x0dd36f9c9b0b28526161026f2126993f83fdc15f3b025442a07bc2ad35f8bcdf', 'height': 1523539}
2025-02-04T14:13:00.352 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 99833d971724618bb4510b399fca63aea64d1ddfcc88e96eb5ac9d9b9e502552, puzzle_hash: 084912aad41d534d49ee6f3e57ccaa291747cf0824e7f27a377b83e6248d821c, amount: 100102774250 }, spent_height: Some(1523612), created_height: Some(1200673) }, error: Was not able to obtain solution {'coin_name': '0xc048bca36a8bd10ff6fc005b16c4c93dc2519cbbc564245126f9f419d5ecf7d1', 'height': 1523612}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1900, in _add_coin_states
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0xc048bca36a8bd10ff6fc005b16c4c93dc2519cbbc564245126f9f419d5ecf7d1', 'height': 1523612}
2025-02-04T14:13:00.369 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 107dfe65d3596f33f1844b91bf9f3ab1f41ac6192cacce96d794408ba2499198, puzzle_hash: b9c1553c41b7afa01c93f8266f661205ea4887d5d534627167d505a77f1ced19, amount: 1337000 }, spent_height: None, created_height: Some(1534723) }, error: Was not able to obtain solution {'coin_name': '0x107dfe65d3596f33f1844b91bf9f3ab1f41ac6192cacce96d794408ba2499198', 'height': 1534723}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1757, in _add_coin_states
  File "chia\wallet\wallet_state_manager.py", line 804, in determine_coin_type
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0x107dfe65d3596f33f1844b91bf9f3ab1f41ac6192cacce96d794408ba2499198', 'height': 1534723}
2025-02-04T14:13:00.385 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 795b341c504bfa294baa509adbe56c167896961555860f6bef0ea0606442939b, puzzle_hash: 4bb5131ecd3ed1a00f07910dcf27c5228cde6b704f2dd0cde2a7b03fd19f61a8, amount: 2000 }, spent_height: None, created_height: Some(1662431) }, error: Was not able to obtain solution {'coin_name': '0x795b341c504bfa294baa509adbe56c167896961555860f6bef0ea0606442939b', 'height': 1662431}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1757, in _add_coin_states
  File "chia\wallet\wallet_state_manager.py", line 804, in determine_coin_type
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0x795b341c504bfa294baa509adbe56c167896961555860f6bef0ea0606442939b', 'height': 1662431}
2025-02-04T14:13:00.401 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: e0d07b3d07cc8c0a60b217a560da5c7e10b727564541cafd62bd879588e48d92, puzzle_hash: 5fd14842bf9c2130b2c100d98becc7fa1858040739127c401bf16c43a950e6f4, amount: 1000 }, spent_height: None, created_height: Some(2030282) }, error: Was not able to obtain solution {'coin_name': '0xe0d07b3d07cc8c0a60b217a560da5c7e10b727564541cafd62bd879588e48d92', 'height': 2030282}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1757, in _add_coin_states
  File "chia\wallet\wallet_state_manager.py", line 804, in determine_coin_type
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0xe0d07b3d07cc8c0a60b217a560da5c7e10b727564541cafd62bd879588e48d92', 'height': 2030282}
2025-02-04T14:13:00.421 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 3ff07eb358e8255a65c30a2dce0e5fbb000000000000000000000000001ca32c, puzzle_hash: f38004f0a8af313c1128b23422d0169ba24b35cfe8dc0fce786ed7374dd7c803, amount: 250000000000 }, spent_height: Some(2126619), created_height: Some(1876784) }, error: Was not able to obtain solution {'coin_name': '0x948fe98f2db057b20d65bcf381a6c467c7b60452d4cd84d8d090d0c1966a6c0b', 'height': 2126619}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1900, in _add_coin_states
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0x948fe98f2db057b20d65bcf381a6c467c7b60452d4cd84d8d090d0c1966a6c0b', 'height': 2126619}
2025-02-04T14:13:00.443 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 7c2017426a2465ee23f6ad22210c95e1ac538d0446d8297253fa5de8f5a75f67, puzzle_hash: 084912aad41d534d49ee6f3e57ccaa291747cf0824e7f27a377b83e6248d821c, amount: 101128608712 }, spent_height: Some(2126674), created_height: Some(2116242) }, error: Was not able to obtain solution {'coin_name': '0xef19073bc67213acc148dc7824d0d6f7eab33eaa6927f8997a1c9c0c0ac0fb25', 'height': 2126674}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1900, in _add_coin_states
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0xef19073bc67213acc148dc7824d0d6f7eab33eaa6927f8997a1c9c0c0ac0fb25', 'height': 2126674}
2025-02-04T14:13:00.463 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: ef19073bc67213acc148dc7824d0d6f7eab33eaa6927f8997a1c9c0c0ac0fb25, puzzle_hash: 8e09a33780095cf3a370dfc99cfa76bcbf0e99d73a40a19b0472f01f51e219e3, amount: 69724588245 }, spent_height: Some(2126693), created_height: Some(2126674) }, error: Was not able to obtain solution {'coin_name': '0xfb67dab3ffea796f16d0e53fee6ddf352f77ff0329e5f09307bd6c286b85f904', 'height': 2126693}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1900, in _add_coin_states
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0xfb67dab3ffea796f16d0e53fee6ddf352f77ff0329e5f09307bd6c286b85f904', 'height': 2126693}
2025-02-04T14:13:00.480 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 1c0c4f0e0460bb6a430a6b55972b47767727cbce720b63dda52d4bdb647b1e87, puzzle_hash: 4708db7a5004f8f269cd9352e7d2ec65e8b423eeca89a63d128bcdd4b8f0ebe7, amount: 1337000 }, spent_height: None, created_height: Some(2314299) }, error: Was not able to obtain solution {'coin_name': '0x1c0c4f0e0460bb6a430a6b55972b47767727cbce720b63dda52d4bdb647b1e87', 'height': 2314299}
Traceback (most recent call last):
  File "chia\wallet\wallet_state_manager.py", line 1757, in _add_coin_states
  File "chia\wallet\wallet_state_manager.py", line 804, in determine_coin_type
  File "chia\wallet\util\wallet_sync_utils.py", line 348, in fetch_coin_spend_for_coin_state
  File "chia\wallet\util\wallet_sync_utils.py", line 334, in fetch_coin_spend
chia.wallet.util.wallet_sync_utils.PeerRequestException: Was not able to obtain solution {'coin_name': '0x1c0c4f0e0460bb6a430a6b55972b47767727cbce720b63dda52d4bdb647b1e87', 'height': 2314299}
2025-02-04T14:13:00.496 2.5.0 wallet chia.wallet.wallet_state_manager: ERROR    Failed to add coin_state: CoinState { coin: Coin { parent_coin_info: 86948c1ad3f79181069869e5d9b6a44e9d6e75bd1e9cde6a6dfffa41f41e796a, puzzle_hash: 9e42c516cb7677ae290196131b53003f8f9e74abc3334b7b115a1ced3a62ecf3, amount: 1000 }, spent_height: None, created_height: Some(2321524) }, error: Was not able to obtain solution {'coin_name': '0x86948c1ad3f79181069869e5d9b6a44e9d6e75bd1e9cde6a6dfffa41f41e796a', 'height': 2321524}
Traceback (most recent call last):
@SlightlyNoobish SlightlyNoobish added the bug Something isn't working label Feb 4, 2025
@BrandtH22
Copy link
Contributor

Hey @SlightlyNoobish , last time we were working through this issue we asked for you to perform a full resync and it was not clear if that was performed: #18653

Can you:

  • stop chia
  • reboot the device
  • rename the config file at ~/.chia/mainnet/config/config.yaml
  • rename the wallet DBs at ~/.chia/mainnet/wallet/db/ (I usually just add an archive folder and move all files into their)
  • start chia and let the wallet sync fully

This should help us resolve the failed to add coin state errors so long as your full nodes db is not missing the coin info. If the coin state errors due persist then we will want to look into using a db snapshot and replace the current db you are using.

As for the failed/stale/missing partials they might be related to the coin state issues if that specific coin is the plotNFT coin so let's resolve the wallet issues first then we can dive more into the partials issues.

As a reminder we can generally provide more timely and thorough support in our discord server (https://discord.gg/chia)

@SlightlyNoobish
Copy link
Author

SlightlyNoobish commented Feb 6, 2025

100% did that. I fully deleted the dbs and had it all re-sync.
Last time the issue was harvester and the errors were different. I am trying to find the chia\wallet\wallet_state_manager.py files. Did a search on the entire drive and wasn't able to find them.

I wanted to see what's in these lines? line 1900, line 348, line 334

it's really weird behaviour, what happens is randomly. entire chia ui freezes and then catches up really quickly, over and over again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants