Home / Docs / Apache Kafka (KRaft, Hardened) / Troubleshooting
| Symptom | Check | Fix |
|---|---|---|
| Remote client gets connection to localhost refused | advertised.listeners value | It advertises localhost by design — set your internal address (deploy step 2). |
| Broker down after reboot | `systemctl status kafka kafka-firstboot` (AWS) / `systemctl status kafka kafka-format` (GCE) | The format unit must succeed once; check /var/lib/kafka ownership (kafka:kafka). |
| Storage format error on first boot | journalctl -u kafka-firstboot (AWS) / journalctl -u kafka-format (GCE) | If /var/lib/kafka has stale files, clear the volume — format only runs when meta.properties is absent. |
/opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092