jx: 'Could not find any user auths for jenkins server' during garbage collection
Summary
jenkins-x-gcactivities pods are not created
jenkins-x-gcactivities-1574078400-227nt 0/1 Error 0 112m
jenkins-x-gcactivities-1574078400-24bs6 0/1 Error 0 116m
jenkins-x-gcactivities-1574078400-24kf4 0/1 Error 0 89m
...
jenkins-x-gcactivities-1574080200-2k4qw 0/1 Error 0 78m
jenkins-x-gcactivities-1574080200-2qt6f 0/1 ContainerCreating 0 1s
jenkins-x-gcactivities-1574080200-2s7lh 0/1 Error 0 31m
...
jenkins-x-gcactivities-1574080200-zzld9 0/1 Error 0 2m54s
Looking at jenkins-x-gcactivities logs
$> kubectl logs jenkins-x-gcactivities-1574080200-zzld9
error: Could not find any user auths for jenkins server http://jenkins.xxx.xx.xx.xx.xx.nip.io.io has server URLs
Steps to reproduce the behavior
The issue was exposed and we don’t have steps to reproduce the issue.
Expected behavior
jenkins-x-gcactivities pod should be created
Actual behavior
jenkins-x-gcactivities pod are not created
Jx version
The output of jx version
is:
NAME VERSION
jx 2.0.979
jenkins x platform 2.0.1619
Kubernetes cluster v1.13.11-gke.14
kubectl v1.13.2
helm client Client: v2.13.1+g618447c
git 2.17.1
Operating System Ubuntu 18.04.3 LTS
Jenkins type
- Serverless Jenkins X Pipelines (Tekton + Prow)
- Classic Jenkins
Kubernetes cluster
EKS
Workaround
- The kubernetes jenkins secret was missing the field : jenkins-admin-api-token
- Edited the secret manually to add this field with token value found in http://jenkins.nos.34.74.59.50.nip.io/me/configure
It has been inspired by https://github.com/jenkins-x/jx/issues/5000
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (7 by maintainers)
I have the same issue and the workaround that works for me is to add the verb
list
for resourcessecrets
in the rolegcactivities
.I have the same issue. kc log gives the following output.