求助,升级3.10.9之后,web登录主机报错

使用ssh直接连接主机没有报错,很奇怪

web登录主机报错

{"detail":"You do not have permission to perform this action.","code":"permission_denied"} 的信息,

说明(发布前可手动删除说明内容):

  • 发布话题前请确认好标题与标签、你已经看过了[JumpServer版规V1.0] ;
  • 如有必要请附带以下信息:JumpServer 版本、运行方式(安装包运行 or 源码运行 )、浏览器版本、更多描述或截图信息。

求助,这个问题有谁遇到过吗

清理一下浏览器缓存,或者看一下授权是否正确

清理了,使用了浏览器的无痕模式也不行,应该不是缓存的问题,服务整体也重启过,服务的状态也都正常

jumpserver/kael:v3.10.9 “./entrypoint.sh” 2 days ago Up 2 days (healthy) 8083/tcp jms_kael
jumpserver/core-ce:v3.10.9 “./entrypoint.sh sta…” 2 days ago Up 2 days (healthy) 8080/tcp jms_core
jumpserver/core-ce:v3.10.9 “./entrypoint.sh sta…” 2 days ago Up 2 days (healthy) 8080/tcp jms_celery
jumpserver/web:v3.10.9 “/docker-entrypoint.…” 2 days ago Up 2 days (healthy) 0.0.0.0:80->80/tcp jms_web
jumpserver/mariadb:10.6 “docker-entrypoint.s…” 2 days ago Up 2 days (healthy) 3306/tcp jms_mysql
jumpserver/lion:v3.10.9 “./entrypoint.sh” 2 days ago Up 2 days (healthy) 4822/tcp, 8081/tcp jms_lion
jumpserver/magnus:v3.10.9 “./entrypoint.sh” 2 days ago Up 2 days (healthy) 8088/tcp, 14330/tcp, 0.0.0.0:33061-33062->33061-33062/tcp, 54320/tcp, 0.0.0.0:63790->63790/tcp jms_magnus
jumpserver/koko:v3.10.9 “./entrypoint.sh” 2 days ago Up 2 days (healthy) 0.0.0.0:2222->2222/tcp, 5000/tcp jms_koko
jumpserver/redis:6.2 “docker-entrypoint.s…” 2 days ago Up 2 days (healthy) 6379/tcp jms_redis
jumpserver/chen:v3.10.9 “./entrypoint.sh” 2 days ago Up 2 days (healthy) 8082/tcp jms_chen

jumpserver 日志:

2024-11-25 11:32:25 [WARN] Forbidden: /api/v1/authentication/connection-token/
2024-11-25 11:32:59 [WARN] Forbidden: /api/v1/authentication/connection-token/

找到问题了,发现是从2.8升级到3.10.9 之后,之前2.8是可以建用户的role的,有个role迁移没有处理,有脏数据,将用户放入默认用户组就好了