{"record":{"id":"07eeb215d75bfce1","repo":"influxdata/influxdb","slug":"plugin-not-found","errorCode":null,"errorMessage":"Plugin not found: {}","messagePattern":"Plugin not found: (.+?)","errorType":"exception","errorClass":"ProcessingEngineError","httpStatus":null,"severity":"error","filePath":"influxdb3_processing_engine/src/lib.rs","lineNumber":1125,"sourceCode":"                    async_fs::write(&plugin_path, content).await.map_err(|e| {\n                        ProcessingEngineError::PluginError(plugins::PluginError::ReadPluginError(e))\n                    })?;\n\n                    return Ok(db_schema.name.to_string());\n                }\n\n                // For multi-file plugins (directories), update __init__.py by default\n                let init_file = plugin_path.join(INIT_PY);\n                async_fs::write(&init_file, content).await.map_err(|e| {\n                    ProcessingEngineError::PluginError(plugins::PluginError::ReadPluginError(e))\n                })?;\n\n                return Ok(db_schema.name.to_string());\n            }\n        }\n\n        Err(ProcessingEngineError::PluginError(\n            plugins::PluginError::AnyhowError(anyhow::anyhow!(\"Plugin not found: {}\", plugin_name)),\n        ))\n    }\n\n    /// Replace an entire plugin directory atomically with new files.\n    pub async fn replace_plugin_directory(\n        self: &Arc<Self>,\n        plugin_name: &str,\n        files: Vec<(String, String)>, // Vec of (relative_path, content)\n    ) -> Result<String, ProcessingEngineError> {\n        if self.environment_manager.plugin_dir_only {\n            return Err(ProcessingEngineError::PluginError(\n                PluginError::PluginInstallationDisabled,\n            ));\n        }\n\n        // Find the trigger to get the plugin filename\n        let (db_name, plugin_filename) = {\n            let mut result = None;","sourceCodeStart":1107,"sourceCodeEnd":1143,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_processing_engine/src/lib.rs#L1107-L1143","documentation":"Thrown when looking up a plugin by name (e.g. for show/delete operations) and no plugin file matching the given name exists in the plugin directory or catalog. The lookup iterates candidates and falls through to this error when nothing matched. Wrapped as PluginError::AnyhowError inside ProcessingEngineError.","triggerScenarios":"Calling plugin lookup/delete API endpoints with a plugin_name that has no corresponding file (e.g. `plugin_name.py`) in the configured plugin directory.","commonSituations":"Typos in the plugin name; plugin file deleted from disk while catalog entries remain; wrong file extension; plugin never uploaded to the directory (only defined in a trigger).","solutions":["Verify the plugin file exists in the plugin directory with the exact name (case-sensitive, including .py/.toml extension).","List existing plugins via the Processing Engine API (`GET /api/v3/config/processinengine/plugins`) to get valid names.","Re-upload the plugin package if the file was removed or the directory was replaced.","Fix the name in the client call/trigger definition."],"exampleFix":"// before\nDELETE /api/v3/config/processing_engine/plugins?name=cpu_alert\n// after (matching file cpu_alerts.py that exists on disk)\nDELETE /api/v3/config/processing_engine/plugins?name=cpu_alerts","handlingStrategy":"validation","validationCode":"const plugins = await listPlugins();\nif (!plugins.includes(pluginName)) {\n  throw new Error(`Unknown plugin: ${pluginName}. Available: ${plugins.join(', ')}`);\n}","typeGuard":null,"tryCatchPattern":"try {\n  await deletePlugin(name);\n} catch (e) {\n  if (String(e).includes('Plugin not found')) {\n    console.warn(`Skipping missing plugin ${name}`);\n  } else { throw e; }\n}","preventionTips":["Fetch the plugin list before delete/lookup calls.","Use exact filenames including extension; names are case-sensitive.","Treat delete of a missing plugin as idempotent in automation."],"tags":["processing-engine","plugin","not-found"],"backgroundTag":"entity-not-found","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"}