kestra-io/kestra · error · IllegalArgumentException
Reindexing type '{}' is not supported
Error message
Reindexing type '{}' is not supported What it means
Thrown by 'kestra sys reindex' when the type argument is not 'flow'. The command only supports reindexing flows; any other type value falls through to an IllegalArgumentException naming the unsupported type. This is a usage/contract error, not a transient failure.
Source
Thrown at cli/src/main/java/io/kestra/cli/commands/sys/ReindexCommand.java:48
private String type;
@Override
public Integer call() throws Exception {
super.call();
if ("flow".equals(type)) {
FlowRepositoryInterface flowRepository = applicationContext.getBean(FlowRepositoryInterface.class);
FlowService flowService = applicationContext.getBean(FlowService.class);
List<Flow> allFlow = flowRepository.findAllForAllTenants();
allFlow.stream()
.map(flow -> flowRepository.findByIdWithSource(flow.getTenantId(), flow.getNamespace(), flow.getId()).orElse(null))
.filter(Objects::nonNull)
.forEach(throwConsumer(flow -> flowService.update(GenericFlow.of(flow), flow)));
stdOut("Successfully reindex " + allFlow.size() + " flow(s).");
} else {
throw new IllegalArgumentException("Reindexing type '" + type + "' is not supported");
}
return 0;
}
}
View on GitHub (pinned to 823fada927)
Solutions
- Use exactly 'flow' as the type: kestra sys reindex flow.
- Check 'kestra sys reindex --help' for the list of supported types.
- For reindexing other entities (executions, logs), use the dedicated admin/API tooling rather than this command.
Example fix
# before kestra sys reindex flows # after kestra sys reindex flow
Defensive patterns
Strategy: validation
Validate before calling
if (!"flow".equals(type)) {
throw new IllegalArgumentException('Unsupported reindex type: ' + type + ". Supported: flow");
} Prevention
- Use exactly 'flow' as the reindex type.
- Run 'kestra sys reindex --help' to list supported types.
- Treat the command as flow-only in OSS.
When it happens
Trigger: User runs 'kestra sys reindex <type>' where type != "flow" (case-sensitive); the else branch throws IllegalArgumentException("Reindexing type '<type>' is not supported").
Common situations: Typo in the type (e.g. 'flows' plural, 'executions', 'logs'), wrong casing ('Flow'), or attempting to reindex an entity type that has no CLI reindex path.
Related errors
- Invalid key pair value for inputs
- Too many flow found, need 1, found {}
- Missing required options '--plugins' or environment variable
- Missing required options '--plugins' or environment variable
- Invalid flow path
AI-assisted analysis of kestra-io/kestra@823fada927 (2026-08-14).
Data as JSON: /api/errors/a29d49288c1c88d7.
Report an issue: GitHub.