Skip to content

[Bug]: Failed to start with confluentinc/cp-kafka:latest #10363

@Discordia

Description

@Discordia

Module

Core

Testcontainers version

1.21.1

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host Arch

amd64

Docker version

Client: Docker Engine - Community
 Version:           27.0.3
 API version:       1.46
 Go version:        go1.21.11
 Git commit:        7d4bcd8
 Built:             Sat Jun 29 00:02:29 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.0.3
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.11
  Git commit:       662f78c
  Built:            Sat Jun 29 00:02:29 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.18
  GitCommit:        ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc:
  Version:          1.7.18
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

What happened?

Kafka docker container failed to start. It looks like there has just been a new one with a new major version 8.0.0.

Relevant log output

java.lang.ExceptionInInitializerError

  Caused by: java.util.concurrent.ExecutionException: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image confluentinc/cp-kafka:latest

  Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image confluentinc/cp-kafka:latest

  Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception

  Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container

  Caused by: java.lang.IllegalStateException: Wait strategy failed. Container exited with code 1

  Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '.*[KafkaServer id=d+] started.*'

Additional Information

No response

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