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

Upgraded to new AWS-SDK plugin, jenkins would not start.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • aws-java-sdk-plugin
    • None

      I upgraded to the awe-java-sdk plugin 1.10.45.1, and jenkins would no longer start.

      The error message:

      hudson.util.HudsonFailedToLoad: java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/SSLSocketFactory
      at hudson.WebAppMain$3.run(WebAppMain.java:234)
      Caused by: java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/SSLSocketFactory
      at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:136)
      at com.amazonaws.services.ec2.AmazonEC2Client.<init>(AmazonEC2Client.java:196)
      at com.amazonaws.services.ec2.AmazonEC2Client.<init>(AmazonEC2Client.java:173)
      at hudson.plugins.ec2.EC2Cloud.connect(EC2Cloud.java:640)
      at hudson.plugins.ec2.EC2Cloud.connect(EC2Cloud.java:609)
      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:717)
      at hudson.model.Queue._withLock(Queue.java:1306)
      at hudson.model.Queue.withLock(Queue.java:1189)
      at hudson.slaves.SlaveComputer.setNode(SlaveComputer.java:714)
      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:1306)
      at hudson.model.Queue.withLock(Queue.java:1189)
      at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:169)
      at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1260)
      at jenkins.model.Jenkins.<init>(Jenkins.java:846)
      at hudson.model.Hudson.<init>(Hudson.java:83)
      at hudson.model.Hudson.<init>(Hudson.java:79)
      at hudson.WebAppMain$3.run(WebAppMain.java:225)
      Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.ssl.SSLSocketFactory
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 27 more

          [JENKINS-35242] Upgraded to new AWS-SDK plugin, jenkins would not start.

          Joe Arasin added a comment -

          That is without the new version of the plugin installed.

          Joe Arasin added a comment - That is without the new version of the plugin installed.

          jake bishop added a comment -

          We have this issue too, any workarounds?

          jake bishop added a comment - We have this issue too, any workarounds?

          Joe Arasin added a comment -

          yakobe I was able to rollback to the previous version of the aws sdk plugin, and then I was able to get things rolling again. It'd probably be useful to get your setup and try to figure out what the common element is in our stacks.

          Joe Arasin added a comment - yakobe I was able to rollback to the previous version of the aws sdk plugin, and then I was able to get things rolling again. It'd probably be useful to get your setup and try to figure out what the common element is in our stacks.

          jake bishop added a comment - - edited

          Hmmm... how did you roll back? I just manually installed version 1.10.42 from here and it just destroyed my aws configuration! Now nothing will build. Any ideas?

          jake bishop added a comment - - edited Hmmm... how did you roll back? I just manually installed version 1.10.42 from here and it just destroyed my aws configuration! Now nothing will build. Any ideas?

          Luigi Tagliamonte added a comment - - edited

          got the same issue, I solved manually installing the prev version:
          go in JENKINS_HOME/plugins and performing the following commands:

          mv aws-java-sdk aws-java-sdk.old
          mv aws-java-sdk.bak aws-java-sdk.bak.old
          mv aws-java-sdk.jpi aws-java-sdk.jpi.old
          wget http://updates.jenkins-ci.org/download/plugins/aws-java-sdk/1.10.45/aws-java-sdk.hpi
          chown jenkins:jenkins aws-java-sdk.hpi
          chmod 775 aws-java-sdk.hpi
          service restart jenkins
          

          Luigi Tagliamonte added a comment - - edited got the same issue, I solved manually installing the prev version: go in JENKINS_HOME/plugins and performing the following commands: mv aws-java-sdk aws-java-sdk.old mv aws-java-sdk.bak aws-java-sdk.bak.old mv aws-java-sdk.jpi aws-java-sdk.jpi.old wget http: //updates.jenkins-ci.org/download/plugins/aws-java-sdk/1.10.45/aws-java-sdk.hpi chown jenkins:jenkins aws-java-sdk.hpi chmod 775 aws-java-sdk.hpi service restart jenkins

          Code changed in jenkins
          User: Andres Rodriguez
          Path:
          pom.xml
          http://jenkins-ci.org/commit/aws-java-sdk-plugin/e09506b9bb3809fb1565ea7873ea73a021cff9b9
          Log:
          JENKINS-35242 Fix library bundling

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andres Rodriguez Path: pom.xml http://jenkins-ci.org/commit/aws-java-sdk-plugin/e09506b9bb3809fb1565ea7873ea73a021cff9b9 Log: JENKINS-35242 Fix library bundling

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          pom.xml
          http://jenkins-ci.org/commit/aws-java-sdk-plugin/8f4b72e1618869586125fba0c920cbd0d8e5ef07
          Log:
          Merge pull request #4 from andresrc/JENKINS-35242

          JENKINS-35242 Fix library bundling

          Compare: https://github.com/jenkinsci/aws-java-sdk-plugin/compare/ba91b53f06d2...8f4b72e16188

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: pom.xml http://jenkins-ci.org/commit/aws-java-sdk-plugin/8f4b72e1618869586125fba0c920cbd0d8e5ef07 Log: Merge pull request #4 from andresrc/ JENKINS-35242 JENKINS-35242 Fix library bundling Compare: https://github.com/jenkinsci/aws-java-sdk-plugin/compare/ba91b53f06d2...8f4b72e16188

          Fixed in 1.10.45.2

          Vincent Latombe added a comment - Fixed in 1.10.45.2

          jake bishop added a comment -

          I tried to update to 1.10.45.2.
          Jenkins will now start but it seems to crash all the aws plugins and they show as nolonger installed. If i try to install them from the plugin manager it looks like it works and suggest to restart. Then the plgins are not installed again.

          Strangely it says " You have data stored in an older format and/or unreadable data." when i go to manage jenkins. This data looks like:

          Type Name Error
          hudson.model.Hudson   CannotResolveClassException: hudson.plugins.ec2.EC2Cloud
          com.cloudbees.plugins.credentials.SystemCredentialsProvider   CannotResolveClassException: com.cloudbees.jenkins.plugins.awscredentials.AWSCredentialsImpl

          Any ideas? Let me know if i can provide any more info.

          jake bishop added a comment - I tried to update to 1.10.45.2. Jenkins will now start but it seems to crash all the aws plugins and they show as nolonger installed. If i try to install them from the plugin manager it looks like it works and suggest to restart. Then the plgins are not installed again. Strangely it says " You have data stored in an older format and/or unreadable data." when i go to manage jenkins. This data looks like: Type Name Error hudson.model.Hudson   CannotResolveClassException: hudson.plugins.ec2.EC2Cloud com.cloudbees.plugins.credentials.SystemCredentialsProvider   CannotResolveClassException: com.cloudbees.jenkins.plugins.awscredentials.AWSCredentialsImpl Any ideas? Let me know if i can provide any more info.

          jake bishop added a comment -

          Ignore me. It was a permissions problem caused by restoring a backup of the plugin when it failed. All works just fine. Thanks and.... sorry

          jake bishop added a comment - Ignore me. It was a permissions problem caused by restoring a backup of the plugin when it failed. All works just fine. Thanks and.... sorry

            vlatombe Vincent Latombe
            jowiar Joe Arasin
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: