Can't start node error DB

Issue Report

ERROR Domain: domain_client_operator::domain_worker: Failed to process consensus block error=UnknownBlock("Header was not found in the database:

Environment

ubuntu 22.04

  • Operating System: r9 5950x, 64gb
  • Space Acres/Advanced CLI/Docker: advanced CLI

Problem

my parameters to start

run --base-path=“/home/subspacetest” --chain=“taurus” --farmer --name=“xxx” blocks-pruning=“archive-canonical” --state-pruning=“archive-canonical” --sync full --listen-on=“/ip4/0.0.0.0/tcp/20333” --dsn-listen-on=“/ip4/0.0.0.0/tcp/20433” --rpc-listen-on 0.0.0.0:9955 --rpc-cors all --rpc-methods unsafe – --domain-id 0 --operator-id 679 --blocks-pruning archive-canonical --state-pruning 28800

2025-06-03T19:01:37.198055Z  INFO Consensus: substrate: ⚙️  Syncing  0.0 bps, target=#2700068 (26 peers), best: #2514062 (0x4266…5a5c), finalized #2461689 (0xa3fd…5227), ⬇ 15.2kiB/s ⬆ 4.9kiB/s
2025-06-03T19:01:37.301652Z  INFO Domain: substrate: ⚙️  Syncing  0.0 bps, target=#1759796 (11 peers), best: #1603660 (0x0551…2e35), finalized #1589176 (0xf6ac…e52b), ⬇ 39 B/s ⬆ 0.4kiB/s
2025-06-03T19:01:42.199896Z  INFO Consensus: substrate: ⚙️  Syncing  0.0 bps, target=#2700068 (26 peers), best: #2514062 (0x4266…5a5c), finalized #2461689 (0xa3fd…5227), ⬇ 15.5kiB/s ⬆ 7.3kiB/s
2025-06-03T19:01:42.302315Z  INFO Domain: substrate: ⚙️  Syncing  0.0 bps, target=#1759796 (11 peers), best: #1603660 (0x0551…2e35), finalized #1589176 (0xf6ac…e52b), ⬇ 64 B/s ⬆ 64 B/s
2025-06-03T19:01:44.904819Z ERROR Domain: domain_client_operator::domain_worker: Failed to process consensus block error=UnknownBlock("Header was not found in the database: 0x203948f3f24ca42b1e6766d183dcfcc5265c7ae52df5e9629a61e7c27b0ea913")
2025-06-03T19:01:44.904902Z ERROR Domain: sc_service::task_manager: Essential task `domain-operator-worker` failed. Shutting down service.
2025-06-03T19:01:44.905111Z ERROR Domain: subspace_node::commands::run: Domain starter exited with an error error=Other: Essential task failed.
2025-06-03T19:01:44.905145Z ERROR sc_service::task_manager: Essential task `domain` failed. Shutting down service.
2025-06-03T19:01:44.986754Z  WARN Consensus: consensus_sync: Error when syncing blocks from DSN error=Other: Failed to download segment pieces: Not enough (0/128) pieces for segment 696
2025-06-03T19:01:52.746837Z ERROR Consensus: sc_service::client::client: Unable to send AnnouncePin worker message for import: sending into a closed channel

From the log, it seems your node’s best domain block #1603660 (0x0551…2e35) is in a stale fork that derived from a missing consensus block 0x203948f3f24ca42b1e6766d183dcfcc5265c7ae52df5e9629a61e7c27b0ea913 which is also in a stale fork. And given your node’s best consensus block is #2514062 (0x4266…5a5c) which supposed to derive domain block #1,605,333, I guess the cause of this error is:

  1. The node is first running with domain enabled (e.g. subspace-node run ... -- --domain-id 0 ..)
  2. Then the node is restarted and runs without domain (e.g. subspace-node run ..)
  3. Finally, the node is again restarted and running with domain enabled (e.g. subspace-node run ... -- --domain-id 0 ..) then encountered this error.

If this is the case, unfortunately, you will have to resync from scratch and make sure the domain is always enabled.

2 Likes