[JIRA] (JENKINS-59696) Jenkins Health Advisor requires to restart the instance to be activated

0 views
Skip to first unread message

aheritier@apache.org (JIRA)

unread,
Oct 8, 2019, 4:00:03 AM10/8/19
to jenkinsc...@googlegroups.com
Arnaud Héritier created an issue
 
Jenkins / Improvement JENKINS-59696
Jenkins Health Advisor requires to restart the instance to be activated
Issue Type: Improvement Improvement
Assignee: Arnaud Héritier
Components: cloudbees-jenkins-advisor-plugin
Created: 2019-10-08 07:59
Priority: Minor Minor
Reporter: Arnaud Héritier

Right now the plugin requires to have the master restarted otherwise (often?) it doesn't start to send bundles.

We want to verify if we could fix this issue (it's painful to have to restart an instance to install a plugin)

 

I suppose the issue could come from the instanciation/activation of the AsyncPeriodicWork task

https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/advisor/BundleUpload.java

Is there any good practices to follow ? Any sample of such AsyncPeriodicWork extensions which aren't requiring to restart the master ?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

aheritier@apache.org (JIRA)

unread,
Oct 8, 2019, 4:01:03 AM10/8/19
to jenkinsc...@googlegroups.com

aheritier@apache.org (JIRA)

unread,
Oct 8, 2019, 5:10:03 PM10/8/19
to jenkinsc...@googlegroups.com
Arnaud Héritier commented on Improvement JENKINS-59696
 
Re: Jenkins Health Advisor requires to restart the instance to be activated

I took a clean 2.138.4, installed the plugin with `Install without restart` and the plugin isn't in the Manage Jenkins page

I have the warning `Changes will take effect when you restart Jenkins`

aheritier@apache.org (JIRA)

unread,
Oct 8, 2019, 5:41:04 PM10/8/19
to jenkinsc...@googlegroups.com
Arnaud Héritier started work on Improvement JENKINS-59696
 
Change By: Arnaud Héritier
Status: Open In Progress

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 8:57:03 AM10/9/19
to jenkinsc...@googlegroups.com

More tests:

1/ Jenkins 2.138.4 installed from scratch with suggested plugins. Install without Restart adds Variant, Metrics and Support core plugins. Going in Manage Jenkins allows to configure the plugin. Trying to trigger it using the Groovy Console is failing:

Oct 09, 2019 2:51:33 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Bundle Upload
Oct 09, 2019 2:51:33 PM com.cloudbees.jenkins.plugins.advisor.BundleUpload logError
SEVERE: ERROR: Could not save support bundle
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:291)
	at com.cloudbees.jenkins.plugins.advisor.BundleUpload.generateBundle(BundleUpload.java:96)
	at com.cloudbees.jenkins.plugins.advisor.BundleUpload.execute(BundleUpload.java:71)
	at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:101)
	at java.lang.Thread.run(Thread.java:748)

Oct 09, 2019 2:51:33 PM com.cloudbees.jenkins.plugins.advisor.BundleUpload log
SEVERE: ERROR: Unable to generate support bundle
Oct 09, 2019 2:51:33 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Bundle Upload. 8 ms
Oct 09, 2019 2:51:34 PM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@63dd7a2 failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 09, 2019 2:51:37 PM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@63dd7a2 failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 09, 2019 2:51:40 PM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@63dd7a2 failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

The support core plugin doesn't like to be installed with no restart
 

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 9:04:02 AM10/9/19
to jenkinsc...@googlegroups.com
Arnaud Héritier edited a comment on Improvement JENKINS-59696
More tests:

1/ Jenkins 2.138.4 installed from scratch with suggested plugins. Install without Restart adds Variant, Metrics and Support core plugins. Going in Manage Jenkins allows to configure the plugin. Trying to trigger it using the Groovy Console is failing:


{noformat}
{noformat}


The support core plugin doesn't like to be installed with no restart

After a restart everything goes well
 

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 9:09:03 AM10/9/19
to jenkinsc...@googlegroups.com

2/ Jenkins 2.138.4 installed from scratch with suggested plugins. "Download now and install after restart" but adds Variant, Metrics and Support core plugins but all of them are "Downloaded Successfully. Will be activated during the next boot". We cannot use any of them before the next restart

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 9:09:03 AM10/9/19
to jenkinsc...@googlegroups.com
Arnaud Héritier edited a comment on Improvement JENKINS-59696
More tests:

