{"record":{"id":"44f27d33549a028d","repo":"linera-io/linera-protocol","slug":"not-possible-to-work-with-rocksdb","errorCode":null,"errorMessage":"Not possible to work with RocksDB","messagePattern":"Not possible to work with RocksDB","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"linera-service/src/cli/net_up_utils.rs","lineNumber":89,"sourceCode":"                Ok(StorageConfigProvider { config })\n            }\n        }\n    }\n\n    pub fn inner_storage_config(&self) -> &InnerStorageConfig {\n        &self.config.inner_storage_config\n    }\n\n    pub fn namespace(&self) -> &str {\n        &self.config.namespace\n    }\n\n    pub fn database(&self) -> anyhow::Result<Database> {\n        match self.config.inner_storage_config {\n            InnerStorageConfig::Memory { .. } => anyhow::bail!(\"Not possible to work with memory\"),\n            #[cfg(feature = \"rocksdb\")]\n            InnerStorageConfig::RocksDb { .. } => {\n                anyhow::bail!(\"Not possible to work with RocksDB\")\n            }\n            #[cfg(feature = \"storage-service\")]\n            InnerStorageConfig::Service { .. } => Ok(Database::Service),\n            #[cfg(feature = \"scylladb\")]\n            InnerStorageConfig::ScyllaDb { .. } => Ok(Database::ScyllaDb),\n            #[cfg(all(feature = \"rocksdb\", feature = \"scylladb\"))]\n            InnerStorageConfig::DualRocksDbScyllaDb { .. } => Ok(Database::DualRocksDbScyllaDb),\n        }\n    }\n}\n\n/// Starts a local test network and, optionally, a faucet and block exporter.\n#[expect(clippy::too_many_arguments)]\npub async fn handle_net_up_service(\n    num_other_initial_chains: u32,\n    initial_amount: u128,\n    num_initial_validators: usize,\n    num_shards: usize,","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/linera-io/linera-protocol/blob/6c226ddcb332ef55118dc8d0aafbd093d5420899/linera-service/src/cli/net_up_utils.rs#L71-L107","documentation":"Same net-up storage mapping as the memory case, but for plain RocksDB: even with the `rocksdb` feature compiled in, `database()` rejects `InnerStorageConfig::RocksDb`. Only the service backend, ScyllaDb, and the dual RocksDb+ScyllaDb combination are accepted for the multi-process local net (dual is handled as its own `Database::DualRocksDbScyllaDb` variant).","triggerScenarios":"Running `linera net up --storage rocksdb:<path>` — the config parses into `InnerStorageConfig::RocksDb` and hits the bail at linera-service/src/cli/net_up_utils.rs:89.","commonSituations":"Reusing the rocksdb storage string that works for single-validator `linera server` commands; examples or docs configured for plain RocksDB; choosing RocksDB to avoid running ScyllaDB locally.","solutions":["Use `--storage scylladb:<config>` for a ScyllaDB-backed net","Use `--storage service:<endpoint>` (or omit `--storage` to auto-start a storage service)","Use the dual rocksdb+scylladb backend string, which maps to `Database::DualRocksDbScyllaDb` and is accepted","Check `linera net up --help` for the accepted `--storage` schemes"],"exampleFix":"# before\nlinera net up --storage rocksdb:tmp/net_db\n\n# after\nlinera net up --storage scylladb:127.0.0.1:9042","handlingStrategy":"validation","validationCode":"// Reject plain rocksdb before starting a local net.\nif matches!(storage_config.inner_storage_config, InnerStorageConfig::RocksDb { .. }) {\n    anyhow::bail!(\"net up does not accept plain rocksdb; use service:, scylladb:, or the dual rocksdb+scylladb backend\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Do not assume a storage string that works for `linera server` works for `net up` — the accepted sets differ","For dependency-free local nets, omit --storage and let net up start a storage service","Check `linera net up --help` when switching backends"],"tags":["storage","rocksdb","local-net","linera-cli"],"backgroundTag":"unsupported-storage-backend","analyzedSha":"6c226ddcb332ef55118dc8d0aafbd093d5420899","analyzedAt":"2026-08-22T22:49:09.787Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}