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

Failed Loading plugin Role-based Authorization Strategy

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jenkins today stopped working and when looking at the logs this is what I am seeing:

      SEVERE: Failed Loading plugin Role-based Authorization Strategy v2.10 (role-strategy)
      java.io.IOException: Role-based Authorization Strategy version 2.10 failed to load.
       - jquery-ui version 1.0.1 is missing. To fix, install version 1.0.1 or later.
       at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:868)
       at hudson.PluginManager$2$1$1.run(PluginManager.java:544)
       at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
       at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
       at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096)
       at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
       at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
       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)
      

       

      SEVERE: Failed Loading global config java.io.IOException: Unable to read /var/lib/jenkins/config.xml at hudson.XmlFile.unmarshal(XmlFile.java:181) at hudson.XmlFile.unmarshal(XmlFile.java:161) at jenkins.model.Jenkins.loadConfig(Jenkins.java:3043) at jenkins.model.Jenkins.access$1300(Jenkins.java:309) at jenkins.model.Jenkins$13.run(Jenkins.java:3145) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) 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) Caused by: jenkins.util.xstream.CriticalXStreamException: com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy : com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy ---- Debugging information ---- message : com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy class : hudson.model.Hudson required-type : hudson.model.Hudson converter-type : hudson.util.RobustReflectionConverter path : /hudson/authorizationStrategy line number : 11 version : not available ------------------------------- at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:354) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:268) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189) at hudson.util.XStream2.unmarshal(XStream2.java:161) at hudson.util.XStream2.unmarshal(XStream2.java:132) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173) at hudson.XmlFile.unmarshal(XmlFile.java:178)
      

        Attachments

          Activity

          Hide
          albertski Albert Jankowski added a comment -

          I didn't uninstall anything and I am seeing that jquery is in the plugins directory:

          ls -al | grep jquery
          drwxr-xr-x   4 jenkins jenkins     4096 Oct 11  2017 jquery
          -rw-r--r--   1 jenkins jenkins   143750 Sep 14  2017 jquery.bak
          drwxr-xr-x   5 jenkins jenkins     4096 Jan 24  2017 jquery-detached
          -rw-r--r--   1 jenkins jenkins   211945 Jan 24  2017 jquery-detached.jpi
          -rw-r--r--   1 jenkins jenkins   147135 Oct 11  2017 jquery.jpi
          
          Show
          albertski Albert Jankowski added a comment - I didn't uninstall anything and I am seeing that jquery is in the plugins directory: ls -al | grep jquery drwxr-xr-x 4 jenkins jenkins 4096 Oct 11 2017 jquery -rw-r--r-- 1 jenkins jenkins 143750 Sep 14 2017 jquery.bak drwxr-xr-x 5 jenkins jenkins 4096 Jan 24 2017 jquery-detached -rw-r--r-- 1 jenkins jenkins 211945 Jan 24 2017 jquery-detached.jpi -rw-r--r-- 1 jenkins jenkins 147135 Oct 11 2017 jquery.jpi
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          JQuery and JQuery UI are 2 separate plugins, you need to install both

          Show
          oleg_nenashev Oleg Nenashev added a comment - JQuery and JQuery UI are 2 separate plugins, you need to install both
          Hide
          albertski Albert Jankowski added a comment - - edited

          According to https://wiki.jenkins.io/display/JENKINS/jQuery+UI+Plugin it has been replaced with the Jquery plugin.  I was thinking I should only have the JQuery plugin.

          Show
          albertski Albert Jankowski added a comment - - edited According to https://wiki.jenkins.io/display/JENKINS/jQuery+UI+Plugin  it has been replaced with the Jquery plugin.  I was thinking I should only have the JQuery plugin.
          Hide
          albertski Albert Jankowski added a comment -

          Oleg Nenashev Do you know if there is a way I can install the Jquery UI plugin manually.  I don't have cli on Jenkins and can't get Jenkins to load up to download via UI.

          Show
          albertski Albert Jankowski added a comment - Oleg Nenashev Do you know if there is a way I can install the Jquery UI plugin manually.  I don't have cli on Jenkins and can't get Jenkins to load up to download via UI.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Generally you just need to drop a JPI/HPI file in JENKINS_HOME/plugins

          Show
          oleg_nenashev Oleg Nenashev added a comment - Generally you just need to drop a JPI/HPI file in JENKINS_HOME/plugins
          Hide
          albertski Albert Jankowski added a comment -

          Thanks Oleg Nenashev. Uploading the jquery-ui hpi file fixed the issue.

          Show
          albertski Albert Jankowski added a comment - Thanks Oleg Nenashev . Uploading the jquery-ui hpi file fixed the issue.

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              albertski Albert Jankowski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: