Skip to content

Database gets corrupted on --init.reorg #4098

@nuliknol

Description

@nuliknol

I missed the fork again (had no time to check for updates, but you released incompatible change), my database got corrupted again. After trying to "setHead()" backwards and startup with pre-fork state , the database got corrupted again , here is the error log that I get:

15 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:20.651] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:21.811] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:21.812] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:22.969] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:22.969] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:24.144] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:24.144] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:25.304] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:25.304] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:26.449] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:26.449] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:27.595] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:27.595] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:28.748] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:28.749] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:29.890] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:29.890] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"
INFO [12-01|22:08:31.052] InboxTracker                             sequencerBatchCount=628,115 messageCount=220928079 l1Block=9,748,574 l1Timestamp=2025-12-01T22:00:23+0000
WARN [12-01|22:08:31.053] error reading inbox                      err="failed to get previous message for msgIdx 220926634: pebble: not found"

I ran nitro with this extra parameter: --init.reorg-to-block-batch 220860000

The question is, why are you allowing user's command to get the DB into invalid state? User validation is like the basic requirement any piece of software should comply with. Now I have to rebuild the entire database and it takes days

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions