Skip to content
DevOps AI ToolKit
Newsletter
All troubleshooting hubs Troubleshooting hub

Kafka Broker, KRaft & Cluster Errors

The failures that take a Kafka broker or the whole cluster down: a broker that won't start, a controller that isn't available, an inconsistent cluster ID after a bad restart, offline partitions, corrupted log segments, or KRaft/ZooKeeper metadata problems. Each guide opens with the direct cause and the `kafka-*.sh`, `kafka-metadata-quorum`, and log commands to confirm it. Start with your symptom below, or paste the broker log into the assistant.

Fix your error now

Paste the error or logs and let the Incident Assistant diagnose it, or run a guided triage prompt with AI — no copy-paste.

Diagnose with the Incident Assistant →

Every guide in this cluster

50 guides

Kafka AI prompts

Copy-paste, production-safe prompts for this stack.

Kafka command center

Top errors, validators, and runbooks for the whole stack.

Frequently asked questions

Why does my Kafka broker fail with "Fatal error during KafkaServer startup"?
It is a wrapper — the real cause is the exception just above it in the log: a locked or unwritable log dir, a cluster-ID mismatch in meta.properties, a port already in use, or corrupt metadata. Read the stack trace under it and check the log-dir permissions. See KafkaServer startup.
What causes "The Cluster ID doesn't match" / inconsistent cluster ID?
A broker's stored meta.properties cluster ID differs from the controller/quorum's — usually after a wiped or restored volume, or mixing KRaft and ZooKeeper state. Never just delete meta.properties on a live cluster; reconcile it deliberately. See inconsistent cluster ID.
Can I paste the broker log into AI to diagnose it?
Yes — use the Incident Assistant at the top of this page with your broker log, or click "Run the triage prompt with AI" to open a guided Kafka broker prompt in the Prompt Workspace.