Jenkins backups stop running

Hi,

Jenkins Backup stopped running all of a sudden. I could see the below log in the jenkins operator. Also while checking the logs of jenkins backup container there is error and no log corresponding to the backup operation. It has logs for restoring, but not backup.

2024-09-19T16:00:35+05:30 2024-09-19T10:30:35.154Z DEBUG controller-jenkins Skipping user-casc ConfigMap 'jenkins-operator-user-configuration' name '1-token.groovy' {"cr": "master"}
2024-09-19T16:00:36+05:30 2024-09-19T10:30:36.158Z INFO controller-jenkins Restoring backup '77287' {"cr": "master"}
2024-09-19T16:06:58+05:30 2024-09-19T10:36:58.894Z WARN controller-jenkins <strong>Reconcile loop failed 10 times with the same errors, giving up: Post "[http://jenkins-operator-http-master.jenkins:80/jenkins/scriptText](http://jenkins-operator-http-master.jenkins/jenkins/scriptText)": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024-09-19T16:06:58+05:30 couldn't execute groovy script, logs ''</strong>
2024-09-19T16:06:58+05:30 github.com/jenkinsci/kubernetes-operator/pkg/client.(*jenkins).executeScript
2024-09-19T16:06:58+05:30 /workspace/pkg/client/script.go:49
2024-09-19T16:06:58+05:30 github.com/jenkinsci/kubernetes-operator/pkg/client.(*jenkins).ExecuteScript
2024-09-19T16:06:58+05:30 /workspace/pkg/client/script.go:30
2024-09-19T16:06:58+05:30 github.com/jenkinsci/kubernetes-operator/pkg/configuration/backuprestore.(*BackupAndRestore).Restore
2024-09-19T16:06:58+05:30 /workspace/pkg/configuration/backuprestore/backuprestore.go:179
2024-09-19T16:06:58+05:30 github.com/jenkinsci/kubernetes-operator/pkg/configuration/user.(*reconcileUserConfiguration).ReconcileOthers
2024-09-19T16:06:58+05:30 /workspace/pkg/configuration/user/reconcile.go:67
2024-09-19T16:06:58+05:30 github.com/jenkinsci/kubernetes-operator/controllers.(*JenkinsReconciler).reconcile
2024-09-19T16:06:58+05:30 /workspace/controllers/jenkins_controller.go:316
2024-09-19T16:06:58+05:30 github.com/jenkinsci/kubernetes-operator/controllers.(*JenkinsReconciler).Reconcile
2024-09-19T16:06:58+05:30 /workspace/controllers/jenkins_controller.go:136
2024-09-19T16:06:58+05:30 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler

Any idea what could be the issue here?

Hello and welcome to this community, @nvithayathil. :wave:

The error message seems to indicate that the Jenkins operator is failing to execute a Groovy script due to a timeout while trying to communicate with the Jenkins instance.

This could be due to several reasons, such as network issues, Jenkins being overloaded, or misconfiguration.