influxdata/influxdb · error · ProcessingEngineError
No plugin directory configured
Error message
No plugin directory configured
What it means
Thrown when a ProcessingEngineManager operation needs to resolve a plugin file path but `environment_manager.plugin_dir` is None, meaning no plugin directory was configured at startup. The manager cannot locate or validate plugin files without this directory. It wraps a PluginError in ProcessingEngineError.
Solutions
- Start the server with the plugin directory configured (e.g. `influxdb3 serve --plugin-dir /path/to/plugins`).
- If using a config file/environment, set the plugin_dir field so EnvironmentManager.plugin_dir is Some.
- Check the Processing Engine HTTP API is only called after the plugin dir is configured; gate calls at startup.
- In Docker/K8s, mount the plugins volume and point the plugin-dir flag at the mount.
Example fix
// before: no plugin dir on startup influxdb3 serve --node-id node1 // after influxdb3 serve --node-id node1 --plugin-dir /var/lib/influxdb3/plugins
Defensive patterns
Strategy: validation
Validate before calling
if (!serverConfig.pluginDir) {
throw new Error('Start server with --plugin-dir before calling plugin APIs');
} Type guard
const hasPluginDir = (env) => env && typeof env.pluginDir === 'string' && env.pluginDir.length > 0;
Prevention
- Always pass --plugin-dir on serve in every environment (dev, CI, prod).
- Add a startup health check that asserts plugin_dir is configured.
- Document the flag in deployment templates (Dockerfile/compose/helm).
When it happens
Trigger: Calling plugin-management APIs such as loading/writing plugin files (via validate_path_within_plugin_dir) when the server was started without the `--plugin-dir` option or the plugin_dir field was never set on the EnvironmentManager.
Common situations: Starting influxdb3 without the plugin directory flag but then attempting to manage plugins via the Processing Engine HTTP API; Docker images missing the volume mounted to the plugin dir; config file omitting the plugin_dir key.
Understand the failure class
Background: "is required", "must be set", "missing required field": configuration validation errors across open-source libraries — this error's family across 36 libraries.
Related errors
- Current node mode does not use the processing engine
- {0}
- An unexpected error occurred in the client library
- base URL error
- Cannot delete plugin
AI-assisted analysis of influxdata/influxdb@06200ef96b (2026-09-19).
Data as JSON: /api/errors/e1e5fb7a0dbb2f52.
Report an issue: GitHub.
Appendix: source
Thrown at influxdb3_processing_engine/src/lib.rs:1062
}
pub async fn create_plugin_file(
self: &Arc<Self>,
plugin_filename: &str,
content: &str,
) -> Result<(), ProcessingEngineError> {
if self.environment_manager.plugin_dir_only {
return Err(ProcessingEngineError::PluginError(
PluginError::PluginInstallationDisabled,
));
}
let plugin_dir = self
.environment_manager
.plugin_dir
.as_ref()
.ok_or_else(|| {
ProcessingEngineError::PluginError(plugins::PluginError::AnyhowError(anyhow!(
"No plugin directory configured"
)))
})?;
let plugin_path = validate_path_within_plugin_dir(plugin_dir, plugin_filename)?;
// Create parent directories if they don't exist (for multi-file plugins)
if let Some(parent) = plugin_path.parent() {
async_fs::create_dir_all(parent).await.map_err(|e| {
ProcessingEngineError::PluginError(plugins::PluginError::ReadPluginError(e))
})?;
}
async_fs::write(&plugin_path, content).await.map_err(|e| {
ProcessingEngineError::PluginError(plugins::PluginError::ReadPluginError(e))
})?;
Ok(())View on GitHub (pinned to 06200ef96b)