Details

    • Similar Issues:

      Description

      ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
      java.lang.NullPointerException
      	at java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:120)
      	at java.lang.ProcessEnvironment.access$400(ProcessEnvironment.java:61)
      	at java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:203)
      	at java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:243)
      	at java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:221)
      	at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:130)
      	at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:253)
      	at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
      	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:297)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)

       

      on non-native-ssh:

       

      INFO: Launching remoting agent (via Trilead SSH2 Connection):  java  -jar /tmp/remoting.jar -workDir /tmp
      <===[JENKINS REMOTING CAPACITY]===>Remoting version: 3.33
      This is a Unix agent
      ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
      java.lang.NullPointerException
      	at hudson.Util.isRelativePath(Util.java:351)
      	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:649)
      	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:435)
      	at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:263)
      	at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
      	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:297)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      ERROR: Connection terminated
      java.io.EOFException
      	at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2681)
      	at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3156)
      	at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:862)
      	at java.io.ObjectInputStream.<init>(ObjectInputStream.java:358)
      	at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:49)
      	at hudson.remoting.Command.readFrom(Command.java:140)
      	at hudson.remoting.Command.readFrom(Command.java:126)
      	at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:36)
      	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
      Caused: java.io.IOException: Unexpected termination of the channel
      	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:77)

      This seems to be related to the "configuration-as-code-plugin" - when I manually save the jenkins config via web-ui (without changing anything) it works. Seems like a setting is not properly being set?

       

       

       

        Attachments

          Activity

          Hide
          lifeofguenter Gunter Grodotzki added a comment -

          sorted, I had to explicitly set "remoteFS" via configuration-as-code. Via webinterface I can leave it empty and it will automatically use the homedir, with CasC that does not seem to be supported

          Show
          lifeofguenter Gunter Grodotzki added a comment - sorted, I had to explicitly set "remoteFS" via configuration-as-code. Via webinterface I can leave it empty and it will automatically use the homedir, with CasC that does not seem to be supported

            People

            • Assignee:
              thoulen FABRIZIO MANFREDI
              Reporter:
              lifeofguenter Gunter Grodotzki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: