Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd admin dashboard - FATA[0002] cannot find pod with selector: [app.kubernetes.io/name=] #16323

Closed
3 tasks done
williammpe opened this issue Nov 14, 2023 · 2 comments · Fixed by #16430
Closed
3 tasks done
Labels
bug Something isn't working cherry-pick/2.9 regression Bug is a regression, should be handled with high priority

Comments

@williammpe
Copy link

williammpe commented Nov 14, 2023

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

When the argocd CLI version was updated to 2.9.0, an error occurred when running the command argocd admin dashboard, whereas it was working fine in version 2.8.6.

To Reproduce

  1. Download version 2.9.0 of the argocd CLI using Curl.
    a. curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/download/v2.9.0/argocd-linux-amd64
  2. Install the downloaded binary.
    a. sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd && rm argocd-linux-amd64
  3. run argocd admin dashboard

Result

FATA[0002] cannot find pod with selector: [app.kubernetes.io/name=] - use the --{component}-name flag in this command or set the environmental variable (Refer to https://argo-cd.readthedocs.io/en/stable/user-guide/environment-variables), to change the Argo CD component name in the CLI 

Expected behavior

Argo CD UI is available at http://localhost:8080

Screenshots

argocd-error-dashboard

Version

argocd: v2.9.0+9cf0c69
  BuildDate: 2023-11-06T05:01:52Z
  GitCommit: 9cf0c69bbe70393db40e5755e34715f30179ee09
  GitTreeState: clean
  GoVersion: go1.21.3
  Compiler: gc
  Platform: linux/amd64
@williammpe williammpe added the bug Something isn't working label Nov 14, 2023
@mikutas
Copy link
Contributor

mikutas commented Nov 14, 2023

seems to be related to #14605 , and similar to #16266

https://github.com/argoproj/argo-cd/pull/14605/files#diff-170ef34ea6636f7c5461828e058b61f2e4e53f6f90d761e07be2fa1637d9eaf6L113

RepoClientset: &forwardRepoClientset{namespace: namespace, context: ctxStr, repoServerName: clientOpts.RepoServerName},

RepoServerName became variable, and empty

@alexmt alexmt added regression Bug is a regression, should be handled with high priority cherry-pick/2.9 labels Nov 15, 2023
@alexmt
Copy link
Collaborator

alexmt commented Nov 15, 2023

Got the same error. Will work on the fix and cherry-pick into affected versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cherry-pick/2.9 regression Bug is a regression, should be handled with high priority
Projects
None yet
3 participants