Upgrade jenkins ver 2.190.3 to ver

Hi team,

I have some problem in upgrading the version of my jenkins( ver 2.190.3 ) to the last version : 2.303.3, when I’m trying to login after upgrade, the prompt login is staying to much in loading and doesn’t authenticate me at all. I have not experienced in jenkins administration but I can tell you how the upgrade was done:

  • stoped jenkins service
  • downloaded the jenkins.war 2.303.3 and replaced the 2.190.3 from the path /usr/lib/jenkins with the new one
  • started jenkins service

Mentions: the jenkins is behind to the proxy and doesn’t have any connection to the Internet

Jenkins logs:

|2021-11-22 14:00:36.460+0000 [id=175]|SEVERE|h.p.e.plugins.ContentBuilder#transformText|
|---|---|---|
|2021-11-22 14:00:36.464+0000 [id=175]|SEVERE|h.p.e.plugins.ContentBuilder#transformText|
|2021-11-22 14:00:36.647+0000 [id=175]|SEVERE|h.p.e.plugins.ContentBuilder#transformText|
|2021-11-22 14:07:18.309+0000 [id=28]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Matrix Authorization Strategy Plugin v2.6.6 (matrix-auth)|
|2021-11-22 14:07:18.310+0000 [id=28]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin bouncycastle API Plugin v2.20 (bouncycastle-api)|
|2021-11-22 14:07:18.737+0000 [id=34]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Kubernetes Client API Plugin v4.6.4-2 (kubernetes-client-api)|
|2021-11-22 14:07:18.738+0000 [id=34]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Kubernetes Credentials Plugin v0.6.0 (kubernetes-credentials)|
|2021-11-22 14:07:18.788+0000 [id=34]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Kubernetes plugin v1.23.0 (kubernetes)|
|2021-11-22 14:07:18.789+0000 [id=34]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin OpenShift Sync v1.0.44 (openshift-sync)|
|2021-11-22 14:07:18.885+0000 [id=35]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Role-based Authorization Strategy v2.16 (role-strategy)|
|2021-11-22 14:07:18.887+0000 [id=35]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Job and Node ownership plugin v0.12.1 (ownership)|
|2021-11-22 14:07:18.888+0000 [id=29]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin OpenShift Pipeline Jenkins Plugin v1.0.56 (openshift-pipeline)|
|2021-11-22 14:07:18.891+0000 [id=29]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Docker plugin v1.1.9 (docker-plugin)|
|2021-11-22 14:07:18.891+0000 [id=29]|SEVERE|jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin SSH server v3.0.3 (sshd)|
|2021-11-22 14:00:02.719+0000 [id=114]|WARNING|o.j.h.a.Index$2$1#fetch: Failed to load org.jenkinsci.plugins.github.pullrequest.extra.GitHubPRLabelUnblockQueueCondition$DescriptorImpl|
|---|---|---|
|2021-11-22 14:00:02.813+0000 [id=114]|WARNING|o.j.h.a.Index$2$1#fetch: Failed to load org.jenkinsci.plugins.github.pullrequest.extra.GitHubPRLabelUnblockQueueCondition$DescriptorImpl|
|2021-11-22 14:00:07.217+0000 [id=125]|WARNING|o.j.h.a.Index$2$1#fetch: Failed to load org.jenkinsci.plugins.github.pullrequest.extra.GitHubPRLabelUnblockQueueCondition$DescriptorImpl|
|2021-11-22 14:00:07.635+0000 [id=124]|WARNING|o.j.h.a.Index$2$1#fetch: Failed to load org.jenkinsci.plugins.github.pullrequest.extra.GitHubPRLabelUnblockQueueCondition$DescriptorImpl|
|2021-11-22 14:07:10.184+0000 [id=1]|WARNING|winstone.Logger#logInternal: Parameter handlerCountMax is now deprecated|
|2021-11-22 14:07:10.186+0000 [id=1]|WARNING|winstone.Logger#logInternal: Parameter handlerCountMaxIdle is now deprecated|
|2021-11-22 14:07:27.490+0000 [id=33]|WARNING|hudson.model.Descriptor#load: Failed to load /home/jenkins/jenkinsci.plugins.influxdb.InfluxDbPublisher.xml|
|2021-11-22 14:07:28.834+0000 [id=33]|WARNING|o.j.p.d.DockerBuilder$DescriptorImpl#<init>: Docker URL is not set, docker client won't be initialized|
|2021-11-22 14:08:30.257+0000 [id=97]|WARNING|j.m.api.Metrics$HealthChecker#execute: Some health checks are reporting as unhealthy: [plugins : There are 11 failed plugins: matrix-auth; bouncycastle-api; kubernetes-client-api; kubernetes-credentials; kubernetes; openshift-sync; role-strategy; ownership; openshift-pipeline; docker-plugin; sshd]|

Should I upgrade the jenkins to other version instead of the last version?

Thank you for your support

you should update all your plugins too, I believe a bunch of apis had to change for a guava upgrade.

190 => 303 is about 100 weeks worth of changes, so its not surprising that some things didn’t go super smoothly.

One way to upgrade plugins offline would be GitHub - jenkinsci/plugin-installation-manager-tool: Plugin Manager CLI tool for Jenkins. You could do it in a terminal/shell/etc, setup your proxy, upgrade the plugins, then keep jenkins without internet.

Otherwise I’m not sure how you’d do the plugins upgrade. Probably goto plugins.jenkins.io for each plugin and download new files.