Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56066

EC2 nodes fail to start after jenkins restart

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      After restarting jenkins, EC2 nodes fail to start with the following stacktrace:

      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:209)
      at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
      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)

       

      If we go to /configure and just save the current configuration, the nodes will successfully start after that. Since we have many nodes, this workaround is quite impractical.

      Same problem but different stacktrace: https://issues.jenkins-ci.org/browse/JENKINS-55473

       

        Attachments

          Activity

          Hide
          thoulen FABRIZIO MANFREDI added a comment -

          I found the problem I am going to apply a patch.

          Show
          thoulen FABRIZIO MANFREDI added a comment - I found the problem I am going to apply a patch.
          Hide
          bipinxavier Bipin Xavier added a comment - - edited

          FABRIZIO MANFREDI Any update on this issue?

          Show
          bipinxavier Bipin Xavier added a comment - - edited FABRIZIO MANFREDI Any update on this issue?
          Hide
          thoulen FABRIZIO MANFREDI added a comment -

          Are you able to test the last version 1.44.1 ? 

          Show
          thoulen FABRIZIO MANFREDI added a comment - Are you able to test the last version 1.44.1 ? 
          Hide
          lifeofguenter Gunter Grodotzki added a comment -

          I am having the same issue

          Show
          lifeofguenter Gunter Grodotzki added a comment - I am having the same issue

            People

            • Assignee:
              thoulen FABRIZIO MANFREDI
              Reporter:
              majasb Maja Bratseth
            • Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: