Jenkins upgrade from 2.73.3 to 2.138 deleted all views

206 views
Skip to first unread message

Roshan Chandekar

unread,
Mar 26, 2019, 2:24:37 PM3/26/19
to Jenkins Users
Hi All,

Need help. I am trying to upgrade the jenkins from 2.73.1 to 2.138.4. But it deleted all my views and all jobs showing under "All" tab.

please let me know if someone fixed this issue. I tried the upgrade from 2.107 and there as well same issue.

Mark Waite

unread,
Mar 26, 2019, 2:29:59 PM3/26/19
to Jenkins Users
Are you sure that you've installed the same plugins on the 2.138.4 installation as you had on the 2.73.1 installation?

Have you placed all the files from the 2.73.1 JENKINS_HOME in the 2.138.4 JENKINS_HOME?

Have you read the Jenkins log from the 2.138.4 installation as it starts, in case there are helpful suggestions in the log?

Mark Waie

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/55f94b7f-e5dc-471d-8d56-80f158db572e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Suguna Sai

unread,
Mar 26, 2019, 3:37:41 PM3/26/19
to jenkins...@googlegroups.com
I am using jenkins 2.150.2 while installing npm getting below sub module error.

+ npm install @angular/cli
npm ERR! path /jenkins/workspace/Project/repo/development/node_modules/angular-material
npm ERR! code EISGIT
npm ERR! git /jenkins/workspace/Project/repo/development/node_modules/angular-material: Appears to be a git repo or submodule.
npm ERR! git     /jenkins/workspace/Project/repo/development/node_modules/angular-material
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-03T67_99_99_00Z-debug.log
script returned exit code 1

Thanks,
Sai Suguna


Slide

unread,
Mar 26, 2019, 3:44:09 PM3/26/19
to Jenkins User Mailing List
Please don't hijack threads on the mailing list. Your question is very different from the original question being asked.


For more options, visit https://groups.google.com/d/optout.


--

Aditya Shastri

unread,
Mar 26, 2019, 4:07:29 PM3/26/19
to Jenkins Users
I had issues when I did the upgrade for the LTS but updating the plugins to the latest versions available resolved that for me. Have you tried that?

Roshan Chandekar

unread,
Mar 27, 2019, 4:37:50 AM3/27/19
to Jenkins Users
Hi Mark,

I am really glad after seeing your response to my issue.

I will explain how i am upgrading first. I downloaded the 2.138 war and restarted Jenkins. is it correct way to upgrade? OR do i need to first upgrade all plugins on top of 2.73 and then download 2.138 war and restart? Please correct my Jenkins upgrade process. Till now i was just downloading latest war and restarting Jenkins was working.

Regarding issues from log, i can below errors from log.

===============================================================================================================================================
WARNING: hudson.plugins.view.dashboard.Dashboard in file:/scratch/jenkins/plugins/dashboard-view/WEB-INF/lib/dashboard-view.jar might be dangerous, so rejecting; see https://jenkins.io/redirect/class-filter/
Mar 26, 2019 10:13:36 AM jenkins.security.ClassFilterImpl lambda$isBlacklisted$1
WARNING: jenkins.plugins.publish_over.BPInstanceConfig in file:/scratch/jenkins/plugins/publish-over-ssh/WEB-INF/lib/publish-over-0.18.jar might be dangerous, so rejecting; see https://jenkins.io/redirect/class-filter/



WARNING: Build record migration (https://jenkins.io/redirect/build-record-migration) is one-way. If you need to downgrade Jenkins, run: java -classpath "/scratch/jenkins/war/WEB-INF/lib/jenkins-core-2.107.1.jar:/scratch/jenkins/war/WEB-INF/lib/commons-io-2.4.jar:/scratch/jenkins/war/WEB-INF/lib/stapler-1.254.jar:/scratch/jenkins/war/WEB-INF/lib/ant-1.9.2.jar:/scratch/jenkins/war/WEB-INF/lib/commons-lang-2.6.jar" jenkins.model.RunIdMigrator "/scratch/jenkins"
Mar 26, 2019 10:13:37 AM jenkins.model.RunIdMigrator migrate
INFO: Migrating build records in /scratch/jenkins/jobs/Main-Pipeline (old)/builds
Mar 26, 2019 10:13:37 AM jenkins.model.RunIdMigrator migrate
INFO: Migrating build records in /scratch/jenkins/jobs/Occs-Frontend-Framework-Pipeline/builds
Mar 26, 2019 10:13:37 AM jenkins.model.RunIdMigrator migrate
INFO: Migrating build records in /scratch/jenkins/jobs/CC_ServerExtensions - main/builds
Mar 26, 2019 10:13:37 AM com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder migrateLegacyPrimaryAllViewLocalizedName
INFO: JENKINS-38606 detected for AllView in com.cloudbees.hudson.plugins.folder.Folder@54b34631[Experiments/ExperimentsSharedLib/SeedJobsTest/Main]; renaming view from All to all
Mar 26, 2019 10:13:37 AM com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder migrateLegacyPrimaryAllViewLocalizedName
INFO: JENKINS-38606 detected for AllView in com.cloudbees.hudson.plugins.folder.Folder@7748c014[Experiments/ExperimentsSharedLib/SeedJobsTest/Shelves]; renaming view from All to all
Mar 26, 2019 10:13:37 AM com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder migrateLegacyPrimaryAllViewLocalizedName
INFO: JENKINS-38606 detected for AllView in com.cloudbees.hudson.plugins.folder.Folder@75b3be9[Experiments/ExperimentsSharedLib/SeedJobsTest/Shelves/ShelvedMain]; renaming view from All to
=========================================================================================================================================================

Roshan Chandekar

unread,
Mar 27, 2019, 4:42:38 AM3/27/19
to Jenkins Users
Hi Aditya,

Thank you so much for your reply as i am struggling from last 15 days and this is first time i reported my issue on Jenkins blog.

I will explain how i am upgrading first. I downloaded the 2.138 war and restarted Jenkins. is it correct way to upgrade? OR do i need to first upgrade all plugins on top of 2.73 and then download 2.138 war and restart? OR Download 2.138 and restartJjenkins and then upgrade all plugins on top of 2.138?  Please correct my Jenkins upgrade process. Till now i did many upgrades but i was just downloading latest war and restarting Jenkins was working.

As per your suggestion i am upgrading all plugins and will update you. Meanwhile please let me know exactly how did you complete your upgrade in steps which will be more helpful for me.

One again thank you so much.

Mark Waite

unread,
Mar 28, 2019, 3:32:53 AM3/28/19
to Jenkins Users
Those warnings seem to indicate that you'll need to update plugins.  When you update the plugins to latest versions, does that help?


For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Roshan Chandekar

unread,
Mar 28, 2019, 8:22:41 AM3/28/19
to Jenkins Users
If you upgrade the Jenkins version first and then plugin upgrade that don't help. I followed below sequence and that helped me to fix the problem

upgrade the plugin first from 2.73.3 UI without restart and then copy the 2.138 war to Jenkins home and then restart the Jenkins. Got all my view back.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.


--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages