opendevops-cn / opendevops

CODO是一款为用户提供企业多混合云、全球一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
http://www.opendevops.cn/
GNU General Public License v3.0
3.77k stars 1.02k forks source link

token过期会导致主页一直死循环 #64

Open Zhang21 opened 4 years ago

Zhang21 commented 4 years ago

token过期,登录主页后一直死循环跳转主页。必须手动清理此网站的cookie才能正常。

openresty的日志:

2020/05/28 17:10:22 [error] 67040#67040: *434 [lua] upstream.lua:48: set(): real_uri-------->/authorization/, client: 127.0.0.1, server: gw.opendevops.cn, request: "GET /api/accounts/authorization/ HTTP/1.1", host: "gw.opendevops.cn", referrer: "http://demo-init.opendevops.cn/home"
2020/05/28 17:10:22 [error] 67040#67040: *439 [lua] auth_check.lua:44: check(): Invalid token: 'exp' claim expired at Thu, 28 May 2020 07:43:15 GMT, client: 127.0.0.1, server: gw.opendevops.cn, request: "GET /api/cmdb2/v1/cmdb/tag/ HTTP/1.1", host: "gw.opendevops.cn", referrer: "http://demo-init.opendevops.cn/home"
2020/05/28 17:10:22 [error] 67041#67041: *443 [lua] auth_check.lua:44: check(): Invalid token: 'exp' claim expired at Thu, 28 May 2020 07:43:15 GMT, client: 127.0.0.1, server: gw.opendevops.cn, request: "GET /api/tools/v1/zabbix/issues/ HTTP/1.1", host: "gw.opendevops.cn", referrer: "http://demo-init.opendevops.cn/home"
2020/05/28 17:10:22 [error] 67040#67040: *446 [lua] auth_check.lua:44: check(): Invalid token: 'exp' claim expired at Thu, 28 May 2020 07:43:15 GMT, client: 127.0.0.1, server: gw.opendevops.cn, request: "GET /api/task/v2/task/list/ HTTP/1.1", host: "gw.opendevops.cn", referrer: "http://demo-init.opendevops.cn/home"
2020/05/28 17:10:22 [error] 67040#67040: *447 [lua] auth_check.lua:44: check(): Invalid token: 'exp' claim expired at Thu, 28 May 2020 07:43:15 GMT, client: 127.0.0.1, server: gw.opendevops.cn, request: "GET /api/task/v2/task/statement/ HTTP/1.1", host: "gw.opendevops.cn", referrer: "http://demo-init.opendevops.cn/home"
2020/05/28 17:10:22 [error] 67040#67040: *450 [lua] access_check.lua:18: acc-->>>accounts, client: 127.0.0.1, server: gw.opendevops.cn, request: "GET /api/accounts/authorization/ HTTP/1.1", host: "gw.opendevops.cn", referrer: "http://demo-init.opendevops.cn/home"


不确定是我的问题,还是程序bug。

ss1917 commented 4 years ago

可能是新功能的BUG ,这周修复