influxdata/influxdb · error · ProcessingEngineError

Plugin not found

Error message

Plugin not found: {}

What it means

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.

Solutions

  1. Verify the plugin file exists in the plugin directory with the exact name (case-sensitive, including .py/.toml extension).
  2. List existing plugins via the Processing Engine API (`GET /api/v3/config/processinengine/plugins`) to get valid names.
  3. Re-upload the plugin package if the file was removed or the directory was replaced.
  4. Fix the name in the client call/trigger definition.

Example fix

// before
DELETE /api/v3/config/processing_engine/plugins?name=cpu_alert
// after (matching file cpu_alerts.py that exists on disk)
DELETE /api/v3/config/processing_engine/plugins?name=cpu_alerts
Defensive patterns

Strategy: validation

Validate before calling

const plugins = await listPlugins();
if (!plugins.includes(pluginName)) {
  throw new Error(`Unknown plugin: ${pluginName}. Available: ${plugins.join(', ')}`);
}

Try / catch

try {
  await deletePlugin(name);
} catch (e) {
  if (String(e).includes('Plugin not found')) {
    console.warn(`Skipping missing plugin ${name}`);
  } else { throw e; }
}

Prevention

When it happens

Trigger: 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.

Common situations: 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).

Understand the failure class

Background: "Not found" and "does not exist" errors: why "Task not found", "No such folder", and "Can't find" fire when a lookup comes back empty — this error's family across 14 libraries.

Related errors


AI-assisted analysis of influxdata/influxdb@06200ef96b (2026-09-19). Data as JSON: /api/errors/07eeb215d75bfce1. Report an issue: GitHub.

Appendix: source

Thrown at influxdb3_processing_engine/src/lib.rs:1125

                    async_fs::write(&plugin_path, content).await.map_err(|e| {
                        ProcessingEngineError::PluginError(plugins::PluginError::ReadPluginError(e))
                    })?;

                    return Ok(db_schema.name.to_string());
                }

                // For multi-file plugins (directories), update __init__.py by default
                let init_file = plugin_path.join(INIT_PY);
                async_fs::write(&init_file, content).await.map_err(|e| {
                    ProcessingEngineError::PluginError(plugins::PluginError::ReadPluginError(e))
                })?;

                return Ok(db_schema.name.to_string());
            }
        }

        Err(ProcessingEngineError::PluginError(
            plugins::PluginError::AnyhowError(anyhow::anyhow!("Plugin not found: {}", plugin_name)),
        ))
    }

    /// Replace an entire plugin directory atomically with new files.
    pub async fn replace_plugin_directory(
        self: &Arc<Self>,
        plugin_name: &str,
        files: Vec<(String, String)>, // Vec of (relative_path, content)
    ) -> Result<String, ProcessingEngineError> {
        if self.environment_manager.plugin_dir_only {
            return Err(ProcessingEngineError::PluginError(
                PluginError::PluginInstallationDisabled,
            ));
        }

        // Find the trigger to get the plugin filename
        let (db_name, plugin_filename) = {
            let mut result = None;

View on GitHub (pinned to 06200ef96b)