Closed tanbenw closed 1 year ago
建议检查登录之后是否更新了 token(登录接口返回的内容)。个人判断是因为加了某种缓存,登录接口被缓存了。
/kind support
这种情况要怎么处理呢
这种情况要怎么处理呢
与 Halo 无关,你可以尝试仅用 IP 访问检查是否有问题。这种情况如上所说,建议检查你的前置代理(Nginx)或者是否配置了全站 CDN,而且将后台所请求的接口进行了缓存。
用了官网的ng配置还是不行。。登进去后台就是状态失效,我看linux环境下,前端请求接口之前,每次都会调refresh/{token}接口?本地环境就不会,是不是因为这个原因导致每次token 都失效了
@13160671810 我还是建议你先使用 IP 先测试一下,先排除是 Halo 本身的问题,目前我们没有成功复现这个问题。
@13160671810 我还是建议你先使用 IP 先测试一下,先排除是 Halo 本身的问题,目前我们没有成功复现这个问题。
崩溃了 搞了十几个小时。。。我先用release1.5的代码全量覆盖了我线上的代码,只改了application.yml里面的mysql地址,本地idea运行一切正常,部署到linux,访问admin页面出现如下问题,访问博客页面一切正常
基本确认和 Halo 本身无关。
你可以尝试对比一下服务器上 /admin/index.html 和本地运行后 /admin/index.html 输出是否一致。
如果不一致,那就是上游的缓存问题了,这个需要你自己去排查一下。
基本确认和 Halo 本身无关。
- 你在本地运行一切正常
- 前台页面正常访问
你可以尝试对比一下服务器上 /admin/index.html 和本地运行后 /admin/index.html 输出是否一致。
如果不一致,那就是上游的缓存问题了,这个需要你自己去排查一下。
又回到原来的问题。。。,每次访问后台接口都会报 token已过期,想问下要怎么排查token是否存进去inMermory了?是有什么约束吗?
已解决,我部署了多实例。。。项目默认把token放到map里。。。悲剧了 2天血泪教训。。。by the way 有页面可以直接切到redis存储吗
已解决,我部署了多实例。。。项目默认把token放到map里。。。悲剧了 2天血泪教训。。。by the way 有页面可以直接切到redis存储吗
https://docs.halo.run/getting-started/config#%E7%BC%93%E5%AD%98
可能可以解决你的问题,但目前我们没有针对多集群进行测试。
检查清单
是什么版本出现了此问题?
1.5.2
使用的什么数据库?
MySQL 5.7
使用的哪种方式部署?
Docker
在线站点地址
https://ai-tech.inshopline.com/
发生了什么?
博客正常访问 后台登陆后一直提示【当前登录状态已失效,请重新登录】
相关日志输出
附加信息
No response