{"record":{"id":"d3faa4a505591dd5","repo":"influxdata/influxdb","slug":"couldn-t-find-db","errorCode":null,"errorMessage":"couldn't find db","messagePattern":"couldn't find db","errorType":"exception","errorClass":"PluginError","httpStatus":null,"severity":"error","filePath":"influxdb3_processing_engine/src/plugins.rs","lineNumber":38,"sourceCode":"    DatabaseName,\n    http::{WalPluginTestRequest, WalPluginTestResponse},\n};\nuse influxdb3_write::{Precision, write_buffer};\nuse iox_time::{Time, TimeProvider};\nuse observability_deps::tracing::error;\nuse std::{fmt::Debug, path::PathBuf, str::FromStr, sync::Arc};\nuse tokio_util::sync::CancellationToken;\n\nuse anyhow::{Context, anyhow};\nuse parking_lot::Mutex;\nuse thiserror::Error;\n\n#[derive(Debug, Error)]\npub enum PluginError {\n    #[error(\"invalid database {0}\")]\n    InvalidDatabase(String),\n\n    #[error(\"couldn't find db\")]\n    MissingDb,\n\n    #[error(transparent)]\n    PyError(#[from] pyo3::PyErr),\n\n    #[error(transparent)]\n    WriteBufferError(#[from] write_buffer::Error),\n\n    #[error(transparent)]\n    AnyhowError(#[from] anyhow::Error),\n\n    #[error(\"reading plugin file: {0}\")]\n    ReadPluginError(#[from] std::io::Error),\n\n    #[error(\"error executing plugin: {0}\")]\n    PluginExecutionError(#[from] influxdb3_py_api::error::ExecutePluginError),\n\n    #[error(\"invalid cron syntax: {0}\")]","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_processing_engine/src/plugins.rs#L20-L56","documentation":"PluginError::MissingDb, a sentinel raised when the database backing a plugin operation cannot be resolved in the catalog/write path at execution time — a generic \"couldn't find db\" condition distinct from an invalid supplied name.","triggerScenarios":"Thrown at influxdb3_processing_engine/src/plugins.rs:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the database still exists when the trigger fires (it may have been deleted after trigger creation)","Re-create the trigger against an existing database","Check catalog consistency if the database should exist"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}