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

jenkins restart fails after installing ec2 plugin

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • ec2-plugin
    • None
    • centos 7 server latest jenkins

      hudson.util.HudsonFailedToLoad: java.lang.NullPointerException
      at hudson.WebAppMain$3.run(WebAppMain.java:244)
      Caused by: java.lang.NullPointerException
      at hudson.plugins.ec2.EC2Cloud.createCredentialsProvider(EC2Cloud.java:599)
      at hudson.plugins.ec2.EC2Cloud.createCredentialsProvider(EC2Cloud.java:584)
      at hudson.plugins.ec2.EC2Cloud.connect(EC2Cloud.java:620)
      at hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:166)
      at hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:149)
      at hudson.plugins.ec2.EC2Computer.describeInstance(EC2Computer.java:107)
      at hudson.plugins.ec2.EC2Computer.getUptime(EC2Computer.java:133)
      at hudson.plugins.ec2.EC2RetentionStrategy.internalCheck(EC2RetentionStrategy.java:104)
      at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:85)
      at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:43)
      at hudson.slaves.SlaveComputer$4.run(SlaveComputer.java:725)
      at hudson.model.Queue._withLock(Queue.java:1303)
      at hudson.model.Queue.withLock(Queue.java:1180)
      at hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:722)
      at hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:118)
      at hudson.model.AbstractCIBase.access$000(AbstractCIBase.java:44)
      at hudson.model.AbstractCIBase$2.run(AbstractCIBase.java:186)
      at hudson.model.Queue._withLock(Queue.java:1303)
      at hudson.model.Queue.withLock(Queue.java:1180)
      at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:169)
      at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1470)
      at jenkins.model.Jenkins.<init>(Jenkins.java:948)
      at hudson.model.Hudson.<init>(Hudson.java:85)
      at hudson.model.Hudson.<init>(Hudson.java:81)
      at hudson.WebAppMain$3.run(WebAppMain.java:227)

          [JENKINS-38389] jenkins restart fails after installing ec2 plugin

          marlene cote added a comment -

          You can close this. I was able to delete the plugin directory and reinstall it and it worked.

          marlene cote added a comment - You can close this. I was able to delete the plugin directory and reinstall it and it worked.

          marlene cote added a comment -

          retried it multiple times and then manually deleted the plugin from the filesystem and then it installed and jenkins restarted

          marlene cote added a comment - retried it multiple times and then manually deleted the plugin from the filesystem and then it installed and jenkins restarted

          I am seeing an identical stack trace under some situation, reopening and assigning to self for followup.

          Baptiste Mathus added a comment - I am seeing an identical stack trace under some situation, reopening and assigning to self for followup.

          Baptiste Mathus added a comment - - edited

          FTR, recent stack trace with ec2-plugin 1.35:

          hudson.util.HudsonFailedToLoad: java.lang.NullPointerException
          	at hudson.WebAppMain$3.run(WebAppMain.java:248)
          Caused by: java.lang.NullPointerException
          	at hudson.plugins.ec2.EC2Cloud.createCredentialsProvider(EC2Cloud.java:599)
          	at hudson.plugins.ec2.EC2Cloud.createCredentialsProvider(EC2Cloud.java:584)
          	at hudson.plugins.ec2.EC2Cloud.connect(EC2Cloud.java:620)
          	at hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:166)
          	at hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:149)
          	at hudson.plugins.ec2.EC2Computer.describeInstance(EC2Computer.java:107)
          	at hudson.plugins.ec2.EC2Computer.getUptime(EC2Computer.java:133)
          	at hudson.plugins.ec2.EC2RetentionStrategy.internalCheck(EC2RetentionStrategy.java:104)
          	at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:85)
          	at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:43)
          	at hudson.slaves.SlaveComputer$4.run(SlaveComputer.java:725)
          	at hudson.model.Queue._withLock(Queue.java:1309)
          	at hudson.model.Queue.withLock(Queue.java:1186)
          	at hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:722)
          	at hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:118)
          	at hudson.model.AbstractCIBase.access$000(AbstractCIBase.java:44)
          	at hudson.model.AbstractCIBase$2.run(AbstractCIBase.java:186)
          	at hudson.model.Queue._withLock(Queue.java:1309)
          	at hudson.model.Queue.withLock(Queue.java:1186)
          	at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:169)
          	at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1567)
          	at jenkins.model.Jenkins.<init>(Jenkins.java:968)
          	at hudson.model.Hudson.<init>(Hudson.java:85)
          	at hudson.model.Hudson.<init>(Hudson.java:81)
          	at hudson.WebAppMain$3.run(WebAppMain.java:231)
          

          Baptiste Mathus added a comment - - edited FTR, recent stack trace with ec2-plugin 1.35: hudson.util.HudsonFailedToLoad: java.lang.NullPointerException at hudson.WebAppMain$3.run(WebAppMain.java:248) Caused by: java.lang.NullPointerException at hudson.plugins.ec2.EC2Cloud.createCredentialsProvider(EC2Cloud.java:599) at hudson.plugins.ec2.EC2Cloud.createCredentialsProvider(EC2Cloud.java:584) at hudson.plugins.ec2.EC2Cloud.connect(EC2Cloud.java:620) at hudson.plugins.ec2.EC2Computer._describeInstanceOnce(EC2Computer.java:166) at hudson.plugins.ec2.EC2Computer._describeInstance(EC2Computer.java:149) at hudson.plugins.ec2.EC2Computer.describeInstance(EC2Computer.java:107) at hudson.plugins.ec2.EC2Computer.getUptime(EC2Computer.java:133) at hudson.plugins.ec2.EC2RetentionStrategy.internalCheck(EC2RetentionStrategy.java:104) at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:85) at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:43) at hudson.slaves.SlaveComputer$4.run(SlaveComputer.java:725) at hudson.model.Queue._withLock(Queue.java:1309) at hudson.model.Queue.withLock(Queue.java:1186) at hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:722) at hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:118) at hudson.model.AbstractCIBase.access$000(AbstractCIBase.java:44) at hudson.model.AbstractCIBase$2.run(AbstractCIBase.java:186) at hudson.model.Queue._withLock(Queue.java:1309) at hudson.model.Queue.withLock(Queue.java:1186) at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:169) at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1567) at jenkins.model.Jenkins.<init>(Jenkins.java:968) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:231)

          Added core component for now after jglick advice that we should at least fix core to forbid a failure in setNode to prevent Jenkins to start.

          Baptiste Mathus added a comment - Added core component for now after jglick advice that we should at least fix core to forbid a failure in setNode to prevent Jenkins to start.

          Jesse Glick added a comment -

          Core part filed separately.

          Jesse Glick added a comment - Core part filed separately.

          Can't reproduce in the newer jenkins/plugin

          Raihaan Shouhell added a comment - Can't reproduce in the newer jenkins/plugin

            francisu Francis Upton
            funeeldy marlene cote
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: