Open Harish-Sridhar opened 1 year ago
@Harish-Sridhar , our docs recommend updating state.dir to a persistent volume than a /tmp/ location. /tmp was the default until 2.8 but was changed in https://github.com/apache/kafka/commit/e3ff4b087050b5a4b3f819a9535fb8275a380e23
@suhas-satish I understand the recommendation about the state.dir. But still my question remains unanswered.
Describe the bug Unable to start ksqldb-server using the docker compose in the quickstart page of the ksqldb documentation. link to quickstart page
There is couple of issues with the docker compose file.
Could not create the kafka streams state directory: /tmp/kafka-streams
well, this could be solved by setting up different path inside the container for the state stream directory. But why is this error happening in first place? Why don't we solve this in the docker build?
Another strange thing is i didn't get this error 2 months back, but i get it now. I don't understand the reason. same docker-compose file.
To Reproduce Steps to reproduce the behavior, include: Docker compose file:
Then run
docker compose up -d
and thendocker compose logs -f ksqldb-server
Expected behavior Ksqldb server to be up and running.
Actual behaviour Ksql db errors out during startup due to permissions issue with the kafka streams state directory creation.