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

Helm Dashboard UI not accessible if cluster name contains slash #557

Closed
sunnyar opened this issue Nov 14, 2024 · 11 comments · Fixed by #563
Closed

Helm Dashboard UI not accessible if cluster name contains slash #557

sunnyar opened this issue Nov 14, 2024 · 11 comments · Fixed by #563
Labels
-★- Favorite item bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@sunnyar
Copy link

sunnyar commented Nov 14, 2024

Description

Since I updated to the latest version, my helm dashboard UI has stopped working and I'm getting an error which I'm not able to understand.

It's giving a 500 error for the /api/helm/releases GET API call. But when I use the REST API calls through the swagger docs, it is working as expected. Also, not sure why is it not referencing to the default set cluster arn:aws:eks:us-east-2:xxxxxxxxxxx:cluster/xyz-cluster, instead just referring arn:aws:eks:us-east-2:xxxxxxxxxxxxx:cluster

Attaching screenshots for more reference

Can you please look into this issue and help. Thanks

Screenshots

Screenshot 2024-11-14 at 10 18 24 AM Screenshot 2024-11-14 at 10 18 58 AM Screenshot 2024-11-14 at 10 20 09 AM

Additional information

No response

@undera
Copy link
Collaborator

undera commented Nov 14, 2024

Try erasing whatever you have in your URL from local experiments and start with clean URL.

@sunnyar
Copy link
Author

sunnyar commented Nov 14, 2024

I've tried that also. If I clean-up the url and just have http://localhost:8080/ and enter, I observe two behaviours

  1. It redirects to the url specifying one of the clusters installed, but still not the current one
    http://localhost:8080/#/arn:aws:eks:us-east-2:xxxxxxxxxxxx:cluster/abc-cluster/installed

  2. Still throws the same error as shown in the screenshots

Have also tried Reset Cache option, but no help

@undera
Copy link
Collaborator

undera commented Nov 14, 2024

The way it works inside is: it tries to get the default cluster from your kubeconfig, or takes the first one.
In case it does not work, you can close the error message and choose different kubecontext from the left pane.

@undera
Copy link
Collaborator

undera commented Nov 14, 2024

Also mind the browser cache, which sometimes is a bit stubborn after change

@sunnyar
Copy link
Author

sunnyar commented Nov 14, 2024

I have tried clearing all cookies and cache, but nothing worked.
And when I close the error and select the clusters from the list of clusters on the left panel, only the url changes and nothing else happens. So stuck there also

@undera
Copy link
Collaborator

undera commented Nov 14, 2024

Fairly, I ran out of ideas what can be wrong there. Feel free to use older version if 2.x does not work for you.

@sunnyar
Copy link
Author

sunnyar commented Nov 14, 2024

Using v1.3.3 binary, the issue no longer exists on my end and I'm able to see all the list of clusters in the expected manner.

@yuma-brendan
Copy link

I'm running into the same issue, and I think that the helm-dashboard isn't parsing the cluster name properly since there's a slash in it.

Error #01: failed to get list of releases, cause: Kubernetes cluster unreachable: context "arn:aws:eks:us-east-2:XXXXXXXXXX:cluster" does not exist

The correct context name is: arn:aws:eks:us-east-2:XXXXXXXXXX:cluster/my-cluster

@yuma-brendan
Copy link

Renaming the context fixes the issue.

kubectl config rename-context arn:aws:eks:us-east-2:XXXXXXXXXX:cluster/my-cluster my-cluster

@sunnyar
Copy link
Author

sunnyar commented Nov 19, 2024

Renaming the context fixes the issue.

kubectl config rename-context arn:aws:eks:us-east-2:XXXXXXXXXX:cluster/my-cluster my-cluster

@yuma-brendan Thanks for the update. Will try this approach.

@undera
Copy link
Collaborator

undera commented Nov 19, 2024

This needs a fix, definitely

@undera undera changed the title Helm Dashboard UI not accessible Helm Dashboard UI not accessible if cluster name contains slash Nov 19, 2024
@undera undera added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed -★- Favorite item labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-★- Favorite item bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants