{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/docker-plugin/issues/628","repository_url":"https://api.github.com/repos/jenkinsci/docker-plugin","labels_url":"https://api.github.com/repos/jenkinsci/docker-plugin/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/docker-plugin/issues/628/comments","events_url":"https://api.github.com/repos/jenkinsci/docker-plugin/issues/628/events","html_url":"https://github.com/jenkinsci/docker-plugin/issues/628","id":300274708,"number":628,"title":"Docker Slaves die randomly during build.","user":{"login":"CaptainPGums","id":36852257,"avatar_url":"https://avatars3.githubusercontent.com/u/36852257?v=4","gravatar_id":"","url":"https://api.github.com/users/CaptainPGums","html_url":"https://github.com/CaptainPGums","followers_url":"https://api.github.com/users/CaptainPGums/followers","following_url":"https://api.github.com/users/CaptainPGums/following{/other_user}","gists_url":"https://api.github.com/users/CaptainPGums/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainPGums/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainPGums/subscriptions","organizations_url":"https://api.github.com/users/CaptainPGums/orgs","repos_url":"https://api.github.com/users/CaptainPGums/repos","events_url":"https://api.github.com/users/CaptainPGums/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainPGums/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-26T15:10:35Z","updated_at":"2018-02-27T16:00:01Z","closed_at":null,"author_association":"NONE","body":"**Docker Plugin versions:**\r\n    1.1.3 *and* 1.2 SNAPSHOT\r\n\t\r\n**Jenkins Version:** \r\n    2.89.4\r\n\t\r\n**Docker Version:**\r\n    Version:      17.03.2-ce\r\n    API version:  1.27 (minimum version 1.12)\r\n    Go version:   go1.7.5\r\n    Git commit:   f5ec1e2\r\n    Built:        Tue Jun 27 02:21:36 2017\r\n\r\n**Possibly related issue:**\r\n    https://github.com/jenkinsci/docker-plugin/issues/621\r\n\r\n**My actual problem**\r\n\r\nI created a basic freestyle test project. This just prints out a directory listing, touches a file (to make sure mounting volumes works correctly), but doesn't run for >60 seconds. \r\nThis always completes correctly.\r\n\r\nWith all versions of the plugin, what happens, other than for the trivial \"Test\" job, all jobs fail before completion.\r\n\r\nAll failing jobs are Maven based.\r\n\r\n- Some can run for 30 seconds then fail while cloning the git repository.\r\n- Some can die after 5 minutes. The last stack trace below shows this. I'm only building a single bundle, as it's gets frustrating when the build fails 2 minutes before the end of a 50 minute release, so by using just one bundle, it fails more quickly.\r\n- Some can run for 45 minutes, and then fail when Jenkins is cleaning up. The same job which gave the last stack trace normally fails after 10 minutes (give or take)\r\n\r\nWhen they die, they are always cleaned up correctly, and the next job always starts correctly.\r\n\r\nI upgraded to 1.2 SNAPSHOT after I saw the possibly related issue above, but it made no difference.\r\n\r\nInfrastructure is a single VM, dual core 8Gb RAM, 100Gb HDD running the docker server + JFrog artifactory.\r\n\r\nThere is no old data present currently. I had an issue with old maven data being present, but that's been removed.\r\n\r\n**Relevant Jenkins Config**\r\n\r\nTemplate is configured to communicate via Attaching to Docker Container. This is because if I connect via SSH, something, somewhere has an issue, and the SSH key is passed from the Docker Plugin>Docker Container to the Container>GIT repository, which causes an authentication failure. I can't build a JNLP image on our server here, due to missing files, so I'm kind of stuck with the SSH image for now.\r\n\r\nConfiguration for the Jenkins Template is below. idleMinutes is set to 10, but it seems to make no difference if I set it to 60.\r\n\r\nClouds configuration is attached as clouds.txt.\r\n\r\n**Installation History**\r\nVersion 1.1.2 was already installed on the box when I took over managing it. I then upgraded to 1.1.3. **As far as I know**, version 0.16.x or earlier has never been installed on this Jenkins.\r\n\r\nI've installed 1.2 SNAPSHOT to see if it helped.\r\n\r\n\r\n**Stack Traces:**\r\nAll stack traces are along the lines of the blocks below. I've not supplied the full build logs, as most of these are >1Mb, and don't actually give much information.\r\n\r\n> 14:00:49 Archiving artifacts\r\n> 14:00:52 ERROR: Failed to archive artifacts: Installer/MiddlewareInstallerKarafAssembly/*.exe, Installer/MiddlewareInstallerKarafAssembly/*.run, Installer/MiddlewareInstallerKarafAssembly/AutoInstallScript.txt, Middleware-Parent/karaf-assembly/license.txt\r\n> 14:00:52 java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 4\r\n> 14:00:52 \tat io.jenkins.docker.client.DockerMultiplexedInputStream.readInternal(DockerMultiplexedInputStream.java:45)\r\n> 14:00:52 \tat io.jenkins.docker.client.DockerMultiplexedInputStream.read(DockerMultiplexedInputStream.java:25)\r\n> 14:00:52 \tat hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:91)\r\n> 14:00:52 \tat hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72)\r\n> 14:00:52 \tat hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103)\r\n> 14:00:52 \tat hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)\r\n> 14:00:52 \tat hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)\r\n> 14:00:52 \tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)\r\n> 14:00:52 Caused: java.io.IOException\r\n> 14:00:52 \tat hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)\r\n> 14:00:52 \tat hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)\r\n> 14:00:52 \tat com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)\r\n> 14:00:52 \tat com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)\r\n> 14:00:52 \tat org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)\r\n> 14:00:52 \tat java.io.InputStream.read(Unknown Source)\r\n> 14:00:52 \tat org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)\r\n> 14:00:52 \tat org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)\r\n> 14:00:52 \tat org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)\r\n> 14:00:52 \tat hudson.util.IOUtils.copy(IOUtils.java:40)\r\n> 14:00:52 \tat hudson.FilePath.readFromTar(FilePath.java:2307)\r\n> 14:00:52 Also:   <cycle to java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 4>\r\n> 14:00:52 \tCaused: hudson.remoting.RequestAbortedException\r\n> 14:00:52 \t\tat hudson.remoting.Request.abort(Request.java:329)\r\n> 14:00:52 \t\tat hudson.remoting.Channel.terminate(Channel.java:992)\r\n> 14:00:52 \t\tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:96)\r\n> 14:00:52 \tCaused: java.util.concurrent.ExecutionException\r\n> 14:00:52 \t\tat hudson.remoting.Request$1.get(Request.java:308)\r\n> 14:00:52 \t\tat hudson.remoting.Request$1.get(Request.java:229)\r\n> 14:00:52 \t\tat hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)\r\n> 14:00:52 \t\tat hudson.FilePath.copyRecursiveTo(FilePath.java:2224)\r\n> 14:00:52 Caused: java.io.IOException: Failed to extract /home/jenkins/workspace/Middleware_Develop/transfer of 4 files\r\n> 14:00:52 \tat hudson.FilePath.readFromTar(FilePath.java:2317)\r\n> 14:00:52 \tat hudson.FilePath.copyRecursiveTo(FilePath.java:2221)\r\n> 14:00:52 \tat jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)\r\n> 14:00:52 \tat hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:245)\r\n> 14:00:52 \tat hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)\r\n> 14:00:52 \tat hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)\r\n> 14:00:52 \tat hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)\r\n> 14:00:52 \tat hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)\r\n> 14:00:52 \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)\r\n> 14:00:52 \tat hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)\r\n> 14:00:52 \tat hudson.model.Run.execute(Run.java:1749)\r\n> 14:00:52 \tat hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)\r\n> 14:00:52 \tat hudson.model.ResourceController.execute(ResourceController.java:97)\r\n> 14:00:52 \tat hudson.model.Executor.run(Executor.java:429)\r\n> 14:00:52 Build step 'Archive the artifacts' changed build result to FAILURE\r\n\r\n\r\n\r\n> 14:19:47 ERROR: Build step failed with exception\r\n> 14:19:47 java.lang.NullPointerException: no workspace from node io.jenkins.docker.DockerTransientNode[docker-298a19d5038f4] which is computer DockerComputer{name=docker-298a19d5038f4, slave=io.jenkins.docker.DockerTransientNode[docker-298a19d5038f4]} and has channel null\r\n> 14:19:47 \tat hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:88)\r\n> 14:19:47 \tat hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)\r\n> 14:19:47 \tat hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)\r\n> 14:19:47 \tat hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)\r\n> 14:19:47 \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:945)\r\n> 14:19:47 \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:896)\r\n> 14:19:47 \tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)\r\n> 14:19:47 \tat hudson.model.Run.execute(Run.java:1724)\r\n> 14:19:47 \tat hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)\r\n> 14:19:47 \tat hudson.model.ResourceController.execute(ResourceController.java:97)\r\n> 14:19:47 \tat hudson.model.Executor.run(Executor.java:429)\r\n> 14:19:47 Build step 'Execute shell' marked build as failure\r\n> 14:19:47 ERROR: Failed to parse POMs\r\n> 14:19:47 java.io.IOException: Failed to extract /home/jenkins/workspace/Middleware_Develop/Middleware-Parent/karaf-assembly/transfer of 3 files\r\n> 14:19:47 \tat hudson.FilePath.readFromTar(FilePath.java:2317)\r\n> 14:19:47 \tat hudson.FilePath.copyRecursiveTo(FilePath.java:2221)\r\n> 14:19:47 \tat jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)\r\n> 14:19:47 \tat hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:512)\r\n> 14:19:47 \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:881)\r\n> 14:19:47 \tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)\r\n> 14:19:47 \tat hudson.model.Run.execute(Run.java:1724)\r\n> 14:19:47 \tat hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)\r\n> 14:19:47 \tat hudson.model.ResourceController.execute(ResourceController.java:97)\r\n> 14:19:47 \tat hudson.model.Executor.run(Executor.java:429)\r\n> 14:19:47 \tSuppressed: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 7\r\n> 14:19:47 \t\tat hudson.remoting.Request$1.get(Request.java:308)\r\n> 14:19:47 \t\tat hudson.remoting.Request$1.get(Request.java:229)\r\n> 14:19:47 \t\tat hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)\r\n> 14:19:47 \t\tat hudson.FilePath.copyRecursiveTo(FilePath.java:2224)\r\n> 14:19:47 \t\t... 8 more\r\n> 14:19:47 \tCaused by: hudson.remoting.RequestAbortedException: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 7\r\n> 14:19:47 \t\tat hudson.remoting.Request.abort(Request.java:329)\r\n> 14:19:47 \t\tat hudson.remoting.Channel.terminate(Channel.java:992)\r\n> 14:19:47 \t\tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:96)\r\n> 14:19:47 \tCaused by: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 7\r\n> 14:19:47 \t\tat io.jenkins.docker.client.DockerMultiplexedInputStream.readInternal(DockerMultiplexedInputStream.java:45)\r\n> 14:19:47 \t\tat io.jenkins.docker.client.DockerMultiplexedInputStream.read(DockerMultiplexedInputStream.java:25)\r\n> 14:19:47 \t\tat hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:91)\r\n> 14:19:47 \t\tat hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72)\r\n> 14:19:47 \t\tat hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103)\r\n> 14:19:47 \t\tat hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)\r\n> 14:19:47 \t\tat hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)\r\n> 14:19:47 \t\tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)\r\n> 14:19:47 Caused by: java.io.IOException: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 7\r\n> 14:19:47 \tat hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)\r\n> 14:19:47 \tat hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)\r\n> 14:19:47 \tat com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)\r\n> 14:19:47 \tat com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)\r\n> 14:19:47 \tat org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)\r\n> 14:19:47 \tat java.io.InputStream.read(Unknown Source)\r\n> 14:19:47 \tat org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)\r\n> 14:19:47 \tat org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)\r\n> 14:19:47 \tat org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)\r\n> 14:19:47 \tat hudson.util.IOUtils.copy(IOUtils.java:40)\r\n> 14:19:47 \tat hudson.FilePath.readFromTar(FilePath.java:2307)\r\n> 14:19:47 \t... 9 more\r\n> 14:19:47 \t[CIRCULAR REFERENCE:java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 7]\r\n> 14:19:48 ERROR: Step ‘JIRA: Update relevant issues’ failed: no workspace for Middleware_Develop #42\r\n\r\n\r\n\r\n> 20:20:36 Waiting for Jenkins to finish collecting data\r\n> 20:20:36 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/qrc-firmware-manager/pom.xml to com.te.quareosimulator.firmware/qrc-firmware-manager/2.2.5-RELEASE/qrc-firmware-manager-2.2.5-RELEASE.pom\r\n> 20:20:36 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/qrc-firmware-manager/target/qrc-firmware-manager.jar to com.te.quareosimulator.firmware/qrc-firmware-manager/2.2.5-RELEASE/qrc-firmware-manager-2.2.5-RELEASE.jar\r\n> 20:21:01 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/config-rest-interface/pom.xml to com.te.quareosimulator.endpoint/config-rest-endpoints/2.2.5-RELEASE/config-rest-endpoints-2.2.5-RELEASE.pom\r\n> 20:21:01 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/config-rest-interface/target/config-rest-endpoints.jar to com.te.quareosimulator.endpoint/config-rest-endpoints/2.2.5-RELEASE/config-rest-endpoints-2.2.5-RELEASE.jar\r\n> 20:21:02 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/quareo-device-cache/pom.xml to com.te.quareosimulator.device/quareo-device-cache/2.2.5-RELEASE/quareo-device-cache-2.2.5-RELEASE.pom\r\n> 20:21:02 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/quareo-device-cache/target/quareo-device-cache.jar to com.te.quareosimulator.device/quareo-device-cache/2.2.5-RELEASE/quareo-device-cache-2.2.5-RELEASE.jar\r\n> 20:21:03 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/karaf-assembly/pom.xml to com.te.quareosimulator.karaf/karaf-assembly/2.2.5-RELEASE/karaf-assembly-2.2.5-RELEASE.pom\r\n> 20:21:03 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/karaf-assembly/pom.xml to com.te.quareosimulator.karaf/karaf-assembly/2.2.5-RELEASE/karaf-assembly-2.2.5-RELEASE.karaf-assembly\r\n> 20:21:03 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/karaf-assembly/target/karaf-assembly-2.2.5-RELEASE.tar.gz to com.te.quareosimulator.karaf/karaf-assembly/2.2.5-RELEASE/karaf-assembly-2.2.5-RELEASE.tar.gz\r\n> 20:21:03 [JENKINS] Archiving /home/jenkins/workspace/Quareo-Simulator_QS-Release/karaf-assembly/target/karaf-assembly-2.2.5-RELEASE.zip to com.te.quareosimulator.karaf/karaf-assembly/2.2.5-RELEASE/karaf-assembly-2.2.5-RELEASE.zip\r\n> 20:21:05 ERROR: Failed to parse POMs\r\n> 20:21:05 java.io.IOException: Failed to extract /home/jenkins/workspace/Quareo-Simulator_QS-Release/karaf-assembly/transfer of 4 files\r\n> 20:21:05 \tat hudson.FilePath.readFromTar(FilePath.java:2317)\r\n> 20:21:05 \tat hudson.FilePath.copyRecursiveTo(FilePath.java:2221)\r\n> 20:21:05 \tat jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)\r\n> 20:21:05 \tat hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:512)\r\n> 20:21:05 \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:881)\r\n> 20:21:05 \tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)\r\n> 20:21:05 \tat hudson.model.Run.execute(Run.java:1724)\r\n> 20:21:05 \tat hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)\r\n> 20:21:05 \tat hudson.model.ResourceController.execute(ResourceController.java:97)\r\n> 20:21:05 \tat hudson.model.Executor.run(Executor.java:429)\r\n> 20:21:05 \tSuppressed: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1\r\n> 20:21:05 \t\tat hudson.remoting.Request$1.get(Request.java:308)\r\n> 20:21:05 \t\tat hudson.remoting.Request$1.get(Request.java:229)\r\n> 20:21:05 \t\tat hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)\r\n> 20:21:05 \t\tat hudson.FilePath.copyRecursiveTo(FilePath.java:2224)\r\n> 20:21:05 \t\t... 8 more\r\n> 20:21:05 \tCaused by: hudson.remoting.RequestAbortedException: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1\r\n> 20:21:05 \t\tat hudson.remoting.Request.abort(Request.java:329)\r\n> 20:21:05 \t\tat hudson.remoting.Channel.terminate(Channel.java:992)\r\n> 20:21:05 \t\tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:96)\r\n> 20:21:05 \tCaused by: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1\r\n> 20:21:05 \t\tat io.jenkins.docker.client.DockerMultiplexedInputStream.readInternal(DockerMultiplexedInputStream.java:45)\r\n> 20:21:05 \t\tat io.jenkins.docker.client.DockerMultiplexedInputStream.read(DockerMultiplexedInputStream.java:25)\r\n> 20:21:05 \t\tat hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:91)\r\n> 20:21:05 \t\tat hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72)\r\n> 20:21:05 \t\tat hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103)\r\n> 20:21:05 \t\tat hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)\r\n> 20:21:05 \t\tat hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)\r\n> 20:21:05 \t\tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)\r\n> 20:21:05 Caused by: java.io.IOException: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1\r\n> 20:21:05 \tat hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)\r\n> 20:21:05 \tat hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)\r\n> 20:21:05 \tat com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)\r\n> 20:21:05 \tat com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)\r\n> 20:21:05 \tat org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)\r\n> 20:21:05 \tat java.io.InputStream.read(Unknown Source)\r\n> 20:21:05 \tat org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)\r\n> 20:21:05 \tat org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)\r\n> 20:21:05 \tat org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)\r\n> 20:21:05 \tat hudson.util.IOUtils.copy(IOUtils.java:40)\r\n> 20:21:05 \tat hudson.FilePath.readFromTar(FilePath.java:2307)\r\n> 20:21:05 \t... 9 more\r\n> 20:21:05 \t[CIRCULAR REFERENCE:java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1]\r\n> 20:21:05 ERROR: Step ‘Archive the artifacts’ failed: no workspace for Quareo-Simulator_QS-Release #67\r\n\r\nThis stack trace shows it happening 5 minutes after the start of the build...\r\n\r\n> Started by user Smith, Peter (Pete)\r\n> [EnvInject] - Loading node environment variables.\r\n> Building remotely on docker-29a83953db3cf on docker (docker-Middleware_Develop) in workspace /home/jenkins/workspace/Middleware_Develop\r\n>  > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10\r\n> Fetching changes from the remote Git repository\r\n>  > /usr/bin/git config remote.origin.url http://cdcaimgitp1.commscope.com/root/QuareoMiddleware.git # timeout=10\r\n> Fetching upstream changes from http://cdcaimgitp1.commscope.com/root/QuareoMiddleware.git\r\n>  > /usr/bin/git --version # timeout=10\r\n> using GIT_ASKPASS to set credentials Gitlab Checkout\r\n>  > /usr/bin/git fetch --tags --progress http://cdcaimgitp1.commscope.com/root/QuareoMiddleware.git +refs/heads/*:refs/remotes/origin/* # timeout=30\r\n>  > /usr/bin/git rev-parse refs/remotes/origin/develop^{commit} # timeout=10\r\n>  > /usr/bin/git rev-parse refs/remotes/origin/origin/develop^{commit} # timeout=10\r\n> Checking out Revision 5f95be55e3327417cea16f2cf418bad7fa91b705 (refs/remotes/origin/develop)\r\n>  > /usr/bin/git config core.sparsecheckout # timeout=10\r\n>  > /usr/bin/git checkout -f 5f95be55e3327417cea16f2cf418bad7fa91b705\r\n> Commit message: \"AIMQS-155 Further changes to config files\"\r\n>  > /usr/bin/git rev-list --no-walk 5f95be55e3327417cea16f2cf418bad7fa91b705 # timeout=10\r\n> Parsing POMs\r\n> Established TCP socket on 44360\r\n> maven3-agent.jar already up to date\r\n> maven3-interceptor.jar already up to date\r\n> maven3-interceptor-commons.jar already up to date\r\n> [Middleware-Parent] $ /usr/lib/jvm/java-8-oracle//bin/java -cp /home/jenkins/maven3-agent.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/share/maven /home/jenkins/remoting-3.14.jar /home/jenkins/maven3-interceptor.jar /home/jenkins/maven3-interceptor-commons.jar 44360\r\n> <===[JENKINS REMOTING CAPACITY]===>���channel started\r\n> Executing Maven:  -B -f /home/jenkins/workspace/Middleware_Develop/Middleware-Parent/pom.xml clean install -rf karaf-feature -P apiDocBuilder,buildInstaller,karaf-assembly -DskipTests=true -Dproduct.name=QuareoMiddleware -Dbuild-info.buildNumber=Middleware_Develop-43 -Dhostname=docker-29a83953db3cf\r\n> [INFO] Scanning for projects...\r\n> [WARNING] \r\n> [WARNING] Some problems were encountered while building the effective model for org.codehaus.izpack:IzPack:pom:4.3.5\r\n> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-install-plugin is missing. @ line 102, column 13\r\n> [WARNING] \r\n> [WARNING] Some problems were encountered while building the effective model for com.te.middleware.installer.karaf:MiddlewareInstallerKarafAssembly:jar:3.0.2-SNAPSHOT\r\n> [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ line 71, column 21\r\n> [WARNING] \r\n> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.\r\n> [WARNING] \r\n> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.\r\n> [WARNING] \r\n> [INFO] Initializing Artifactory Build-Info Recording\r\n> [INFO] ------------------------------------------------------------------------\r\n> [INFO] Reactor Build Order:\r\n> [INFO] \r\n> [INFO] Quareo Middleware :: Karaf Feature\r\n> [INFO] Quareo Middleware :: Karaf Runtime\r\n> [INFO] IzPack Standalone Compiler\r\n> [INFO] Quareo Middleware Installer Parent\r\n> [INFO] Quareo Middleware Installer\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> [HUDSON] Collecting dependencies info\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> [HUDSON] Collecting dependencies info\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> [HUDSON] Collecting dependencies info\r\n> [HUDSON] Collecting dependencies info\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> [HUDSON] Collecting dependencies info\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> Notifying upstream projects of job completion\r\n> Join notifier requires a CauseAction\r\n> ERROR: Build step failed with exception\r\n> java.lang.NullPointerException: no workspace from node io.jenkins.docker.DockerTransientNode[docker-29a83953db3cf] which is computer DockerComputer{name=docker-29a83953db3cf, slave=io.jenkins.docker.DockerTransientNode[docker-29a83953db3cf]} and has channel null\r\n> \tat hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:88)\r\n> \tat hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)\r\n> \tat hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)\r\n> \tat hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)\r\n> \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:945)\r\n> \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:896)\r\n> \tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)\r\n> \tat hudson.model.Run.execute(Run.java:1724)\r\n> \tat hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)\r\n> \tat hudson.model.ResourceController.execute(ResourceController.java:97)\r\n> \tat hudson.model.Executor.run(Executor.java:429)\r\n> Build step 'Execute shell' marked build as failure\r\n> ERROR: Failed to parse POMs\r\n> java.io.IOException: Backing channel 'docker-29a83953db3cf' is disconnected.\r\n> \tat hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:212)\r\n> \tat hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:281)\r\n> \tat com.sun.proxy.$Proxy98.isAlive(Unknown Source)\r\n> \tat hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1138)\r\n> \tat hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:166)\r\n> \tat hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:879)\r\n> \tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)\r\n> \tat hudson.model.Run.execute(Run.java:1724)\r\n> \tat hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)\r\n> \tat hudson.model.ResourceController.execute(ResourceController.java:97)\r\n> \tat hudson.model.Executor.run(Executor.java:429)\r\n> Caused by: java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1\r\n> \tat io.jenkins.docker.client.DockerMultiplexedInputStream.readInternal(DockerMultiplexedInputStream.java:45)\r\n> \tat io.jenkins.docker.client.DockerMultiplexedInputStream.read(DockerMultiplexedInputStream.java:32)\r\n> \tat hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:99)\r\n> \tat hudson.remoting.ChunkedInputStream.read(ChunkedInputStream.java:46)\r\n> \tat hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:97)\r\n> \tat hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)\r\n> \tat hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)\r\n> \tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)\r\n> ERROR: Step ‘JIRA: Update relevant issues’ failed: no workspace for Middleware_Develop #43\r\n> ERROR: Step ‘Publish Cobertura Coverage Report’ failed: no workspace for Middleware_Develop #43\r\n> Notifying upstream projects of job completion\r\n> Finished: FAILURE\r\n\r\nThe underlying Jenkins log error for the stack trace above is\r\n\r\n> Feb 26, 2018 9:50:09 AM SEVERE hudson.remoting.SynchronousCommandTransport$ReaderThread run\r\n> I/O error in channel Channel to Maven [/usr/lib/jvm/java-8-oracle//bin/java, -cp, /home/jenkins/maven3-agent.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /usr/share/maven, /home/jenkins/remoting-3.14.jar, /home/jenkins/maven3-interceptor.jar, /home/jenkins/maven3-interceptor-commons.jar, 44360]\r\n> java.io.IOException: Expected 8 bytes application/vnd.docker.raw-stream header, got 1\r\n> \tat io.jenkins.docker.client.DockerMultiplexedInputStream.readInternal(DockerMultiplexedInputStream.java:45)\r\n> \tat io.jenkins.docker.client.DockerMultiplexedInputStream.read(DockerMultiplexedInputStream.java:32)\r\n> Caused: java.io.IOException\r\n> \tat hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)\r\n> \tat java.io.BufferedInputStream.fill(Unknown Source)\r\n> \tat java.io.BufferedInputStream.read1(Unknown Source)\r\n> \tat java.io.BufferedInputStream.read(Unknown Source)\r\n> \tat hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:99)\r\n> \tat hudson.remoting.ChunkedInputStream.read(ChunkedInputStream.java:46)\r\n> \tat hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:97)\r\n> \tat hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)\r\n> \tat hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)\r\n> \tat hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)\r\n\r\n[clouds.txt](https://github.com/jenkinsci/docker-plugin/files/1759108/clouds.txt)\r\n\r\n[logs.zip](https://github.com/jenkinsci/docker-plugin/files/1759227/logs.zip)\r\nThis set of log files covers the docker inspect for the slave I'm building on, the docker logs (effectively empty), the Jenkins log, showing the underlying problem, and a trunated version of the Build console for the failed build.\r\n\r\nIf I can provide any information you think I've missed, please just respond and I'll try to provide it.\r\n\r\nMany thanks.\r\n\r\nPete."},"comment":{"url":"https://api.github.com/repos/jenkinsci/docker-plugin/issues/comments/368927845","html_url":"https://github.com/jenkinsci/docker-plugin/issues/628#issuecomment-368927845","issue_url":"https://api.github.com/repos/jenkinsci/docker-plugin/issues/628","id":368927845,"user":{"login":"CaptainPGums","id":36852257,"avatar_url":"https://avatars3.githubusercontent.com/u/36852257?v=4","gravatar_id":"","url":"https://api.github.com/users/CaptainPGums","html_url":"https://github.com/CaptainPGums","followers_url":"https://api.github.com/users/CaptainPGums/followers","following_url":"https://api.github.com/users/CaptainPGums/following{/other_user}","gists_url":"https://api.github.com/users/CaptainPGums/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainPGums/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainPGums/subscriptions","organizations_url":"https://api.github.com/users/CaptainPGums/orgs","repos_url":"https://api.github.com/users/CaptainPGums/repos","events_url":"https://api.github.com/users/CaptainPGums/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainPGums/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T16:00:01Z","updated_at":"2018-02-27T16:00:01Z","author_association":"NONE","body":"Hopefully the last update.\r\n\r\nI've built 4 static docker based slaves. \r\n\r\n- These build correctly (i.e. the Git Plugin pulls the code correctly) when the SSH client logs in as \"jenkins\".\r\n- These do not build correctly (the Git plugin returns a status code 128) when the SSH client logs in as \"root\"\r\n\r\nIf I build a dynamic docker slave (using the docker plugin), none of the jobs work. They all fail with the Git plugin returning a status code 128.\r\n\r\nThis sort of behaviour is mentioned in the \"Gotchas\" section of https://plugins.jenkins.io/git-client.\r\n\r\nI can't explain why the Jenkins user (elevated to root status) would pass, when the root user would fail.\r\n\r\nI also can't explain why the Jenkins user would pass when using a static docker container, when it fails when using a dynamic container, based on exactly the same image.\r\n\r\nAt this stage, I don't know if it's a problem with the Git plugin, or something else.\r\n\r\nAs I said before, please feel free to close the issue, and thanks for your help.\r\n\r\nPete."}}
{"actor":{"display_login":"CaptainPGums"}}