auth-matrix errors after upgrade -> downgrade

159 views
Skip to first unread message

Willem Bos

unread,
Oct 29, 2014, 4:23:54 PM10/29/14
to jenkins...@googlegroups.com
Hi All,

I did an unintentional upgrade of Jenkins from version 1.532.3 to 1.565.3 using the Long Term Support rpm's from jenkins.org. I tried to correct the situation by downgrading to 1.532.1.

After the downgrade matrix-auth errors are written to jenkins.log :

WARNING: Failed to scout hudson.security.GlobalMatrixAuthorizationStrategy$PermissionAdderImpl
java.lang.InstantiationException: /opt/jenkins/data/plugins/matrix-auth/WEB-INF/lib/classes.jar might need to be rebuilt: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$PermissionAdderImpl
        at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
...

It's no longer possible to log in to Jenkins, it just dumps :

java.lang.NullPointerException
at hudson.security.HudsonPrivateSecurityRealm$4.isPasswordValid(HudsonPrivateSecurityRealm.java:670)
at hudson.security.HudsonPrivateSecurityRealm$Details.isPasswordCorrect(HudsonPrivateSecurityRealm.java:479)
at hudson.security.HudsonPrivateSecurityRealm.authenticate(HudsonPrivateSecurityRealm.java:178)
...

I then disabled all security by modifying config.xml, setting useSecurity to false and removing the authorizationStrategy and securityRealm tags. That got things going again, but I of course want to recover cleanly.

I don't have a lot experience with Jenkins so I am not sure what to try next. The Jenkins wiki mentiones that matrix-auth was split of from the Jenkins core, but the only rpm we ever used is the one I mentioned above. Any suggestions?

Regards,
Willem.

P.S. Upgrading Jenkins is not an option at this time.
Reply all
Reply to author
Forward
0 new messages