Successful builds will fail seemingly at random with the below exception.
Started by timer [EnvInject] - Loading node environment variables. Building in workspace <http://modok-auto.oak.enova.com/job/CA-Colossus_Monitor/ws/> [workspace] $ /bin/sh -xe /tmp/hudson7219746524057295462.sh + ruby /etc/git/automation_scripts/ruby/colossus_monitor.rb ca -0.006550645982850592 FATAL: null java.lang.ArrayIndexOutOfBoundsException at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:233) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:462) at hudson.util.ProcessTree$Linux.readFileToByteArray(ProcessTree.java:745) at hudson.util.ProcessTree$Linux$LinuxProcess.getEnvironmentVariables(ProcessTree.java:725) at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:277) at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:513) at hudson.Launcher$LocalLauncher.kill(Launcher.java:838) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410)
Has anyone been able to look at this? It's been a while with no response. Daniel Beck I believe that is what is causing this error when I was looking through the code, but I'm not great with java. Any ideas on a possible workaround?
Don't continue the process past the lifetime of its invoking shell. If my guess is true, and the problem is that Jenkins is trying to kill a process that suddenly stops existing, don't make it kill it by quitting in time.
Can you elaborate on what settings might have to be adjusted for your proposed workaround? Prior to the Jenkins 2.7.2 upgrade, 1.653 did not exhibit this issue.
Hi Daniel Beck, Can you please elaborate on what settings might have to be adjusted for your proposed workaround? Prior to the Jenkins 2.7.2 upgrade, 1.653 did not exhibit this issue. Thank you, ~Mike