Closed DuMaM closed 1 year ago
cc: @SumoLogic/sumoappdev
Any news here? 😉 It started to happening since 2.289 LTS, and now it's present on 2.332.3. It's happening in maven projects or in pipelines with Maven Pipeline Plugin. If you need any additional info, I can provide you anything you need.
@DuMaM - Can you share the Jenkins service log. what was the triggering point of the error. Did it cause due to installed/updated the plugin. Does it occur as soon as you restart the jenkins ?
@DuMaM - Any update on this ?
Hi @sumoanema , I was out of office and wasnt able to provide you any details. sorry for delay 🙏
I will try to answer your questions:
Jenkins service log
-> could you tell me what exactly you need?
we got quite big instance with 5k jobs running, and it could be a bit messy and also contain some confidential informations.
In monitor tab i got around 2M errors reported by week. > git rev-list --no-walk c3fc45f71c5eea98fcf37d9e94eb6eefe1c18bed # timeout=10
New run description is '<b>Some name - Latest</b>'
Parsing POMs
Modules changed, recalculating dependency graph
Established TCP socket on 33746
Copied maven33-agent.jar
Copied maven33-interceptor.jar
Copied maven3-interceptor-commons.jar
[main] $ java -cp /home/hudson/build/maven33-agent.jar:/opt/jenkins/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/opt/jenkins/apache-maven-3.3.9/conf/logging jenkins.maven3.agent.Maven33Main /opt/jenkins/apache-maven-3.3.9 /tmp/remoting.jar /home/hudson/build/maven33-interceptor.jar /home/hudson/build/maven3-interceptor-commons.jar 33746
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /home/hudson/build/workspace/job-test/main/pom.xml clean test -Dparallel=methods -DthreadCount=1
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for my.org:my.org.test.proj:jar:1.0.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 150, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
ERROR: Job Status Generation ended with exception as Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
maven plugin
. It was suppressed by your one, and i'm unable to determine where error is.@sumoanema Maven version/JDK version do not affect on behaviour. Do you need something more?
sorry for the delay...will try to analyse the above information and get back ASAP.
Sure I also reported this in jenkins for maven plugin, becasue it was spotted there at first. https://issues.jenkins.io/browse/JENKINS-69755
@DuMaM - Have you tried running the job without sumo logic plugin..does it still fail ? Are any type log getting ingested in sumo through the plugin are no logs are getting sent ? Does your pipeline have only maven console logs or are there is anything else ?
Also I will advice you to raise a support ticket with sumologic to track this better. You can answer the above question. I think we might need to get on a call for this .
Sure, i will tests this in Monday.
@sumoanema is this doable? https://github.com/SumoLogic/sumologic-jenkins-plugin/issues/50#issue-1410115561
I'm wondering if you could upgrade this plugin first, maybe this issue will be solved just by bumping versions :)
Have you tried running the job without sumo logic plugin..does it still fail ?
Not yet but I will.
Are any type log getting ingested in sumo through the plugin are no logs are getting sent ?
Jenkins sent whole build log to sumo.
Does your pipeline have only maven console logs or are there is anything else ?
As I wrote before it's a Maven Projects, not FreeStyle, not Pipeline one. This means -> Yes 😉 https://plugins.jenkins.io/maven-plugin/
Also I will advice you to raise a support ticket with sumologic to track this better. You can answer the above question. I think we might need to get on a call for this .
Sure. I will link this issue in it.
@DuMaM - Just to clarify this - "Jenkins sent whole build log to sumo." When the job tries to send logs to sumo are there any logs which are received at sumo end. Or there are no logs received.
Have you tried running the job without sumo logic plugin..does it still fail ?
I just tried. No fails since 3h, so the sumo plugin for sure is source of this issue.
Just to clarify this - "Jenkins sent whole build log to sumo." When the job tries to send logs to sumo are there any logs which are received at sumo end. Or there are no logs received.
Not every job report all logs. It's hard to determine why this is happening, but some jobs have full log and some not.
@DuMaM - I think we will need to get on a call for this. Since the error message is quite confusing. The thing is if the jenkins.instance is missing, ideally it should not have been able to send any logs. But based on your last comment it seems like your are able to get some logs and the jenkins plugin somehow fails due to some problem in between.
I hope you have raised a support ticket with sumo ?
Ticket number #76941
Small update In sumo ticket we agreed to update this plugin according to https://github.com/SumoLogic/sumologic-jenkins-plugin/issues/50
@sumo-drosiek @sumoanema Any updates?
Hi @DuMaM - I am trying to update the jenkins plugin version but getting few build issues currently. Another thing which I wanted to try was to replicate the exact error. For which I might need the exact version of your set up for java,maven version which you are using. And as you said earlier jenkins version used by you have been : 2.289 LTS and 2.332.3
I had asked the same info over sumo support ticket and was awaiting your response there.
@sumoanema https://issues.jenkins.io/browse/JENKINS-69755 here you have env settings
@DuMaM - Thanks let me try to replicate the exact same issue and get back ASAP
update : @DuMaM - I was able to reproduce the issue in my local setup. On the other hand when trying to upgrade the jenkins plugin I am running into this error : https://issues.jenkins.io/browse/JENKINS-54844?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel though the issue is closed .
I have tried upgrading it to 2.361.1, 2.289, 2.332.3 but all lead into the same error. I am currently looking into this and trying to find any solution (maybe upgrade plugin or some other code fix)
@DuMaM - In my setup all the logs are getting ingested in sumo from the maven job...its just that we keep getting this single error message (jenkins.instance missing) send to sumo. Also the jenkins log also have the stack trace.
But hopefully the maven job logs are still getting ingested for you as well to work with ?
its just that we keep getting this single error message (jenkins.instance missing) send to sumo
I'm also getting this, and I got 2 million such errors per day... This makes tracking other issues a problematic.
In my setup all the logs are getting ingested in sumo from the maven job, but hopefully the maven job logs are still getting ingested for you as well to work with ?
Maybe there is also other issue that leads to such behavior. 🤷 For us some of them are lost and some not. After you fix this jenkins.instance is missing
, I will create new ticket if I find something new.
@sumoanema any updates?
Bump?
@DuMaM - Sorry for the late reply. Just got back from vacation. I am still working on it. Will try to provide a fix as soon as possible.
@sumoanema take your time 😉
@sumoanema do you have any ETA on this issue?
@DuMaM - let me get back with the ETA in a couple of days.
I got experience in plugins modernization. Maybe you can make your PR public so we all can contribute to it and finish your work faster?
There are some security vulnerability which are reported in the plugin for which I upgraded some jar and realised while building that jenkins.version also needs to in upgraded, which might solve your issue and vulnerability issue. But I am still stuck with build issue. https://issues.jenkins.io/browse/JENKINS-54844?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
Here is the PR with the change : https://github.com/SumoLogic/sumologic-jenkins-plugin/pull/53
Any updates?
@DuMaM - Still stuck with the same error - https://issues.jenkins.io/browse/JENKINS-54844 . Trying to find a way out. Tried your suggestion of using bom from - https://github.com/SumoLogic/sumologic-jenkins-plugin/pull/53 But the thing is the error does not seem to be a dependency problem.
Also as suggested according to install state plugin can be migrated to at least 2.332.1. I did the same. When building with java 8 everyhting goes fine. But as soon as I upgrade to java 11 (and resolving all the build issue) I finally get stuck with the same problem.
Let's do baby steps. Maybe upgrade plugin first and then let's search for source of an issue
@sumoanema when this issue will be solved? any eta?
@DuMaM - as mentioned in issue #50 I have upgraded the plugin to 2.332.1 (with java 8) but I have been experiencing some problem in publishing the same to jenkins artifactory. Also at least for my environment that does not seem to be solving the underlying issue of "jenkins.instance" missing.
As far as the ETA is concern I am in talks with my team to get this prioritised. I will try to get back with an ETA as soon as possible.
@DuMaM - as mentioned in issue https://github.com/SumoLogic/sumologic-jenkins-plugin/issues/50 I have upgraded the plugin to 2.332.1 (with java 8) but I have been experiencing some problem in publishing the same to jenkins artifactory. Also at least for my environment that does not seem to be solving the underlying issue of "jenkins.instance" missing.
It's ok, as I said, let's do this with baby steps, and upgrade plugin first. I'm also a plugin maintainer, here is how I set up my project for app releases. Maybe it will be useful for you. https://github.com/jenkinsci/crowd2-plugin/blob/master/_init.sh
How to perform release you can find in plugin documents. https://www.jenkins.io/doc/developer/publishing/releasing-manually/
If you can't log in into Artifactory, please create a ticket here: https://github.com/jenkins-infra/helpdesk
You can also ask for help in Jenkins Google Group, they are really helpful :) https://groups.google.com/g/jenkinsci-dev
As far as the ETA is concern I am in talks with my team to get this prioritised. I will try to get back with an ETA as soon as possible.
Sure, I will reach you in a week or two.
@sumoanema any updates?
@DuMaM have been facing some build issue while releasing the plugin. Have been looking into the same. Will keep this ticket posted with the updates.
@sumoanema please use Jenkins BOM for plugins, it will help a lot. There is also a modernization video on Jenkins YouTube site where all steps are explained how to proceed with plugin build process.
@DuMaM - I was able to upgrade the jenkins plugin with java 11 and jenkins.version to 2.361.1, and was able to compile the plugin successfully. Upgrade the parent pom version to 4.55 for the plugin. Currently I am facing an issue with in build test cases (which is using mockito). _Wanted but not invoked: httpRequestHandler.handle(
To be fair we need to remove a sumologic plugin and drop the deal It do not work in last 2.375.4 LTS
@DuMaM - Sorry I missed the your last comment. I did not get you there. What do you mean by "remove a sumologic plugin and drop the deal" ? Do you mean - your jenkins system is upgraded to 2.375.4 and sumo plugin is not working with the same ? Hence you have stopped using it ?
Also latest update from my side - I was able to build the plugin sucessfully with jenkins.version 2.361.4. But the underlying error of "jenkins.instance is missing" is not resolved by this upgrade. I am using java 11 to run my jenkins instance. I am having a look into it.
@DuMaM - Just wanted to know about your last comment. Do you want the jenkins plugin's jenkins.version to be available on 2.375.4 ?
It took us a while to fix it. After merging from 2.361.3 to 2.375.4 something broke in plugin. It wasn't able to load itself correctly. Multiple resets didn't help. Finally we removed a plugin with configs, and then installed it once again. And after this operation it started to work correctly.
This means something in the serialization of classes was changed, and Jenkins wasn't able to parse stored config on xmls.
This repository is getting archived and the plugin will be maintained in jenkins repo itself - https://github.com/jenkinsci/sumologic-publisher-plugin as suggested by Jenkins open source team in this ticket - https://github.com/jenkins-infra/helpdesk/issues/3670 . Closing this ticket before archiving this and will track this as a bug internally.
Could somebody help me fix this error.