Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Unable to authenticate the request" err="[invalid bearer token, Token has expired.]" #7198

Closed
MagicStarTrace opened this issue Apr 3, 2023 · 1 comment

Comments

@MagicStarTrace
Copy link

MagicStarTrace commented Apr 3, 2023

OS Version: ubuntu 18.04.5

k3s version v1.21.4+k3s1

error log:

controller.go:116] loading OpenAPI spec for "v1beta1.metrics.k8s.io" failed with: failed to retrieve openAPI spec, http error: ResponseCode: 500, Body: Internal Server Error: "/openapi/v2": Unauthorized

3 16:12:47 Ks-Kubernetes-Node01 k3s[911]: E0403 16:12:47.424793 911 authentication.go:63] "Unable to authenticate the request" err="[invalid bearer token, Token has expired.]"

Why does this happen? Restarting k3s service doesn't work either

Thank You!

@brandond
Copy link
Member

brandond commented Apr 3, 2023

Something is running with a stale token. In this case I suspect it's the metrics-server pod. You might try deleting it and allowing it to be re-created.

@k3s-io k3s-io locked and limited conversation to collaborators Apr 3, 2023
@brandond brandond converted this issue into discussion #7202 Apr 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants