Kafka Error LOG_DIR_NOT_FOUND
Error code 57 · Non-retriable Broker
The user-specified log directory is not found in the broker config.
Common Causes
- Client or admin tool specifies a `log.dir` path in an `AlterReplicaLogDirs` request that does not exist in the broker's `log.dirs` config
- Broker config was changed to remove a log directory after partitions were already assigned to it
- Typo or trailing slash mismatch between the requested path and what is configured in `server.properties`
Solutions
- Run `kafka-log-dirs.sh --bootstrap-server localhost:9092 --broker-list <id> --describe` to list valid log directories, then reissue the move request with a valid path
- Add the missing directory to `log.dirs` in `server.properties` and restart the broker, or choose an existing directory for the replica move
- Verify exact path casing and trailing slashes match between the request and `log.dirs` in broker config
Diagnostic Commands
# List valid log directories on the broker
kafka-log-dirs.sh --bootstrap-server localhost:9092 --broker-list 0 --describe | jq '.brokers[].logDirs[].logDir'
# Check log directory configuration
grep 'log.dirs' /path/to/server.properties
Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.