{"record":{"id":"cba5d573138aedbd","repo":"linera-io/linera-protocol","slug":"the-local-node-doesn-t-have-an-active-chain-0","errorCode":null,"errorMessage":"The local node doesn't have an active chain {0}","messagePattern":"The local node doesn't have an active chain (.+?)","errorType":"validation","errorClass":"LocalNodeError","httpStatus":null,"severity":"error","filePath":"linera-core/src/client/chain_client/mod.rs","lineNumber":763,"sourceCode":"            .map_err(LocalNodeError::from)?)\n    }\n\n    /// Obtains the committee for the latest epoch on the admin chain.\n    #[instrument(level = \"trace\")]\n    pub async fn admin_committee(&self) -> Result<(Epoch, Arc<Committee>), LocalNodeError> {\n        self.client.admin_committee().await\n    }\n\n    /// Obtains the identity of the current owner of the chain.\n    ///\n    /// Returns an error if we don't have the private key for the identity.\n    #[instrument(level = \"trace\")]\n    pub async fn identity(&self) -> Result<AccountOwner, Error> {\n        let Some(preferred_owner) = self.preferred_owner else {\n            return Err(Error::NoAccountKeyConfigured(self.chain_id));\n        };\n        let manager = self.chain_info().await?.manager;\n        ensure!(\n            manager.ownership.is_active(),\n            LocalNodeError::InactiveChain(self.chain_id)\n        );\n        let fallback_owners = if manager.ownership.has_fallback() {\n            self.local_committee()\n                .await?\n                .account_keys_and_weights()\n                .map(|(key, _)| AccountOwner::from(key))\n                .collect()\n        } else {\n            BTreeSet::new()\n        };\n\n        let is_owner = manager\n            .ownership\n            .can_propose_in_multi_leader_round(&preferred_owner)\n            || fallback_owners.contains(&preferred_owner);\n","sourceCodeStart":745,"sourceCodeEnd":781,"githubUrl":"https://github.com/linera-io/linera-protocol/blob/6c226ddcb332ef55118dc8d0aafbd093d5420899/linera-core/src/client/chain_client/mod.rs#L745-L781","documentation":"Error \"The local node doesn't have an active chain {0}\" thrown in linera-io/linera-protocol.","triggerScenarios":"An operation is attempted on a chain that is not active in the local node's state view.","commonSituations":"Querying or proposing a block for a chain the node has not opened or that was removed from local storage.","solutions":["Activate the chain locally first: run `linera open-chain` or `linera assign` (or `linera sync` for an existing owned chain) so chain {0} becomes active in the wallet.","Confirm the default chain is set correctly with `linera wallet show` and switch with `linera set-default` if needed.","Check for typos in the chain id argument passed to the command."],"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"}