Skip to content
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

Can not connect to Ryuk at localhost:32768 java.net.ConnectException: Connection refused (Connection refused) #35

Closed
dborinsk opened this issue Oct 7, 2020 · 1 comment · Fixed by #36

Comments

@dborinsk
Copy link
Contributor

dborinsk commented Oct 7, 2020

After upgrading the docker version to 2.4.0 I started to get errors:

[testcontainers-ryuk] - Can not connect to Ryuk at localhost:32768  java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:607)
        at java.net.Socket.connect(Socket.java:556)
        at java.net.Socket.<init>(Socket.java:452)
        at java.net.Socket.<init>(Socket.java:229)
        at org.testcontainers.utility.ResourceReaper.lambda$null$1(ResourceReaper.java:138)
        at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady(RateLimiter.java:27)
        at org.testcontainers.utility.ResourceReaper.lambda$start$2(ResourceReaper.java:136)
        at java.lang.Thread.run(Thread.java:748)

seems like its a known issue in testcontainers-java as well and they have a new version that fixes it.
I will submit a PR with the relevent testcontainers-java that solves it.

@javahippie
Copy link
Collaborator

Hey,

thank you for pointing out the issue and the fix! I will try and release it with a new version this weekend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants