eDiscovery Platform 10.1.3 Upgrade Fails with a "[#81050] Error while deleting file or directory "D:\CW\V101\web\app\WEB-INF\lib\cxf-rt-security-3.4.4.jar" error

book

Article ID: 100053646

calendar_today

Updated On:

Description

Error Message

Reviewing the patches report from D:\CW\V101\patches\reports would show the error in more detail:

com.teneo.esa.cluster.upgrade.UpgradeException: [#80007] Unexpected exception encountered: [#81050] Error  while deleting file or directory "D:\CW\V101\web\app\WEB-INF\lib\cxf-rt-security-3.4.4.jar"
    at com.teneo.esa.cluster.upgrade.UpgradeException.unexpectedException(UpgradeException.java:165)
    at com.teneo.esa.cluster.upgrade.UpgradeManagerImpl.handleDeleteManifest(UpgradeManagerImpl.java:783)
    at com.teneo.esa.cluster.upgrade.UpgradeManagerImpl.patch(UpgradeManagerImpl.java:275)
    at com.teneo.esa.cluster.upgrade.UpgradeManagerImpl.patch(UpgradeManagerImpl.java:219)
    at com.teneo.esa.cluster.ClusterAdminTool.applyPatch(ClusterAdminTool.java:755)
    at com.teneo.esa.cluster.ClusterAdminTool.main(ClusterAdminTool.java:253)
    at com.teneo.esa.cluster.ClusterAdminTool.main(ClusterAdminTool.java:396)
    at com.teneo.esa.cluster.ClusterAdminTool.main(ClusterAdminTool.java:412)
Caused by: com.teneo.esa.common.exception.TeneoException: [#81050] Error  while deleting file or directory "D:\CW\V101\web\app\WEB-INF\lib\cxf-rt-security-3.4.4.jar"
    at com.teneo.esa.common.util.FileHelper.deleteFile(FileHelper.java:381)
    at com.teneo.esa.cluster.upgrade.UpgradeManagerImpl.handleDeleteManifest(UpgradeManagerImpl.java:761)
    ... 6 more

Cause

The issue occurs as the cxf-rt-security-3.4.4.jar file is in use by a Java process.

This can be confirmed by trying to delete the cxf-rt-security-3.4.4.jar file from D:\CW\V101\web\app\WEB-INF\lib as detailed in the patches report, which would confirm that the file is in use by a Java process. 

Resolution

Perform below steps to resolve the issue

1) Open Task Manger 

2) Right-click on the java or cwjava process

3) Select "End Task"

4) Restart the upgrade.

Issue/Introduction

Just after "Applying patch" stage starts, the eDiscovery Platform 10.1.3 upgrade fails with "Apply patch failed" error.