[JIRA] [monitoring-plugin] (JENKINS-32441) SEVERE: Failed Loading plugin monitoring

66 views
Skip to first unread message

lopez.sam@gmail.com (JIRA)

unread,
Jan 13, 2016, 2:16:03 PM1/13/16
to jenkinsc...@googlegroups.com
Samuel Lopez created an issue
 
Jenkins / Bug JENKINS-32441
SEVERE: Failed Loading plugin monitoring
Issue Type: Bug Bug
Assignee: Unassigned
Components: monitoring-plugin
Created: 13/Jan/16 7:15 PM
Environment: Ubuntu 14.04
Jenkins Core 1.625.3
Priority: Minor Minor
Reporter: Samuel Lopez

Unable to install/load Monitoring plugin 1.58.0

SEVERE: Failed Loading plugin monitoring
java.io.IOException: Failed to initialize
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:441)
at hudson.PluginManager$2$1$1.run(PluginManager.java:371)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: net.bull.javamelody.Log4JAppender.setThreshold(Lorg/apache/log4j/Priority;)V
at net.bull.javamelody.Log4JAppender.<init>(Log4JAppender.java:42)
at net.bull.javamelody.Log4JAppender.<clinit>(Log4JAppender.java:34)
at net.bull.javamelody.FilterContext.initLogs(FilterContext.java:281)
at net.bull.javamelody.FilterContext.<init>(FilterContext.java:69)
at net.bull.javamelody.MonitoringFilter.init(MonitoringFilter.java:112)
at net.bull.javamelody.PluginMonitoringFilter.init(PluginMonitoringFilter.java:42)
at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.init(HudsonMonitoringFilter.java:52)
at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108)
at org.jvnet.hudson.plugins.monitoring.PluginImpl.start(PluginImpl.java:115)
at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:449)
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:438)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

evernat@free.fr (JIRA)

unread,
Feb 22, 2016, 8:32:01 AM2/22/16
to jenkinsc...@googlegroups.com
evernat commented on Bug JENKINS-32441
 
Re: SEVERE: Failed Loading plugin monitoring

It seems to be a classloader issue with some Log4J jar file.
What other plugins are installed ?
Is it reproduced if you restart Jenkins ?

lopez.sam@gmail.com (JIRA)

unread,
Feb 22, 2016, 6:59:02 PM2/22/16
to jenkinsc...@googlegroups.com

Thanks for the reply

We have quite a few plugins, is there a particular set I should be looking at?
Yes it happens when I restart Jenkins

evernat@free.fr (JIRA)

unread,
Feb 22, 2016, 7:03:03 PM2/22/16
to jenkinsc...@googlegroups.com
evernat commented on Bug JENKINS-32441

Can you give the list of all your plugins?
I am wondering if one of the plugins includes something like Log4J.

lopez.sam@gmail.com (JIRA)

unread,
Feb 23, 2016, 1:03:02 PM2/23/16
to jenkinsc...@googlegroups.com

Here is the list of currently installed plugins

ant Ant Plugin 1.2
ldap LDAP Plugin 1.11
subversion Subversion Plug-in 2.5.7
javadoc Javadoc Plugin 1.3
translation Translation Assistance plugin 1.12
cvs CVS Plug-in 2.11 (2.12)
ssh-slaves SSH Slaves plugin 1.10
external-monitor-job External Monitor Job Type Plugin 1.4
pam-auth PAM Authentication plugin 1.2
maven-plugin Maven Integration plugin 2.12.1
active-directory Active Directory plugin 1.41
description-setter description setter plugin 1.10
greenballs Green Balls 1.15
built-on-column built-on-column 1.1
lastfailureversioncolumn Last Failure Version Column 1.1
lastsuccessversioncolumn Last Success Version Column 1.1
log-parser Log Parser Plugin 2.0
mstest MSTest plugin 0.19
multiple-scms Multiple SCMs plugin 0.5
next-build-number Next Build Number Plugin 1.1 (1.3)
show-build-parameters Show Build Parameters plugin 1.0
m2release Maven Release Plug-in Plug-in 0.14.0
ws-cleanup Workspace Cleanup Plugin 0.28
confluence-publisher Confluence Publisher 1.8
hudson-pview-plugin Hudson Personal View 1.8
testng-plugin TestNG Results Plugin 1.10
ivy Ivy Plugin 1.26
backup Backup plugin 1.6.1
publish-over-ssh Publish Over SSH 1.13 jira JIRA plugin 2.1
dashboard-view Dashboard View 2.9.7
artifactory Artifactory Plugin 2.3.1 (2.4.7)
xunit xUnit plugin 1.99 (1.100)
email-ext Email Extension Plugin 2.40.5 (2.41.2)
testlink TestLink Plugin 3.11
envfile Environment File Plugin 1.2
envinject Environment Injector Plugin 1.92.1
analysis-core Static Analysis Utilities 1.75
findbugs FindBugs Plug-in 4.63
ssh SSH plugin 2.4
warnings Warnings Plug-in 4.51
promoted-builds promoted builds plugin 2.24.1 (2.25)
htmlpublisher HTML Publisher plugin 1.10 (1.11)
nested-view Nested View Plugin 1.14
mercurial Mercurial plugin 1.54
environment-script Environment Script Plugin 1.2.2
extended-choice-parameter Extended Choice Parameter Plug-In 0.56
android-lint Android Lint Plugin 2.2
jobConfigHistory Job Configuration History Plugin 2.12
preSCMbuildstep Pre SCM BuildStep Plugin 0.3
jacoco JaCoCo plugin 2.0.0 (2.0.1)
credentials Credentials Plugin 1.18 (1.25)
ssh-credentials SSH Credentials Plugin 1.11
copyartifact Copy Artifact Plugin 1.37
mailer Mailer Plugin 1.16
job-dsl Job DSL 1.43
saferestart Safe Restart Plugin 0.3
token-macro Token Macro Plugin 1.12.1
violations Violations plugin 0.7.11
parameterized-trigger Parameterized Trigger plugin 2.30
config-file-provider Config File Provider Plugin 2.10.0
ssh-agent SSH Agent Plugin 1.9
scm-api SCM API Plugin 1.0
analysis-collector Static Analysis Collector Plug-in 1.46
checkstyle Checkstyle Plug-in 3.44
build-timeout build timeout plugin 1.15.1 (1.16)
pmd PMD Plug-in 3.43
run-condition Run Condition Plugin 1.0
fail-the-build-plugin Fail The Build Plugin 1.0
buildgraph-view buildgraph-view 1.1.1
jquery jQuery plugin 1.11.2-0
build-pipeline-plugin Build Pipeline Plugin 1.4.9
conditional-buildstep conditional-buildstep 1.3.3
jenkins-multijob-plugin Multijob plugin 1.20
port-allocator Port Allocator Plug-in 1.8
hockeyapp HockeyApp Plugin 1.2.0 (1.2.1)
xcode-plugin Xcode integration 1.4.9
testflight Testflight Plugin 1.3.9
jobtemplates jobtemplates 1.0
template-project Template Project plugin 1.5.1 (1.5.2)
groovy Groovy 1.29
sbt sbt plugin 1.5
rundeck Rundeck plugin 3.5.1
scripttrigger scripttrigger 0.32
kpp-management-plugin Keychains and Provisioning Profiles Management 1.0.0
antisamy-markup-formatter OWASP Markup Formatter Plugin 1.3
windows-slaves Windows Slaves Plugin 1.1
rebuild Rebuilder 1.25
mapdb-api MapDB API Plugin 1.0.6.0
matrix-auth Matrix Authorization Strategy Plugin 1.2
jquery-ui jQuery UI plugin 1.0.2
matrix-project Matrix Project Plugin 1.6
throttle-concurrents Throttle Concurrent Builds Plug-in 1.8.4
repository-connector Repository Connector 1.1.2
maven-info Maven Info Plugin 0.2.0
junit JUnit Plugin 1.10
slave-setup Slave SetupPlugin 1.9
delivery-pipeline-plugin Delivery Pipeline Plugin 0.9.8
depgraph-view Dependency Graph Viewer Plugin 0.11
downstream-buildview Downstream build view 1.9
android-emulator Android Emulator Plugin 2.13.1
emotional-jenkins-plugin emotional-jenkins-plugin 1.2
script-security Script Security Plugin 1.15 (1.17)
emma Emma plugin 1.29
workflow-step-api Workflow: Step API 1.12 (1.13)
hudson-wsclean-plugin Distributed Workspace Clean plugin 1.0.5
sonar SonarQube Plugin 2.3

lopez.sam@gmail.com (JIRA)

unread,
Feb 25, 2016, 5:34:03 PM2/25/16
to jenkinsc...@googlegroups.com

It may be monitoring itself:
monitoring/WEB-INF/lib
monitoring/WEB-INF/lib/monitoring.jar
monitoring/WEB-INF/lib/slf4j-api-1.6.3.jar
monitoring/WEB-INF/lib/javamelody-core-1.58.0.jar
monitoring/WEB-INF/lib/itext-2.1.7.jar
monitoring/WEB-INF/lib/jrobin-1.5.9.jar
monitoring/WEB-INF/licenses.xml

evernat@free.fr (JIRA)

unread,
Feb 26, 2016, 7:40:03 PM2/26/16
to jenkinsc...@googlegroups.com
evernat updated an issue
 

Here are the libs in your plugins in the attached txt file, ignoring your plugins versions.
There are 2 of your plugins including log4j: violations.hpi and testflight.hpi (both are including log4j v1.2.9).

I am not totally convinced that one of those 2 plugins are the cause of the issue, so to find the cause I suggest to try:

  • install a new version of the monitoring plugin, after removing /WEB-INF/lib/slf4j-api-1.6.3.jar from the hpi file. (I am not convinced that it will fix the issue either, but who knows ? slf4j is not really needed in the plugin anyway.)
  • uninstall violations.hpi and testflight.hpi
  • say here what is your servlet container. Is it the default winstone/jetty or tomcat or jboss ?
  • do you have some log4j file directly in your server container ? (tomcat/lib/ for example)
  • otherwise I don't know, except that you have many many plugins (107 in fact)
Change By: evernat
Attachment: libs_in_those_plugins.txt

evernat@free.fr (JIRA)

unread,
Feb 26, 2016, 7:47:01 PM2/26/16
to jenkinsc...@googlegroups.com
evernat edited a comment on Bug JENKINS-32441
 
Re: SEVERE: Failed Loading plugin monitoring
Here are the libs in your plugins in the  attached  [^libs_in_those_plugins.  txt  file ] , ignoring your plugins versions.

There are 2 of your plugins including log4j: violations.hpi and testflight.hpi (both are including log4j v1.2.9).

I am not totally convinced that one of those 2 plugins are the cause of the issue, so to find the cause I suggest to try:
- install a new version of the monitoring plugin, after removing /WEB-INF/lib/slf4j-api-1.6.3.jar from the hpi file. (I am not convinced that it will fix the issue either, but who knows ? slf4j is not really needed in the plugin anyway.)
- uninstall violations.hpi and testflight.hpi
- say here what is your servlet container. Is it the default winstone/jetty or tomcat or jboss ?
- do you have some log4j file directly in your server container ? (tomcat/lib/ for example)
- otherwise I don't know, except that you have many many plugins (107 in fact)

evernat@free.fr (JIRA)

unread,
Feb 26, 2016, 7:48:01 PM2/26/16
to jenkinsc...@googlegroups.com
evernat edited a comment on Bug JENKINS-32441
Here are the libs in your plugins in the  attached text file  [^libs_in_those_plugins.txt], ignoring your plugins versions.

There are 2 of your plugins including log4j: violations.hpi and testflight.hpi (both are including log4j v1.2.9).

I am not totally convinced that one of those 2 plugins are the cause of the issue, so to find the cause I suggest to try:
- install a new version of the monitoring plugin, after removing /WEB-INF/lib/slf4j-api-1.6.3.jar from the hpi file. (I am not convinced that it will fix the issue either, but who knows ? slf4j is not really needed in the plugin anyway.)
- uninstall violations.hpi and testflight.hpi
- say here what is your servlet container. Is it the default winstone/jetty or tomcat or jboss ?
- do you have some log4j file directly in your server container ? (tomcat/lib/ for example)
- otherwise I don't know, except that you have many many plugins (107 in fact)

lopez.sam@gmail.com (JIRA)

