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
Boot2Docker and create command throws an exception #110
Comments
@lordofthejars Usually i run the integration tests against boot2docker. Saying this all tests passed with boot2docker 1.3.2 and current v0.10.4 of docker-java
|
@lordofthejars Could you give me some more details? What kind of operation leads to the stacktrace above? |
@lordofthejars To be sure, it's only the case when creating a container? |
yes PING works |
@lordofthejars Hmmm.... Just a guess. Maybe this is somehow related to TLS/SSL security added with docker 1.3.0? Latest boot2Docker versions switched to TLS/SSL by default. Don't know if PING works without TLS/SSL, so it could be some issue with docker-java configuration of ports or certificates... |
@marcuslinke I'm also experiencing this. Try the latest version of boot2docker, v1.4.1 I'm using the properties file as suggested in the documentation with the following properties. Note I'm using TLS and it works fine on all commands with the first client. ~/.docker.io.properties
I seem to be experiencing this only when 2 threads in invoke the same client instance (not concurrently) Thread 1 performs the following
Thread 2 performs the following
EDIT: Just an update, and I changed the test to use only 1 thread. Even if it's the same thread, it always fails on the second invocation. |
@marcuslinke @lordofthejars It looks like something is leaking connections. The problem appears to be buried within the apache pool. Specifically, in AbstractConnPool.getPoolEntryBlocking:219. The pool of the state shows this in my debugger
As you can see, there's nothing left in the pool, so we're just timing out on borrow. When you create a command, do you explicitly have to close it? |
Good question, maybe this is exactly the problem, but if it was then it would not work any test, but in our case there are some tests that are passing. |
@tnine Seen the same behavior in the docker-java test suite. You can configure the maxroute pool in docker-java that makes it work, but.. possible just a short workaround. If you set configBuilder.withMaxPerRouteConnections(20) here https://github.com/arquillian/arquillian-cube/blob/master/docker/src/main/java/org/arquillian/cube/impl/docker/DockerClientExecutor.java#L108 (And I just woke up, missed this was a docker-java issue, not a Cube issue.. but same same :) |
Just found http://phillbarber.blogspot.de/2014/02/lessons-learned-from-connection-leak-in.html. Seems when using |
@tnine Could you test with current Snapshot please? |
Hi I don't know if you have tested the library using boot2docker, but we have tried to use and an exception is thrown.
The exception is something like:
Maybe it is a boot2docker configuration problem, but we have tried the same code with a linux docker and runs perfectly and also we have tried using
curl
directly to boot2docker and it worked as well.Any idea?
The text was updated successfully, but these errors were encountered: