Skip to content

Failing to start kafka container with an error 'org.testcontainers.containers.ContainerLaunchException: Container startup failed' #1621

@rajeshhereforyou

Description

@rajeshhereforyou

Hi,

We are using 1.11.2 version of testcontainers to spin up a kafka broker, zookeeper and schema registry using docker compose yml and we are getting below error. We are getting this error intermittently and not showing the actual reason behind the failure. Can someone guide on this?

The docker compose yml is working fine, I've tested this without test containers.

"Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:277)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:212)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76)
... 39 more
Caused by: java.lang.IllegalStateException: Container did not start correctly.
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:255)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions