I am using Windows and trying to start up several docker containers. Originally the startup worked and kafka was running, but recently it ran into an error and shut down and will not start up again. The error message is "ERROR Shutdown broker because all log dirs in /var/lib/kafka/data have failed (kafka.log.LogManager)".
Logs File:
logs.txt
Hi @pjkaufman
Kindly provide steps to reproduce (docker version, commands to run, etc)
Thank you
@gAmUssA I know how to replicate it on a Windows 10 environment with docker.
Because I am working on a lag exporter I know, that the broker sends tombstone messages on the __consumer_offsets topic, but shortly after the broker is down and the last log messsages are those:
[2019-03-30 09:09:39,044] INFO Stopping serving logs in dir /var/lib/kafka/data (kafka.log.LogManager)
[2019-03-30 09:09:39,051] ERROR Shutdown broker because all log dirs in /var/lib/kafka/data have failed (kafka.log.LogManager)
Docker version: Docker Engine - Community (18.09.2)
Stop the zookeeper
Delete all the logs from zookeeper and kafka
It should work
Note:all the previously created topics will be lost
Stop the zookeeper
Delete all the logs from zookeeper and kafka
It should work
Note:all the previously created topics will be lost
This cannot be a solution, this is just a workaround for dev environments.
This issue is related to Log Retention Policy,
I see the same issue, it seems that this just happens on windows, I performed the same test on Linux, and it is working on Linux.
Steps to reproduce:
but you can find this error message,
Suppressed: java.nio.file.FileSystemException: C:tmpkafka-logsstandard-json-000000000000000000004.timeindex -> C:tmpkafka-logsstandard-json-000000000000000000004.timeindex.deleted: The process cannot access the file because it is being used by another process.
Hi @michierus,
as you mentioned:
This issue is related to Log Retention Policy
Were you able to solve this issue? Or is there any workaround other than deleting the logs directory (default to /tmp/kafka-logs)?
@michierus / @faisal6621 I am also facing into same issue, did we have any solution to be followed to fix this ?
Hi @mighty-raj ,
unfortunately on Windows I could not found any solution.
the current workaround that I have lost the data,
So as I am just performing a master degree research I just moved the solution to Linux.
Maybe we need to check the last Kafka version.
It is been more than one year since the last comment on this topic. I am getting the same issue. Did anyone found a solution instead of the workaround to delete logs in both UKA and Zookeeper.
Most helpful comment
This cannot be a solution, this is just a workaround for dev environments.
This issue is related to Log Retention Policy,
I see the same issue, it seems that this just happens on windows, I performed the same test on Linux, and it is working on Linux.
Steps to reproduce:
but you can find this error message,