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-format` | kafka-format must succeed once; check /var/lib/kafka ownership (kafka:kafka). |
| Storage format error on first boot | journalctl -u kafka-format | If /var/lib/kafka has stale files, clear the volume — format only runs on empty storage. |
/opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092