Agile PLM: Agile PLM 9.3.1.2主程序升级失败的一个案例

来源:互联网 发布:矩阵潜袭有手机 编辑:程序博客网 时间:2024/05/18 20:07

文章主题

有一客户,9.3.1.2升级database已经成功,当升级Application主程序时,一直报“patch_install_log.properties doesn't exist”错误。

错误提示

错误提示Patch-Installer.xml的482行有个Replace方法的错误。查看该行:

patch_install_log.properties在此处做一次文件分隔符的转换,但此时该文件不存在。是什么原因导致文件不存在,继续分析。

日志文件

9.3.1.2_Install.dbg 日志显示如下

setVariables:[available] Unable to find C:\Agile_2\Agile931\agileDomain\applications\application.ear[available] Unable to find C:\Agile_2\Agile931\agileDomain\applications\webfs.war[available] Unable to find C:\Agile_2\Agile931\agileDomain\applications\webdav.war[available] Unable to find C:\Agile_2\Agile931\integration\sdk\lib\AgileAPI.jar[available] Unable to find C:\Agile_2\Agile931\AgilePharma\applications\AgilePharma.ear[available] Unable to find C:\Agile_2\Agile931\AgileProxies\iisproxy.dll[available] Unable to find C:\Agile_2\Agile931\changecast\ChangeCAST.exesetVariables:  duration 0 secondsreadConfig:[available] Unable to find C:\Agile_2\Agile931\Install\config\agile_api.cfg to set property exists.api.file[available] Unable to find C:\Agile_2\Agile931\Install\config\agile_dfm.cfg to set property exists.dfm.file[available] Unable to find C:\Agile_2\Agile931\Install\config\agile_cc.cfg to set property exists.cc.file[available] Unable to find C:\Agile_2\Agile931\Install\config\agile_ws.cfg to set property exists.ws.file[available] Unable to find C:\Agile_2\Agile931\Install\config\agile_pharma.cfg to set property exists.pharma.file[available] Unable to find C:\Agile_2\Agile931\Install\config\agile_app.cfg to set property exists.app.file

表明C:\Agile_2\Agile931 似乎不是AgileHome的根目录,因为连application.ear以及大量的cfg文件都不存在。patch_install_log.properties的产生,是读取每个cfg文件而来的。

再分析为什么这些动态文件不存在。

AgileHome定义

拿agile_api.cfg来举例,看他的路径是从哪里来的,一层层往上层找到最初定义。 先找到agile_api.cfg

再找到PRODUCT_HOME

最后我们去找AgileHome,发现它是根据不同的操作系统从文件中读取而来

最终问题

在windows上,找到C:\Program Files\Agile\agilehome文件,打开后,发现其AgileHome目录已经被人为修改指向错误的C:\Agile_2\Agile931 正确的举例如下:

AgilePLMVersion=9.3.1AgileHome=D:\Agile\Agile931

原创粉丝点击