{"record":{"id":"81606cbffc737649","repo":"linera-io/linera-protocol","slug":"the-chain-being-queried-is-not-active-0","errorCode":null,"errorMessage":"The chain being queried is not active {0}","messagePattern":"The chain being queried is not active (.+?)","errorType":"validation","errorClass":"ChainError","httpStatus":null,"severity":"error","filePath":"linera-core/src/client/chain_client/mod.rs","lineNumber":2531,"sourceCode":"            super_owners: vec![new_owner],\n            owners: Vec::new(),\n            first_leader: None,\n            multi_leader_rounds: 5,\n            open_multi_leader_rounds: false,\n            timeout_config: TimeoutConfig::default(),\n        })\n        .await\n    }\n\n    /// Adds another owner to the chain, and turns existing super owners into regular owners.\n    #[instrument(level = \"trace\")]\n    pub async fn share_ownership(\n        &self,\n        new_owner: AccountOwner,\n        new_weight: u64,\n    ) -> Result<ClientOutcome<ConfirmedBlockCertificate>, Error> {\n        let ownership = self.prepare_chain().await?.manager.ownership;\n        ensure!(\n            ownership.is_active(),\n            ChainError::InactiveChain(self.chain_id)\n        );\n        let mut owners = ownership.owners.into_iter().collect::<Vec<_>>();\n        owners.extend(ownership.super_owners.into_iter().zip(iter::repeat(100)));\n        owners.push((new_owner, new_weight));\n        let operations = vec![Operation::system(SystemOperation::ChangeOwnership {\n            super_owners: Vec::new(),\n            owners,\n            first_leader: ownership.first_leader,\n            multi_leader_rounds: ownership.multi_leader_rounds,\n            open_multi_leader_rounds: ownership.open_multi_leader_rounds,\n            timeout_config: ownership.timeout_config,\n        })];\n        self.execute_block(operations, vec![]).await\n    }\n\n    /// Returns the current ownership settings on this chain.","sourceCodeStart":2513,"sourceCodeEnd":2549,"githubUrl":"https://github.com/linera-io/linera-protocol/blob/6c226ddcb332ef55118dc8d0aafbd093d5420899/linera-core/src/client/chain_client/mod.rs#L2513-L2549","documentation":"Error \"The chain being queried is not active {0}\" thrown in linera-io/linera-protocol.","triggerScenarios":"A query targets a chain that is not active on the local node.","commonSituations":"Querying a chain ID that was never opened locally or whose state is unavailable on this node.","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)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c226ddcb332ef55118dc8d0aafbd093d5420899","analyzedAt":"2026-08-22T22:49:09.787Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}