-
Bug
-
Resolution: Unresolved
-
Major
Hello,
this is a regression but I'm not able to find the old bug which was solved months ago.
I just upgraded jenkins and its plugins, and while trying to run the build on dynamic slaves containers, i get this error:
org.apache.hc.client5.http.HttpHostConnectException: Connect to unix://localhost:2375 [localhost/127.0.0.1] failed: Connection refused
before the upgrade, everything was working properly.
My cloud config:
Docker host URI: unix:///var/run/docker.sock
Here the versions:
Jenkins 2.462.1 -> 2.462.3
Docker API Plugin 3.4.0-94.v65ced49b_a_7d5
Docker Commons Plugin 443.v921729d5611d
Docker Pipeline 580.vc0c340686b_54
Docker plugin 1.6.2
Thank you!
The Apache HTTP client 5 library has a breaking change that harms the docker-java API library that is used in the Docker plugin. More details are in the following GitHub issues:
Apache httpclient 5 library 5.3.1-110.v77252fb_d4da_5 seems to work well, while Apache httpclient 5 library 5.4-118.v199115451c4d is known to break compatibility.
In future reports, it is a great help if you include the precise plugins installed. There is a system groovy script that generates the list from your controller.