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

sync stuck at 99% #641

Open
dreacot opened this issue Sep 19, 2024 · 4 comments
Open

sync stuck at 99% #641

dreacot opened this issue Sep 19, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@dreacot
Copy link
Member

dreacot commented Sep 19, 2024

got this complaint from a user, so far been unable to reproduce

see the logs below

2024-09-19 15:51:03.462 [INF] WLLT: Upgrading database from version 1 to 26
2024-09-19 15:51:04.914 [INF] DCR: Opened wallet
2024-09-19 15:51:07.480 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 15:51:07.482 [INF] DCR: Loaded 0 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:12:47.956 [INF] DCR: Discovering used accounts
2024-09-19 16:13:25.412 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:13:25.413 [INF] DCR: Address manager shutting down
2024-09-19 16:13:25.414 [INF] DCR: Sync fully cancelled.
2024-09-19 16:13:30.274 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:13:30.297 [INF] DCR: Loaded 145 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 15:51:03.462 [INF] WLLT: Upgrading database from version 1 to 26
2024-09-19 16:13:33.605 [INF] DCR: Discovering used accounts
2024-09-19 16:14:19.416 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:14:19.419 [INF] DCR: Address manager shutting down
2024-09-19 15:51:04.914 [INF] DCR: Opened wallet
2024-09-19 15:51:07.480 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:14:47.641 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:14:47.662 [INF] DCR: Loaded 207 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:14:49.806 [INF] DCR: Discovering used accounts
2024-09-19 15:51:07.482 [INF] DCR: Loaded 0 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:12:47.956 [INF] DCR: Discovering used accounts
2024-09-19 16:15:52.550 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:16:26.191 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:13:25.412 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:13:25.413 [INF] DCR: Address manager shutting down
2024-09-19 16:16:26.193 [INF] DCR: Address manager shutting down
2024-09-19 16:16:26.206 [INF] DCR: Sync fully cancelled.
2024-09-19 16:13:25.414 [INF] DCR: Sync fully cancelled.
2024-09-19 16:13:30.274 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:16:33.774 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:16:33.795 [INF] DCR: Loaded 403 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:13:30.297 [INF] DCR: Loaded 145 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:13:33.605 [INF] DCR: Discovering used accounts
2024-09-19 16:16:35.546 [INF] DCR: Discovering used accounts
2024-09-19 16:17:38.849 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:14:19.416 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:18:58.274 [INF] DCR: Account 0 next child indexes: external:0 internal:0
2024-09-19 16:18:58.275 [INF] DCR: Updating DB with discovered addresses...
2024-09-19 16:14:19.435 [INF] DCR: Sync fully cancelled.
2024-09-19 16:14:41.876 [INF] DCR: Opened wallet
2024-09-19 16:18:58.335 [INF] DCR: Upgrading wallet from legacy coin type 20 to SLIP0044 coin type 42
2024-09-19 16:14:47.641 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:14:47.662 [INF] DCR: Loaded 207 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:18:58.343 [INF] DCR: Discovering used accounts
2024-09-19 16:14:49.806 [INF] DCR: Discovering used accounts
2024-09-19 16:15:52.550 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:19:01.773 [INF] DCR: Address manager shutting down
2024-09-19 16:19:01.779 [INF] DCR: Sync fully cancelled.
2024-09-19 16:16:26.191 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:16:26.193 [INF] DCR: Address manager shutting down
2024-09-19 16:20:01.964 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:16:26.206 [INF] DCR: Sync fully cancelled.
2024-09-19 16:16:33.774 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:20:24.375 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:16:33.795 [INF] DCR: Loaded 403 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:16:35.546 [INF] DCR: Discovering used accounts
2024-09-19 16:20:24.383 [INF] DCR: Sync fully cancelled.
2024-09-19 16:17:38.849 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:18:58.274 [INF] DCR: Account 0 next child indexes: external:0 internal:0
2024-09-19 16:21:10.068 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:18:58.275 [INF] DCR: Updating DB with discovered addresses...
2024-09-19 16:18:58.335 [INF] DCR: Upgrading wallet from legacy coin type 20 to SLIP0044 coin type 42
2024-09-19 16:18:58.342 [INF] DCR: Upgraded coin type.
2024-09-19 16:18:58.343 [INF] DCR: Discovering used accounts
2024-09-19 16:21:51.167 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:21:51.168 [INF] DCR: Address manager shutting down
2024-09-19 16:19:01.779 [INF] DCR: Sync fully cancelled.
2024-09-19 16:19:08.217 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:19:08.237 [INF] DCR: Loaded 424 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:22:12.877 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:19:10.654 [INF] DCR: Discovering used accounts
2024-09-19 16:20:01.964 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:22:14.780 [INF] DCR: Discovering used accounts
2024-09-19 16:20:24.375 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:20:24.376 [INF] DCR: Address manager shutting down
2024-09-19 16:25:04.670 [INF] DCR: Sync fully cancelled.
2024-09-19 16:25:10.923 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:20:24.383 [INF] DCR: Sync fully cancelled.
2024-09-19 16:20:59.854 [INF] DCR: Opened wallet
2024-09-19 16:25:13.199 [INF] DCR: Discovering used accounts
2024-09-19 16:21:10.068 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:21:10.089 [INF] DCR: Loaded 489 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:21:13.029 [INF] DCR: Discovering used accounts
2024-09-19 16:21:51.167 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:21:51.168 [INF] DCR: Address manager shutting down
2024-09-19 16:21:51.186 [INF] DCR: Sync fully cancelled.
2024-09-19 16:22:07.634 [INF] DCR: Opened wallet
2024-09-19 16:22:12.877 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:22:12.910 [INF] DCR: Loaded 506 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:22:14.780 [INF] DCR: Discovering used accounts
2024-09-19 16:23:42.179 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:25:04.655 [INF] DCR: Cancelling sync. May take a while for sync to fully cancel.
2024-09-19 16:25:04.
663 [INF] DCR: Address manager shutting down
2024-09-19 16:25:04.670 [INF] DCR: Sync fully cancelled.
2024-09-19 16:25:10.923 [INF] DCR: The wallet has been unlocked without a time limit
2024-09-19 16:25:10.943 [INF] DCR: Loaded 615 addresses from file '/private/var/mobile/Containers/Data/Application/EDADCC7A-D055-476C-8AEA-BBEC513BAE72/Library/Application Support/mainnet/dcr/1/peers.json'
2024-09-19 16:25:13.199 [INF] DCR: Discovering used accounts

iPhone 14

@ukane-philemon
Copy link
Collaborator

2024-09-19 16:19:10.654 [INF] DCR: Discovering used accounts
2024-09-19 16:20:01.964 [INF] DCR: Discovering used addresses for 1 account(s)
2024-09-19 16:22:14.780 [INF] DCR: Discovering used accounts

Turns out address discovery is the reason why the progress bar seems stuck. It's not stuck but the user can't tell the difference btw the different sync stages.

@dreacot
Copy link
Member Author

dreacot commented Sep 20, 2024

yeah, we should break down the progress bar to report on the different sync states

@dreacot dreacot added the enhancement New feature or request label Sep 20, 2024
@dreacot dreacot added this to dev Sep 20, 2024
@JustinBeBoy JustinBeBoy self-assigned this Sep 24, 2024
@dreacot
Copy link
Member Author

dreacot commented Oct 13, 2024

this seems to be an upstream issue

decred/dcrdex#2917, decred/dcrdex#2857 and decred/dcrdex#3000

@dreacot dreacot moved this from 🏗 In progress to ✅ Done in dev Nov 28, 2024
@dreacot
Copy link
Member Author

dreacot commented Feb 10, 2025

should be resolved by decred/dcrwallet#2465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants