argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.92k stars 5.46k forks source link

Unable to load data: error getting cached app managed resources: cache: key is missing #18503

Open HuJake opened 5 months ago

HuJake commented 5 months ago

Describe the bug

I am encountering an issue with the Argo-CD UI. When I click on information such as POD->Logs, it displays the following error:

Unable to load data: error getting cached app managed resources: cache: key is missing

Our current workaround is to restart the argocd-application-controller, but this does not seem to address the root cause of the problem. Could you please help us identify and resolve the underlying issue?

Thank you for your assistance.

Screenshots image

Version

{
    "Version": "v2.11.2+25f7504",
    "BuildDate": "2024-05-23T13:32:13Z",
    "GitCommit": "25f7504ecc198e7d7fdc055fdb83ae50eee5edd0",
    "GitTreeState": "clean",
    "GoVersion": "go1.21.9",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v5.2.1 2023-10-19T20:13:51Z",
    "HelmVersion": "v3.14.4+g81c902a",
    "KubectlVersion": "v0.26.11",
    "JsonnetVersion": "v0.20.0"
}

Logs

Unable to load data: error getting cached app managed resources: cache: key is missing
avg07 commented 5 months ago

Same here 2.11.3

tooptoop4 commented 5 months ago

this is dupe https://github.com/argoproj/argo-cd/issues/15912#issuecomment-2094107935 has a workaround

PavelPikat commented 4 months ago

Same here 2.11.3

This workaround doesn't help in 2.11.4 Pods are also stopped showing up in the UI after upgrading from 2.11.0 to 2.11.4. Dowgrading back to 2.11.0 immedeatly fixed it.

@agaudreault can we reopen this please

Shreyas2792 commented 3 months ago

Even I am facing this issue. We upgraded to 2.11.3 on this there was webhooks bug so I had to upgrade to 2.11.4. 2.11.4 , I see multiple issues:

  1. The Applicationset is missing in UI in my root app. ANd none of the apps are created. I cleared redis cache using flush db command and now the appsets show up on the UI but still no apps. When I click on the appset details , I get the error mentioned in this thread. "Cache key is missing"

Status: message: Successfully generated parameters for all Applications reason: ApplicationSetUpToDate status: 'False' type: ErrorOccurred

  1. When the application which is part of applicationset is deleted from UI , it does not get recreated. Instead the appset goes to degraded state.

@agaudreault @crenshaw-dev

crenshaw-dev commented 3 months ago

Would someone be willing to build this image and run it in their env? https://github.com/crenshaw-dev/argo-cd/tree/v2.11.4-more-cache-logging

It just adds a bunch more logging around the error path. It kinda looks like we're failing to detect the cache miss and therefore failing to repopulate the cache. But without more logging, it's hard to tell.

dbacademy commented 3 months ago

was there any workaround , we are also facing same issue

Unable to load data: error getting cached app managed resources: cache: key is missing

Argocd : v2.8.6+6f7af53

crenshaw-dev commented 3 months ago

To find a workaround, we first need to diagnose the problem. Running my image with additional logging would be a good first step to diagnosing the issue.

pavelpikatamcs commented 3 weeks ago

I am trying every single release since 2.11.0 on all my 4 instances of ArgoCD on different stages and clusters and it's been failing consistently every release, including the latest 2.13.0-rc3 How are you guys even releasing new versions of this stopped working since 2.11? You are not affected by this? Do we have different configuration? Different K8s distros?

What do you need from the community to troubleshoot it? Logs? Configs? Which ones?