conduktor / kafka-stack-docker-compose

docker compose files to create a fully working kafka stack
Apache License 2.0
3.24k stars 1.25k forks source link

Error initializing kafka store while initializing schema registry #146

Open sameera opened 3 months ago

sameera commented 3 months ago

I'm trying to up zk-single-kafka-single.yml as in the video https://www.youtube.com/watch?v=Zq8aMrRnvQE I'm getting the following error:

zoo1                   | [2024-05-30 19:10:04,712] INFO Expiring session 0x10009b287530000, timeout of 18000ms exceeded (org.apache.zookeeper.server.ZooKeeperServer)
kafka-schema-registry  | [2024-05-30 19:11:01,614] ERROR Error starting the schema registry (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication)
kafka-schema-registry  | io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryInitializationException: Error initializing kafka store while initializing schema registry
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:321)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.initSchemaRegistry(SchemaRegistryRestApplication.java:75)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.configureBaseApplication(SchemaRegistryRestApplication.java:90)
kafka-schema-registry  |    at io.confluent.rest.Application.configureHandler(Application.java:285)
kafka-schema-registry  |    at io.confluent.rest.ApplicationServer.doStart(ApplicationServer.java:270)
kafka-schema-registry  |    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:44)
kafka-schema-registry  | Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreInitializationException: io.confluent.kafka.schemaregistry.storage.exceptions.StoreException: Failed to write Noop record to kafka store.
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:151)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:319)
kafka-schema-registry  |    ... 6 more
kafka-schema-registry  | Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreException: Failed to write Noop record to kafka store.
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaStore.getLatestOffset(KafkaStore.java:493)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaStore.waitUntilKafkaReaderReachesLastOffset(KafkaStore.java:296)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:149)
kafka-schema-registry  |    ... 7 more
kafka-schema-registry  | Caused by: java.util.concurrent.TimeoutException: Timeout after waiting for 60000 ms.
kafka-schema-registry  |    at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:76)
kafka-schema-registry  |    at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:30)
kafka-schema-registry  |    at io.confluent.kafka.schemaregistry.storage.KafkaStore.getLatestOffset(KafkaStore.java:488)
kafka-schema-registry  |    ... 9 more
kafka-schema-registry exited with code 1

What could be wrong and what can I do to resolve it?