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

Cannot load data of Clusters in UI. "Failed to load data, please try again." - message appear, "Unable to load data: Not Found" - message pop up. #18140

Open laiminhtrung1997 opened 6 months ago

laiminhtrung1997 commented 6 months ago

Checklist:

Describe the bug Cannot load data of clusters in UI. The error message shows up - "Failed to load data, please try again." The error message pops up - "Unable to load data: Not Found"

To Reproduce

  1. Open UI
  2. Click Settings
  3. Click Clusters
  4. Click any cluster that has shown up.

Expected behavior The UI can load the data of any cluster.

Screenshots image image

Version v2.10.4

Logs

time="2024-05-09T08:39:56Z" level=debug msg="Checking if cluster https://xxxxxxxxxxxxxxxxxxxxxx.gr7.region.eks.amazonaws.com with clusterShard 0 should be processed by shard 0"
time="2024-05-09T08:39:56Z" level=debug msg="Checking if cluster https://kubernetes.default.svc with clusterShard 0 should be processed by shard 0"
time="2024-05-09T08:39:56Z" level=debug msg="Successfully saved info of 2 clusters"
romanperesypkin commented 2 months ago

Hi

I had similar issue In my case I have istio with path normalization. Either istio or smth in the middle transforms uri from https://your.domain/api/v1/clusters/https%3A%2F%2Fkubernetes.default.svc?id.type=url into https://your.domain/api/v1/clusters/https:/kubernetes.default.svc?id.type=url Notice single slash in https:/kubernetes

I got to debug ArgoCD's api-server to find it. 'debug' mode does not show that server received http request and could not match it. I added Istio VirtualService to modify uri back before passing it to Argo CD server

bkamau commented 1 month ago

@romanperesypkin do you mind sharing the modified Istio VirtualService. I'am using envoy gateway and believe its transforming the URL.

andrii-korotkov-verkada commented 3 days ago

ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and tell us if the issue is still present, please?