jenkinsci / kubernetes-operator

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

operator keeps killing jenkins pod after it's fully up and running #792

Closed RichardChester closed 1 year ago

RichardChester commented 1 year ago

Describe the bug Kubernetes keeps restarting the pod after the logs say it has started successfully

To Reproduce Follow all the steps to getting started with the operator on kubernetes as described in the documentation found on the web site

Additional information

The documentation on the website doesn't actually work as is so I had to update various plugins and the jenkins version

Kubernetes version: 1.25 (minikube) Jenkins Operator version: 0.7

Add error logs about the problem here (operator logs and Kubernetes events).


apiVersion: jenkins.io/v1alpha2
kind: Jenkins
metadata:
  name: example
  namespace: default
spec:
  configurationAsCode:
    configurations: []
    secret:
      name: ""
  groovyScripts:
    configurations: []
    secret:
      name: ""
  jenkinsAPISettings:
    authorizationStrategy: createUser
  master:
    basePlugins:
    - name: kubernetes
      version: "1.30.11"
    - name: workflow-job
      version: "1145.v7f2433caa07f"
    - name: workflow-aggregator
      version: "2.6"
    - name: git
      version: "4.10.0"
    - name: job-dsl
      version: "1.78.1"
    - name: configuration-as-code
      version: "1414.v878271fc496f"
    - name: kubernetes-credentials-provider
      version: "0.20"
    disableCSRFProtection: false
    containers:
      - name: jenkins-master
        image: jenkins/jenkins:2.332.1-lts-alpine
        imagePullPolicy: Always
        livenessProbe:
          failureThreshold: 12
          httpGet:
            path: /login
            port: http
            scheme: HTTP
          initialDelaySeconds: 1000
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        readinessProbe:
          failureThreshold: 10
          httpGet:
            path: /login
            port: http
            scheme: HTTP
          initialDelaySeconds: 800
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            cpu: 3000m
            memory: 3Gi
          requests:
            cpu: "1"
            memory: 3000Mi
  seedJobs:
    - id: jenkins-operator
      targets: "cicd/jobs/*.jenkins"
      description: "Jenkins Operator repository"
      repositoryBranch: master
      repositoryUrl: https://github.com/jenkinsci/kubernetes-operator.git

$ kubectl logs -f jenkins-example 
+ '[' '' == true ']'
+ 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.332/...       
Downloading plugins...
Downloading plugin: kubernetes from https://updates.jenkins.io/download/plugins/kubernetes/1.30.11/kubernetes.hpi
Downloading plugin: workflow-job from https://updates.jenkins.io/download/plugins/workflow-job/1145.v7f2433caa07f/workflow-job.hpi
Downloading plugin: git from https://updates.jenkins.io/download/plugins/git/4.10.0/git.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.78.1/job-dsl.hpi
Downloading plugin: configuration-as-code from https://updates.jenkins.io/download/plugins/configuration-as-code/1414.v878271fc496f/configuration-as-code.hpi
Downloading plugin: kubernetes-credentials-provider from https://updates.jenkins.io/download/plugins/kubernetes-credentials-provider/0.20/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.332//latest/lockable-resources.hpi
Downloading plugin: pipeline-stage-view from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-stage-view.hpi
Downloading plugin: workflow-api from https://updates.jenkins.io/dynamic-2.332//latest/workflow-api.hpi
Downloading plugin: workflow-basic-steps from https://updates.jenkins.io/dynamic-2.332//latest/workflow-basic-steps.hpi
Downloading plugin: workflow-cps-global-lib from https://updates.jenkins.io/dynamic-2.332//latest/workflow-cps-global-lib.hpi
Downloading plugin: workflow-cps from https://updates.jenkins.io/dynamic-2.332//latest/workflow-cps.hpi
Downloading plugin: workflow-durable-task-step from https://updates.jenkins.io/dynamic-2.332//latest/workflow-durable-task-step.hpi
 > kubernetes-credentials-provider depends on aws-credentials:1.26;resolution:=optional,credentials:2.2.0,github-branch-source:2.7.1;resolution:=optional,kubernetes-client-api:5.4.1,openstack-cloud:2.47;resolution:=optional,plain-credentials:1.4;resolution:=optional,ssh-credentials:1.18.1;resolution:=optional,variant:1.1
Skipping optional dependency aws-credentials
Downloading plugin: workflow-multibranch from https://updates.jenkins.io/dynamic-2.332//latest/workflow-multibranch.hpi
Skipping optional dependency github-branch-source
Downloading plugin: credentials from https://updates.jenkins.io/dynamic-2.332//latest/credentials.hpi
Downloading plugin: workflow-scm-step from https://updates.jenkins.io/dynamic-2.332//latest/workflow-scm-step.hpi
Downloading plugin: kubernetes-client-api from https://updates.jenkins.io/dynamic-2.332//latest/kubernetes-client-api.hpi
Skipping optional dependency openstack-cloud
Downloading plugin: workflow-step-api from https://updates.jenkins.io/dynamic-2.332//latest/workflow-step-api.hpi
Downloading plugin: workflow-support from https://updates.jenkins.io/dynamic-2.332//latest/workflow-support.hpi
Skipping optional dependency plain-credentials
 > workflow-job depends on workflow-api:2.46,workflow-step-api:2.23,workflow-support:3.8
Skipping optional dependency ssh-credentials
Downloading plugin: cloudbees-folder from https://updates.jenkins.io/dynamic-2.332//latest/cloudbees-folder.hpi
Downloading plugin: variant from https://updates.jenkins.io/dynamic-2.332//latest/variant.hpi
Downloading plugin: git-client from https://updates.jenkins.io/dynamic-2.332//latest/git-client.hpi
Downloading plugin: jackson2-api from https://updates.jenkins.io/dynamic-2.332//latest/jackson2-api.hpi
Downloading plugin: pipeline-build-step from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-build-step.hpi
Downloading plugin: pipeline-input-step from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-input-step.hpi
Downloading plugin: pipeline-milestone-step from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-milestone-step.hpi
Downloading plugin: pipeline-stage-step from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-stage-step.hpi
Downloading plugin: scm-api from https://updates.jenkins.io/dynamic-2.332//latest/scm-api.hpi
Downloading plugin: structs from https://updates.jenkins.io/dynamic-2.332//latest/structs.hpi
Downloading plugin: pipeline-model-definition from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-model-definition.hpi
 > git depends on configuration-as-code:1.54;resolution:=optional,workflow-scm-step:2.13,workflow-step-api:2.24,credentials-binding:1.27,credentials:2.6.1,git-client:3.10.0,mailer:1.34,matrix-project:1.19;resolution:=optional,parameterized-trigger:2.39;resolution:=optional,promoted-builds:3.9.1;resolution:=optional,scm-api:2.6.5,script-security:1.78,ssh-credentials:1.19,structs:1.23,token-macro:2.15;resolution:=optional
Skipping optional dependency configuration-as-code
Downloading plugin: credentials-binding from https://updates.jenkins.io/dynamic-2.332//latest/credentials-binding.hpi
Skipping optional dependency matrix-project
Downloading plugin: mailer from https://updates.jenkins.io/dynamic-2.332//latest/mailer.hpi
Skipping optional dependency parameterized-trigger
Skipping optional dependency promoted-builds
Downloading plugin: script-security from https://updates.jenkins.io/dynamic-2.332//latest/script-security.hpi
Downloading plugin: ssh-credentials from https://updates.jenkins.io/dynamic-2.332//latest/ssh-credentials.hpi
Skipping optional dependency token-macro
 > kubernetes depends on caffeine-api:2.9.2-29.v717aac953ff3,workflow-api:2.47,workflow-cps:2.94;resolution:=optional,workflow-step-api:2.24,authentication-tokens:1.4,cloudbees-folder:6.16,credentials-binding:1.27,credentials:2.6.1,durable-task:1.37,jackson2-api:2.13.0-230.v59243c64b0a5,kubernetes-client-api:5.4.1,metrics:4.0.2.8,plain-credentials:1.7,structs:1.23,variant:1.4,kubernetes-credentials:0.9.0,pipeline-model-extensions:1.9.2;resolution:=optional
Downloading plugin: caffeine-api from https://updates.jenkins.io/dynamic-2.332//latest/caffeine-api.hpi
Skipping optional dependency workflow-cps
Downloading plugin: authentication-tokens from https://updates.jenkins.io/dynamic-2.332//latest/authentication-tokens.hpi
Downloading plugin: durable-task from https://updates.jenkins.io/dynamic-2.332//latest/durable-task.hpi
Downloading plugin: metrics from https://updates.jenkins.io/dynamic-2.332//latest/metrics.hpi
Downloading plugin: plain-credentials from https://updates.jenkins.io/dynamic-2.332//latest/plain-credentials.hpi
Skipping optional dependency pipeline-model-extensions
Downloading plugin: kubernetes-credentials from https://updates.jenkins.io/dynamic-2.332//latest/kubernetes-credentials.hpi
 > workflow-cps-global-lib depends on pipeline-groovy-lib:593.va_a_fc25d520e9,workflow-cps:2660.vb_c0412dc4e6d,git-server:1.11
Downloading plugin: pipeline-groovy-lib from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-groovy-lib.hpi
Downloading plugin: git-server from https://updates.jenkins.io/dynamic-2.332//latest/git-server.hpi
 > workflow-scm-step depends on workflow-step-api:622.vb_8e7c15b_c95a_
 > lockable-resources depends on caffeine-api:2.9.3-65.v6a_47d0f4d1fe,workflow-support:813.vb_d7c3d2984a_0,mailer:414.vcc4c33714601,matrix-project:772.v494f19991984,script-security:1138.v8e727069a_025,structs:318.va_f3ccb_729b_71
Downloading plugin: matrix-project from https://updates.jenkins.io/dynamic-2.332//latest/matrix-project.hpi
 > workflow-multibranch depends on workflow-api:1143.v2d42f1e9dea_5,workflow-cps:2660.vb_c0412dc4e6d,workflow-job:1145.v7f2433caa07f,workflow-scm-step:2.13,workflow-step-api:622.vb_8e7c15b_c95a_,workflow-support:813.vb_d7c3d2984a_0,branch-api:2.1044.v2c007e51b_87f,cloudbees-folder:6.714.v79e858ef76a_2,scm-api:602.v6a_81757a_31d2,script-security:1138.v8e727069a_025
Downloading plugin: branch-api from https://updates.jenkins.io/dynamic-2.332//latest/branch-api.hpi
 > workflow-step-api depends on structs:308.v852b473a2b8c
 > configuration-as-code depends on caffeine-api:2.9.2-29.v717aac953ff3,snakeyaml-api:1.29.1
 > workflow-durable-task-step depends on workflow-api:1144.v61c3180fa_03f,workflow-step-api:625.vd896b_f445a_f8,workflow-support:813.vb_d7c3d2984a_0,durable-task:496.va67c6f9eefa7,scm-api:602.v6a_81757a_31d2,script-security:1138.v8e727069a_025,structs:318.va_f3ccb_729b_71
Downloading plugin: snakeyaml-api from https://updates.jenkins.io/dynamic-2.332//latest/snakeyaml-api.hpi
 > workflow-basic-steps depends on javax-mail-api:1.6.2-5,workflow-api:1122.v7a_916f363c86,workflow-durable-task-step:1121.va_65b_d2701486,workflow-step-api:622.vb_8e7c15b_c95a_,apache-httpcomponents-client-4-api:4.5.13-1.0,mailer:408.vd726a_1130320,structs:308.v852b473a2b8c
Downloading plugin: javax-mail-api from https://updates.jenkins.io/dynamic-2.332//latest/javax-mail-api.hpi
 > workflow-api depends on workflow-step-api:622.vb_8e7c15b_c95a_,scm-api:602.v6a_81757a_31d2
 > pipeline-input-step depends on workflow-api:1143.v2d42f1e9dea_5,workflow-step-api:622.vb_8e7c15b_c95a_,workflow-support:813.vb_d7c3d2984a_0,credentials:2.6.1,structs:308.v852b473a2b8c
 > pipeline-stage-step depends on workflow-api:1143.v2d42f1e9dea_5,workflow-step-api:622.vb_8e7c15b_c95a_
Downloading plugin: apache-httpcomponents-client-4-api from https://updates.jenkins.io/dynamic-2.332//latest/apache-httpcomponents-client-4-api.hpi
 > pipeline-build-step depends on workflow-api:1143.v2d42f1e9dea_5,workflow-step-api:622.vb_8e7c15b_c95a_,workflow-support:813.vb_d7c3d2984a_0,script-security:1138.v8e727069a_025,structs:308.v852b473a2b8c
 > pipeline-milestone-step depends on workflow-api:1143.v2d42f1e9dea_5,workflow-step-api:622.vb_8e7c15b_c95a_
 > cloudbees-folder depends on credentials:1074.v60e6c29b_b_44b_;resolution:=optional
Skipping optional dependency credentials
 > scm-api depends on structs:318.va_f3ccb_729b_71
 > workflow-support depends on caffeine-api:2.9.2-29.v717aac953ff3,workflow-api:1138.v619fd5201b_2f,workflow-step-api:622.vb_8e7c15b_c95a_,scm-api:595.vd5a_df5eb_0e39,script-security:1140.vf967fb_efa_55a_
 > authentication-tokens depends on credentials:1.22
 > credentials-binding depends on workflow-step-api:622.vb_8e7c15b_c95a_,credentials:1087.v16065d268466,plain-credentials:1.8,ssh-credentials:1.19,structs:308.v852b473a2b8c      
 > ssh-credentials depends on credentials:1087.1089.v2f1b_9a_b_040e4,trilead-api:1.67.vc3938a_35172f
Downloading plugin: trilead-api from https://updates.jenkins.io/dynamic-2.332//latest/trilead-api.hpi
 > mailer depends on javax-mail-api:1.6.2-2,display-url-api:2.3.5
Downloading plugin: display-url-api from https://updates.jenkins.io/dynamic-2.332//latest/display-url-api.hpi
 > script-security depends on caffeine-api:2.9.2-29.v717aac953ff3
 > workflow-cps depends on workflow-api:2.47,workflow-scm-step:2.13,workflow-step-api:2.24,workflow-support:3.8,scm-api:2.6.5,script-security:1.78,structs:1.23,support-core:2.43;resolution:=optional,ace-editor:1.1
Skipping optional dependency support-core
Downloading plugin: ace-editor from https://updates.jenkins.io/dynamic-2.332//latest/ace-editor.hpi
 > pipeline-stage-view depends on pipeline-rest-api:2.28,workflow-api:1153.vb_912c0e47fb_a_,workflow-job:1145.v7f2433caa07f,momentjs:1.1.1
Downloading plugin: pipeline-rest-api from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-rest-api.hpi
Downloading plugin: momentjs from https://updates.jenkins.io/dynamic-2.332//latest/momentjs.hpi
 > git-server depends on sshd:3.1.0,git-client:3.10.0
Downloading plugin: sshd from https://updates.jenkins.io/dynamic-2.332//latest/sshd.hpi
 > pipeline-model-definition depends on workflow-api:1122.v7a_916f363c86,workflow-basic-steps:2.24,workflow-cps-global-lib:552.vd9cc05b8a2e1,workflow-cps:2648.va9433432b33c,workflow-durable-task-step:1121.va_65b_d2701486,workflow-multibranch:706.vd43c65dec013,workflow-scm-step:2.13,workflow-support:813.vb_d7c3d2984a_0,credentials-binding:1.27.1,credentials:1074.v60e6c29b_b_44b_,git-client:3.11.0,mailer:408.vd726a_1130320,pipeline-input-step:446.vf27b_0b_83500e,pipeline-stage-step:291.vf0a8a7aeeb50,scm-api:595.vd5a_df5eb_0e39,structs:308.v852b473a2b8c,pipeline-model-api:2.2064.v5eef7d0982b_e,pipeline-model-extensions:2.2064.v5eef7d0982b_e,pipeline-stage-tags-metadata:2.2064.v5eef7d0982b_e
Downloading plugin: pipeline-model-api from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-model-api.hpi
Downloading plugin: pipeline-model-extensions from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-model-extensions.hpi
Downloading plugin: pipeline-stage-tags-metadata from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-stage-tags-metadata.hpi
 > credentials depends on configuration-as-code:1414.v878271fc496f;resolution:=optional,structs:308.v852b473a2b8c
Skipping optional dependency configuration-as-code
 > plain-credentials depends on credentials:1087.1089.v2f1b_9a_b_040e4
 > 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.15;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
 > matrix-project depends on junit:1.53,script-security:1138.v8e727069a_025
Downloading plugin: junit from https://updates.jenkins.io/dynamic-2.332//latest/junit.hpiSkipping optional dependency docker-commons
Skipping optional dependency google-oauth-plugin
Skipping optional dependency plain-credentials
 > metrics depends on jackson2-api:2.13.3-285.vc03c0256d517,variant:1.4
 > branch-api depends on cloudbees-folder:6.714.v79e858ef76a_2,scm-api:602.v6a_81757a_31d2
 > sshd depends on mina-sshd-api-core:2.8.0-18.vd98674ecd652
Downloading plugin: mina-sshd-api-core from https://updates.jenkins.io/dynamic-2.332//latest/mina-sshd-api-core.hpi
 > javax-mail-api depends on javax-activation-api:1.2.0-2
 > pipeline-stage-tags-metadata depends on workflow-api:1122.v7a_916f363c86
Downloading plugin: javax-activation-api from https://updates.jenkins.io/dynamic-2.332//latest/javax-activation-api.hpi
 > pipeline-model-extensions depends on workflow-cps:2648.va9433432b33c,workflow-job:1145.v7f2433caa07f,credentials-binding:1.27.1,credentials:1074.v60e6c29b_b_44b_,pipeline-stage-step:291.vf0a8a7aeeb50,pipeline-model-api:2.2064.v5eef7d0982b_e
 > pipeline-rest-api depends on workflow-api:1153.vb_912c0e47fb_a_,workflow-job:1145.v7f2433caa07f,workflow-step-api:625.vd896b_f445a_f8,workflow-support:813.vb_d7c3d2984a_0,jackson2-api:2.13.3-285.vc03c0256d517,pipeline-graph-analysis:1.11,pipeline-input-step:449.v77f0e8b_845c4,pipeline-stage-step:293.v200037eefcd5
Downloading plugin: pipeline-graph-analysis from https://updates.jenkins.io/dynamic-2.332//latest/pipeline-graph-analysis.hpi
 > pipeline-groovy-lib depends on workflow-api:1153.vb_912c0e47fb_a_,workflow-cps:2660.vb_c0412dc4e6d,workflow-multibranch:716.vc692a_e52371b_;resolution:=optional,workflow-scm-step:400.v6b_89a_1317c9a_,workflow-step-api:625.vd896b_f445a_f8,branch-api:2.1046.v0ca_37783ecc5;resolution:=optional,cloudbees-folder:6.722.v8165b_a_cf25e9,scm-api:608.vfa_f971c5a_a_e9,script-security:1138.v8e727069a_025,structs:318.va_f3ccb_729b_71,variant:1.4      
Skipping optional dependency workflow-multibranch
Skipping optional dependency branch-api
 > junit depends on bootstrap4-api:4.6.0-3,checks-api:1.7.2,echarts-api:5.0.2-1,plugin-util-api:2.15.0,workflow-api:1143.v2d42f1e9dea_5,workflow-step-api:622.vb_8e7c15b_c95a_,display-url-api:2.3.5,jackson2-api:2.13.2.20220328-273.v11d70a_b_a_1a_52,script-security:1138.v8e727069a_025
Downloading plugin: bootstrap4-api from https://updates.jenkins.io/dynamic-2.332//latest/bootstrap4-api.hpi
Downloading plugin: checks-api from https://updates.jenkins.io/dynamic-2.332//latest/checks-api.hpi
Downloading plugin: echarts-api from https://updates.jenkins.io/dynamic-2.332//latest/echarts-api.hpi
Downloading plugin: plugin-util-api from https://updates.jenkins.io/dynamic-2.332//latest/plugin-util-api.hpi
 > git-client depends on configuration-as-code:1.54;resolution:=optional,apache-httpcomponents-client-4-api:4.5.13-1.0,credentials:2.6.1,jsch:0.1.55.2,script-security:1.78,ssh-credentials:1.19,structs:1.23,trilead-api:1.0.13
Skipping optional dependency configuration-as-code
Downloading plugin: jsch from https://updates.jenkins.io/dynamic-2.332//latest/jsch.hpi
 > pipeline-graph-analysis depends on workflow-api:1143.v2d42f1e9dea_5,workflow-cps:2660.vb_c0412dc4e6d,workflow-job:1145.v7f2433caa07f,workflow-step-api:622.vb_8e7c15b_c95a_,workflow-support:813.vb_d7c3d2984a_0,pipeline-input-step:447.v95e5a_6e3502a_,pipeline-stage-step:291.vf0a8a7aeeb50
 > jackson2-api depends on javax-activation-api:1.2.0-3,jaxb:2.3.6-1,snakeyaml-api:1.29.1Downloading plugin: jaxb from https://updates.jenkins.io/dynamic-2.332//latest/jaxb.hpi
 > checks-api depends on plugin-util-api:2.17.0,workflow-step-api:639.v6eca_cd8c04a_a_,workflow-support:813.vb_d7c3d2984a_0,display-url-api:2.3.5
 > bootstrap4-api depends on font-awesome-api:6.0.0-1,jquery3-api:3.6.0-2,popper-api:1.16.1-2
Downloading plugin: font-awesome-api from https://updates.jenkins.io/dynamic-2.332//latest/font-awesome-api.hpi
Downloading plugin: jquery3-api from https://updates.jenkins.io/dynamic-2.332//latest/jquery3-api.hpi
Downloading plugin: popper-api from https://updates.jenkins.io/dynamic-2.332//latest/popper-api.hpi
 > mina-sshd-api-core depends on mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a,ssh-credentials:277.280.v1e86b_7d0056b_;resolution:=optional
Skipping optional dependency ssh-credentials
Downloading plugin: mina-sshd-api-common from https://updates.jenkins.io/dynamic-2.332//latest/mina-sshd-api-common.hpi
 > jsch depends on ssh-credentials:277.v95c2fec1c047,trilead-api:1.67.vc3938a_35172f
 > pipeline-model-api depends on workflow-step-api:622.vb_8e7c15b_c95a_,jackson2-api:2.13.1-246.va8a9f3eaf46a,structs:308.v852b473a2b8c
 > jaxb depends on javax-activation-api:1.2.0-3
 > font-awesome-api depends on plugin-util-api:2.16.0
 > job-dsl depends on config-file-provider:2.15.4;resolution:=optional,configuration-as-code:1.15;resolution:=optional,managed-scripts:1.3;resolution:=optional,cloudbees-folder:5.14,structs:1.19,script-security:1.54,vsphere-cloud:1.1.11;resolution:=optional
Skipping optional dependency config-file-provider
Skipping optional dependency configuration-as-code
Skipping optional dependency managed-scripts
Skipping optional dependency vsphere-cloud
 > echarts-api depends on bootstrap5-api:5.1.3-6,font-awesome-api:6.0.0-1,jquery3-api:3.6.0-3,plugin-util-api:2.16.0,jackson2-api:2.13.3-285.vc03c0256d517
Downloading plugin: bootstrap5-api from https://updates.jenkins.io/dynamic-2.332//latest/bootstrap5-api.hpi
 > bootstrap5-api depends on font-awesome-api:6.1.1-1,popper2-api:2.11.5-2
Downloading plugin: popper2-api from https://updates.jenkins.io/dynamic-2.332//latest/popper2-api.hpi
 > kubernetes-client-api depends on snakeyaml-api:1.29.1,bouncycastle-api:2.25,jackson2-api:2.12.4
Downloading plugin: bouncycastle-api from https://updates.jenkins.io/dynamic-2.332//latest/bouncycastle-api.hpi

WAR bundled plugins:

Installed plugins:
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61
authentication-tokens:1.4
bootstrap4-api:4.6.0-5
bootstrap5-api:5.2.0-1
bouncycastle-api:2.27
branch-api:2.1046.v0ca_37783ecc5
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
checks-api:1.7.5
cloudbees-folder:6.740.ve4f4ffa_dea_54
configuration-as-code:1414.v878271fc496f
credentials-binding:523.vd859a_4b_122e6
credentials:1087.1089.v2f1b_9a_b_040e4
display-url-api:2.3.5
durable-task:503.v57154d18d478
echarts-api:5.3.3-1
font-awesome-api:6.1.2-1
git-client:3.11.2
git-server:1.11
git:4.10.0
jackson2-api:2.14.1-313.v504cdd45c18b
javax-activation-api:1.2.0-3
javax-mail-api:1.6.2-6
jaxb:2.3.6-1
job-dsl:1.78.1
jquery3-api:3.6.1-1
jsch:0.1.55.61.va_e9ee26616e7
junit:1.59
kubernetes-client-api:5.12.2-193.v26a_6078f65a_9
kubernetes-credentials-provider:0.20
kubernetes-credentials:0.9.0
kubernetes:1.30.11
lockable-resources:2.18
mailer:414.vcc4c33714601
matrix-project:772.v494f19991984
metrics:4.1.6.1-358.vf46b_95ea_d2b_3
mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a
mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a
momentjs:1.1.1
pipeline-build-step:2.18
pipeline-graph-analysis:195.v5812d95a_a_2f9
pipeline-groovy-lib:612.v84da_9c54906d
pipeline-input-step:466.v6d0a_5df34f81
pipeline-milestone-step:101.vd572fef9d926
pipeline-model-api:2.2064.v5eef7d0982b_e
pipeline-model-definition:2.2064.v5eef7d0982b_e
pipeline-model-extensions:2.2064.v5eef7d0982b_e
pipeline-rest-api:2.28
pipeline-stage-step:293.v200037eefcd5
pipeline-stage-tags-metadata:2.2064.v5eef7d0982b_e
pipeline-stage-view:2.28
plain-credentials:143.v1b_df8b_d3b_e48
plugin-util-api:2.17.0
popper-api:1.16.1-3
popper2-api:2.11.6-1
scm-api:621.vda_a_b_055e58f7
script-security:1145.1148.vf6d17a_a_a_eef6
snakeyaml-api:1.31-84.ve43da_fb_49d0b
ssh-credentials:277.280.v1e86b_7d0056b_
sshd:3.242.va_db_9da_b_26a_c3
structs:324.va_f5d6774f3a_d
trilead-api:1.67.vc3938a_35172f
variant:59.vf075fe829ccb
workflow-aggregator:2.6
workflow-api:1153.vb_912c0e47fb_a_
workflow-basic-steps:941.vdfe1b_a_132c64
workflow-cps-global-lib:609.vd95673f149b_b
workflow-cps:2660.2664.v4c114e93f4c1
workflow-durable-task-step:1139.v252a_e12e8463
workflow-job:1145.v7f2433caa07f
workflow-multibranch:716.vc692a_e52371b_
workflow-scm-step:400.v6b_89a_1317c9a_
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:818.v4eb_969241b_c7
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.332/...
Downloading plugins...

WAR bundled plugins:

Installed plugins:
ace-editor:1.1
apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61
authentication-tokens:1.4
bootstrap4-api:4.6.0-5
bootstrap5-api:5.2.0-1
bouncycastle-api:2.27
branch-api:2.1046.v0ca_37783ecc5
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
checks-api:1.7.5
cloudbees-folder:6.740.ve4f4ffa_dea_54
configuration-as-code:1414.v878271fc496f
credentials-binding:523.vd859a_4b_122e6
credentials:1087.1089.v2f1b_9a_b_040e4
display-url-api:2.3.5
durable-task:503.v57154d18d478
echarts-api:5.3.3-1
font-awesome-api:6.1.2-1
git-client:3.11.2
git-server:1.11
git:4.10.0
jackson2-api:2.14.1-313.v504cdd45c18b
javax-activation-api:1.2.0-3
javax-mail-api:1.6.2-6
jaxb:2.3.6-1
job-dsl:1.78.1
jquery3-api:3.6.1-1
jsch:0.1.55.61.va_e9ee26616e7
junit:1.59
kubernetes-client-api:5.12.2-193.v26a_6078f65a_9
kubernetes-credentials-provider:0.20
kubernetes-credentials:0.9.0
kubernetes:1.30.11
lockable-resources:2.18
mailer:414.vcc4c33714601
matrix-project:772.v494f19991984
metrics:4.1.6.1-358.vf46b_95ea_d2b_3
mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a
mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a
momentjs:1.1.1
pipeline-build-step:2.18
pipeline-graph-analysis:195.v5812d95a_a_2f9
pipeline-groovy-lib:612.v84da_9c54906d
pipeline-input-step:466.v6d0a_5df34f81
pipeline-milestone-step:101.vd572fef9d926
pipeline-model-api:2.2064.v5eef7d0982b_e
pipeline-model-definition:2.2064.v5eef7d0982b_e
pipeline-model-extensions:2.2064.v5eef7d0982b_e
pipeline-rest-api:2.28
pipeline-stage-step:293.v200037eefcd5
pipeline-stage-tags-metadata:2.2064.v5eef7d0982b_e
pipeline-stage-view:2.28
plain-credentials:143.v1b_df8b_d3b_e48
plugin-util-api:2.17.0
popper-api:1.16.1-3
popper2-api:2.11.6-1
scm-api:621.vda_a_b_055e58f7
script-security:1145.1148.vf6d17a_a_a_eef6
snakeyaml-api:1.31-84.ve43da_fb_49d0b
ssh-credentials:277.280.v1e86b_7d0056b_
sshd:3.242.va_db_9da_b_26a_c3
structs:324.va_f5d6774f3a_d
trilead-api:1.67.vc3938a_35172f
variant:59.vf075fe829ccb
workflow-aggregator:2.6
workflow-api:1153.vb_912c0e47fb_a_
workflow-basic-steps:941.vdfe1b_a_132c64
workflow-cps-global-lib:609.vd95673f149b_b
workflow-cps:2660.2664.v4c114e93f4c1
workflow-durable-task-step:1139.v252a_e12e8463
workflow-job:1145.v7f2433caa07f
workflow-multibranch:716.vc692a_e52371b_
workflow-scm-step:400.v6b_89a_1317c9a_
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:818.v4eb_969241b_c7
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")
2023-01-19 11:48:28.234+0000 [id=1]     INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @356ms to org.eclipse.jetty.util.log.JavaUtilLog
2023-01-19 11:48:28.297+0000 [id=1]     INFO    winstone.Logger#logInternal: Beginning extraction from war file
2023-01-19 11:48:29.136+0000 [id=1]     WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
2023-01-19 11:48:29.185+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: 
jetty-9.4.43.v20210629; built: 2021-06-30T11:07:22.254Z; git: 526006ecfa3af7f1a27ef3a288e2bef7ea9dd7e8; jvm 11.0.14.1+1
2023-01-19 11:48:29.366+0000 [id=1]     INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet        
2023-01-19 11:48:29.403+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
2023-01-19 11:48:29.403+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
2023-01-19 11:48:29.405+0000 [id=1]     INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 660000ms
2023-01-19 11:48:29.797+0000 [id=1]     INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")2023-01-19 11:48:34.455+0000 [id=1]     INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@1aa6e3c0{Jenkins v2.332.1,/,file:///var/lib/jenkins/war/,AVAILABLE}{/var/lib/jenkins/war}
2023-01-19 11:48:34.478+0000 [id=1]     INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@2974f221{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2023-01-19 11:48:34.479+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: 
Started @6602ms
2023-01-19 11:48:34.481+0000 [id=25]    INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
2023-01-19 11:48:34.754+0000 [id=32]    INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
2023-01-19 11:48:35.372+0000 [id=38]    INFO    hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /var/lib/jenkins/plugins/command-launcher.jpi
2023-01-19 11:48:35.383+0000 [id=38]    INFO    hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /var/lib/jenkins/plugins/jdk-tool.jpi     
2023-01-19 11:48:36.777+0000 [id=30]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2023-01-19 11:48:40.201+0000 [id=39]    INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2023-01-19 11:48:40.215+0000 [id=36]    INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
2023-01-19 11:48:40.223+0000 [id=37]    INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/var/lib/jenkins/war/WEB-INF/lib/groovy-all-2.4.21.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2023-01-19 11:48:41.433+0000 [id=42]    INFO    c.c.j.p.k.KubernetesCredentialProvider#startWatchingForSecrets: retrieving secrets with selector: jenkins.io/credentials-type, LabelSelector(matchExpressions=[], matchLabels=null, additionalProperties={})
2023-01-19 11:48:42.028+0000 [id=44]    INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
2023-01-19 11:48:42.249+0000 [id=35]    INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
2023-01-19 11:48:42.249+0000 [id=35]    INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2023-01-19 11:48:42.297+0000 [id=37]    INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2023-01-19 11:48:42.307+0000 [id=45]    INFO    j.util.groovy.GroovyHookScript#execute: Executing /var/lib/jenkins/init.groovy.d/createOperatorUser.groovy
2023-01-19 11:48:42.307+0000 [id=64]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$1: Started Download metadata
2023-01-19 11:48:42.324+0000 [id=64]    INFO    hudson.util.Retrier#start: Attempt #1 to 
do the action check updates server
2023-01-19 11:48:43.155+0000 [id=43]    INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
2023-01-19 11:48:43.202+0000 [id=24]    INFO    hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
prryb commented 1 year ago

I don't see anything alarming in the Jenkins logs above. The logs from the operator pod itself might say why it's restarting Jenkins. Or Kubernetes might restart the pod if it's going over resource limits.

RichardChester commented 1 year ago

I was running minikube directly on windows, now I've switched to WSL it seems to be working,

Now if I can just work out what branch I need to use so I can get past WARN: install-plugins.sh has been removed, please switch to jenkins-plugin-cli I should be perfect lol