Open tooptoop4 opened 1 year ago
After upgrading from ArgoCD 2.7.14 to 2.3.8 (to Openshift GitOps operator 1.10) started getting this same error when clicking on certain pods in the UI or when running argocd app diff on command line:
$ argocd app diff autoscale --local config/autoscale/itest
ERRO[0001] finished unary call with code Unknown error="error getting cached app managed resources: cache: key is missing" grpc.code=Unknown grpc.method=ManagedResources grpc.service=application.ApplicationService grpc.start_time="2023-10-03T12:06:14+03:00" grpc.time_ms=562.284 span.kind=server system=grpc
FATA[0001] rpc error: code = Unknown desc = error getting cached app managed resources: cache: key is missing
Redis pod has similar looking key for it:
$ redis-cli --scan --pattern 'app|managed-resources|autoscale*'
app|managed-resources|autoscale|1.8.3.gz
Using argocd login <server> --sso
makes the ArgoCD CLI working again.
Issue can be reproduced with:
- oc login... (updates kubekonfig)
- argocd login --core
We see a variant of this issue with ArgoCD v2.10.1 in argocd-application-controller log with recurring errors like:
time="2024-03-05T14:00:11Z" level=error msg="DiffFromCache error: error getting managed resources for app <app_name>: cache: key is missing"
I eventually get some of those errors on the logs, for every application, even when no one is using the UI or CLI. I wonder if in my case those are really errors or if they should be treated differently, because it may be triggering some false positive alerts.
time="2024-03-19T16:47:00Z" level=error msg="DiffFromCache error: error getting managed resources for app karpenter-dev: cache: key is missing"
ArgoCD version: v2.10.1
seeing these errors pop up as well now
DiffFromCache error: error getting managed resources for app <xxx>: cache: key is missing
running argocd v2.11.4+e1284e1
We also experience this using:
argocd login --core --sso
- > Context 'kubernetes' updated
argocd app diff .....
-> ERRO[0007] finished unary call with code Unknown error="error getting cached app managed resources: cache: key is missing" grpc.code=Unknown grpc.method=ManagedResources grpc.service=application.ApplicationService span.kind=server system=grpc
FATA[0007] rpc error: code = Unknown desc = error getting cached app managed resources: cache: key is missing
argocd app sync
works good only argocd app diff
is having this issue when using --core
time="2024-07-23T15:19:18Z" level=error msg="finished unary call with code Unknown" error="error getting cached app managed resources: cache: key is missing" grpc.code=Unknown grpc.method=ManagedResources grpc.service=application.ApplicationService grpc.start_time="2024-07-23T15:19:14Z" grpc.time_ms=3983.76 span.kind=server system=grpc
time="2024-07-23T15:19:18Z" level=fatal msg="rpc error: code = Unknown desc = error getting cached app managed resources: cache: key is missing"
Describe the bug
in the UI i click on a pod, then popup with pod details shows an error 'cache: key is missing' and it doesn't show the pod details. i found that if i click refresh button on the app it does not help, getting same error when clicking on pod. but if i click sync button on app then going to the pod works.
To Reproduce
been using argo for over year and first time this has happened....
Version 2.6.12
Logs