-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Bug]: mongodb/mongodb-atlas-local randomly fails to start #10267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the best place to report this issue is to the mongodb forum because it is related to the docker image itself. /cc @luketn |
@eddumelendez, I reported it there and @luketn asked me to create an issue here 😄 |
@orandvlp can you include the Java + TestContainers code that you are using to start the container instance? |
@eddumelendez it might be; however I want to confirm that it's not specific to TestContainers health check. Don't think it is, but let's double-check. |
@luketn I'm using .NET, not Java. |
@orandvlp Ah, then you are definitely in the wrong place. As far as I know there is no TestContainers implementation for the atlas local container for .net? |
There is no MongoDBAtlas implementation in Testcontainers for .NET. @orandvlp make sure you are using the same wait strategy, see the one in Java, I think you can use |
@eddumelendez thanks for the tip I added this and my life is much better now 😄 I haven't had a single failure since !!! |
@eddumelendez our container def is fairly simple, shall we propose it on all languages (not just java)? |
contributions would be more than welcome to the other language implementations. Thanks! |
Module
MongoDB
Testcontainers version
Testcontainers.MongoDb 4.4.0
Using the latest Testcontainers version?
Yes
Host OS
Local MacOS but this also happens in Github actions running on Ubuntu 24.04.2 LTS
Host Arch
M4
Docker version
docker version Client: Version: 28.1.1 API version: 1.49 Go version: go1.23.8 Git commit: 4eba377 Built: Fri Apr 18 09:49:45 2025 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.41.2 (191736) Engine: Version: 28.1.1 API version: 1.49 (minimum version 1.24) Go version: go1.23.8 Git commit: 01f442b Built: Fri Apr 18 09:52:08 2025 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.27 GitCommit: 05044ec0a9a75232cad458027ca83437aae3f4da runc: Version: 1.2.5 GitCommit: v1.2.5-0-g59923ef docker-init: Version: 0.19.0 GitCommit: de40ad0
What happened?
The container starts but doesn't get a "healthy" signal, so it just sits there until it eventually times out.
I'm using
mongodb/mongodb-atlas-local:8.0.3
but I also tried other versions including the latestmongodb/mongodb-atlas-local:8.0.9
but it didn't make a differenceRelevant log output
Additional Information
The log is from a "hanging" local run on my laptop
The failure happens randomly but it happens quite a lot. As a gut feeling I'd say about 40-50% of the time
The only way to recover is to stop the execution and start again
The text was updated successfully, but these errors were encountered: