Backfilling is not resumed after paused
I'm bootstraping a new LH mainnet instance, I'm noticing that during the backfilling process stops after some time running.
I don't know why it stops (lack of peers, maybe?), but what's worse is that is does not resume until LH restarts. I left it running overnight and it resumed immediately after a restart.
recent log (I don't have last night logs, but it was already stuck at the same distance):
Nov 11 16:02:05.001 INFO Downloading historical blocks est_time: --, distance: 2868897 slots (56 weeks 6 days), service: slot_notifier
Nov 11 16:02:05.001 INFO Synced slot: 5113208, block: 0x51bc…4375, epoch: 159787, fin
Strange that the distance is not updated over time, even thought the sync process continues on the chain tip, like the backfilling process is somehow stuck.
after restart:
Nov 11 16:06:53.001 INFO Downloading historical blocks est_time: 1 week 1 days, speed: 4.00 slots/sec, distance: 2868065 slots (56 weeks 6 days), service: slot_notifier
Nov 11 16:06:53.001 WARN Head is optimistic execution_block_hash: 0x542c53b6791439b21552877d4a7dd
Nov 11 16:07:53.000 INFO Downloading historical blocks est_time: 14 hrs 55 mins, speed: 53.34 slots/sec, distance: 2865313 slots (56 weeks 5 days), service: slot_notifier
Update: I was able to find the logs where it apparently stops the backfilling process.
The main issue here I think is identifying if there is some bug in the resume process, but I find it strange why is keeps stopping.
Nov 11 16:10:09.131 INFO Backfill sync paused reason: insufficient_synced_peers, service: sync
Nov 11 16:10:09.131 INFO Sync state updated new_state: Synced, old_state: Syncing Historical Blocks, service: sync
Nov 11 16:10:11.950 INFO Backfill sync paused reason: insufficient_synced_peers, service: sync
Nov 11 16:10:17.002 WARN Low peer count peer_count: 1, service: slot_notifier
Nov 11 16:10:17.002 INFO Historical block download complete service: slot_notifier
Nov 11 16:10:17.002 WARN Head is optimistic execution_block_hash: 0x48a49309bcc36aed156f0f57c2aba492c0a758b5705fdad4d8594c99fc85cfdc, info: chain not fully verified, block and attestation production disabled until execution engine syncs, service: slot_notifier
Nov 11 16:10:17.002 INFO Synced slot: 5113249, block: … empty, epoch: 159789, finalized_epoch: 159787, finalized_root: 0xa33a…d380, exec_hash: 0x48a4…cfdc (unverified), peers: 1, service: slot_notifier
Nov 11 16:10:17.561 INFO Sync state updated new_state: Syncing Historical Blocks, old_state: Synced, service: sync
Nov 11 16:10:17.574 ERRO Backfill sync failed error: BatchDownloadFailed(Epoch(89393)), service: sync
Nov 11 16:10:17.574 INFO Sync state updated new_state: Synced, old_state: Syncing Historical Blocks, service: sync
Nov 11 16:10:17.648 INFO Sync state updated new_state: Syncing Historical Blocks, old_state: Synced, service: sync
Nov 11 16:10:17.649 ERRO Backfill sync failed error: BatchDownloadFailed(Epoch(89437)), service: sync
Nov 11 16:10:17.649 INFO Sync state updated new_state: Synced, old_state: Syncing Historical Blocks, service: sync
Nov 11 16:10:29.001 WARN Low peer count peer_count: 0, service: slot_notifier
Nov 11 16:10:29.001 WARN Head is optimistic execution_block_hash: 0x48a49309bcc36aed156f0f57c2aba492c0a758b5705fdad4d8594c99fc85cfdc, info: chain not fully verified, block and attestation production disabled until execution engine syncs, service: slot_notifier
Nov 11 16:10:29.001 INFO Synced slot: 5113250, block: … empty, epoch: 159789, finalized_epoch: 159787, finalized_root: 0xa33a…d380, exec_hash: 0x48a4…cfdc (unverified), peers: 0, service: slot_notifier
I'm having the same issue
Having the same issue with not progress Downloading historical blocks
this problem is still there, lighthouse v4.6.0 with erigon v2.58.0 on holesky
This change in v5.0.0 (upcoming) should help some cases: https://github.com/sigp/lighthouse/pull/5192
@alexlee85 Want to try updating to unstable (seeing as you're on a testnet) and see if it fixes it?
Ok, I'll try.
until now, everything goes well, and backfilling function can be paused and resumed normally.
good job! 👍🏻