现象: 博客后台一登陆进去就显示token过期
spring的日志显示如下:
我之前是在网站前面套了个cdn,并且缓存html、css、js等文件。
并且在nginx中也开启了proxy_cache
cdn>nginx_proxy_cache>halo
后来发现token过期的问题,就直接将cdn+nginx的cache都取消了 现在是什么都没加直接解析到源站
所以问下spring里的cache_key记录的是什么? halo的缓存是在./halo文件夹中 还是写到数据库中了?
2021-01-17 15:34:44.921 WARN 1 --- [tp2115628016-13] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:34:44.921 ERROR 1 --- [tp2115628016-13] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [4badb3d7e1bc4796810ea7566a54954e]
2021-01-17 15:34:52.727 WARN 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:34:52.728 ERROR 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [97b02cffee594dc4b43b53383e8c5394]
2021-01-17 15:34:58.332 WARN 1 --- [tp2115628016-11] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:34:58.333 ERROR 1 --- [tp2115628016-11] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [97b02cffee594dc4b43b53383e8c5394]
2021-01-17 15:35:01.474 WARN 1 --- [tp2115628016-11] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:35:01.474 ERROR 1 --- [tp2115628016-11] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [eaa00fa1a8344e5fa0f41baf63125993]
2021-01-17 15:35:04.566 WARN 1 --- [tp2115628016-13] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:35:04.566 ERROR 1 --- [tp2115628016-13] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [eaa00fa1a8344e5fa0f41baf63125993]
2021-01-17 15:35:04.593 ERROR 1 --- [tp2115628016-13] r.h.app.core.ControllerExceptionHandler : Captured an exception: [登录状态已失效,请重新登录]
2021-01-17 15:35:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_public run.halo.app.security.token.AuthToken run.halo.app.controller.admin.api.AdminController.refresh(java.lang.String)] has been expired
^@^@^@2021-01-17 15:39:33.534 WARN 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:39:33.535 ERROR 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [ec375a5131384abdaa9b3ead01414906]
2021-01-17 15:39:37.097 ERROR 1 --- [tp2115628016-11] r.h.app.core.ControllerExceptionHandler : Captured an exception: [登录状态已失效,请重新登录]
2021-01-17 15:39:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_public run.halo.app.security.token.AuthToken run.halo.app.controller.admin.api.AdminController.refresh(java.lang.String)] has been expired
2021-01-17 15:39:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_login_precheck] has been expired
^@2021-01-17 15:40:34.622 WARN 1 --- [tp2115628016-11] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:40:34.622 ERROR 1 --- [tp2115628016-11] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [未登录,请登录后访问], status: [401 UNAUTHORIZED], data: [null]
2021-01-17 15:40:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_login_auth] has been expired
^@2021-01-17 15:41:43.966 WARN 1 --- [tp2115628016-13] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:41:43.967 ERROR 1 --- [tp2115628016-13] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [fadf21aec70342fb8d0e1a3df7c01a84]
2021-01-17 15:41:43.995 WARN 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:41:43.995 ERROR 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [fadf21aec70342fb8d0e1a3df7c01a84]
2021-01-17 15:41:44.153 WARN 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:41:44.153 ERROR 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [fadf21aec70342fb8d0e1a3df7c01a84]
2021-01-17 15:41:50.125 WARN 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:41:50.126 ERROR 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [未登录,请登录后访问], status: [401 UNAUTHORIZED], data: [null]
2021-01-17 15:41:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_login_precheck] has been expired
^@^@^@2021-01-17 15:45:10.596 WARN 1 --- [tp2115628016-14] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:45:10.597 ERROR 1 --- [tp2115628016-14] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [dd764e9d84ec4ae1ac36dc5b4e4df108]
2021-01-17 15:45:10.692 WARN 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Handle unsuccessful authentication, ip: [111.201.236.218]
2021-01-17 15:45:10.692 ERROR 1 --- [tp2115628016-15] .s.h.DefaultAuthenticationFailureHandler : Authentication failure: [Token 已过期或不存在], status: [401 UNAUTHORIZED], data: [dd764e9d84ec4ae1ac36dc5b4e4df108]
^@2021-01-17 15:45:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_public run.halo.app.security.token.AuthToken run.halo.app.controller.admin.api.AdminController.refresh(java.lang.String)] has been expired
2021-01-17 15:45:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_login_precheck] has been expired
2021-01-17 15:45:54.826 WARN 1 --- [ Timer-0] run.halo.app.cache.AbstractCacheStore : Cache key: [cache_lock_login_auth] has been expired