Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Error importing relay block after doing a revert #1855

@crystalin

Description

@crystalin

Using moonbeam v0.27.2 (based on substrate v0.9.29) (see end of message for cli params)

The node was stuck because of sc_service::client::client: [🌗] Block import error: State Database error: Too many sibling blocks inserted (happened because of runtime upgrade)
We performed a moonbeam revert 1 --base-path /var/lib/alphanet-data --chain alphanet in order to purge the siblings.

This removed the siblings, but now the relaychain side is not syncing anymore.

INFO tokio-runtime-worker substrate: [Relaychain] 💤 Idle (1 peers), best: #7608238 (0x9d32…e288), finalized #7604142 (0x4cee…ed9f), ⬇ 243.2kiB/s ⬆ 7.4kiB/s
Nov 10 13:57:53 alphanet moonbase[813341]: 2022-11-10 13:57:53.421  WARN tokio-runtime-worker sc_service::client::client: [Relaychain] Block import error: State Database error: Trying to insert block with invalid number
Nov 10 13:57:53 alphanet moonbase[813341]: 2022-11-10 13:57:53.421  WARN tokio-runtime-worker sync: [Relaychain] 💔 Error importing block 0x76f1fe0cbafe4d68edcb7d0324bbe9ca181130962d4e874a12ce5753f55af77d: consensus error: Import failed: Import failed: State Database error: Trying to insert block with invalid number

CLI:

/var/lib/alphanet-data/moonbeam \
     --validator \
     --port 30333 \
     --rpc-port 9933 \
     --ws-port 9944 \
     --execution wasm \
     --wasm-execution compiled \
     --log=parachain::collator-protocol=trace \
     --pruning=256 \
     --state-cache-size 0 \
     --db-cache 10000 \
     --base-path /var/lib/alphanet-data \
     --chain alphanet \
     -- \
     --pruning=1 \
     --keep-blocks=1 \
     --sync=fast-unsafe \
     --port 30334 \
     --rpc-port 9934 \
     --ws-port 9945 \
     --execution wasm

(Notice it has prunings on the relay to 1)

cc: @bkchr

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