Jx: 'Could not find any user auths for jenkins server' during garbage collection

Created on 21 Nov 2019  路  15Comments  路  Source: jenkins-x/jx

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)
  • [x] Classic Jenkins

Kubernetes cluster

EKS

Workaround

It has been inspired by https://github.com/jenkins-x/jx/issues/5000

areeks arefox arejenkins kinbug lifecyclrotten prioritawaiting-more-evidence

All 15 comments

@daveconde add to sprint 20

I have the same issue. kc log gives the following output.

$ kc logs -n jx jenkins-x-gcactivities-1578346200-5j87z
error: creating auth config service for Jenkins: no auth config found for secret "jenkinsAuth.yaml"

i have the same issue

@deanesmith, i have the same issue. is it fixed now?

I have the same:

oc logs -f jenkins-x-gcactivities-1580830200-887ff

error: creating auth config service for Jenkins: no auth config found for secret "jenkinsAuth.yaml

I have the same issue and the workaround that works for me is to add the verb list for resources secrets in the role gcactivities.

- apiGroups:  
  - ""      
  resources:    
  - secrets
  - services
  verbs:
  - get  
  - list  <-- to be added
- apiGroups:
  - apps       

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

/remove-lifecycle stale

The fix provided by @lcaille worked for us.

Hi @polothy, Given that static masters are no longer supported on 2.1.x versions of Jenkins X should it be assumed this is no longer relevant?

Oh, had no idea if gcactivities was still a thing in Tekton world. If not, then I guess you cannot fix this anyways.

The fix provided by @lcaille worked for us.

Hello @polothy , could you please mention, where exactly the changes are to made. Thanks

I have the same issue and the workaround that works for me is to add the verb list for resources secrets in the role gcactivities.

- apiGroups:  
  - ""      
  resources:    
  - secrets
  - services
  verbs:
  - get  
  - list  <-- to be added
- apiGroups:
  - apps       

this worked for me.

@karthickvelu90 you need to edit role kubectl edit role -n jx gcactivities and add list permission as mentioned

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

Was this page helpful?
0 / 5 - 0 ratings