1/ Jenkins 2.138.4 installed from scratch with suggested plugins.
*" Install without Restart "* adds Variant, Metrics and Support core plugins. Going in Manage Jenkins allows to configure the plugin. Trying to trigger it using the Groovy Console is failing:

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 10:18:02 AM10/9/19
to jenkinsc...@googlegroups.com

3/ Jenkins 2.138.4 installed from scratch with suggested plugins. *I upload from the UI a patched version of the plugin* with all extensions and marked as loadable dynamically and it works. I can trigger an upload from the console. No issue.

https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/pull/50

But is it a test which is relevant compared to installations 1/ and 2/ done from the UC ?

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 10:33:03 AM10/9/19
to jenkinsc...@googlegroups.com

aheritier@apache.org (JIRA)

unread,
Oct 9, 2019, 10:53:02 AM10/9/19
to jenkinsc...@googlegroups.com

In fact doing 3/ with the current master code and not the patched one works too

Should I conclude that to install a plugin without restarting the master the best strategy is to upload it manually instead of installing it from the UC?

aheritier@apache.org (JIRA)

unread,
Oct 11, 2019, 12:56:01 PM10/11/19
to jenkinsc...@googlegroups.com

aheritier@apache.org (JIRA)

unread,
Oct 14, 2019, 8:27:02 AM10/14/19
to jenkinsc...@googlegroups.com

As seen above and with Allan BURDAJEWICZ tests, the problem is perhaps in support-core and not in advisor ( JENKINS-59775 ) 

aheritier@apache.org (JIRA)

unread,
Oct 16, 2019, 2:43:03 AM10/16/19
to jenkinsc...@googlegroups.com

aheritier@apache.org (JIRA)

unread,
Oct 16, 2019, 3:00:02 AM10/16/19
to jenkinsc...@googlegroups.com
Arnaud Héritier updated an issue
Change By: Arnaud Héritier
Attachment: Screenshot 2019-10-16 08.57.20.png

aheritier@apache.org (JIRA)

unread,
Oct 16, 2019, 3:02:03 AM10/16/19
to jenkinsc...@googlegroups.com
Arnaud Héritier updated an issue
Change By: Arnaud Héritier
Attachment: Screenshot 2019-10-16 09.00.42.png

aheritier@apache.org (JIRA)

unread,
Oct 16, 2019, 3:13:05 AM10/16/19
to jenkinsc...@googlegroups.com
Arnaud Héritier stopped work on Improvement JENKINS-59696
 
Change By: Arnaud Héritier
Status: In Progress Open

aheritier@apache.org (JIRA)

unread,
Oct 16, 2019, 3:13:06 AM10/16/19
to jenkinsc...@googlegroups.com
 
Re: Jenkins Health Advisor requires to restart the instance to be activated

I did a lot of manual tests and the problem is always when support-core isn't yet installed. The problem isn't directly in advisor Ryan Campbell

Otherwise we will have to see with Allan BURDAJEWICZ if we can isolate/fix the issue in support-core.

The only thing I could try to do at the advisor level is to catch this error and ask to the administrator to restart the instance.

For now the user is seeing this generic error in the Advisor config panel:

 

And this warning monitor (note to myself: they should be unified ...)

Note, that as soon the support-core is installed but the instance not restarted the logs are polluted with these errors

 

Oct 16, 2019 8:49:05 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:08 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:11 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:14 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:17 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:20 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:23 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

Oct 16, 2019 8:49:26 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@2656884b failed
java.lang.IllegalStateException: Expected 1 instance of com.cloudbees.jenkins.support.filter.ContentFilters but got 2
	at hudson.ExtensionList.lookupSingleton(ExtensionList.java:450)
	at com.cloudbees.jenkins.support.filter.ContentFilters.get(ContentFilters.java:47)
	at com.cloudbees.jenkins.support.SupportPlugin.getContentFilter(SupportPlugin.java:402)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:80)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:72)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

 

I tested with the oldest version supported by the plugin (2.138.4) but as discussed with Daniel BeckI also tested the most recent LTS (2.190.1) and the behavior is the same.

I think we should reclassify this issue as a support-core. 

Does it makes sense for all of you ?

 

aheritier@apache.org (JIRA)

unread,
Oct 16, 2019, 3:20:02 AM10/16/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages