泛微E10运维管理平台安装Ecology10应用服务提示合并war包失败,没生成E10.war包
服务器:Ubuntu 22.04.3 LTS
泛微ECOLOGY运维管理平台:
V5.0.6.020230917-RC
泛微E10运维管理平台安装“E10”服务时,在合并war包过程中很长时间,最终提示“合并war包失败”,如图:
E10安装程序执行过程分析:
1.在E10主服务安装过程中,首先解压/e-monitor/ecology/tools/目录中e10-allinone-tools-latest.zip、ansible-nacos-1.4.2.zip两个工具包到/e-monitor/package/目录中,如图:
2.然后再解压 /e-monitor/ecology/project/ 目录中war包到 /e-monitor/package/e10-allinone-tools-latest/merge/xxxx-xx-xx-xx-xxxx/E10/src/ 目录中,如图:
3.war包解压完成后,接下来合并war微服务包,生成E10_web发布文件,并且保存至 /e-monitor/package/e10-allinone-tools-latest/merge/xxxx-xx-xx-xx-xxxx/E10/target/ 目录内,如图:
接下来应该是把/e-monitor/package/e10-allinone-tools-latest/merge/xxxx-xx-xx-xx-xxxx/E10/target/E10 目录内的文件打包成E10.war包文件,保存在/e-monitor/package/e10-allinone-tools-latest/merge/xxxx-xx-xx-xx-xxxx/E10/target/目录内,然后再同步复制一份到/opt/e-monitor/ecology/project/merge/目录内,但是运行到此处时失败,相应目录内没有生成E10.war 文件,接下来我们来分析相关日志文件,分析失败原因。
相关日志分析:
查看 /opt/e-monitor/package//logs/install.log 安装日志文件,发现执行到开始合并war包时,提示合并war包失败,日志如下:- [2024-02-22 23:03:05] 配置文件推送完成...
- [2024-02-22 23:03:06] 开始合并war包...
- [2024-02-22 23:43:07] 合并E10.war,执行命令:
- bash startup.sh -clean -scan -scanProjects weaver-i18n-upgrade,weaver-relevance,weaver-component-upgrade,weaver-editor,
- ……,
- eteams-hr,eteams-prints-web,eteams-project,eteams-url,eteams-voice,open-api,open-server -mergeValidate false -mergeServiceName E10 -mergeTarget /opt/e-monitor/package/e10-allinone-tools-latest/merge/14085328-cd5e-45f5-af81-71b7477a710e/E10/target/E10 -package -packageWarName E10.war
- [2024-02-22 23:43:07] E10 合并结果:false
- [2024-02-22 23:43:07] 合并war包失败
- [2024-02-22 23:43:07] 安装完成,更新安装状态为5
复制代码 查看 /opt/e-monitor/package/e10-allinone-tools-latest/logs/tools.log 工具执行日志,相关内容如下:- [tools] [99672@mqcf024] [2024-02-22 23:43:06.376] [pool-2-thread-21] [INFO] [c.w.e.a.t.g.utils.CommandExecutor:19 ] - Start to exec command : sh /opt/e-monitor/package/e10-allinone-tools-latest/plugins/e10-allinone-techupgrade-tools-latest/bin/tools.sh -globalEnv release -globalProject E10 -globalLibPath /opt/e-monitor/package/e10-allinone-tools-latest/merge/14085328-cd5e-45f5-af81-71b7477a710e/E10/target/E10/WEB-INF/lib -globalTechOptions none -globalMergeJarFilePath /root/weaver/tools/bd75fc4b-d463-494d-a149-e97c3f313143.txt
- [tools] [99672@mqcf024] [2024-02-22 23:43:06.392] [pool-2-thread-21] [INFO] [c.w.e.a.t.g.utils.CommandExecutor:35 ] - Exec result(1) for command : sh /opt/e-monitor/package/e10-allinone-tools-latest/plugins/e10-allinone-techupgrade-tools-latest/bin/tools.sh -globalEnv release -globalProject E10 -globalLibPath /opt/e-monitor/package/e10-allinone-tools-latest/merge/14085328-cd5e-45f5-af81-71b7477a710e/E10/target/E10/WEB-INF/lib -globalTechOptions none -globalMergeJarFilePath /root/weaver/tools/bd75fc4b-d463-494d-a149-e97c3f313143.txt
- [tools] [99672@mqcf024] [2024-02-22 23:43:06.393] [pool-2-thread-21] [INFO] [c.w.e.a.t.g.utils.CommandExecutor:37 ] - Error log :
- [tools] [99672@mqcf024] [2024-02-22 23:43:06.393] [pool-2-thread-21] [INFO] [c.w.e.a.tools.runner.ToolsRunner:177 ] - 【☆☆☆☆☆Finish Module : merge(620901ms)(stage : 3, modules : [MERGE, PACKAGE], model : 0)☆☆☆☆☆】
- [tools] [99672@mqcf024] [2024-02-22 23:43:06.394] [pool-2-thread-21] [INFO] [c.w.e.a.tools.runner.ToolsRunner:224 ] - Total use time : 620903ms(stage : 3, modules : [MERGE, PACKAGE], model : 0)
- [tools] [99672@mqcf024] [2024-02-22 23:43:06.395] [main] [INFO] [c.w.e.a.tools.runner.ToolsRunner:97 ] - com.weaver.e10.allinone.tools.global.exception.BusinessException: command exec failed!
- [tools] [99672@mqcf024] [2024-02-22 23:43:06.396] [main] [INFO] [c.w.e.a.tools.runner.ToolsRunner:116 ] - System.exit : 1
复制代码
根据tools.log日志错误信息,得出是运行如下命令时出错:
/e-monitor/package/e10-allinone-tools-latest/plugins/e10-allinone-techupgrade-tools-latest/bin/tools.sh
此处tools.sh命令如果正确运行的话,日志如下图:
接下来手工运行如下tools.sh脚本命令:
- sh /opt/e-monitor/package/e10-allinone-tools-latest/plugins/e10-allinone-techupgrade-tools-latest/bin/tools.sh -globalEnv release -globalProject E10 -globalLibPath /opt/e-monitor/package/e10-allinone-tools-latest/merge/14085328-cd5e-45f5-af81-71b7477a710e/E10/target/E10/WEB-INF/lib -globalTechOptions none -globalMergeJarFilePath /root/weaver/tools/bd75fc4b-d463-494d-a149-e97c3f313143.txt
复制代码 结果显示提示找不到“.bash_profile”文件,中止了运行。
解决方法:
在用户/root目录下手工建立一个空的“.bash_profile”文件,再重装安装,问题已解决,如下图:
|
|