已解决 客户端无法显示禅道网页的问题

已看技术手册文档与社区,暂无法找到解决故障的方法,特来求助技术问答。

禅道桌面&IM客户端:v7.1(https://www.zentao.net/page/download-client.html下载的)

操作系统:Windows10

故障表现:

1.客户端可登录且能聊天但无法显示禅道网页(具体是先转了一会儿圈,然后就空白了),Win10 Edge可以显示,如下图:

2.XXD日志如下:

[I] 2023/05/31 11:16:43 XXD v7.1 Built at 2023-02-01 17:15:42 is running
[I] 2023/05/31 11:16:43 XXD runs the directory E:\ZenTao\bin\xxd
[I] 2023/05/31 11:16:43 ProgramName: xxd.exe, System: windows-amd64
[I] 2023/05/31 11:16:43 [InitWs] WebSocket start, listen addr: 0.0.0.0:11444 /ws
[I] 2023/05/31 11:16:43 Https enabled: Off
[I] 2023/05/31 11:16:43 Listen IP: 0.0.0.0
[I] 2023/05/31 11:16:43 Chat port: 11444
[I] 2023/05/31 11:16:43 Common port: 11443
[I] 2023/05/31 11:16:57 [serveWs] Client ip: 192.168.1.8:11336
[E] 2023/05/31 11:17:00 filePath log/ walk error: CreateFile log/: The system cannot find the file specified.
[E] 2023/05/31 11:17:31 The hub closed the channel
[I] 2023/05/31 11:17:31 read pump info: read tcp 192.168.1.8:11444->192.168.1.8:11336: use of closed network connection
[I] 2023/05/31 11:17:33 [serveWs] Client ip: 192.168.1.8:1113
[E] 2023/05/31 11:17:33 [AesDecrypt] decrypt failed, data: 

[E] 2023/05/31 11:17:33 AES decrypt error, Blocks entered are incomplete
[E] 2023/05/31 11:17:33 [ParseBackend] decrypt error: AES decrypt error, Blocks entered are incomplete
[E] 2023/05/31 11:17:33 [TransitData] request json data decrypt error: AES decrypt error, Blocks entered are incomplete
[E] 2023/05/31 11:17:33 Transit data error: AES decrypt error, Blocks entered are incomplete
[E] 2023/05/31 11:18:00 filePath log/ walk error: CreateFile log/: The system cannot find the file specified.

3.拖动客户端内左上角“地盘”图标到浏览器地址栏,得到地址“file:///E:/Users/AD/AppData/Local/Programs/zentaoclient/resources/app.asar/index.html?ENTRY=main&WIN_NAME=main-0&PARENT_WIN_NAME=#/exts/app/zentao-integrated”,显示如下:

无法访问您的文件

该文件可能已被移至别处、修改或删除。

ERR_FILE_NOT_FOUND
4.XXD与禅道配置匹配,具体xxd.conf配置如下:

[server]
ip = 0.0.0.0                   # 监听的IP地址,不要使用127.0.0.1。
commonPort = 11443             # 登录和附件上传接口(http),确保防火墙开放此端口。
chatPort = 11444               # 聊天消息通讯端口(websocket),确保防火墙开放此端口。
https = off                    # HTTPS(on|off)。使用HTTPS可以保证消息全程加密。
enableAES = 1                  # 与后端服务器通讯时的 AES 加密开关,1 为开启 0 为关闭。
enableClientAES = 1            # 是否启用与客户端通信时的 AES 加密。
enableCompression = 1          # 是否启用 websocket 和 http 通信压缩。
uploadPath = files/            # 附件保存的目录。默认存放在xxd/files/。
uploadFileSize = 20M           # 上传文件的大小,以M为单位。
pollingInterval = 60           # 轮询时间,单位为秒,最小值为 5。
maxOnlineUser = 0              # 在线用户上限,0为无限制。
logPath = log/                 # 程序运行日志的保存路径。
certPath = cert/               # 证书的保存路径。
debug = 0                      # Debug级别,可设置0|1|2
thumbnail = 1                  # 是否启用图片缩略图
syncConfig = 1                 # 与后端服务器同步配置信息,1 为开启 0 为关闭。开启后可能会丢失配置文件的注视。
stunPort = 3478

[backend]
# xxd可以对接多个后台程序。每一个后台程序由入口文件 + 私钥组成。
# 客户端登录时如果没有指定后台程序,会默认登录到第一个后台程序。
default = http://192.168.1.8/zentao/x.php,2keq1xxk0ycolpmc2rsl63dkedklb4wg

禅道服务器设置配置如下:

服务器设置

版本 7.1
是否打开
密钥 2keq1xxk0ycolpmc2rsl63dkedklb4wg
服务器端语言 简体
禅道服务器 http://192.168.1.8
轮询间隔 60秒
监听IP 0.0.0.0
客户端通讯端口 11444
通用端口 11443
上传文件大小 最大20M
服务端通信 AES 开启
HTTPS 不启用
调试功能 不启用
5.将地址“http://192.168.1.8/zentao/x.php,2keq1xxk0ycolpmc2rsl63dkedklb4wg”用Edge访问,也是空白。


禅道版本 18.3 Windows安装包
操作系统 Windows 8.1
客户端浏览器 其他

提问者: AAWW 悬赏:5 日期: 2023-05-31 11:26:43 答案:2 点击:915

获取技术支持

QQ: 电话:
设置备注
答案列表
2023/05/31

1、当前禅道是什么版本?

2、客户端下载的是喧喧客户端?还是禅道客户端?

咱们可以添加页面上方QQ,邀请进群后截图咨询下具体问题呢。

2023/05/31
好的,你们下班了,我明天上班再加,感谢~
2023/06/01
1.禅道版本:18.3。
2.是禅道客户端。
上述提供的信息就是截图了,而且纪录已经很详细了。
这只是我发现的bug。你看能否在论坛里解决。
加群有点麻烦,我还在给公司做调研,不方便加群。
2023/06/01

您好,关于禅道客户端访问聊天服务正常,禅道系统功能不正常的问题,可以参考以下步骤排查:

1.禅道后台-参数界面显示的版本,XXD版本,客户端版本有保持一致(提供的信息中已经是一致,可以忽略继续往下排查)

2.xxd.conf 配置文件中的debug开启(可以修改为1或者2),然后再次访问客户端,跟踪下xxd日志有没有更多输出

3.在浏览器手动访问排查时,对应的地址应该是http://192.168.1.8/zentao/x.php。

2023/06/01
1.确定一致,都是7.1。
2.我开到2,日志内容很多,我要出外勤了,估计明天才能分析日志了。
3.显示“使用管理员账号登录 并访问此页面。”
2023/06/02
关于xxd的日志,刚刚启动xxd时是这样的:
[I] 2023/06/02 09:14:15 XXD v7.1 Built at 2023-02-01 17:15:42 is running
[I] 2023/06/02 09:14:15 XXD runs the directory E:\ZenTao\bin\xxd
[I] 2023/06/02 09:14:15 ProgramName: xxd.exe, System: windows-amd64
[I] 2023/06/02 09:14:15 [Config] IP: 0.0.0.0
[I] 2023/06/02 09:14:15 [Config] ChatPort: 11444
[I] 2023/06/02 09:14:15 [Config] CommonPort: 11443
[I] 2023/06/02 09:14:15 [Config] IsHttps: 0
[I] 2023/06/02 09:14:15 [Config] Debug: 2
[I] 2023/06/02 09:14:15 [Config] UploadPath: E:/ZenTao/bin/xxd/files//
[I] 2023/06/02 09:14:15 [Config] UploadFileSize: 20971520
[I] 2023/06/02 09:14:15 [Config] LogPath: log/
[I] 2023/06/02 09:14:15 [Config] CrtPath: E:/ZenTao/bin/xxd/cert//
[I] 2023/06/02 09:14:15 [Config] MaxOnlineUser: 0
[I] 2023/06/02 09:14:15 [Config] Polling Interval: 60 seconds
[I] 2023/06/02 09:14:15 [Config] AES Enabled: 1
[I] 2023/06/02 09:14:15 [Config] Client AES Enabled: 1
[I] 2023/06/02 09:14:15 [Config] Compression Enabled: 1
[I] 2023/06/02 09:14:15 [Config] Thumbnail Enabled: 1
[I] 2023/06/02 09:14:15
[I] 2023/06/02 09:14:15 [CreateSignedCertKey] crtPath E:/ZenTao/bin/xxd/cert//xxd.exe.crt
[I] 2023/06/02 09:14:15 [CreateSignedCertKey] keyPath E:/ZenTao/bin/xxd/cert//xxd.exe.key
[I] 2023/06/02 09:14:15 [InitWs] WebSocket start, listen addr: 0.0.0.0:11444 /ws
[I] 2023/06/02 09:14:15 [AESEncrypt] origData: {"module":"im","method":"sysServerStart"}
[I] 2023/06/02 09:14:15 [RequestInfo] addr: http://192.168.1.8/zentao/x.php
[I] 2023/06/02 09:14:15 backend server status: 200
[I] 2023/06/02 09:14:15 [ParseJSON] {"result":"success","version":"18.3"}
[I] 2023/06/02 09:14:15 Https enabled: Off
[I] 2023/06/02 09:14:15 Listen IP: 0.0.0.0
[I] 2023/06/02 09:14:15 Chat port: 11444
[I] 2023/06/02 09:14:15 Common port: 11443
打开禅道客户端登录后多了很多日志,且有不少重复的,其中“[E] 2023/06/02 09:17:27 [AesDecrypt] decrypt failed, data: ”说的无法解密数据,前面我钥匙都对了,不然也无法登录,所以就似乎不是那个钥匙。我把[E]前后的截取过来,希望对排查有所帮助:
[E] 2023/06/02 09:15:00 filePath log/ walk error: CreateFile log/: The system cannot find the file specified.
[I] 2023/06/02 09:15:15 [AESEncrypt] origData: {"module":"im","method":"updatelastpoll"}
[I] 2023/06/02 09:17:27 [ParseClient] ["entry/visitRequest",["1w75gt5jmr8g0","visit",5,0,{"entryID":"zentao-integrated","referer":"http://192.168.1.8/zentao/"},6,0,"7.1"]]
[I] 2023/06/02 09:17:27 [switchMethod] API Method: entry/visit
[I] 2023/06/02 09:17:27 [TransitData] Server: default
[I] 2023/06/02 09:17:27 [AESEncrypt] origData: ["entry/visitRequest",["1w75gt5jmr8g0","visit",5,0,{"entryID":"zentao-integrated","referer":"http://192.168.1.8/zentao/"},6,0,"7.1"]]
[I] 2023/06/02 09:17:27 [RequestInfo] addr: http://192.168.1.8/zentao/x.php
[E] 2023/06/02 09:17:27 [AesDecrypt] decrypt failed, data:

[E] 2023/06/02 09:17:27 AES decrypt error, Blocks entered are incomplete
[E] 2023/06/02 09:17:27 [ParseBackend] decrypt error: AES decrypt error, Blocks entered are incomplete
[I] 2023/06/02 09:17:27 [TransitData] request json data:
[E] 2023/06/02 09:17:27 [TransitData] request json data decrypt error: AES decrypt error, Blocks entered are incomplete
[I] 2023/06/02 09:17:27 [AESEncrypt] origData: ["syserrorResponse",["1w75gt5jmr8g0",0,"syserror",0,0,1,null,0,"AES decrypt error, Blocks entered are incomplete",0]]
[E] 2023/06/02 09:17:27 Transit data error: AES decrypt error, Blocks entered are incomplete
[I] 2023/06/02 09:17:27 [ParseClient] ["messagesyncmissedRequest",["1w75gtsi6idc0","messagesyncmissed",1,0,[24],6,0,"7.1"]]
[I] 2023/06/02 09:17:27 [switchMethod] API Method: messagesyncmissed