[JIRA] (JENKINS-57258) Lost builds historical data after updating to Jenkins v2.175

0 views
Skip to first unread message

nico.tgee@gmail.com (JIRA)

unread,
Apr 30, 2019, 10:15:02 AM4/30/19
to jenkinsc...@googlegroups.com
Nicolas Echegut created an issue
 
Jenkins / Bug JENKINS-57258
Lost builds historical data after updating to Jenkins v2.175
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: branches.PNG, build_history.PNG, failed_build_console_log.txt
Components: core, pipeline
Created: 2019-04-30 14:14
Environment: Jenkins v2.175 / Unix master / Java 64bit 1.8.0_192
Priority: Blocker Blocker
Reporter: Nicolas Echegut

I'm using Multibranch Pipeline to automatically build changes in my Enterprise GitHub Organization repositories.

After updating Jenkins to 2.175 and restarting, ALL the successful builds of ALL the branches of ALL my GitHub org repositories (that's around 75 repositories and approximately 2,000 builds) have been retriggered and instantly failed. All the builds failed with the same error, see attached console log. Now, all the projects and branches and builds are marked as Failed, and some build information such as the build date appear to be lost (see screenshots).

In the example log, we can see the build was successfully completed a week ago, but restarted and failed today after restarting Jenkins.  I can consistenly reproduce this issue by re-building a project and restarting Jenkins.

The issue does not happen if I downgrade to Jenkins 2.174.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

dbeck@cloudbees.com (JIRA)

unread,
May 2, 2019, 11:26:02 AM5/2/19
to jenkinsc...@googlegroups.com

nico.tgee@gmail.com (JIRA)

unread,
May 3, 2019, 3:11:02 AM5/3/19
to jenkinsc...@googlegroups.com

I did prior to updating Jenkins, but restarted the instance in between. The only plugin updates were related to Blue Ocean.

jeremy@mathevet.net (JIRA)

unread,
May 3, 2019, 5:20:02 AM5/3/19
to jenkinsc...@googlegroups.com

Similar issue here, only not on all repos and all branches. I can't find a common pattern unfortunately.

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 3, 2019, 7:33:03 AM5/3/19
to jenkinsc...@googlegroups.com

That would (loosely?) hint about the serialization format of the workflow-support:3.x line, but if you're saying you had updates all plugins before, that doesn't look like it.
To be sure: can you confirm you were already running with all latest plugins, specifically workflow-support was 3.2?
cc Devin Nusbaum

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 3, 2019, 7:34:02 AM5/3/19
to jenkinsc...@googlegroups.com
Baptiste Mathus edited a comment on Bug JENKINS-57258
That would (loosely?) hint about the serialization format change of the workflow-support:3.x line, but if you're saying you had updates all plugins before, that doesn't look like it.

To be sure: can you confirm you were already running with all latest plugins, specifically workflow-support was 3.2?
cc [~dnusbaum]

o.v.nenashev@gmail.com (JIRA)

unread,
May 3, 2019, 7:40:03 AM5/3/19
to jenkinsc...@googlegroups.com

After going through https://github.com/jenkinsci/jenkins/compare/jenkins-2.174...jenkins-2.175 , I do not see anything strictly related to this issue. I could assume a weird side effect of https://github.com/jenkinsci/jenkins/pull/3980 , but there is no data to confirm it.

 

Baptiste Mathus Devin Nusbaum .dat files and format changes should be related to Running builds only, I am not sure these files are used for completed builds. Any chance we have issues with build status persistency in  build.xml 

 

Nicolas Echegut If you have build.xml files and System logs after the upgade to 2.175, it would help a lot

dnusbaum@cloudbees.com (JIRA)

unread,
May 3, 2019, 8:41:01 AM5/3/19
to jenkinsc...@googlegroups.com

Any chance we have issues with build status persistency in build.xml

We have had issues with this kind of thing in the past (JENKINS-50199), but I am not aware of any related issues in recent plugin versions, although it does remind me of the issues some people are seeing where Pipeline Jobs seem to hold onto flyweight executors after they have apparently completed (discussed in JENKINS-45571). Nicolas Echegut If you have build.xml files from before the upgrade and can tell us whether you updated the Pipeline Job, Pipeline Groovy, or Pipeline Supporting APIs plugins and if so, what versions they were previously and what versions they are now, that would help.

nico.tgee@gmail.com (JIRA)

unread,
May 3, 2019, 9:08:03 AM5/3/19
to jenkinsc...@googlegroups.com

nico.tgee@gmail.com (JIRA)

unread,
May 3, 2019, 9:08:04 AM5/3/19
to jenkinsc...@googlegroups.com

nico.tgee@gmail.com (JIRA)

unread,
May 3, 2019, 9:08:04 AM5/3/19
to jenkinsc...@googlegroups.com
Nicolas Echegut commented on Bug JENKINS-57258
 
Re: Lost builds historical data after updating to Jenkins v2.175

I grabbed the build.xml from a build before and after restart. 

I updated workflow-support from 3.2 to 3.3 right before upgrading Jenkins, but restarted Jenkins in-between. I was already on the latest version of workflow-job-plugin and workflow-cps-plugin.

dnusbaum@cloudbees.com (JIRA)

unread,
May 3, 2019, 9:34:03 AM5/3/19
to jenkinsc...@googlegroups.com

Based on those files, the pre-update run and flow execution have a result, the run is marked as completed and the flow execution is marked as done, which all looks good. The only things that seem off is that the flow execution does not have persistedClean = true, but that by itself shouldn't be a problem, and that the CloverHtmlBuildAction and checkout information were nulled out as part of the update. This does remind me of JENKINS-57254, which was also reported against 2.175 recently, although apparently that was caused by the SCoverage plugin which doesn't appear in your build.xml files. Do you see any errors in your Jenkins system logs around the time of the upgrade?

nico.tgee@gmail.com (JIRA)

unread,
May 3, 2019, 12:30:02 PM5/3/19
to jenkinsc...@googlegroups.com

I don't see anything useful in the log and error files from the day of the upgrade.

I'm not using the SCoverage plugin.

dbeck@cloudbees.com (JIRA)

unread,
May 10, 2019, 4:09:02 PM5/10/19
to jenkinsc...@googlegroups.com

Does this problem still occur with Jenkins 2.176? I assume instances were restored from backup when this happened, so what happens when you skip 2.175?

nico.tgee@gmail.com (JIRA)

unread,
May 15, 2019, 10:52:20 AM5/15/19
to jenkinsc...@googlegroups.com

Unfortunately this Jenkins instance did not have any backup so nothing was recovered. I skipped 2.175 and 2.176 and upgraded to 2.177. The good news is the issue with builds automatically restarting and failing after a Jenkins restart is not occurring anymore. The bad news is we probably will never know what happened now  It may have been related to JENKINS-57254.

Anyway, I will go ahead and close this Jira since the issue cannot be reproduced anymore. Thanks for looking into this.

nico.tgee@gmail.com (JIRA)

unread,
May 15, 2019, 10:52:20 AM5/15/19
to jenkinsc...@googlegroups.com
Nicolas Echegut closed an issue as Cannot Reproduce
 
Change By: Nicolas Echegut
Status: Open Closed
Resolution: Cannot Reproduce
Reply all
Reply to author
Forward
0 new messages