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

dashboard login failed #144

Closed
JamesBonddu opened this issue Oct 28, 2024 · 4 comments · May be fixed by #145
Closed

dashboard login failed #144

JamesBonddu opened this issue Oct 28, 2024 · 4 comments · May be fixed by #145
Labels
kind/question Indicates an issue that is a support question.

Comments

@JamesBonddu
Copy link

image

What happened:

I1028 08:22:39.983799       1 handler.go:275] Adding GroupVersion work.karmada.io v1alpha1 to ResourceManager
I1028 08:22:39.983836       1 handler.go:275] Adding GroupVersion work.karmada.io v1alpha2 to ResourceManager
I1028 08:22:40.181451       1 handler.go:275] Adding GroupVersion work.karmada.io v1alpha1 to ResourceManager
I1028 08:22:40.181495       1 handler.go:275] Adding GroupVersion work.karmada.io v1alpha2 to ResourceManager
I1028 08:22:40.348449       1 handler.go:275] Adding GroupVersion work.karmada.io v1alpha1 to ResourceManager
I1028 08:22:40.795437       1 handler.go:275] Adding GroupVersion cluster.karmada.io v1alpha1 to ResourceManager
I1028 08:22:40.856143       1 handler.go:275] Adding GroupVersion cluster.karmada.io v1alpha1 to ResourceManager
I1028 08:22:48.519969       1 controller.go:624] quota admission added evaluator for: serviceaccounts
E1028 09:20:55.015580       1 authentication.go:73] "Unable to authenticate the request" err="[invalid bearer token, square/go-jose: error in cryptographic primitive]"
E1028 09:21:29.889828       1 authentication.go:73] "Unable to authenticate the request" err="[invalid bearer token, square/go-jose: error in cryptographic primitive]"
E1028 09:22:04.774205       1 authentication.go:73] "Unable to authenticate the request" err="[invalid bearer token, square/go-jose: error in cryptographic primitive]"
E1028 09:23:14.509123       1 authentication.go:73] "Unable to authenticate the request" err="[invalid bearer token, square/go-jose: error in cryptographic primitive]"


root@node1:~/dashboard# kubectl describe serviceaccount karmada-dashboard -n karmada-system
Name:                karmada-dashboard
Namespace:           karmada-system
Labels:              addonmanager.kubernetes.io/mode=Reconcile
                     kubernetes.io/cluster-service=true
Annotations:         <none>
Image pull secrets:  <none>
Mountable secrets:   <none>
Tokens:              karmada-dashboard-secret
Events:              <none>

root@node1:~/dashboard# kubectl get -n karmada-system secret karmada-dashboard-secret -o jsonpath="{.data.token}" | base64 --decode

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:
root@iZj6c90gahowqyaz95yncqZ:~/dashboard# kubectl version
Client Version: v1.31.2
Kustomize Version: v5.4.2
Server Version: v1.31.0

  • Karmada version: v1.11.1
  • Karmada Dashboard version: latest
  • Others:
@JamesBonddu JamesBonddu added the kind/bug Categorizes issue or PR as related to a bug. label Oct 28, 2024
@JamesBonddu
Copy link
Author

i added some log for debug

aeaca3bf364ab31c3cf5a7bb9d01285

ac655d64244c4ecfa1aae8806be4373

0d6ac5e6a13abcd6f542409efd7bcd8

@JamesBonddu
Copy link
Author

soory, change kube-context i forget to set kubeconfig

root@node1:~/dashboard# kubectl apply -f artifacts/dashboard/karmada-dashboard-sa.yaml --kubeconfig=/etc/karmada/karmada-apiserver.config
clusterrolebinding.rbac.authorization.k8s.io/karmada-dashboard created
serviceaccount/karmada-dashboard created
secret/karmada-dashboard-secret created
root@node1:~/dashboard# kubectl --kubeconfig=/etc/karmada/karmada-apiserver.config -n karmada-system get secret/karmada-dashboard-secret -o go-template="{{.data.token | base64decode}}" 

image

@RainbowMango
Copy link
Member

Glad to hear that. I'm going to close this as this issue has been resolved.
/close

/remove-kind bug
/kind question

@karmada-bot karmada-bot added the kind/question Indicates an issue that is a support question. label Oct 28, 2024
@karmada-bot
Copy link
Collaborator

@RainbowMango: Closing this issue.

In response to this:

Glad to hear that. I'm going to close this as this issue has been resolved.
/close

/remove-kind bug
/kind question

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@karmada-bot karmada-bot removed the kind/bug Categorizes issue or PR as related to a bug. label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Indicates an issue that is a support question.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants