• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • role-strategy-plugin
    • 483.v17281966f5c3

      When I upgraded from Jenkins 2.332 to 2.337, all the pages under Manage Jenkins–>Manage and Assign Roles have images/icons missing.

       

       

       

       

      I am using version 3.2.0 of the Role Strategy plugin and version 2.6.11 of the Matrix Authorization Strategy plugin.

          [JENKINS-67952] Manage and Assign Roles Page Images Missing

          I resolved that with my PR linked in early January this year. This is currently awaiting a release from oleg_nenashev.

          Alexander Brandes added a comment - I resolved that with my PR linked in early January this year. This is currently awaiting a release from oleg_nenashev .

          Dave added a comment -

          It would be great to resolve this. We have frozen our Jenkins servers at version 2.332 because of this issue.

          Dave added a comment - It would be great to resolve this. We have frozen our Jenkins servers at version 2.332 because of this issue.

          Alexander Brandes added a comment - If you don't mind, you can upload a snapshot until someone releases an update:  https://ci.jenkins.io/job/Plugins/job/role-strategy-plugin/job/master/lastSuccessfulBuild/artifact/org/jenkins-ci/plugins/role-strategy/3.2.1-rc480.118e59a_a_4134/role-strategy-3.2.1-rc480.118e59a_a_4134.hpi

          Dave added a comment -

          Thanks Alex, I will have a look at that.

          Dave added a comment - Thanks Alex, I will have a look at that.

          Dave added a comment -

          I tried installing that plugin but Jenkins failed to restart. There are a lot of error in the logs, here's an example that mentions the plugin.

          Mar 9 14:47:34 ip-10-9-6-193 jenkins: 2022-03-09 14:47:34.587+0000 [id=27]#011WARNING#011jenkins.model.Jenkins$5#runTask: Loading global config failed perhaps due to plugin dependency issues
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: java.lang.NoSuchMethodError: com.thoughtworks.xstream.io.HierarchicalStreamReader.peekNextChild()Ljava/lang/String;
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$ConverterImpl.unmarshal(RoleBasedAuthorizationStrategy.java:579)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:501)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:454)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:350)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:289)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.XStream2.unmarshal(XStream2.java:189)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.XStream2.unmarshal(XStream2.java:160)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.XmlFile.unmarshal(XmlFile.java:196)
          Mar 9 14:47:34 ip-10-9-6-193 jenkins: Caused: java.io.IOException: Unable to read /var/lib/jenkins/config.xml

           

          And this is what the UI shows. 

          Dave added a comment - I tried installing that plugin but Jenkins failed to restart. There are a lot of error in the logs, here's an example that mentions the plugin. Mar 9 14:47:34 ip-10-9-6-193 jenkins: 2022-03-09 14:47:34.587+0000 [id=27] #011WARNING#011jenkins.model.Jenkins$5#runTask: Loading global config failed perhaps due to plugin dependency issues Mar 9 14:47:34 ip-10-9-6-193 jenkins: java.lang.NoSuchMethodError: com.thoughtworks.xstream.io.HierarchicalStreamReader.peekNextChild()Ljava/lang/String; Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$ConverterImpl.unmarshal(RoleBasedAuthorizationStrategy.java:579) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:501) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:454) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:350) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:289) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.XStream2.unmarshal(XStream2.java:189) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.util.XStream2.unmarshal(XStream2.java:160) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399) Mar 9 14:47:34 ip-10-9-6-193 jenkins: at hudson.XmlFile.unmarshal(XmlFile.java:196) Mar 9 14:47:34 ip-10-9-6-193 jenkins: Caused: java.io.IOException: Unable to read /var/lib/jenkins/config.xml   And this is what the UI shows. 

          Hm, I can upload it fine to 2.338. Do you have another plugin that could conflict with it? If I remember correctly, matrix-auth 3.x is not compatible with releases of role-strategy.

          Alexander Brandes added a comment - Hm, I can upload it fine to 2.338. Do you have another plugin that could conflict with it? If I remember correctly, matrix-auth 3.x is not compatible with releases of role-strategy.

          Dave added a comment -

          We are stuck at version 2.6.11 of matrix-auth because of that incompatibility.

          I don't know of other incompatibilities.

          I tried it on Jenkins 2.332, I will try again on 2.338.

          Dave added a comment - We are stuck at version 2.6.11 of matrix-auth because of that incompatibility. I don't know of other incompatibilities. I tried it on Jenkins 2.332, I will try again on 2.338.

          Dave added a comment -

          Same result on 2.338 I'm afraid.

          Dave added a comment - Same result on 2.338 I'm afraid.

            notmyfault Alexander Brandes
            drdavew Dave
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: