testcontainers-java: test failures in version 1.1.0
At commit 248befb, I’m seeing test failures on my local box. There’s enough output that I hesitate to paste it all. I’m happy to add more to help figure out what’s going on.
$ mvn clean install
<snipped...a lot>
Results :
Failed tests: pullingNonExistentImageFailsGracefully(org.testcontainers.junit.NonExistentImagePullTest): Pulling a nonexistent container will cause an exception to be thrown: IllegalStateException was thrown instead of ContainerFetchException
Tests in error:
secondTest(org.testcontainers.junit.DockerComposeV2FormatTest): Can't get Docker image name from org.testcontainers.images.RemoteDockerImage@2f48b3d2
simpleDockerfileWorks(org.testcontainers.junit.DockerfileTest): failed to create a child event loop
customizableImage(org.testcontainers.junit.DockerfileTest): Can't get Docker image name from org.testcontainers.junit.DockerfileTest$1@55787112
dockerfileBuilderWorks(org.testcontainers.junit.DockerfileTest): failed to create a child event loop
org.testcontainers.junit.DockerNetworkModeTest
testFixedHostPortMapping(org.testcontainers.junit.FixedHostPortContainerTest): failed to create a child event loop
org.testcontainers.junit.GenericContainerRuleTest
testFetchStdoutWithNoLimit(org.testcontainers.junit.OutputStreamTest): failed to create a child event loop
testFetchStdout(org.testcontainers.junit.OutputStreamTest): failed to create a child event loop
testFetchStdoutWithTimeout(org.testcontainers.junit.OutputStreamTest): failed to create a child event loop
testLogConsumer(org.testcontainers.junit.OutputStreamTest): failed to create a child event loop
testToStringConsumer(org.testcontainers.junit.OutputStreamTest): failed to create a child event loop
simpleTest[alpine:3.2](org.testcontainers.junit.ParameterizedDockerfileContainerTest): failed to create a child event loop
simpleTest[alpine:3.3](org.testcontainers.junit.ParameterizedDockerfileContainerTest): failed to create a child event loop
testWaitUntilReady_Success(org.testcontainers.junit.wait.HostPortWaitStrategyTest): failed to create a child event loop
testWaitUntilReady_Timeout(org.testcontainers.junit.wait.HostPortWaitStrategyTest): failed to create a child event loop
testWaitUntilReady_Success(org.testcontainers.junit.wait.HttpWaitStrategyTest): failed to create a child event loop
testWaitUntilReady_Timeout(org.testcontainers.junit.wait.HttpWaitStrategyTest): failed to create a child event loop
Tests run: 52, Failures: 1, Errors: 18, Skipped: 3
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] TestContainers Parent POM .......................... SUCCESS [ 0.850 s]
[INFO] TestContainers Core ................................ FAILURE [02:30 min]
[INFO] TestContainers :: JDBC ............................. SKIPPED
[INFO] TestContainers :: JDBC :: MySQL .................... SKIPPED
[INFO] TestContainers :: JDBC :: PostgreSQL ............... SKIPPED
[INFO] TestContainers :: Selenium ......................... SKIPPED
[INFO] TestContainers :: nginx ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:31 min
[INFO] Finished at: 2016-07-06T10:06:27-07:00
[INFO] Final Memory: 38M/524M
[INFO] ------------------------------------------------------------------------
with a stack trace that shows up a bunch:
Exception in thread "Thread-2" java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:81)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:48)
at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:57)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:67)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:54)
at com.github.dockerjava.netty.DockerCmdExecFactoryImpl$InetSocketInitializer.init(DockerCmdExecFactoryImpl.java:241)
at com.github.dockerjava.netty.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:197)
at com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:159)
at com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClientForConfig(DockerClientProviderStrategy.java:96)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClient(DockerClientProviderStrategy.java:89)
at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:85)
at org.testcontainers.images.builder.ImageFromDockerfile.lambda$static$22(ImageFromDockerfile.java:42)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127)
at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:119)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77)
... 13 more
Caused by: java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.makePipe(Native Method)
at sun.nio.ch.KQueueSelectorImpl.<init>(KQueueSelectorImpl.java:84)
at sun.nio.ch.KQueueSelectorProvider.openSelector(KQueueSelectorProvider.java:42)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125)
... 17 more
I’m running OS X 10.10.5, using docker toolbox 1.11.2.
$ docker info
Containers: 1
Images: 449
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 613
Dirperm1 Supported: true
Logging Driver: json-file
Kernel Version: 4.4.8-boot2docker
Operating System: Boot2Docker 1.11.1-rc1 (TCL 7.0); HEAD : 903a352 - Tue Apr 26 14:18:06 UTC 2016
CPUs: 1
Total Memory: 995.9 MiB
Name: docker-vm
ID: QAXI:YDZA:NQO6:CJ6F:222Q:FZO5:MJIB:BKUR:OCQP:WCJJ:QOUT:JYPN
Debug mode (server): true
File Descriptors: 13
Goroutines: 30
System Time: 2016-07-06T17:25:13.145332684Z
EventsListeners: 0
Init SHA1:
Init Path:
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: ********
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 47 (40 by maintainers)
Commits related to this issue
- Introduce rate limiter for docker daemon pinging (when testing connections) to resolve as a potential cause of #170 — committed to testcontainers/testcontainers-java by rnorth 8 years ago
- Shade io.netty dependencies to avoid conflicts. May partially improve #170, addresses #157. — committed to testcontainers/testcontainers-java by rnorth 8 years ago
- Merge pull request #175 from testcontainers/#170-fix-resource-leak Shade io.netty dependencies into Testcontainers JAR Improve cleanup of docker clients — committed to testcontainers/testcontainers-java by rnorth 8 years ago
Same as before with a86827b, effectively 1.1.2.