jenkinsci / kubernetes-operator

Kubernetes native Jenkins Operator
https://jenkinsci.github.io/kubernetes-operator
Other
600 stars 236 forks source link

Jenkins master restart continuously when using getting started guide and example Jenkins manifest #568

Closed grahamja closed 3 years ago

grahamja commented 3 years ago

Describe the bug Jenkins master pod continuously restarts. Logs show errors when loading all plugins (log at end of the issue).

To Reproduce This is with a fresh GKE cluster and using the steps and manifests in the Jenkins operator documentation. https://jenkinsci.github.io/kubernetes-operator/docs/installation/ https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/deploy-jenkins/

Additional information

Kubernetes version: 1.19.9-gke.1400 Jenkins Operator version: 0.5.0

The operator logs show that it is restarting the jenkins-master pod because it notices the plugins are missing.

You can see why in the jenkins master pod log:


+ echo 'To print debug messages set environment variable '\''DEBUG_JENKINS_OPERATOR'\'' to '\''true'\'''
+ mkdir -p /var/lib/jenkins/init.groovy.d
To print debug messages set environment variable 'DEBUG_JENKINS_OPERATOR' to 'true'
+ cp -n /var/jenkins/init-configuration/createOperatorUser.groovy /var/lib/jenkins/init.groovy.d
+ mkdir -p /var/lib/jenkins/scripts
+ cp /var/jenkins/scripts/init.sh /var/jenkins/scripts/install-plugins.sh /var/lib/jenkins/scripts
+ chmod +x /var/lib/jenkins/scripts/init.sh /var/lib/jenkins/scripts/install-plugins.sh
+ echo 'Installing plugins required by Operator - begin'
+ cat
Installing plugins required by Operator - begin
+ [[ -z '' ]]
+ install-plugins.sh
WARN: install-plugins.sh is deprecated, please switch to jenkins-plugin-cli
Creating initial locks...
Analyzing war /usr/share/jenkins/jenkins.war...
Registering preinstalled plugins...
Using version-specific update center: https://updates.jenkins.io/dynamic-2.277/...
Downloading plugins...
Downloading plugin: kubernetes from https://updates.jenkins.io/download/plugins/kubernetes/1.28.6/kubernetes.hpi
Downloading plugin: workflow-aggregator from https://updates.jenkins.io/download/plugins/workflow-aggregator/2.6/workflow-aggregator.hpi
Downloading plugin: job-dsl from https://updates.jenkins.io/download/plugins/job-dsl/1.77/job-dsl.hpi
Downloading plugin: workflow-job from https://updates.jenkins.io/download/plugins/workflow-job/2.40/workflow-job.hpi
Downloading plugin: git from https://updates.jenkins.io/download/plugins/git/4.5.0/git.hpi
Downloading plugin: configuration-as-code from https://updates.jenkins.io/download/plugins/configuration-as-code/1.46/configuration-as-code.hpi
Downloading plugin: kubernetes-credentials-provider from https://updates.jenkins.io/download/plugins/kubernetes-credentials-provider/0.15/kubernetes-credentials-provider.hpi
 > workflow-aggregator depends on lockable-resources:2.3,pipeline-stage-view:2.10,workflow-api:2.29,workflow-basic-steps:2.11,workflow-cps-global-lib:2.11,workflow-cps:2.56,workflow-durable-task-step:2.22,workflow-job:2.25,workflow-multibranch:2.20,workflow-scm-step:2.6,workflow-step-api:2.16,workflow-support:2.20,cloudbees-folder:6.6,credentials:2.1.18,git-client:2.7.3,jackson2-api:2.8.11.3,pipeline-build-step:2.7,pipeline-input-step:2.8,pipeline-milestone-step:1.3.1,pipeline-stage-step:2.3,scm-api:2.2.8,structs:1.15,pipeline-model-definition:1.3.2
Downloading plugin: lockable-resources from https://updates.jenkins.io/dynamic-2.277//latest/lockable-resources.hpi
Downloading plugin: pipeline-stage-view from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-stage-view.hpi
Downloading plugin: workflow-api from https://updates.jenkins.io/dynamic-2.277//latest/workflow-api.hpi
Downloading plugin: workflow-basic-steps from https://updates.jenkins.io/dynamic-2.277//latest/workflow-basic-steps.hpi
Downloading plugin: workflow-cps from https://updates.jenkins.io/dynamic-2.277//latest/workflow-cps.hpi
Downloading plugin: workflow-cps-global-lib from https://updates.jenkins.io/dynamic-2.277//latest/workflow-cps-global-lib.hpi
Downloading plugin: workflow-durable-task-step from https://updates.jenkins.io/dynamic-2.277//latest/workflow-durable-task-step.hpi
Downloading plugin: workflow-multibranch from https://updates.jenkins.io/dynamic-2.277//latest/workflow-multibranch.hpi
Downloading plugin: workflow-scm-step from https://updates.jenkins.io/dynamic-2.277//latest/workflow-scm-step.hpi
Downloading plugin: workflow-step-api from https://updates.jenkins.io/dynamic-2.277//latest/workflow-step-api.hpi
Downloading plugin: workflow-support from https://updates.jenkins.io/dynamic-2.277//latest/workflow-support.hpi
Downloading plugin: cloudbees-folder from https://updates.jenkins.io/dynamic-2.277//latest/cloudbees-folder.hpi
Downloading plugin: credentials from https://updates.jenkins.io/dynamic-2.277//latest/credentials.hpi
Downloading plugin: git-client from https://updates.jenkins.io/dynamic-2.277//latest/git-client.hpi
Downloading plugin: pipeline-build-step from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-build-step.hpi
Downloading plugin: pipeline-input-step from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-input-step.hpi
Downloading plugin: jackson2-api from https://updates.jenkins.io/dynamic-2.277//latest/jackson2-api.hpi
Downloading plugin: pipeline-milestone-step from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-milestone-step.hpi
Downloading plugin: pipeline-stage-step from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-stage-step.hpi
 > kubernetes-credentials-provider depends on aws-credentials:1.26;resolution:=optional,credentials:2.2.0,kubernetes-client-api:4.6.0-2,openstack-cloud:2.47;resolution:=optional,plain-credentials:1.4;resolution:=optional,ssh-credentials:1.18.1;resolution:=optional,variant:1.1
Downloading plugin: scm-api from https://updates.jenkins.io/dynamic-2.277//latest/scm-api.hpi
Skipping optional dependency aws-credentials
Downloading plugin: pipeline-model-definition from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-model-definition.hpi
Downloading plugin: structs from https://updates.jenkins.io/dynamic-2.277//latest/structs.hpi
 > git depends on configuration-as-code:1.46;resolution:=optional,workflow-scm-step:2.11,workflow-step-api:2.23,credentials:2.3.13,git-client:3.5.1,mailer:1.32.1,matrix-project:1.18;resolution:=optional,parameterized-trigger:2.36;resolution:=optional,promoted-builds:3.7;resolution:=optional,scm-api:2.6.4,script-security:1.75,ssh-credentials:1.18.1,structs:1.20,token-macro:2.12;resolution:=optional
Skipping optional dependency configuration-as-code
Skipping optional dependency openstack-cloud
Downloading plugin: kubernetes-client-api from https://updates.jenkins.io/dynamic-2.277//latest/kubernetes-client-api.hpi
Skipping optional dependency plain-credentials
Skipping optional dependency ssh-credentials
 > kubernetes depends on workflow-api:2.40,workflow-cps:2.87;resolution:=optional,workflow-step-api:2.23,authentication-tokens:1.4,cloudbees-folder:6.15,credentials:2.3.14,durable-task:1.35,jackson2-api:2.12.0,kubernetes-client-api:4.11.1,metrics:4.0.2.6,plain-credentials:1.7,structs:1.20,variant:1.3,kubernetes-credentials:0.7.0,pipeline-model-extensions:1.7.2;resolution:=optional
Skipping optional dependency workflow-cps
Downloading plugin: variant from https://updates.jenkins.io/dynamic-2.277//latest/variant.hpi
 > workflow-job depends on workflow-api:2.40,workflow-step-api:2.22,workflow-support:3.4
Downloading plugin: authentication-tokens from https://updates.jenkins.io/dynamic-2.277//latest/authentication-tokens.hpi
Skipping optional dependency matrix-project
Skipping optional dependency parameterized-trigger
Downloading plugin: mailer from https://updates.jenkins.io/dynamic-2.277//latest/mailer.hpi
Skipping optional dependency promoted-builds
Downloading plugin: durable-task from https://updates.jenkins.io/dynamic-2.277//latest/durable-task.hpi
Downloading plugin: script-security from https://updates.jenkins.io/dynamic-2.277//latest/script-security.hpi
Downloading plugin: metrics from https://updates.jenkins.io/dynamic-2.277//latest/metrics.hpi
Skipping optional dependency token-macro
Downloading plugin: ssh-credentials from https://updates.jenkins.io/dynamic-2.277//latest/ssh-credentials.hpi
 > configuration-as-code depends on snakeyaml-api:1.26.4
Downloading plugin: plain-credentials from https://updates.jenkins.io/dynamic-2.277//latest/plain-credentials.hpi
Downloading plugin: snakeyaml-api from https://updates.jenkins.io/dynamic-2.277//latest/snakeyaml-api.hpi
Skipping optional dependency pipeline-model-extensions
Downloading plugin: kubernetes-credentials from https://updates.jenkins.io/dynamic-2.277//latest/kubernetes-credentials.hpi
 > job-dsl depends on structs:1.19,script-security:1.54,vsphere-cloud:1.1.11;resolution:=optional,config-file-provider:2.15.4;resolution:=optional,managed-scripts:1.3;resolution:=optional,configuration-as-code:1.15;resolution:=optional
 > workflow-api depends on workflow-step-api:2.23,scm-api:2.6.4
Skipping optional dependency vsphere-cloud
 > workflow-basic-steps depends on workflow-api:2.40,workflow-durable-task-step:2.35,workflow-step-api:2.22,apache-httpcomponents-client-4-api:4.5.10-2.0,mailer:1.32,structs:1.20
Skipping optional dependency config-file-provider
Skipping optional dependency managed-scripts
Skipping optional dependency configuration-as-code
 > lockable-resources depends on workflow-support:3.4,mailer:1.18,matrix-project:1.14,script-security:1.62,structs:1.20
 > workflow-step-api depends on structs:1.20
 > workflow-scm-step depends on workflow-step-api:2.23
 > workflow-cps depends on workflow-api:2.41,workflow-scm-step:2.11,workflow-step-api:2.23,workflow-support:3.7,scm-api:2.6.4,script-security:1.76,structs:1.20,support-core:2.43;resolution:=optional,ace-editor:1.1
 > workflow-multibranch depends on workflow-api:2.41,workflow-cps:2.90,workflow-job:2.40,workflow-scm-step:2.12,workflow-step-api:2.23,workflow-support:3.8,branch-api:2.6.2,cloudbees-folder:6.15,scm-api:2.6.4,script-security:1.76,structs:1.22
 > cloudbees-folder depends on credentials:2.3.11;resolution:=optional
 > pipeline-build-step depends on workflow-api:2.40,workflow-step-api:2.22,workflow-support:3.5,script-security:1.73,structs:1.20
Skipping optional dependency credentials
Downloading plugin: matrix-project from https://updates.jenkins.io/dynamic-2.277//latest/matrix-project.hpi
 > workflow-cps-global-lib depends on workflow-api:2.41,workflow-cps:2.90,workflow-step-api:2.23,workflow-support:3.8,cloudbees-folder:6.15,credentials:2.3.15,git-server:1.9,scm-api:2.6.4,script-security:1.76
Downloading plugin: apache-httpcomponents-client-4-api from https://updates.jenkins.io/dynamic-2.277//latest/apache-httpcomponents-client-4-api.hpi
 > workflow-durable-task-step depends on workflow-api:2.40,workflow-step-api:2.22,workflow-support:3.5,durable-task:1.34,scm-api:2.6.3,script-security:1.73,structs:1.20
 > workflow-support depends on workflow-api:2.40,workflow-step-api:2.23,scm-api:2.6.4,script-security:1.75
 > pipeline-stage-step depends on workflow-api:2.40,workflow-step-api:2.22
 > credentials depends on configuration-as-code:1.50;resolution:=optional,structs:1.22
 > pipeline-stage-view depends on pipeline-rest-api:2.19,workflow-api:2.24,workflow-job:2.12,handlebars:1.1.1,momentjs:1.1
Skipping optional dependency configuration-as-code
 > pipeline-model-definition depends on workflow-api:2.40,workflow-basic-steps:2.20,workflow-cps-global-lib:2.17,workflow-cps:2.83,workflow-durable-task-step:2.35,workflow-multibranch:2.16,workflow-scm-step:2.11,workflow-support:3.5,credentials-binding:1.24,credentials:2.3.11,git-client:3.2.1,mailer:1.32.1,pipeline-input-step:2.12,pipeline-stage-step:2.3,scm-api:2.6.4,structs:1.20,pipeline-model-api:1.8.4,pipeline-model-extensions:1.8.4,pipeline-stage-tags-metadata:1.8.4
 > authentication-tokens depends on credentials:1.22
 > pipeline-input-step depends on workflow-api:2.40,workflow-step-api:2.22,workflow-support:3.5,credentials:2.3.9,structs:1.20
Skipping optional dependency support-core
 > scm-api depends on structs:1.20
Downloading plugin: pipeline-rest-api from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-rest-api.hpi
 > script-security depends on caffeine-api:2.9.1-23.v51c4e2c879c8
Downloading plugin: branch-api from https://updates.jenkins.io/dynamic-2.277//latest/branch-api.hpi
Downloading plugin: git-server from https://updates.jenkins.io/dynamic-2.277//latest/git-server.hpi
Downloading plugin: ace-editor from https://updates.jenkins.io/dynamic-2.277//latest/ace-editor.hpi
Downloading plugin: caffeine-api from https://updates.jenkins.io/dynamic-2.277//latest/caffeine-api.hpi
 > mailer depends on display-url-api:2.3.4
 > jackson2-api depends on snakeyaml-api:1.27.0
 > pipeline-milestone-step depends on workflow-api:2.11,workflow-step-api:2.9
 > git-client depends on configuration-as-code:1.47;resolution:=optional,apache-httpcomponents-client-4-api:4.5.13-1.0,credentials:2.3.15,jsch:0.1.55.2,script-security:1.76,ssh-credentials:1.18.1,structs:1.22,trilead-api:1.0.13
Downloading plugin: handlebars from https://updates.jenkins.io/dynamic-2.277//latest/handlebars.hpi
Downloading plugin: momentjs from https://updates.jenkins.io/dynamic-2.277//latest/momentjs.hpi
Skipping optional dependency configuration-as-code
 > metrics depends on workflow-durable-task-step:2.35;resolution:=optional,jackson2-api:2.10.2,variant:1.3
Downloading plugin: display-url-api from https://updates.jenkins.io/dynamic-2.277//latest/display-url-api.hpi
Skipping optional dependency workflow-durable-task-step
 > kubernetes-credentials depends on apache-httpcomponents-client-4-api:4.5.5-3.0,authentication-tokens:1.3,credentials:2.3.5,docker-commons:1.14;resolution:=optional,google-oauth-plugin:0.8;resolution:=optional,jackson2-api:2.11.0,kubernetes-client-api:4.9.2-2,plain-credentials:1.6;resolution:=optional
Downloading plugin: jsch from https://updates.jenkins.io/dynamic-2.277//latest/jsch.hpi
Downloading plugin: credentials-binding from https://updates.jenkins.io/dynamic-2.277//latest/credentials-binding.hpi
 > ssh-credentials depends on credentials:2.2.0,trilead-api:1.0.5
Skipping optional dependency docker-commons
 > plain-credentials depends on credentials:2.2.0
Skipping optional dependency google-oauth-plugin
Downloading plugin: trilead-api from https://updates.jenkins.io/dynamic-2.277//latest/trilead-api.hpi
Skipping optional dependency plain-credentials
Downloading plugin: pipeline-model-api from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-model-api.hpi
Downloading plugin: pipeline-model-extensions from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-model-extensions.hpi
Downloading plugin: pipeline-stage-tags-metadata from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-stage-tags-metadata.hpi
 > kubernetes-client-api depends on snakeyaml-api:1.27.0,bouncycastle-api:2.18,jackson2-api:2.12.1
Downloading plugin: bouncycastle-api from https://updates.jenkins.io/dynamic-2.277//latest/bouncycastle-api.hpi
 > matrix-project depends on junit:1.29,script-security:1.71
Downloading plugin: junit from https://updates.jenkins.io/dynamic-2.277//latest/junit.hpi
 > pipeline-rest-api depends on workflow-api:2.24,workflow-job:2.12,workflow-step-api:2.14,workflow-support:2.14,jackson2-api:2.9.9.1,pipeline-graph-analysis:1.4,pipeline-input-step:2.8,pipeline-stage-step:2.3
 > git-server depends on git-client:2.7.6
Downloading plugin: pipeline-graph-analysis from https://updates.jenkins.io/dynamic-2.277//latest/pipeline-graph-analysis.hpi
 > branch-api depends on cloudbees-folder:6.15,scm-api:2.6.4
 > credentials-binding depends on workflow-step-api:2.23,credentials:2.3.11,plain-credentials:1.7,ssh-credentials:1.17.4,structs:1.20
 > pipeline-stage-tags-metadata depends on workflow-api:2.40
 > jsch depends on ssh-credentials:1.14,trilead-api:1.0.5
 > pipeline-model-extensions depends on workflow-cps:2.83,workflow-job:2.40,credentials-binding:1.24,credentials:2.3.11,pipeline-stage-step:2.3,pipeline-model-api:1.8.4
 > pipeline-model-api depends on workflow-step-api:2.23,jackson2-api:2.11.1,structs:1.20
 > junit depends on bootstrap4-api:4.6.0-1,checks-api:1.5.0,echarts-api:4.9.0-3,plugin-util-api:1.7.1,workflow-api:2.41,workflow-step-api:2.23,display-url-api:2.3.4,jackson2-api:2.12.1,script-security:1.76
Downloading plugin: bootstrap4-api from https://updates.jenkins.io/dynamic-2.277//latest/bootstrap4-api.hpi
Downloading plugin: checks-api from https://updates.jenkins.io/dynamic-2.277//latest/checks-api.hpi
Downloading plugin: echarts-api from https://updates.jenkins.io/dynamic-2.277//latest/echarts-api.hpi
Downloading plugin: plugin-util-api from https://updates.jenkins.io/dynamic-2.277//latest/plugin-util-api.hpi
 > pipeline-graph-analysis depends on workflow-api:2.34,workflow-cps:2.65,workflow-job:2.32,workflow-step-api:2.19,workflow-support:3.2,pipeline-input-step:2.8,pipeline-stage-step:2.3,scm-api:2.2.7,structs:1.17
 > checks-api depends on plugin-util-api:2.1.0,workflow-step-api:2.23,workflow-support:3.8,display-url-api:2.3.4
 > bootstrap4-api depends on font-awesome-api:5.15.2-2,jquery3-api:3.5.1-3,popper-api:1.16.1-2
Downloading plugin: font-awesome-api from https://updates.jenkins.io/dynamic-2.277//latest/font-awesome-api.hpi
Downloading plugin: jquery3-api from https://updates.jenkins.io/dynamic-2.277//latest/jquery3-api.hpi
Downloading plugin: popper-api from https://updates.jenkins.io/dynamic-2.277//latest/popper-api.hpi
 > echarts-api depends on jquery3-api:3.6.0-1,plugin-util-api:2.1.0,jackson2-api:2.12.2
 > font-awesome-api depends on plugin-util-api:2.2.0

WAR bundled plugins:

Installed plugins:
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-1.0
authentication-tokens:1.4
bootstrap4-api:4.6.0-3
bouncycastle-api:2.20
branch-api:2.6.3
caffeine-api:2.9.1-23.v51c4e2c879c8
checks-api:1.7.0
cloudbees-folder:6.15
configuration-as-code:1.46
credentials-binding:1.24
credentials:2.4.1
display-url-api:2.3.4
durable-task:1.36
echarts-api:5.1.0-2
font-awesome-api:5.15.3-2
git-client:3.7.1
git-server:1.9
git:4.5.0
handlebars:3.0.8
jackson2-api:2.12.3
job-dsl:1.77
jquery3-api:3.6.0-1
jsch:0.1.55.2
junit:1.49
kubernetes-client-api:4.13.3-1
kubernetes-credentials-provider:0.15
kubernetes-credentials:0.8.0
kubernetes:1.28.6
lockable-resources:2.10
mailer:1.34
matrix-project:1.18
metrics:4.0.2.7
momentjs:1.1.1
pipeline-build-step:2.13
pipeline-graph-analysis:1.10
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.8.4
pipeline-model-definition:1.8.4
pipeline-model-extensions:1.8.4
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.8.4
pipeline-stage-view:2.19
plain-credentials:1.7
plugin-util-api:2.2.0
popper-api:1.16.1-2
scm-api:2.6.4
script-security:1.77
snakeyaml-api:1.27.0
ssh-credentials:1.18.1
structs:1.23
trilead-api:1.0.13
variant:1.4
workflow-aggregator:2.6
workflow-api:2.42
workflow-basic-steps:2.23
workflow-cps-global-lib:2.19
workflow-cps:2.92
workflow-durable-task-step:2.39
workflow-job:2.40
workflow-multibranch:2.24
workflow-scm-step:2.12
workflow-step-api:2.23
workflow-support:3.8
Cleaning up locks
+ echo 'Installing plugins required by Operator - end'
+ echo 'Installing plugins required by user - begin'
+ cat
Installing plugins required by Operator - end
Installing plugins required by user - begin
+ [[ -z '' ]]
+ install-plugins.sh
WARN: install-plugins.sh is deprecated, please switch to jenkins-plugin-cli
Creating initial locks...
Analyzing war /usr/share/jenkins/jenkins.war...
Registering preinstalled plugins...
Using version-specific update center: https://updates.jenkins.io/dynamic-2.277/...
Downloading plugins...

WAR bundled plugins:

Installed plugins:
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-1.0
authentication-tokens:1.4
bootstrap4-api:4.6.0-3
bouncycastle-api:2.20
branch-api:2.6.3
caffeine-api:2.9.1-23.v51c4e2c879c8
checks-api:1.7.0
cloudbees-folder:6.15
configuration-as-code:1.46
credentials-binding:1.24
credentials:2.4.1
display-url-api:2.3.4
durable-task:1.36
echarts-api:5.1.0-2
font-awesome-api:5.15.3-2
git-client:3.7.1
git-server:1.9
git:4.5.0
handlebars:3.0.8
jackson2-api:2.12.3
job-dsl:1.77
jquery3-api:3.6.0-1
jsch:0.1.55.2
junit:1.49
kubernetes-client-api:4.13.3-1
kubernetes-credentials-provider:0.15
kubernetes-credentials:0.8.0
kubernetes:1.28.6
lockable-resources:2.10
mailer:1.34
matrix-project:1.18
metrics:4.0.2.7
momentjs:1.1.1
pipeline-build-step:2.13
pipeline-graph-analysis:1.10
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.8.4
pipeline-model-definition:1.8.4
pipeline-model-extensions:1.8.4
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.8.4
pipeline-stage-view:2.19
plain-credentials:1.7
plugin-util-api:2.2.0
popper-api:1.16.1-2
scm-api:2.6.4
script-security:1.77
snakeyaml-api:1.27.0
ssh-credentials:1.18.1
structs:1.23
trilead-api:1.0.13
variant:1.4
workflow-aggregator:2.6
workflow-api:2.42
workflow-basic-steps:2.23
workflow-cps-global-lib:2.19
workflow-cps:2.92
workflow-durable-task-step:2.39
workflow-job:2.40
workflow-multibranch:2.24
workflow-scm-step:2.12
workflow-step-api:2.23
workflow-support:3.8
Cleaning up locks
+ echo 'Installing plugins required by user - end'
Installing plugins required by user - end
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
2021-05-19 19:43:01.125+0000 [id=1] INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @395ms to org.eclipse.jetty.util.log.JavaUtilLog
2021-05-19 19:43:01.274+0000 [id=1] INFO    winstone.Logger#logInternal: Beginning extraction from war file
2021-05-19 19:43:02.605+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
2021-05-19 19:43:02.663+0000 [id=1] INFO    org.eclipse.jetty.server.Server#doStart: jetty-9.4.39.v20210325; built: 2021-03-25T14:42:11.471Z; git: 9fc7ca5a922f2a37b84ec9dbc26a5168cee7e667; jvm 1.8.0_292-b10
2021-05-19 19:43:02.907+0000 [id=1] INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2021-05-19 19:43:02.960+0000 [id=1] INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
2021-05-19 19:43:02.960+0000 [id=1] INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
2021-05-19 19:43:02.961+0000 [id=1] INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 600000ms
2021-05-19 19:43:03.395+0000 [id=1] INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
2021-05-19 19:43:03.540+0000 [id=1] INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@82c57b3{Jenkins v2.277.4,/,file:///var/lib/jenkins/war/,AVAILABLE}{/var/lib/jenkins/war}
2021-05-19 19:43:03.555+0000 [id=1] INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@7eecb5b8{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2021-05-19 19:43:03.556+0000 [id=1] INFO    org.eclipse.jetty.server.Server#doStart: Started @2826ms
2021-05-19 19:43:03.557+0000 [id=21]    INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
2021-05-19 19:43:04.867+0000 [id=28]    INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
2021-05-19 19:43:05.803+0000 [id=27]    WARNING hudson.ClassicPluginStrategy#createClassJarFromWebInfClasses: Created /var/lib/jenkins/plugins/job-dsl/WEB-INF/lib/classes.jar; update plugin to a version created with a newer harness
2021-05-19 19:43:05.825+0000 [id=27]    INFO    hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /var/lib/jenkins/plugins/command-launcher.jpi
2021-05-19 19:43:05.836+0000 [id=27]    INFO    hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /var/lib/jenkins/plugins/jdk-tool.jpi
2021-05-19 19:43:07.981+0000 [id=28]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2021-05-19 19:43:07.996+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Plugin v2.4.1 (credentials)
java.io.IOException: Failed to load: Credentials Plugin (2.4.1)
 - Update required: Configuration as Code Plugin (1.46) to be updated to 1.50 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:07.997+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Plain Credentials Plugin v1.7 (plain-credentials)
java.io.IOException: Failed to load: Plain Credentials Plugin (1.7)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:07.998+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin SSH Credentials Plugin v1.18.1 (ssh-credentials)
java.io.IOException: Failed to load: SSH Credentials Plugin (1.18.1)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:07.999+0000 [id=27]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Binding Plugin v1.24 (credentials-binding)
java.io.IOException: Failed to load: Credentials Binding Plugin (1.24)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.501+0000 [id=28]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Authentication Tokens API Plugin v1.4 (authentication-tokens)
java.io.IOException: Failed to load: Authentication Tokens API Plugin (1.4)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.512+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Input Step v2.12 (pipeline-input-step)
java.io.IOException: Failed to load: Pipeline: Input Step (2.12)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.513+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline Graph Analysis Plugin v1.10 (pipeline-graph-analysis)
java.io.IOException: Failed to load: Pipeline Graph Analysis Plugin (1.10)
 - Failed to load: Pipeline: Input Step (2.12)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.514+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: REST API Plugin v2.19 (pipeline-rest-api)
java.io.IOException: Failed to load: Pipeline: REST API Plugin (2.19)
 - Failed to load: Pipeline Graph Analysis Plugin (1.10)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.515+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Stage View Plugin v2.19 (pipeline-stage-view)
java.io.IOException: Failed to load: Pipeline: Stage View Plugin (2.19)
 - Failed to load: Pipeline: REST API Plugin (2.19)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.515+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins JSch dependency plugin v0.1.55.2 (jsch)
java.io.IOException: Failed to load: Jenkins JSch dependency plugin (0.1.55.2)
 - Failed to load: SSH Credentials Plugin (1.18.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.516+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins Git client plugin v3.7.1 (git-client)
java.io.IOException: Failed to load: Jenkins Git client plugin (3.7.1)
 - Failed to load: Credentials Plugin (2.4.1)
 - Update required: Configuration as Code Plugin (1.46) to be updated to 1.47 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.517+0000 [id=26]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins GIT server Plugin v1.9 (git-server)
java.io.IOException: Failed to load: Jenkins GIT server Plugin (1.9)
 - Failed to load: Jenkins Git client plugin (3.7.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.517+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Shared Groovy Libraries v2.19 (workflow-cps-global-lib)
java.io.IOException: Failed to load: Pipeline: Shared Groovy Libraries (2.19)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.519+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Declarative Extension Points API v1.8.4 (pipeline-model-extensions)
java.io.IOException: Failed to load: Pipeline: Declarative Extension Points API (1.8.4)
 - Failed to load: Credentials Binding Plugin (1.24)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.519+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Declarative v1.8.4 (pipeline-model-definition)
java.io.IOException: Failed to load: Pipeline: Declarative (1.8.4)
 - Failed to load: Pipeline: Shared Groovy Libraries (2.19)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.520+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline v2.6 (workflow-aggregator)
java.io.IOException: Failed to load: Pipeline (2.6)
 - Failed to load: Pipeline: Stage View Plugin (2.19)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.523+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Kubernetes Credentials Plugin v0.8.0 (kubernetes-credentials)
java.io.IOException: Failed to load: Kubernetes Credentials Plugin (0.8.0)
 - Failed to load: Authentication Tokens API Plugin (1.4)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.535+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Kubernetes Credentials Provider v0.15 (kubernetes-credentials-provider)
java.io.IOException: Failed to load: Kubernetes Credentials Provider (0.15)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.535+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Kubernetes plugin v1.28.6 (kubernetes)
java.io.IOException: Failed to load: Kubernetes plugin (1.28.6)
 - Failed to load: Authentication Tokens API Plugin (1.4)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:08.536+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins Git plugin v4.5.0 (git)
java.io.IOException: Failed to load: Jenkins Git plugin (4.5.0)
 - Failed to load: Credentials Plugin (2.4.1)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:950)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:550)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2021-05-19 19:43:11.357+0000 [id=28]    INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2021-05-19 19:43:11.365+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
2021-05-19 19:43:12.750+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
2021-05-19 19:43:12.791+0000 [id=29]    INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
2021-05-19 19:43:13.416+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
2021-05-19 19:43:13.417+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2021-05-19 19:43:13.417+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2021-05-19 19:43:13.425+0000 [id=43]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata
2021-05-19 19:43:13.436+0000 [id=28]    INFO    j.util.groovy.GroovyHookScript#execute: Executing /var/lib/jenkins/init.groovy.d/createOperatorUser.groovy
2021-05-19 19:43:13.448+0000 [id=43]    INFO    hudson.util.Retrier#start: Attempt #1 to do the action check updates server
2021-05-19 19:43:14.305+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
2021-05-19 19:43:14.344+0000 [id=20]    INFO    hudson.WebAppMain$3#run: Jenkins is fully up and running
2021-05-19 19:43:21.547+0000 [id=61]    WARNING j.m.api.Metrics$HealthChecker#execute: Some health checks are reporting as unhealthy: [plugins : There are 20 failed plugins: credentials; plain-credentials; ssh-credentials; credentials-binding; authentication-tokens; pipeline-input-step; pipeline-graph-analysis; pipeline-rest-api; pipeline-stage-view; jsch; git-client; git-server; workflow-cps-global-lib; pipeline-model-extensions; pipeline-model-definition; workflow-aggregator; kubernetes-credentials; kubernetes-credentials-provider; kubernetes; git]
2021-05-19 19:43:21.939+0000 [id=43]    INFO    h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
2021-05-19 19:43:22.646+0000 [id=43]    INFO    h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tools.JDKInstaller
2021-05-19 19:43:22.646+0000 [id=43]    INFO    hudson.util.Retrier#start: Performed the action check updates server successfully at the attempt #1
2021-05-19 19:43:22.648+0000 [id=43]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 9,221 ms
2021-05-19 19:43:27.024+0000 [id=22]    INFO    winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty```
SylwiaBrant commented 3 years ago

Hello. Plugins need to be updated to newer versions. Try overriding defaults in Jenkins CR: master: basePlugins:

grahamja commented 3 years ago

Thanks, that worked. However, I tried the same thing (with different versions). How did you come up with those version numbers specifically and where are those requirements coming from?

res0nat0r commented 3 years ago

@SylwiaBrant I've had this issue before just due to the fact that upstream plugins constantly change and then a pod which has run for months fine and booted months ago with no issue, then gets rescheduled and won't boot, because the upstream plugin versions change. I've pinned specific working versions of plugins I want in plugins and basePlugins. Do you happen know if the jenkins operator code ignores these versions at launch and just auto updates plugins listed at boot time, or will just always auto-install the latest it needs from basePlugins ? If it does that seems like a big bug.

SylwiaBrant commented 3 years ago

I've used the latest versions of plugins. If you are using 'latest' tag of Jenkins image the plugins will lose compatibility if the newer image gets downloaded. We've started using specific versions as tags to avoid such situations. The Operator uses default versions of plugins if none are specified by the user in the CR. If you override the base plugins in the CR the Operator will install they versions you specified.

res0nat0r commented 3 years ago

Ive built a custom Jenkins container using an explicit sha256sum pointing to an exact jenkins/jenkins:lts release, and pinned the explicit plugins and basePlugins I know work. Now a few months later the same config breaks at relaunch.

I suspect this is because I need to list every plugin being installed as pinned versions. The only way I know how to do this (and still need to verify it works), is to launch with the few plugins I need, watch the container boot output and scan for something like:

Installed plugins:
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-1.0
authentication-tokens:1.4
aws-credentials:1.28.1
aws-java-sdk:1.11.995
bootstrap4-api:4.6.0-3
bouncycastle-api:2.20
branch-api:2.6.3
...

IE, it looks like this output above is an exact enumeration of every dependency of dependency of dependency which is pulled in, and possibly something which can be declared in order to ensure 100% of every plugin and it's dependency is fixed so things won't break in the future.

SylwiaBrant commented 3 years ago

You used the jenkins/jenkins:lts image, which points to the latest tag. At the time you declared the plugins the tag which was hidden behind "lts" was working with the plugin set you used. After those few months passed a few images were released and lts started to point at a new image that dropped compatibility with the plugins you declared. It needed newer plugins to function. Don't use jenkins/jenkins:lts, but a specific tag, for example https://github.com/jenkinsci/kubernetes-operator/blob/master/deploy/crds/jenkins_v1alpha2_jenkins_cr.yaml#L9 The newer Jenkins plugins and images will come out but you will still use the image compatible with the versions of your plugins set. And if you want to upgrade, try with specifying newest tag (not lts) and newest plugins.

res0nat0r commented 3 years ago

Essentially I did this:

A few months ago I built a custom docker container from a specific jenkins/jenkins:lts sha:

# This is the jenkins/jenkins:lts image as of 2021-03-25
FROM jenkins/jenkins@sha256:3647dc7dcf43faf20a612465dc1aed6bf510893ff9724df4050604af80123b85

...

Then I pinned the plugins I specificlly needed in my operator.yml, in addition to the working basePlugins listed that worked at the time, and launched my custom container from above with it:

  master:
    containers:
    - name: jenkins-master
      image: 1111111.dkr.ecr.us-east-1.amazonaws.com/jenkins:1.0.2 # this is the custom container from above

...

    plugins:
    - name: aws-credentials
      version: "1.28.1"
    - name: credentials-binding
      version: "1.24"
    - name: github
      version: "1.33.1"
    - name: jdk-tool
      version: "1.5"
    - name: ldap
      version: "2.4"
    - name: matrix-auth
      version: "2.6.6"
    - name: multiple-scms
      version: "0.6"
    - name: pipeline-utility-steps
      version: "2.7.0"
    - name: role-strategy
      version: "3.1.1"
    - name: saml
      version: "2.0.2"
    - name: ssh-credentials
      version: "1.18.1"
    - name: throttle-concurrents
      version: "2.2"
    - name: workflow-multibranch
      version: "2.22"
    - name: jenkins-multijob-plugin
      version: "1.36"

    basePlugins:
    - name: kubernetes
      version: "1.28.6"
    - name: workflow-job
      version: "2.40"
    - name: workflow-aggregator
      version: "2.6"
    - name: git
      version: "4.5.0"
    - name: job-dsl
      version: "1.77"
    - name: configuration-as-code
      version: "1.47"
    - name: kubernetes-credentials-provider
      version: "0.15"

This booted fine months ago, but now at relaunch it fails due to plugin errors. I'm still booting off the same container, so the image hasn't changed. I suspect because I've not listed every plugin dependency, now I have issues because dependencies of the plugins I have listed above which pull in other dependencies aren't explicitly pinned and their versions have changed, so now I have issues.

I suspect what I need to do going forward is to get a working minimal plugin list like above, boot the container, then look for the boot output like so:

WAR bundled plugins:

Installed plugins:
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-1.0
authentication-tokens:1.4
bootstrap4-api:4.6.0-3
bouncycastle-api:2.20
branch-api:2.6.3
caffeine-api:2.9.1-23.v51c4e2c879c8
checks-api:1.7.0
cloudbees-folder:6.15
configuration-as-code:1.47
credentials-binding:1.24
credentials:2.4.1
display-url-api:2.3.4
durable-task:1.36
echarts-api:5.1.0-2
font-awesome-api:5.15.3-2
git-client:3.7.1
git:4.5.0
git-server:1.9
handlebars:3.0.8
jackson2-api:2.12.3
job-dsl:1.77
jquery3-api:3.6.0-1
jsch:0.1.55.2
junit:1.49
kubernetes-client-api:4.13.3-1
kubernetes-credentials:0.8.0
kubernetes-credentials-provider:0.15
kubernetes:1.28.6
lockable-resources:2.10
mailer:1.34
matrix-project:1.18
metrics:4.0.2.7
momentjs:1.1.1
pipeline-build-step:2.13
pipeline-graph-analysis:1.10
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.8.4
pipeline-model-definition:1.8.4
pipeline-model-extensions:1.8.4
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.8.4
pipeline-stage-view:2.19
plain-credentials:1.7
plugin-util-api:2.2.0
popper-api:1.16.1-2
scm-api:2.6.4
script-security:1.77
snakeyaml-api:1.27.0
ssh-credentials:1.18.1
structs:1.23
trilead-api:1.0.13
variant:1.4
workflow-aggregator:2.6
workflow-api:2.42
workflow-basic-steps:2.23
workflow-cps-global-lib:2.19
workflow-cps:2.92
workflow-durable-task-step:2.39
workflow-job:2.40
workflow-multibranch:2.24
workflow-scm-step:2.12
workflow-step-api:2.23
workflow-support:3.8

This output contains a much larger list of plugins which apparently are installed, and appears to be the complete dependency tree. I suspect if I then go back and update my operator.yml plugins list with the large list from this output, I can hopefully explicitly pin every dependency being pulled in, and thus won't have to worry about plugin versions shifting over time and breaking.

SylwiaBrant commented 3 years ago

Okay. I understand. It could have been a downtime of the update center or some plugin or its dependency could contain an error. Maybe it was depreciated and stopped working or the dependencies changed. I can't say anything about the reason since it's not a bug in Jenkins Operator, but rather have to do something with the Jenkins itself. Using specific tag with all the plugins specified together with their dependencies should help. I don't see anything that should change then.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still affecting you, just comment with any updates and we'll keep it open. Thank you for your contributions.

Sig00rd commented 3 years ago

Closing as the problem currently has no better workaround.