进入kubersphere后无法登陆,输入账号密码后,点击登陆会回到原先的页面
访问路径为 http://10.10.22.206:30880/login
点击登陆后,应该是登录成功了。通过 chrome浏览器的开发者工具,重复发送请求返回均为200,但是页面会一直重定向回登陆页面
通过控制台登出账号跳转到 http://10.10.22.206:30880/login 也有同样问题
但是访问 http://10.10.22.206:30880/ 后,进行登陆是正常的,没问题的
尝试关闭多节点保留一个节点测试,还是会出现同样问题
出现问题的时候,查看 console的日志如下
<-- GET / 2021/09/14T15:40:15.357
Unauthorized Response {
size: 0,
timeout: 0,
body: PassThrough {
_readableState: [ReadableState],
readable: false,
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [WritableState],
writable: false,
allowHalfOpen: true,
_transformState: [Object],
[Symbol(kCapture)]: false
},
disturbed: true,
error: null
},
url: 'http://ks-apiserver.kubesphere-system.svc/kapis/tenant.kubesphere.io/v1alpha2/workspaces?limit=10',
status: 401,
statusText: 'Unauthorized',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}
} false
{
code: 401,
kind: 'Status',
apiVersion: 'v1',
metadata: {},
status: 'Failure',
message: 'Unauthorized: token is not valid yet',
reason: 'Unauthorized',
statusText: 'Unauthorized'
}