unread,
Mar 4, 2016, 12:27:01 PM3/4/16
to jenkinsc...@googlegroups.com

Hello and thanks for the update.
We did find a third party log4j .jar file that was causing the problem. Once removed the monitoring plugin loaded successfully

evernat@free.fr (JIRA)

unread,
Mar 4, 2016, 3:06:06 PM3/4/16
to jenkinsc...@googlegroups.com
evernat resolved as Not A Defect
 

ok, thanks

Change By: evernat
Status: Open Resolved
Resolution: Not A Defect

nelu.vasilica@cirrus.com (JIRA)

unread,
Nov 18, 2016, 5:44:02 AM11/18/16
to jenkinsc...@googlegroups.com
Nelu Vasilica commented on Bug JENKINS-32441
 
Re: SEVERE: Failed Loading plugin monitoring

I am getting this error when trying to install a newer version of the monitoring plugin:
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1383)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1161)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Failed to install monitoring plugin
at hudson.PluginManager.dynamicLoad(PluginManager.java:487)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1379)
... 5 more
Caused by: java.io.IOException: Failed to initialize
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:441)
at hudson.PluginManager.dynamicLoad(PluginManager.java:478)
... 6 more


Caused by: java.lang.NoSuchMethodError: net.bull.javamelody.Log4JAppender.setThreshold(Lorg/apache/log4j/Priority;)V
at net.bull.javamelody.Log4JAppender.<init>(Log4JAppender.java:42)
at net.bull.javamelody.Log4JAppender.<clinit>(Log4JAppender.java:34)
at net.bull.javamelody.FilterContext.initLogs(FilterContext.java:281)
at net.bull.javamelody.FilterContext.<init>(FilterContext.java:69)
at net.bull.javamelody.MonitoringFilter.init(MonitoringFilter.java:112)
at net.bull.javamelody.PluginMonitoringFilter.init(PluginMonitoringFilter.java:42)
at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.init(HudsonMonitoringFilter.java:52)
at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108)
at org.jvnet.hudson.plugins.monitoring.PluginImpl.start(PluginImpl.java:115)
at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:449)
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:438)

I have tried variations of 1.2,1.3,1.4,1.5,1.6 on newly installed jenkins-lts-1.642.1&2 and even 2.7. The only monitoring version that has worked 1.8.1 which is a bit ancient now and doesn't seem to support the /nodes feature.

After upgrading one of the test boxes to the LTS Jenkins version(2.19.3) I have managed to get Monitoring 1.59 installed without the above error.
Did a search for log4j files and only found:
/usr/share/java/tomcat/log4j.jar -> /usr/share/java/log4j.jar which don;t think it should have an impact.
Please let me know if you have any suggestions.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

nelu.vasilica@cirrus.com (JIRA)

unread,
Nov 18, 2016, 7:50:07 AM11/18/16
to jenkinsc...@googlegroups.com

nelu.vasilica@cirrus.com (JIRA)

unread,
Nov 18, 2016, 7:50:08 AM11/18/16
to jenkinsc...@googlegroups.com
Nelu Vasilica reopened an issue
 

Please let me know if you have any suggestions.

Change By: Nelu Vasilica
Resolution: Not A Defect
Status: Resolved Reopened

evernat@free.fr (JIRA)

unread,
Nov 18, 2016, 8:20:01 AM11/18/16
to jenkinsc...@googlegroups.com
evernat commented on Bug JENKINS-32441
 
Re: SEVERE: Failed Loading plugin monitoring

It's very strange that log4j.jar file in the tomcat directory.
Anyway, you probably have old versions of log4j-over-slf4j and of slf4j-api in your classpath.
See https://github.com/javamelody/javamelody/issues/566

To fix the issue, you should not have obsolete versions of log4j-over-slf4j and of slf4j-api.

nelu.vasilica@cirrus.com (JIRA)

unread,
Nov 28, 2016, 9:53:01 AM11/28/16
to jenkinsc...@googlegroups.com

Thank you for your answer. I have checked a few jenkins servers for obsolete log4j-over-slf4j and of slf4j-api but couldn't find any.
I'll keep digging and let you know if I find a solution.

evernat@free.fr (JIRA)

unread,
Mar 4, 2017, 9:48:02 AM3/4/17
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages