Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web连接资产提示 Connection websocket closed #13193

Closed
2 tasks
vyunwei opened this issue May 10, 2024 · 8 comments
Closed
2 tasks

web连接资产提示 Connection websocket closed #13193

vyunwei opened this issue May 10, 2024 · 8 comments

Comments

@vyunwei
Copy link

vyunwei commented May 10, 2024

注意

web连接资产提示 Connection websocket closed.

JumpServer 版本( v2.28 之前的版本不再支持 )

针对过于简单的 Bug 描述不予考虑。请确保提供足够的细节和信息以支持 Bug 的复现和修复。

当前使用的 JumpServer 版本 (必填)

3.10.9

使用的版本类型 (必填)

  • 社区版

版本安装方式 (必填)

  • 在线安装 (一键命令)

问题描述 (详细)

迁移过后,有部分用户使用web连接资产提示 Connection websocket closed,koko连接无问题

koko错误日志如下
[ERRO] Ws[6dda2d89-8236-4d99-833d-73c61fa1dc5f] read message err: websocket: close 1006 (abnormal closure): unexpected EOF

背景信息

  • 操作系统:centos7
  • 浏览器/应用版本:chrom124.0.6367.158

具体问题

[在这里详细描述你的问题,包括任何相关细节或错误信息]

尝试过的解决方法

新建账号并授权一样报错

预期结果

[描述你期望的解决方案或结果]

我们的期望

帮忙看看是bug还是配置错误,谢谢。

@vyunwei
Copy link
Author

vyunwei commented May 11, 2024

用户角色授权时给的用户角色,提交确认后在查看角色变成系统审计员

@vyunwei
Copy link
Author

vyunwei commented May 11, 2024

image

@vyunwei
Copy link
Author

vyunwei commented May 11, 2024

角色授权都变成了用户

@vyunwei
Copy link
Author

vyunwei commented May 11, 2024

2024-05-11 16:48:06 [DEBU] Ws client send heartbeat success
[GIN] 2024/05/11 - 16:48:07 | 200 | 43.825µs | 127.0.0.1 | GET "/koko/health/"
[GIN] 2024/05/11 - 16:48:17 | 200 | 46.91µs | 127.0.0.1 | GET "/koko/health/"
[GIN] 2024/05/11 - 16:48:22 | 200 | 29.639667ms | 192.168.251.1 | GET "/koko/connect/?disableautohash=false&token=b4bf5746-f359-456d-b1b5-c37847849e39&_=1715417301546"
[GIN] 2024/05/11 - 16:48:22 | 304 | 44.153µs | 192.168.251.1 | GET "/koko/assets/css/chunk-vendors.ad3751c3.css"
[GIN] 2024/05/11 - 16:48:22 | 304 | 30.375µs | 192.168.251.1 | GET "/koko/assets/js/chunk-vendors.fbfdda20.js"
[GIN] 2024/05/11 - 16:48:22 | 304 | 38.989µs | 192.168.251.1 | GET "/koko/assets/js/app.39fc09ec.js"
[GIN] 2024/05/11 - 16:48:22 | 304 | 40.722µs | 192.168.251.1 | GET "/koko/assets/css/chunk-59ca3042.ab767ee5.css"
[GIN] 2024/05/11 - 16:48:22 | 304 | 30.809µs | 192.168.251.1 | GET "/koko/assets/css/chunk-b2e8c66c.35a0afea.css"
[GIN] 2024/05/11 - 16:48:22 | 304 | 28.641µs | 192.168.251.1 | GET "/koko/assets/js/chunk-59ca3042.082ca1bf.js"
[GIN] 2024/05/11 - 16:48:22 | 304 | 22.585µs | 192.168.251.1 | GET "/koko/assets/js/chunk-b2e8c66c.7031860e.js"
2024-05-11 16:48:22 [INFO] Ws[0bf9631f-7124-42fe-b74b-4e8f6df9c3e1] enter
[GIN] 2024/05/11 - 16:48:22 | 304 | 38.79µs | 192.168.251.1 | GET "/koko/assets/css/chunk-cb23676e.5fcdb3ed.css"
[GIN] 2024/05/11 - 16:48:22 | 304 | 33.772µs | 192.168.251.1 | GET "/koko/assets/js/chunk-2d207f44.7cfe5d0b.js"
[GIN] 2024/05/11 - 16:48:22 | 304 | 26.902µs | 192.168.251.1 | GET "/koko/assets/js/chunk-cb23676e.4caa2da4.js"
2024-05-11 16:48:22 [DEBU] Conn[0bf9631f-7124-42fe-b74b-4e8f6df9c3e1] did not found cache ssh client(xxx@xxxxx)
2024-05-11 16:48:23 [INFO] Store new client(dev@192.168.10.14:22) remain 1
2024-05-11 16:48:23 [INFO] SSHClient(dev@192.168.10.14:22) session add one
2024-05-11 16:48:23 [DEBU] Conn[0bf9631f-7124-42fe-b74b-4e8f6df9c3e1] set charset default
2024-05-11 16:48:23 [INFO] Conn[0bf9631f-7124-42fe-b74b-4e8f6df9c3e1] create session 964cd9f3-6e90-4158-a6ed-277d930b053e success
2024-05-11 16:48:23 [INFO] Conn[0bf9631f-7124-42fe-b74b-4e8f6df9c3e1] create ParseEngine success
2024-05-11 16:48:23 [INFO] Create replay file /opt/koko/data/replays/2024-05-11/964cd9f3-6e90-4158-a6ed-277d930b053e.cast
2024-05-11 16:48:23 [INFO] Conn[0bf9631f-7124-42fe-b74b-4e8f6df9c3e1] create replay success
2024-05-11 16:48:23 [INFO] Session 964cd9f3-6e90-4158-a6ed-277d930b053e: Parser start
2024-05-11 16:48:23 [INFO] Session 964cd9f3-6e90-4158-a6ed-277d930b053e: Command recorder start
2024-05-11 16:48:23 [DEBU] Room 964cd9f3-6e90-4158-a6ed-277d930b053e current connections count: 1

