influxdata/influxdb · error
You've incorrectly specified a cluster-id for InfluxDB 3…
Error message
You've incorrectly specified a cluster-id for InfluxDB 3 Core OSS. Cluster-id is an InfluxDB 3 Enterprise parameter. Did you install Core in an upgrade or run Core by mistake? Remove --cluster-id to run InfluxDB 3 Core OSS.
What it means
Produced by fail_cluster_id, the clap value_parser attached to the --cluster-id argument. InfluxDB 3 Core (OSS) does not support cluster-id — it is an Enterprise-only parameter — so any value supplied for it is rejected with this explanatory message telling the user to remove the flag.
Solutions
- Remove the --cluster-id flag from the serve command.
- If clustering is actually required, install InfluxDB 3 Enterprise instead of Core.
- If this is an automated deployment, update the config template/manifest for the Core edition.
Example fix
# before influxdb3 serve --cluster-id my-cluster # after influxdb3 serve
Defensive patterns
Strategy: validation
Validate before calling
if args.contains("--cluster-id") && edition == "core" {
return Err("--cluster-id is Enterprise-only; remove it for Core");
} Prevention
- Keep separate startup templates for Core and Enterprise editions.
- Grep deployment scripts for Enterprise-only flags before targeting Core.
- Confirm the installed edition matches your clustering requirements.
When it happens
Trigger: Running `influxdb3 serve --cluster-id <anything>` on a Core/OSS build; clap invokes fail_cluster_id during argument parsing, which unconditionally returns Err.
Common situations: Operators copy Enterprise startup scripts to a Core install, follow mixed documentation, or mistakenly installed Core where Enterprise was intended.
Understand the failure class
Background: "Unknown argument", "Invalid value", and "must be one of": invalid CLI argument errors explained — this error's family across 35 libraries.
Related errors
- Cannot parse object store config
- Could not find user's home directory
- environment variable
- failed to build an http client
- parquet format is not supported for this command
AI-assisted analysis of influxdata/influxdb@06200ef96b (2026-09-19).
Data as JSON: /api/errors/f9430ddd3e7c3c86.
Report an issue: GitHub.
Appendix: source
Thrown at influxdb3/src/commands/serve.rs:782
/// the catalog.
#[clap(
long = "delete-grace-period",
env = "INFLUXDB3_DELETE_GRACE_PERIOD",
default_value = "24h",
action
)]
pub delete_grace_period: humantime::Duration,
/// The cluster-id is an enterprise config option to identify nodes belonging to the same cluster.
/// Core OSS is single node only. We've seen folks install Core OSS thinking they installed Enterprise.
/// They use --cluster-id and get the error `unexpected argument` which is confusing. So we generate
/// a custom error message if they use this arg.
#[clap(long = "cluster-id", value_parser=fail_cluster_id)]
pub cluster_id: Option<String>,
}
pub fn fail_cluster_id(_: &str) -> Result<String, anyhow::Error> {
Err(anyhow::anyhow!(
"You've incorrectly specified a cluster-id for InfluxDB 3 Core OSS.\n\nCluster-id is an InfluxDB 3 Enterprise parameter. \
\nDid you install Core in an upgrade or run Core by mistake?\n\nRemove --cluster-id to run InfluxDB 3 Core OSS."
))
}
#[derive(Clone, Debug, clap::Args)]
#[group(required = true)]
pub struct NodeId {
/// The node identifier used as a prefix in all object store file paths. This should be unique
/// for any InfluxDB 3 Core servers that share the same object store configuration, i.e., the
/// same bucket.
#[clap(
long = "node-id",
// TODO: deprecate this alias in future version
alias = "host-id",
env = "INFLUXDB3_NODE_ID",
group = "node_id",
actionView on GitHub (pinned to 06200ef96b)