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] wallet is not syncning #16312

Closed nicezic closed 1 year ago

nicezic commented 1 year ago

What happened?

full_node is syncing, well.

However wallet is not sync.

Wallet height: 4219853
Sync status: Not synced

Connections:
Type      IP                                      Ports       NodeID      Last Connect      MiB Up|Dwn
FULL_NODE 127.0.0.1                                8444/8444  06e5c2bc... Sep 12 19:45:20      0.4|32.7
                                                  -Height: No Info    -Hash: No Info    -Trusted: True

after deleted db dir.

still same. stucked here.

-rw-r--r-- 1 chia chia 8486912  9월 12 19:46 blockchain_wallet_v2_r1_mainnet_1149317241.sqlite
-rw-r--r-- 1 chia chia   32768  9월 12 19:46 blockchain_wallet_v2_r1_mainnet_1149317241.sqlite-shm
-rw-r--r-- 1 chia chia 6023472  9월 12 19:46 blockchain_wallet_v2_r1_mainnet_1149317241.sqlite-wal
-rw-rw-r-- 1 chia chia      10  9월 12 18:55 last_used_fingerprint

Version

chia 2.0.1

What platform are you using?

Linux

What ui mode are you using?

CLI

Relevant log output

debug.log:2023-09-12T17:55:59.465 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:00:24.787 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:01:30.444 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
debug.log:2023-09-12T18:01:33.627 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:04:39.839 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:04:49.367 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
debug.log:2023-09-12T18:04:49.591 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:05:34.454 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:05:40.028 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
debug.log:2023-09-12T18:05:40.727 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:24:03.082 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:24:34.907 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
debug.log:2023-09-12T18:24:38.261 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:25:37.469 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:25:49.207 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
debug.log:2023-09-12T18:25:49.915 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:44:32.498 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:44:38.075 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
debug.log:2023-09-12T18:44:38.325 wallet wallet_server              : INFO     Connected with full_node PeerInfo(_ip=IPv4Address('127.0.0.1'), _port=8444)
debug.log:2023-09-12T18:47:19.396 wallet wallet_server              : INFO     Connection closed: 127.0.0.1, node id: 06e5c2bce50b5be52c5e15fa75f95e560695ec5e0814345f0c8bb3a78893e380
debug.log:2023-09-12T18:55:57.867 wallet wallet_server              : INFO     Service capabilities: [(1, '1'), (2, '1'), (3, '1')]
wjblanke commented 1 year ago

Can you send us the DEBUG debug.log file? There isn't enough information in the logs for us to see a problem

nicezic commented 1 year ago

@wjblanke I uploaded the log file.

chia@chia-farmer:~/.chia/mainnet/log$ chia start farmer
Daemon not started yet
Starting daemon
chia_harvester: started
chia_farmer: started
chia_full_node: started
chia_wallet: started
chia@chia-farmer:~/.chia/mainnet/log$ chia wallet show
Wallet height: 4228115
Sync status: Not synced

Connections:
Type      IP                                      Ports       NodeID      Last Connect      MiB Up|Dwn
FULL_NODE 127.0.0.1                                8444/8444  06e5c2bc... Sep 14 14:36:35      0.0|0.0
                                                  -Height: No Info    -Hash: No Info    -Trusted: True
-rw-r--r-- 1 chia chia 8507392  9월 14 14:28 blockchain_wallet_v2_r1_mainnet_1149317241.sqlite
-rw-r--r-- 1 chia chia   32768  9월 14 14:37 blockchain_wallet_v2_r1_mainnet_1149317241.sqlite-shm
-rw-r--r-- 1 chia chia  119512  9월 14 14:37 blockchain_wallet_v2_r1_mainnet_1149317241.sqlite-wal
-rw-rw-r-- 1 chia chia      10  9월 14 14:36 last_used_fingerprint
nicezic commented 1 year ago

I deleted a whole ~/.chia dir, and reinstalled. Now it's sycning.

nicezic commented 1 year ago

not working again

BrandtH22 commented 1 year ago

Hey @nicezic , when the chia client is in farming mode the wallet will not be fully in sync until the full node is fully synced. Deleting the .chia directory would have also deleted the blockchain db which can take a few days to sync.

To speed up sync you can use the blockchain db torrent from here: https://www.chia.net/downloads/

If you are just wanting to sync a wallet you can do so in wallet-only mode :+1:

github-actions[bot] commented 1 year ago

This issue has not been updated in 14 days and is now flagged as stale. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it from auto closing in 7 days.

github-actions[bot] commented 1 year ago

This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.