[GIN] 2024/05/11 - 16:49:06 | 200 | 32.257058ms | 192.168.251.1 | GET "/koko/connect/?disableautohash=false&token=70bb9a57-16fe-4f3b-8a59-6e9e6b7907b0&=1715417345763"
[GIN] 2024/05/11 - 16:49:06 | 304 | 64.644µs | 192.168.251.1 | GET "/koko/assets/css/chunk-vendors.ad3751c3.css"
[GIN] 2024/05/11 - 16:49:06 | 304 | 30.682µs | 192.168.251.1 | GET "/koko/assets/js/app.39fc09ec.js"
[GIN] 2024/05/11 - 16:49:06 | 304 | 30.758µs | 192.168.251.1 | GET "/koko/assets/js/chunk-vendors.fbfdda20.js"
[GIN] 2024/05/11 - 16:49:06 | 304 | 42.39µs | 192.168.251.1 | GET "/koko/assets/css/chunk-59ca3042.ab767ee5.css"
[GIN] 2024/05/11 - 16:49:06 | 304 | 40.575µs | 192.168.251.1 | GET "/koko/assets/css/chunk-b2e8c66c.35a0afea.css"
[GIN] 2024/05/11 - 16:49:06 | 304 | 28.161µs | 192.168.251.1 | GET "/koko/assets/js/chunk-59ca3042.082ca1bf.js"
2024-05-11 16:49:06 [DEBU] Ws client send heartbeat success
[GIN] 2024/05/11 - 16:49:06 | 304 | 53.409µs | 192.168.251.1 | GET "/koko/assets/js/chunk-b2e8c66c.7031860e.js"
[GIN] 2024/05/11 - 16:49:06 | 304 | 40.413µs | 192.168.251.1 | GET "/koko/assets/css/chunk-cb23676e.5fcdb3ed.css"
[GIN] 2024/05/11 - 16:49:06 | 304 | 33.589µs | 192.168.251.1 | GET "/koko/assets/js/chunk-2d207f44.7cfe5d0b.js"
2024-05-11 16:49:07 [INFO] Ws[01ff3587-a284-4ac9-a187-b4b9cef59354] enter
[GIN] 2024/05/11 - 16:49:07 | 304 | 48.991µs | 192.168.251.1 | GET "/koko/assets/js/chunk-cb23676e.4caa2da4.js"
2024-05-11 16:49:07 [ERRO] Ws[01ff3587-a284-4ac9-a187-b4b9cef59354] read message err: websocket: close 1006 (abnormal closure): unexpected EOF
2024-05-11 16:49:07 [INFO] Ws[01ff3587-a284-4ac9-a187-b4b9cef59354] read message done
2024-05-11 16:49:07 [INFO] Ws[01ff3587-a284-4ac9-a187-b4b9cef59354] done with exit websocket: close 1006 (abnormal closure): unexpected EOF
[GIN] 2024/05/11 - 16:49:07 | 200 | 156.318302ms | 192.168.251.1 | GET "/koko/ws/terminal/?disableautohash=false&token=70bb9a57-16fe-4f3b-8a59-6e9e6b7907b0&
=1715417345763"
2024-05-11 16:49:07 [INFO] Ws[01ff3587-a284-4ac9-a187-b4b9cef59354] leave
2024-05-11 16:49:07 [INFO] Ws[01ff3587-a284-4ac9-a187-b4b9cef59354] end send message
[GIN] 2024/05/11 - 16:49:08 | 200 | 47.668µs | 127.0.0.1 | GET "/koko/health/"

@vyunwei
Copy link
Author

vyunwei commented May 11, 2024

补个koko日志 上半部分是可以成功的账号,下半部分是done with exit websocket: close 1006 错误的账号

@BaiJiangJie
Copy link
Member

BaiJiangJie commented May 12, 2024

用户角色授权时给的用户角色,提交确认后在查看角色变成系统审计员

这个问题,我们要优先验证一下。
@jym503558564

@BaiJiangJie
Copy link
Member

Web 方式连接提示 WS 失败的问题,有什么规律吗?多测试一下,看看怎么样可以稳定复现。@vyunwei

@BaiJiangJie
Copy link
Member

暂时没有复现问题,如果你能稳定复现,reopen issue,到时候我们远程看一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants