Skip to content

Can't start node with chainDB generated from db-synthesizer #1661

@abailly

Description

@abailly

My goal is to produce a chain for a cluster of 5 testnet nodes spanning 3 epochs. I managed to do that using db-synthesizer but unfortunately when I try to use the generated data in the cluster, the nodes fail to use it and I get the following log entries:

[2025-09-03 13:35:28.1744Z][p1.example:ChainDB.LastShutdownUnclean](Info,19) ChainDB is not clean. Validating all immutable chunks
[2025-09-03 13:35:28.1745Z][p1.example:ChainDB.OpenEvent.StartedOpeningDB](Info,19) Started opening Chain DB
[2025-09-03 13:35:28.1746Z][p1.example:ChainDB.OpenEvent.StartedOpeningImmutableDB](Info,19) Started opening Immutable DB
[2025-09-03 13:35:28.1748Z][p1.example:ChainDB.ImmDbEvent.NoValidLastLocation](Info,19) No valid last location was found. Starting from Genesis.
[2025-09-03 13:35:28.1751Z][p1.example:ChainDB.OpenEvent.OpenedImmutableDB](Info,19) Opened imm db with immutable tip at genesis (origin) and chunk 0
[2025-09-03 13:35:28.1751Z][p1.example:ChainDB.OpenEvent.StartedOpeningVolatileDB](Info,19) Started opening Volatile DB
[2025-09-03 13:35:28.1753Z][p1.example:ChainDB.OpenEvent.OpenedVolatileDB](Info,19) Opened empty Volatile DB
[2025-09-03 13:35:28.1753Z][p1.example:ChainDB.OpenEvent.StartedOpeningLgrDB](Info,19) Started opening Ledger DB
[2025-09-03 13:35:28.1754Z][p1.example:ChainDB.LedgerEvent.Replay.ReplayStart.ReplayFromGenesis](Info,19) Replaying ledger from genesis
[2025-09-03 13:35:28.1760Z][p1.example:ChainDB.OpenEvent.OpenedLgrDB](Info,19) Opened lgr db
[2025-09-03 13:35:28.1761Z][p1.example:ChainDB.InitChainSelEvent.StartedInitChainSelection](Info,19) Started initial chain selection
[2025-09-03 13:35:28.1761Z][p1.example:ChainDB.InitChainSelEvent.InitialChainSelected](Info,19) Initial chain selected
[2025-09-03 13:35:28.1762Z][p1.example:ChainDB.OpenEvent.OpenedDB](Info,19) Opened db with immutable tip at genesis (origin) and tip genesis (origin)

I had a quick look at the code and spotted where the trace was emitted but I don't have any obvious reason why the DB would be deemed incorrect. Any insights would be much appreciated?

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