Kafka Broker Will Not Start
Use this playbook when a broker exits during startup, repeatedly restarts, or remains absent from cluster endpoints.
Preserve Evidence
Section titled “Preserve Evidence”Capture the complete startup log from process launch to exit, the service exit status, the broker properties, Java version, mounted volumes, and recent deployment or disk changes.
systemctl status kafka --no-pagerjournalctl -u kafka -b --no-pagerkafka-storage.sh info -c config/broker.propertiesdf -hdf -iClassify the Failure
Section titled “Classify the Failure”| Log signal | Likely cause |
|---|---|
| Configuration validation exception | Unknown, removed, conflicting, or malformed property |
InconsistentClusterIdException | Local storage belongs to another cluster |
| Duplicate broker registration | Another process uses the same node.id |
Missing or inconsistent meta.properties | Partial formatting, cloned, or replaced storage |
| Cannot contact controller | Controller listener, DNS, TLS/SASL, or quorum failure |
| Address already in use | Duplicate process or listener collision |
KafkaStorageException | Capacity, permissions, mount, filesystem, or device failure |
| Unsupported Java/runtime error | Wrong Java version or JVM options |
Diagnose
Section titled “Diagnose”- Validate
process.roles,node.id, listeners, controller listener names, and quorum/bootstrap settings. - Confirm every
log.dirspath is mounted, writable by the Kafka user, and belongs to the expected cluster. - Check the controller quorum independently.
- Test the broker-to-controller security identity and controller endpoints.
- Confirm ports are free and advertised endpoints resolve correctly.
- Compare the binary and storage-formatting version after an upgrade.
Recover
Section titled “Recover”- Correct invalid configuration and restart once.
- Stop or remove the unintended duplicate process before reusing a node ID.
- Restore a missing mount rather than letting Kafka create an empty directory on the root filesystem.
- Replace a failed log directory using the cluster-management procedure and surviving replicas.
- For cluster-ID or directory-ID mismatches, establish which data copy is authoritative before formatting anything.
Warning
Storage formatting is initialization, not repair. Kafka 4.4 storage formatted by a newer tool is not forward-compatible with an older broker binary.
Verify
Section titled “Verify”kafka-cluster.sh list-endpoints --bootstrap-server kafka:9092kafka-log-dirs.sh --bootstrap-server kafka:9092 --describe --broker-list 4Confirm the broker registers once, its incarnation remains stable, all intended directories are online, replicas catch up, and startup errors do not recur.