linera-io/linera-protocol · error · ChainError
The chain being queried is not active {0}
Error message
The chain being queried is not active {0} What it means
Error "The chain being queried is not active {0}" thrown in linera-io/linera-protocol.
Source
Thrown at linera-core/src/client/chain_client/mod.rs:2531
super_owners: vec![new_owner],
owners: Vec::new(),
first_leader: None,
multi_leader_rounds: 5,
open_multi_leader_rounds: false,
timeout_config: TimeoutConfig::default(),
})
.await
}
/// Adds another owner to the chain, and turns existing super owners into regular owners.
#[instrument(level = "trace")]
pub async fn share_ownership(
&self,
new_owner: AccountOwner,
new_weight: u64,
) -> Result<ClientOutcome<ConfirmedBlockCertificate>, Error> {
let ownership = self.prepare_chain().await?.manager.ownership;
ensure!(
ownership.is_active(),
ChainError::InactiveChain(self.chain_id)
);
let mut owners = ownership.owners.into_iter().collect::<Vec<_>>();
owners.extend(ownership.super_owners.into_iter().zip(iter::repeat(100)));
owners.push((new_owner, new_weight));
let operations = vec![Operation::system(SystemOperation::ChangeOwnership {
super_owners: Vec::new(),
owners,
first_leader: ownership.first_leader,
multi_leader_rounds: ownership.multi_leader_rounds,
open_multi_leader_rounds: ownership.open_multi_leader_rounds,
timeout_config: ownership.timeout_config,
})];
self.execute_block(operations, vec![]).await
}
/// Returns the current ownership settings on this chain.View on GitHub (pinned to 6c226ddcb3)
Solutions
- Activate chain {0} locally before querying: run `linera sync` or open/assign the chain so it is tracked by the client.
- Set the correct default chain with `linera set-default <chain-id>` and retry the query.
- Verify the chain id is correct and that the chain exists on the network (check with `linera query-validator`/wallet show).
When it happens
Trigger: A query targets a chain that is not active on the local node.
Common situations: Querying a chain ID that was never opened locally or whose state is unavailable on this node.
AI-assisted analysis of linera-io/linera-protocol@6c226ddcb3 (2026-08-22).
Data as JSON: /api/errors/81606cbffc737649.
Report an issue: GitHub.