-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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]: testcontainers-java tests are failling with Timeout ( withStartupTimeoutSeconds has no effect ) #9218
Comments
Timeout with same error message happened in every test module I run, and also happens outside IntelliJ if run from the command line using: |
After reading and understanding a bit more on how testcontainers work (I recommend reading the https://www.continuum.be/en/blog/testcontainers-to-the-rescue/) I realised that the timeout is starting the ryuk-container not the OracleContainer. |
I have a running docker daemon, with the DOCKER_HOST variable set to unix://$HOME/.colima/default/docker.sock When i to: I get:
|
Hoping some solution can be found... on the ryuk project side testcontainers/moby-ryuk#161. Any help will be most appreciated. Thanks. |
Got it working with docker-desktop instead of colima. |
Ryuk official support is for Docker-Desktop only. testcontainers/moby-ryuk#161 (comment) |
Module
Oracle XE
Testcontainers version
1.20.1
Using the latest Testcontainers version?
Yes
Host OS
macOs 14.6.1
Host Arch
ARM (Apple M2)
Docker version
Client: Cloud integration: v1.0.35+desktop.4 Version: 24.0.6 API version: 1.43 Go version: go1.20.7 Git commit: ed223bc Built: Mon Sep 4 12:28:49 2023 OS/Arch: darwin/arm64 Context: default Server: Docker Engine - Community Engine: Version: 27.1.1 API version: 1.46 (minimum version 1.24) Go version: go1.21.12 Git commit: cc13f95 Built: Tue Jul 23 19:57:14 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.19 GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41 runc: Version: 1.7.19 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
What happened?
Trying to run testSID from
testcontainers-java/modules/oracle-xe/src/test/java/org/testcontainers/junit/oracle/SimpleOracleTest.java
Line 78 in 0217e78
Fails after 1 minute, even if using .withStartupTimeoutSeconds(20*60).
Error message is ilogical, I do not understand what is going on, since OracleContainer Log should not wait for '.Started.' but for '.DATABASE IS READY TO USE!.'.
Relevant log output
Additional Information
Using IntelliJ, java 17.
% colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: x86_64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/myuser_is_private_data_so_changed_after_paste_here/.colima/default/docker.sock
Guess it should not be relevant I am on a VPN network (there is a proxy envolved).
The text was updated successfully, but these errors were encountered: