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

chain out of sync #1446

Open
fatminer opened this issue Feb 16, 2025 · 12 comments
Open

chain out of sync #1446

fatminer opened this issue Feb 16, 2025 · 12 comments

Comments

@fatminer
Copy link

fatminer commented Feb 16, 2025

I didn't update my nodes when the recent hard fork took place.
Because I was following another forked chain, I started from the snapshot, but the synchronization of the differences does not finish forever.

2025-02-15T07:53:15.847Z
INFO [02-15|07:53:15.847] Imported new chain segment number=67,943,548 hash=7e6cf2..85f1f6 blocks=1 txs=75 mgas=11.977 elapsed=14.278s mgasps=0.839 age=1h9m49s snapdiffs=6.27MiB triedirty=78.66MiB
2025-02-15T07:53:17.054Z
INFO [02-15|07:53:17.054] Whitelisting checkpoint deferred err="chain out of sync"
2025-02-15T07:53:24.606Z
INFO [02-15|07:53:24.606] Whitelisting milestone deferred err="chain out of sync"

Is this because the Polygon network is broken?
It seems that many nodes are out of sync.

I can't find an answer even if I ask on Discord.
It would be helpful if you could show me a clear solution.

@valamidev
Copy link

valamidev commented Feb 17, 2025

Same issue here. Sync via the open network is extremely slow.

@valamidev
Copy link

With Bor v2.0.0 sync got significant faster.

@fatminer
Copy link
Author

I updated to bor v2.0.0, but the situation did not change.
It is recommended to change the DB engine, but this is not possible as it is necessary to utilize the leveldb data that has been synchronized so far.

Feb 18 06:43:04 ip-10-105-0-4 docker-compose[55029]: #033[36mbor             |#033[0m INFO [02-18|06:43:04.912] Whitelisting milestone deferred          err="chain out of sync"
Feb 18 06:43:16 ip-10-105-0-4 docker-compose[55029]: #033[36mbor             |#033[0m INFO [02-18|06:43:16.913] Whitelisting milestone deferred          err="chain out of sync"
Feb 18 06:43:16 ip-10-105-0-4 docker-compose[55029]: #033[36mbor             |#033[0m INFO [02-18|06:43:16.913] Whitelisting checkpoint deferred         err="chain out of sync"

Also, since official snapshots have not been released, you will need to use the ones provided by the servers and parties.
I don't think it's a good idea to trust a third party.

@valamidev
Copy link

I updated to bor v2.0.0, but the situation did not change. It is recommended to change the DB engine, but this is not possible as it is necessary to utilize the leveldb data that has been synchronized so far.

Feb 18 06:43:04 ip-10-105-0-4 docker-compose[55029]: #033[36mbor             |#033[0m INFO [02-18|06:43:04.912] Whitelisting milestone deferred          err="chain out of sync"
Feb 18 06:43:16 ip-10-105-0-4 docker-compose[55029]: #033[36mbor             |#033[0m INFO [02-18|06:43:16.913] Whitelisting milestone deferred          err="chain out of sync"
Feb 18 06:43:16 ip-10-105-0-4 docker-compose[55029]: #033[36mbor             |#033[0m INFO [02-18|06:43:16.913] Whitelisting checkpoint deferred         err="chain out of sync"

Also, since official snapshots have not been released, you will need to use the ones provided by the servers and parties. I don't think it's a good idea to trust a third party.

There is no known risk to using 3rd party snapshots, one of the core feature of a blockchain node is to verify the integrity and state with the chain(other peers).

@wdsse
Copy link

wdsse commented Feb 18, 2025

I have the same problem, is there a solution for this problem?
After restarting, synchronization works, but after a while it stops synchronizing again

@fatminer
Copy link
Author

fatminer commented Feb 19, 2025

As far as I'm experimenting.

・Uses bor 2.0.0 / heimdall 1.2.0
・Make db.engine pebble
・Extract the pebble snapshot

With the above steps, synchronization is achieved.
However, I think the problem is that the official company does not provide snapshots.
And this issue has been a hot topic in the Discord community.

Don't Trust. Verify.

@shora0
Copy link

shora0 commented Feb 20, 2025

Why is the snapshot I downloaded from https://publicnode.com/snapshots#polygon unable to recognize the snapshot’s blocks and needs to be resynchronized?

config.toml is set:
“db.engine” = “pebble”
"state.scheme" = "path"

It does not seem to pick up this setting in the config toml.

@marcello33
Copy link
Contributor

Hey @shora0 have you verified with other snapshots? Maybe that's corrupted?
As per @fatminer comment, with those steps it should work.
We are no longer providing "official" snapshots

@shora0
Copy link

shora0 commented Feb 21, 2025

Only the base snapshot of https://publicnode.com/snapshots#polygon can be downloaded and then resynced to work properly.

@shora0
Copy link

shora0 commented Feb 21, 2025

But it also needs to be resynchronized to generate the Pebble data. Pebble snapshots for sections using https://publicnode.com/snapshots#polygon are not available. When importing, the error "The ancient link segment has been extracted, please set --datadir.ancient to the correct path" appears, and bor cannot run normally.

@johnnyji-dev
Copy link

I have a same issue.
Already update latest version (bor 2.0.0 & hemidal 1.2.0).

After syncing bor block, it stopped syncing block.
The log message of "./bor server .." is like below
... INFO [02-21|02:44:09.394] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:44:21.395] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:44:33.394] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:44:45.394] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:44:57.394] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:45:09.395] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:45:21.395] Whitelisting milestone deferred err="chain out of sync" INFO [02-21|02:45:33.394] Whitelisting milestone deferred err="chain out of sync" ...

BTW, if kill the 'bor' process and then restart the process, it can sync the block.
But after syncing, it stop syncing again.

@marcello33
Copy link
Contributor

@manav2401 is this something you're aware of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants