com.github.dockerjava.api.InternalServerErrorException: Cannot kill container dpui-for-jenkins: notrunning: Container ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e is not running

Jenkins JIRA | david crosson | 1 year ago
  1. 0

    For a freshly creater mysql container (create container and then start container in build steps), when I try to remove it in post-build actions, I get the following error message (and the container is not removed) : [Docker] INFO: created container id ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e (from image mysql:5.7) [Docker] INFO: started container id dpui-for-jenkins ... [info] Done packaging. [success] Total time: 1 s, completed Nov 19, 2015 9:13:33 AM [Docker] INFO: stopped container id dpui-for-jenkins ERROR: Build step failed with exception com.github.dockerjava.api.InternalServerErrorException: Cannot kill container dpui-for-jenkins: notrunning: Container ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e is not running at com.github.dockerjava.core.util.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:54) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:134) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:123) at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:251) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333) at com.github.dockerjava.jaxrs.KillContainerCmdExec.execute(KillContainerCmdExec.java:32) at com.github.dockerjava.jaxrs.KillContainerCmdExec.execute(KillContainerCmdExec.java:11) at com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:57) at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29) at com.github.dockerjava.core.command.KillContainerCmdImpl.exec(KillContainerCmdImpl.java:55) at org.jenkinsci.plugins.dockerbuildstep.cmd.RemoveCommand.execute(RemoveCommand.java:65) at org.jenkinsci.plugins.dockerbuildstep.DockerPostBuilder$DockerPostBuildStep.perform(DockerPostBuilder.java:84) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Stop and remove Docker container' marked build as failure Finished: FAILURE *The container is then stopped but not removed *:( So when the build is restarted, it directly fail on container creation as a container with the same name already exists.

    Jenkins JIRA | 1 year ago | david crosson
    com.github.dockerjava.api.InternalServerErrorException: Cannot kill container dpui-for-jenkins: notrunning: Container ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e is not running
  2. 0

    For a freshly creater mysql container (create container and then start container in build steps), when I try to remove it in post-build actions, I get the following error message (and the container is not removed) : [Docker] INFO: created container id ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e (from image mysql:5.7) [Docker] INFO: started container id dpui-for-jenkins ... [info] Done packaging. [success] Total time: 1 s, completed Nov 19, 2015 9:13:33 AM [Docker] INFO: stopped container id dpui-for-jenkins ERROR: Build step failed with exception com.github.dockerjava.api.InternalServerErrorException: Cannot kill container dpui-for-jenkins: notrunning: Container ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e is not running at com.github.dockerjava.core.util.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:54) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:134) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:123) at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:251) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333) at com.github.dockerjava.jaxrs.KillContainerCmdExec.execute(KillContainerCmdExec.java:32) at com.github.dockerjava.jaxrs.KillContainerCmdExec.execute(KillContainerCmdExec.java:11) at com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:57) at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29) at com.github.dockerjava.core.command.KillContainerCmdImpl.exec(KillContainerCmdImpl.java:55) at org.jenkinsci.plugins.dockerbuildstep.cmd.RemoveCommand.execute(RemoveCommand.java:65) at org.jenkinsci.plugins.dockerbuildstep.DockerPostBuilder$DockerPostBuildStep.perform(DockerPostBuilder.java:84) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Stop and remove Docker container' marked build as failure Finished: FAILURE *The container is then stopped but not removed *:( So when the build is restarted, it directly fail on container creation as a container with the same name already exists.

    Jenkins JIRA | 1 year ago | david crosson
    com.github.dockerjava.api.InternalServerErrorException: Cannot kill container dpui-for-jenkins: notrunning: Container ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e is not running
  3. 0

    Unable to start a Docker container through Remote Docker Java API

    Stack Overflow | 1 year ago | Chiranga Alwis
    com.github.dockerjava.api.InternalServerErrorException: Cannot start container 485386a92b34c5aaf53793207e5c6a8146295b23602c9d0adf86d64a1b27d031: write /sys/fs/cgroup/cpuset/docker/485386a92b34c5aaf53793207e5c6a8146295b23602c9d0adf86d64a1b27d031/cpuset.cpus: invalid argument
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    can't execute simple build script

    GitHub | 2 years ago | muerciak
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':Conf:createMyAppContainer'.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.github.dockerjava.api.InternalServerErrorException

      Cannot kill container dpui-for-jenkins: notrunning: Container ca1d14fe848e67298f7c507473d9f732e159b3e400d04f15db781717bdc5214e is not running

      at com.github.dockerjava.core.util.ResponseStatusExceptionFilter.filter()
    2. com.github.dockerjava
      ResponseStatusExceptionFilter.filter
      1. com.github.dockerjava.core.util.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:54)
      1 frame
    3. jersey-core-client
      ClientFilteringStages$ResponseFilterStage.apply
      1. org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:134)
      2. org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:123)
      2 frames
    4. Jersey Core
      Stages.process
      1. org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)
      1 frame
    5. jersey-core-client
      JerseyInvocation$1.call
      1. org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:251)
      2. org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667)
      3. org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664)
      3 frames
    6. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      2. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:228)
      4. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424)
      4 frames
    7. jersey-core-client
      JerseyInvocation$Builder.post
      1. org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664)
      2. org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424)
      3. org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333)
      3 frames
    8. docker-java
      KillContainerCmdImpl.exec
      1. com.github.dockerjava.jaxrs.KillContainerCmdExec.execute(KillContainerCmdExec.java:32)
      2. com.github.dockerjava.jaxrs.KillContainerCmdExec.execute(KillContainerCmdExec.java:11)
      3. com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:57)
      4. com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29)
      5. com.github.dockerjava.core.command.KillContainerCmdImpl.exec(KillContainerCmdImpl.java:55)
      5 frames
    9. org.jenkinsci.plugins
      DockerPostBuilder$DockerPostBuildStep.perform
      1. org.jenkinsci.plugins.dockerbuildstep.cmd.RemoveCommand.execute(RemoveCommand.java:65)
      2. org.jenkinsci.plugins.dockerbuildstep.DockerPostBuilder$DockerPostBuildStep.perform(DockerPostBuilder.java:84)
      2 frames
    10. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:408)
      9 frames