-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
[Bug]: Ryuk container created, then it is removed before it starts #2596
Comments
Experiencing the same issue. macOS 14.5 Sonoma, Rancher Desktop 1.14.2. Testcontainers 36573d0 (a few commits after 0.31.0).
It worked yesterday, not sure what I did to break it. |
Set |
Disabling Ryuk isn't really a solution, we'd like to continue to use it. |
Hi 👋 are you by the way using the compose module? If so please take a look at #2563 (comment) If not, I'd like to see the ryuk logs if possible, so we can determine why it's being removed. Is it a timeout issue? You can check the ryuk configuration here: https://golang.testcontainers.org/features/configuration/#customizing-ryuk-the-resource-reaper |
Hi @mdelapenya we're not using compose. Ryuk doesn't appear to log anything in this case. Upon further inspection when I run |
Mmm that's even weirder. Can you verify that the IDE sets the proper go settings for testing, such as "go.testTimeout" (I configured it to 600s)? I wonder why the ryuk container dies in VSCode but not in your terminal. Can you provide a repro repository? |
The test timeouts look good, it fails almost instantly, it's not taking a long time.
I have this issue for any project using testcontainers |
This should be fixed by testcontainers/moby-ryuk#121 but we need a release and then testcontainers-go updated to use the new release. Try cloning the moby-ryuk repo and running the following in it to replace the image that testcontainers-go uses to see if it does fix: docker build -f linux/Dockerfile -t testcontainers/ryuk:0.7.0 . |
Thanks for looking into this, I've updated to use
|
Thanks for testing. I have a bug bash branch that I'm working on improving the stability of tests which includes a reworked reaper spawner and while this may not fix the issue, it also includes improvements to the errors so might help point to where the underlying issue is in your case. If you could test on the branch from #2664 and let me know what you get that would be appreciated. If you could also post a test which reproduces the issue that would help too. |
I fixed this issue modifying the ~/.zshrc file with this configuration
|
Testcontainers version
0.31.0
Using the latest Testcontainers version?
Yes
Host OS
Mac OS
Host arch
ARM
Go version
1.22
Docker version
Client: Docker Engine - Community Version: 26.1.4 API version: 1.45 Go version: go1.22.4 Git commit: 5650f9b102 Built: Wed Jun 5 10:47:13 2024 OS/Arch: darwin/arm64 Context: default Server: Docker Engine - Community Engine: Version: 26.1.1 API version: 1.45 (minimum version 1.24) Go version: go1.21.9 Git commit: ac2de55 Built: Tue Apr 30 11:48:47 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.31 GitCommit: e377cd56a71523140ca6ae87e30244719194a521 runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
Any attempt to run a test using test containers appears to create the Ryuk Container, return an ID. Then it is removed while waiting for the container to start.
Relevant log output
Additional information
I attempted to run test tests with
main
and observed the same failures so I don't believe this fixes it. #2477The text was updated successfully, but these errors were encountered: