jenkinsci / kubernetes-operator

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

jenkins pods stuck in the `Registering preinstalled plugins` phase #893

Closed willzhang closed 11 months ago

willzhang commented 11 months ago

Describe the bug jenkins pods stuck in the Registering preinstalled plugins phase

To Reproduce

helm install jenkins-operator jenkins/jenkins-operator \
-n jenkins-operator --create-namespace \
--set jenkins.namespace=jenkins-operator \
--set jenkins.service.type=NodePort \
--set jenkins.service.port=8080 \
--set jenkins.latestPlugins=false

pods status not ready

$ kubectl -n jenkins-operator get pods

NAME                                READY   STATUS    RESTARTS   AGE
jenkins-jenkins                     1/2     Running   0          4m37s
jenkins-operator-5fb4b47c84-vjxwd   1/1     Running   0          94m

Additional information

Kubernetes version: v1.27.3 Jenkins Operator version: v0.8.0-beta2

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

$ kubectl -n jenkins-operator logs -f jenkins-jenkins -c jenkins-master
To print debug messages set environment variable 'DEBUG_JENKINS_OPERATOR' to 'true'
+ '[' '' == true ']'
+ echo 'To print debug messages set environment variable '\''DEBUG_JENKINS_OPERATOR'\'' to '\''true'\'''
+ mkdir -p /var/lib/jenkins/init.groovy.d
+ 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...
^C
# kubectl -n jenkins-operator get pods -o yaml |grep image:
      image: jenkins/jenkins:2.319.3-lts
      image: virtuslab/jenkins-operator-backup-pvc:v0.1.0
      image: virtuslab/jenkins-operator:v0.7.1
brokenpip3 commented 11 months ago

first of all thanks for the details, finally someone that give some logs and info :)

coming to the issue: could you please refresh the helm-chart index so you can download the latest version? All the version are old, jenkins lts but most important the operator is still pointing to the 0.7.1, the latest one is https://github.com/jenkinsci/kubernetes-operator/releases/tag/v0.8.0-beta2.

willzhang commented 11 months ago

thanks, switch to v0.8.0-beta2 problems resolved.