jenkinsci / build-monitor-plugin

Jenkins Build Monitor Plugin
https://plugins.jenkins.io/build-monitor-plugin/
MIT License
724 stars 280 forks source link

The build monitor view fails with "Sorry to bother you, but Jenkins is having a problem :-(" error #871

Open agoyalxifin opened 8 months ago

agoyalxifin commented 8 months ago

Jenkins and plugins versions report

I am working on Jenkins version 2.401 and Build Monitor View version [1.14-744.v35fd6fa_a_26b_2]

What Operating System are you using (both controller, and any agents involved in the problem)?

I am on Windows 10 Enterprise and running Jenkins on Google chrome 120.0.6099.110

Reproduction steps

The view fails randomly when trying to add new Jenkins jobs to it. I am selecting individual jobs from the Jobs list in Job Filter section of the view. image The view fails if the number of jobs selected gets too high. Yesterday, it was failing when the number of job selected was above 38 but today it's failing for >12.

Steps -

  1. Log into Jenkins
  2. Go to My views and add a build monitor view
  3. Select the jobs from Jobs list in Job Filters
  4. Click apply and save

Expected Results

Creates a view with selected jobs

Actual Results

Fails with this error image

Anything else?

I am using the build view plugin and have not made any changes in pom.xml in the code anywhere for this. I am sure this is not an issue but I need help understanding what is missing and how to fix this.

Are you interested in contributing a fix?

No response

HairyMike commented 7 months ago

I'm seeing this behaviour as well:

Jenkins version: 2.426.2
Plugin version: 1.14-826.vb_a_c11536174d
andreygaizler commented 7 months ago

Getting such error as well when using plugin Dashboard View. From my observations, plugin fails with this error when any of the jobs from the list was triggered by upstream project. I have nightly triggers for different jobs, and in the morning I get error from the dashboard.

No valid crumb was included in request for /view/Dashboard%20View/job/my-job/widget/ExecutorsWidget/ajax by user. Returning 403.

java.lang.ClassCastException: class hudson.model.FreeStyleBuild cannot be cast to class org.jenkinsci.plugins.workflow.job.WorkflowRun (hudson.model.FreeStyleBuild is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @7b420819; org.jenkinsci.plugins.workflow.job.WorkflowRun is in unnamed module of loader jenkins.util.URLClassLoader2 @4a638e9b)

Jenkins 2.441

HairyMike commented 5 months ago

Any update on this? Seems like the same issue is in Jira - https://issues.jenkins.io/browse/JENKINS-71469?jql=resolution%20is%20EMPTY%20and%20component%3D17722

One of the commenters suggests disabling the "Display committers" option fixes the issue.

(I'm using multibranch pipelines)

HairyMike commented 5 months ago

I confirm disabling "Display committers" seems to bypass the issue