Errors in the logs due to 'java.lang.NoClassDefFoundError: jenkins/model/DownloadSettings'

Issue

The pages crash with Angry Jenkins or feature that supposed to run in background does not appear to work. Logs show errors like:

2020-01-01 01:01:01.101+0000 [id=40]    SEVERE  hudson.triggers.SafeTimerTask#run: Timer task com.cloudbees.opscenter.server.rbac.ConnectedMasterProxyGroupContainer$NodeContextRBACUpdater@109dbeb2 failed
java.lang.ClassNotFoundException: jenkins.model.DownloadSettings
Caused: java.lang.NoClassDefFoundError: jenkins/model/DownloadSettings
2020-01-01 01:01:01.101+0000 [id=44] SEVERE hudson.triggers.SafeTimerTask#run: Timer task com.cloudbees.opscenter.server.model.ConnectedMaster$UpdateRemoteContexts@238a9
2bd failed
java.lang.NoClassDefFoundError: jenkins/model/DownloadSettings

Environment

Resolution

Make sure you are enrolled in CloudBees Assurance Program and resolve any violation where plugins are older than Beekeeper Upgrade Assistant expects.

Explanation

Jenkins LTS 2.204.1 removed browser-based metadata download settings which correspond to the jenkins/model/DownloadSettings class. If you upgrade your instance to 2.204.1 or newer but do not update the plugins which used to use the removed API you would get errors like quoted above.

Examples of such plugins are:

Tested product/plugin versions

Have more questions?

0 Comments

Please sign in to leave a comment.