You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "holzit (via GitHub)" <gi...@apache.org> on 2024/10/28 09:18:07 UTC

[I] Parallel build of docker images with docker-maven-plugin in "Cannot create docker access object" [maven-mvnd]

holzit opened a new issue, #1183:
URL: https://github.com/apache/maven-mvnd/issues/1183

   When building multiple docker images in parallel on Windows 10 Enterprise with mvnd version 1.0.2 fails, works fine with maven 3.9.8 sequential.
   ```
   [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.35.0:build (install) on project X-docker: Cannot create docker access object : \\.\pipe\docker_engine (All pipe instances are busy) -> [Help 1]
   [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.35.0:build (install) on project X-docker: Cannot create docker access object : \\.\pipe\docker_engine (All pipe instances are busy) -> [Help 1]
   [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.35.0:build (install) on project X-docker: Cannot create docker access object : \\.\pipe\docker_engine (All pipe instances are busy) -> [Help 1]
   ```
   WSL 2 docker with Expose daemon on tcp://localhost:2375 without TLS is used in a standard non admin Account
   
   `[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.35.0:build (install) on project X-docker: Cannot create docker access object : \\.\pipe\docker_engine (All pipe instances are busy) -> [Help 1]
   org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.35.0:build (install) on project X-docker: Cannot create docker access object 
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
       at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
       at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
       at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
       at io.takari.maven.builder.smart.SmartBuilderImpl.buildProject (SmartBuilderImpl.java:206)
       at io.takari.maven.builder.smart.SmartBuilderImpl$ProjectBuildTask.run (SmartBuilderImpl.java:71)
       at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
       at java.util.concurrent.FutureTask.run (FutureTask.java:264)
       at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
       at java.lang.Thread.run (Thread.java:834)
   Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot create docker access object 
       at io.fabric8.maven.docker.service.DockerAccessFactory.createDockerAccess (DockerAccessFactory.java:43)
       at io.fabric8.maven.docker.AbstractDockerMojo.execute (AbstractDockerMojo.java:257)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
       at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
       at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
       at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
       at io.takari.maven.builder.smart.SmartBuilderImpl.buildProject (SmartBuilderImpl.java:206)
       at io.takari.maven.builder.smart.SmartBuilderImpl$ProjectBuildTask.run (SmartBuilderImpl.java:71)
       at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
       at java.util.concurrent.FutureTask.run (FutureTask.java:264)
       at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
       at java.lang.Thread.run (Thread.java:834)
   Caused by: java.io.FileNotFoundException: \\.\pipe\docker_engine (All pipe instances are busy)
       at java.io.RandomAccessFile.open0 (Native Method)
       at java.io.RandomAccessFile.open (RandomAccessFile.java:345)
       at java.io.RandomAccessFile.<init> (RandomAccessFile.java:259)
       at java.io.RandomAccessFile.<init> (RandomAccessFile.java:214)
       at java.io.RandomAccessFile.<init> (RandomAccessFile.java:127)
       at io.fabric8.maven.docker.access.hc.win.NamedPipe.connect (NamedPipe.java:61)
       at io.fabric8.maven.docker.access.hc.util.AbstractNativeSocketFactory.connectSocket (AbstractNativeSocketFactory.java:42)
       at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:142)
       at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect (BasicHttpClientConnectionManager.java:313)
       at org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:393)
       at org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
       at org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:186)
       at org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:89)
       at org.apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
       at org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:185)
       at org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:83)
       at org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:108)
       at io.fabric8.maven.docker.access.hc.DockerAccessWithHcClient.fetchApiVersionFromServer (DockerAccessWithHcClient.java:802)
       at io.fabric8.maven.docker.access.hc.DockerAccessWithHcClient.<init> (DockerAccessWithHcClient.java:143)
       at io.fabric8.maven.docker.service.DockerAccessFactory.createDockerAccess (DockerAccessFactory.java:38)
       at io.fabric8.maven.docker.AbstractDockerMojo.execute (AbstractDockerMojo.java:257)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
       at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
       at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
       at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
       at io.takari.maven.builder.smart.SmartBuilderImpl.buildProject (SmartBuilderImpl.java:206)
       at io.takari.maven.builder.smart.SmartBuilderImpl$ProjectBuildTask.run (SmartBuilderImpl.java:71)
       at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
       at java.util.concurrent.FutureTask.run (FutureTask.java:264)
       at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
       at java.lang.Thread.run (Thread.java:834)
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parallel build of docker images with docker-maven-plugin results in "Cannot create docker access object" [maven-mvnd]

Posted by "lbeltran-dev (via GitHub)" <gi...@apache.org>.
lbeltran-dev commented on issue #1183:
URL: https://github.com/apache/maven-mvnd/issues/1183#issuecomment-2590872919

   I'm currently having the same issue:
   `io.fabric8:docker-maven-plugin:0.45.1:start (default-start) on project temp: Cannot create docker access object  \\.\pipe\docker_engine (All pipe instances are busy)`
   
   I'm using Windows 11 and Docker Desktop. My stack trace is pretty much identical as yours.
   
   I sometimes get these issues with Docker Desktop, and usually restarting or rerunning the mvn commands solved the issue, but this time I can't seem to escape the error.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org