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

Connection is still allocated error on Windows #1152

Closed
Madanor opened this issue Jan 17, 2019 · 13 comments
Closed

Connection is still allocated error on Windows #1152

Madanor opened this issue Jan 17, 2019 · 13 comments

Comments

@Madanor
Copy link

Madanor commented Jan 17, 2019

Description

d-m-p 0.28.0 is not working on Windows, e.g. mvn docker:build
Error: Connection is still allocated
0.28.0 works fine on Linux. Old version 0.27.2 works on Windows.
The issue is reproducible with d-m-p version switching back and forth, restarting, colleagues machine.
I found this issue from f-m-p, which looks related: fabric8io/fabric8-maven-plugin#1468

> mvn docker:build
[INFO] Scanning for projects...
... download artifacts ...
[INFO]
[INFO] --------------------------< com.example:test >--------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ----------------------------[ docker-build ]----------------------------
[INFO]
[INFO] --- docker-maven-plugin:0.28.0:build (default-cli) @ test ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.089 s
[INFO] Finished at: 2019-01-17T14:55:35+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.28.0:build (default-cli) on project test: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.28.0:build failed: Connection is still allocated -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Info

  • d-m-p version : 0.28.0
  • Maven version (mvn -v) : 3.5.4 or 3.6.0
  • Windows version : 10.0.14393 Build 14393
  • Docker version : Docker Desktop 2.0.0.2 (30215)
  • How to reproduce : windows-0.28.0.zip
@JoepWeijers
Copy link

JoepWeijers commented Jan 17, 2019

Running into exactly the same issue. Reverting to 0.27.2 as a workaround for now.

  • Windows 10 version 1803, build 17134.523
  • mvn 3.5.2
  • Docker Desktop 2.0.0.2 (30215) = Docker Engine 18.09.1

LorenzoBettini pushed a commit to LorenzoBettini/docker-java-example that referenced this issue Jan 22, 2019
LorenzoBettini added a commit to LorenzoBettini/docker-java-example that referenced this issue Jan 22, 2019
@a-a-davydov
Copy link

I have same problem:

d-m-p version : 0.28.0
Maven version (mvn -v) : 3.3.9 (Netbeans 9.0)
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Windows 10 pro

Docker version : Docker desctop community Version 2.0.0.2 (30215) Channel: stable Build: 0b030e1

@pontello
Copy link

pontello commented Feb 2, 2019

Same problem here, also downgraded to 0.27.2.

@brandonheck
Copy link

👍 Seeing the same here, downgrade to 0.27.2 works.

@reneploetz
Copy link
Contributor

Looking at the source code and the changes between 0.27.2 and 0.28, this is might be a connection leak in DockerAccessWithHcClient.fetchApiVersionFromServer as the CloseableHttpResponse is never closed.

@LorenzoBettini
Copy link

Thanks! When will this fixed version be released?

@rohanKanojia
Copy link
Member

@LorenzoBettini : Umm, I think it would be available in 2-3 weeks. Roland manages the release process; if he is too busy, maybe it can be delayed by 1-2 weeks.

@rhuss
Copy link
Collaborator

rhuss commented Apr 6, 2019

I'm going to make a release this weekend. Sorry for any inconvenience and the long delay.

@Madanor
Copy link
Author

Madanor commented Apr 7, 2019

Thank you.

@meier297
Copy link

Thanks. But latest version 4.1.0 on https://mvnrepository.com/artifact/io.fabric8/fabric8-maven-plugin uses still docker-maven-plugin 0.28.0. When a new release will be available?

@rodrigorodrigues
Copy link

@meier297 had same issue with 0.28.0 but I updated for latest version 0.30.0 and worked fine

@sramshek
Copy link

sramshek commented Jul 4, 2024

We are still seeing this error with docker-maven 0.44.0 version.

@rohanKanojia
Copy link
Member

@sramshek : Could you please open a new issue with a reproducer project and your environment details?

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

No branches or pull requests