热搜词
发表于 2024-2-11 13:15:29 | 显示全部楼层 |阅读模式
泛微E10运维管理平台安装E10主应用服务提示合并war包失败,没生成target目录
系统环境:
服务器:Ubuntu 22.04.3 LTS
泛微ECOLOGY运维管理平台:
V5.0.6.020230917-RC

错误提示:
泛微E10运维管理平台安装“E10”服务时,在合并war包过程中很长时间,最终提示“合并war包失败”,如图:

02-合并war包失败.png

E10安装程序执行过程分析:
1.在E10主服务安装过程中,首先解压/e-monitor/ecology/tools/目录中e10-allinone-tools-latest.zip、ansible-nacos-1.4.2.zip两个工具包到/e-monitor/package/目录中,如图:
00-package.png

2.然后再解压 /e-monitor/ecology/project/ 目录中war包到 /e-monitor/package/e10-allinone-tools-latest/merge/xxxx-xx-xx-xx-xxxx/E10/src/ 目录中,如图:
03-生成src目录.png

3.war包解压完成后,接下来应该合并war微服务包,生成E10_web发布文件,并且保存至 /e-monitor/package/e10-allinone-tools-latest/merge/xxxx-xx-xx-xx-xxxx/E10/target/ 目录内,但是运行到此处时失败,并没有生成/target/目录和文件件,接下来我们来分析相关日志文件,分析失败原因。

相关日志分析:
查看 /opt/e-monitor/package//logs/install.log 安装日志文件,发现执行到开始合并war包时,提示合并war包失败,日志如下:
  1. [2024-02-24 17:15:13] 配置文件推送完成...
  2. [2024-02-24 17:15:14] 开始合并war包...
  3. [2024-02-24 17:32:11] 合并E10.war,执行命令:
  4. bash startup.sh -clean -scan -scanProjects weaver-i18n-upgrade,weaver-relevance,weaver-component-upgrade,weaver-editor,weaver-excel-intelligent-import,
  5. ……,
  6. eteams-project,eteams-url,eteams-voice,open-api,open-server -mergeValidate false -mergeServiceName E10 -mergeTarget /opt/e-monitor/package/e10-allinone-tools-latest/merge/fa330b96-067b-40d1-84ea-3f2bc000a676/E10/target/E10 -package -packageWarName E10.war
  7. [2024-02-24 17:32:11] E10 合并结果:false
  8. [2024-02-24 17:32:11] 合并war包失败
  9. [2024-02-24 17:32:11] 安装完成,更新安装状态为5
复制代码

查看 /e-monitor/package/e10-allinone-tools-latest/logs/tools.log 日志文件,相关内容如下:
  1. [tools] [] [2024-02-24 17:32:06.325] [main] [INFO] [c.w.e.a.tools.ToolsApplication:55  ] - Starting ToolsApplication v1.0.0 using Java 1.8.0_201 on mq98864 with PID 70486 (/opt/e-monitor/package/e10-allinone-tools-latest/target/e10-allinone-tools.jar started by root in /opt/e-monitor/package/e10-allinone-tools-latest/bin)
  2. [tools] [] [2024-02-24 17:32:06.329] [main] [INFO] [c.w.e.a.tools.ToolsApplication:663 ] - The following profiles are active: upgrade,global,decompression,clean,init,validate,scan,analyze,merge,package,container,plugins,env
  3. [tools] [] [2024-02-24 17:32:08.901] [main] [INFO] [c.w.e.a.t.g.service.GlobalProperties:160 ] - The module : scan depend on modules: [INIT]
  4. [tools] [] [2024-02-24 17:32:11.286] [main] [ERROR] [com.zaxxer.hikari.pool.HikariPool:594 ] - HikariCP-Model - Exception during pool initialization.
  5. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

  6. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  7.         at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
复制代码
日志.png
其中相关报错信息如下 :
[ERROR] [com.zaxxer.hikari.pool.HikariPool:594 ] - HikariCP-Model - Exception during pool initialization.
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

此处安装过程如果顺利的话,日志如下图:

正确日志.png

原因分析及解决方法:

根据tools.log日志错误信息,分析可能是现有的/e-monitor/ecology/tools/e10-allinone-tools-latest.zip 工具包与ubuntu 22.04 不兼容,改用另一个大小为44.9MB工具包替换安装即可。也可能是ansible-2.9.17没有正确安装造成的。

相关文件:
Spring Boot、maven、nacos、Dubbo等程序的配置文件:
/opt/e-monitor/package/e10-allinone-tools-latest/conf/application.properties
/opt/e-monitor/package/e10-allinone-tools-latest/conf/application-env.properties
/opt/e-monitor/package/e10-allinone-tools-latest/conf/application-global.properties
/opt/e-monitor/package/e10-allinone-tools-latest/conf/application-merge.properties
/opt/e-monitor/package/e10-allinone-tools-latest/conf/application-scan.properties
/opt/e-monitor/package/e10-allinone-tools-latest/conf/maven-settings.xml
/opt/e-monitor/nacos/DEFAULT_GROUP/
/opt/e-monitor/e-monitor-robot/netty.properties

已合并的E10.war包解压后相关文件:
/E10/webapps/ROOT/WEB-INF/classes/allinone-merge-metadata.properties  
/E10/webapps/ROOT/WEB-INF/lib/dubbo-2.7.15.weaver.20230224.jar
/E10/webapps/ROOT/META-INF/maven/com.weaver/e10-allinone-boot-starter/pom.xml

全部评论2
灰儿 发表于 2024-2-12 09:17:31 | 显示全部楼层
http://www.admin365.cn/thread-112708-1-1.html  泛微E10运维平台安装E10服务合并war包失败,没生成E10.war包

回复

使用道具 举报

回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2024-12-26 20:41 , Processed in 0.169971 second(s), 29 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2024 Discuz! Team