gennpix 无法登录时 ks-apiserver 中有什么异常日志吗

gennpix 登录失败ks-apiserver 会有具体的错误信息的, console 上也会有提示

    hongming ks-apiserver只有这种错误,但我能确定我输入的密码绝对没有错(复制的)
    E0108 11:32:00.288382 1 handler.go:275] incorrect password

    hongming 不知道逻辑是怎么样的,kubectl edit users xxx 将 state 改为 Active 不生效。

    gennpix

    kubectl delete loginrecords –all 然后 kubectl edit users xxx

    验证账号密码

    curl -X POST 'http://ks-apiserver.kubesphere-system.svc/oauth/token' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=password' --data-urlencode 'username=<USERNAME>' --data-urlencode 'password=<PASSWORD>'

    在看看这个帖子 检查一下 redis有没有异常重启一下ks-console 看看有没有错误日志(redis连接相关) ,https://kubesphere.com.cn/forum/d/3248/13

      hongming 现在高概率不能够登录的问题找到重现的方法了。方法如下:
      输入用户名 –> 输入密码 –> 显示密码 –> 复制密码 –> 删除密码 –> 粘贴密码 –> 登录 就失败了。

      填写用户,显示密码,再粘贴的密码就无法登录。

        gennpix

        这个也太奇怪了, 手动输入不会有问题吗。如果频繁无法登录的话,唯一的可能就是 ks-console 连不上 redis 导致多副本之间数据无法共享 (单副本应该没这个问题), 有用户遇到过。