Skip to content

MongoDBContainer fails to start when using tag 4.4 #3077

@remal

Description

@remal

Testcontainers version: 1.14.3.

A container initialized as follows, fails to start with this error: ContainerLaunchException: Timed out waiting for log output matching '.*waiting for connections on port.*'

val container = new MongoDBContainer("mongo:4.4");
container.start()

I suppose it happens because MongoDBContainer waits a message that matches waiting for connections on port to appear in logs.

However, Mongo 4.4 logs contain only this message: Waiting for connections (without on port).

You can find full Mongo container logs here: mongo-container-logs.txt

mongo:4.2 image works good.
mongo:4.3 image simply doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions