CU Manager patch installation hang during execution of webappsPreinstaller
search cancel

CU Manager patch installation hang during execution of webappsPreinstaller

book

Article ID: 272726

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

During installation of CU patch on a Domain Manager, script webappsPreinstaller is first executed and its execution is taking very long time.
 
In preinstall.log there are lines like :
 
"Taking backup of required files of CIC Client and Manager..."
[Operation] File copy
[Source] D:\MN\CA\SC\CIC\\lib\\CACIC.jar
[Destination] D:\MN\CA\DSM\\backup\\CACIC.jar
File copy result: False
File copy status: False
[Operation] File copy
[Source] D:\MN\CA\SC\CIC\\lib\\CACICMPS.jar
[Destination] D:\MN\CA\DSM\\backup\\CACICMPS.jar
File copy result: False
File copy status: False
[Operation] File copy
[Source] D:\MN\CA\SC\CIC\\lib\\CACICStatus.jar
[Destination] D:\MN\CA\DSM\\backup\\CACICStatus.jar
File copy result: False
File copy status: False
 
 
In c:\windows\temp\pyFileOps.log there are lines like :
 
2023-08-28 11:47:51,451 [Operation] File copy
2023-08-28 11:47:51,451 [Source] D:\MN\CA\SC\CIC\\lib\\CACIC.jar
2023-08-28 11:47:51,451 [Destination] D:\MN\CA\DSM\\backup\\CACIC.jar
2023-08-28 11:47:51,451 [Errno 13] Permission denied: 'D:\\MN\\CA\\DSM\\\\backup\\\\CACIC.jar\\CACIC.jar'
2023-08-28 11:47:51,451 File copy result: False
2023-08-28 11:47:51,451 File copy status: False
2023-08-28 11:47:51,702 [Operation] File copy
2023-08-28 11:47:51,702 [Source] D:\MN\CA\SC\CIC\\lib\\CACICMPS.jar
2023-08-28 11:47:51,702 [Destination] D:\MN\CA\DSM\\backup\\CACICMPS.jar
2023-08-28 11:47:51,702 [Errno 13] Permission denied: 'D:\\MN\\CA\\DSM\\\\backup\\\\CACICMPS.jar\\CACICMPS.jar'
2023-08-28 11:47:51,702 File copy result: False
2023-08-28 11:47:51,702 File copy status: False
2023-08-28 11:47:51,950 [Operation] File copy
2023-08-28 11:47:51,950 [Source] D:\MN\CA\SC\CIC\\lib\\CACICStatus.jar
2023-08-28 11:47:51,950 [Destination] D:\MN\CA\DSM\\backup\\CACICStatus.jar
2023-08-28 11:47:51,950 [Errno 13] Permission denied: 'D:\\MN\\CA\\DSM\\\\backup\\\\CACICStatus.jar\\CACICStatus.jar'
2023-08-28 11:47:51,950 File copy result: False
2023-08-28 11:47:51,950 File copy status: False
2023-08-28 11:47:52,218 [Operation] File copy
2023-08-28 11:47:52,218 [Source] D:\MN\CA\SC\CIC\\lib\\CICManager.war
2023-08-28 11:47:52,218 [Destination] D:\MN\CA\DSM\\backup\\CICManager.war
2023-08-28 11:47:52,218 [WinError 5] Access is denied: 'D:\\MN\\CA\\DSM\\\\backup\\\\CICManager.war'
2023-08-28 11:47:52,218 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 11:48:22,233 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 11:48:52,237 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 11:49:22,243 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 11:49:52,255 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 11:50:22,265 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 11:50:52,276 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
...
2023-08-28 12:07:52,431 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 12:08:22,432 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 12:08:52,442 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]
2023-08-28 12:09:22,457 Unable to delete the file. Destination file is in use. Wait continues until close the file... [Wait interval 30 Seconds]

Environment

Client Automation 14.5

Cause

This problem occurs if disk for CU patch source files is not the same as disk of Client Automation installation
For example, source files was on disk C: (C:\CU6\99111823_CU6_Manager) and ITCM installation is on disk D (D:\MN\CA\DSM\)

The script webappsPreInstaller.bat should rename the directory <ITCM_PATH>\backup as <ITCM_PATH>\backup_xxx if it exists already and create an empty directory <ITCM_PATH>\backup

But as following command does not change the disk

cd %ITCMINSTDIR%

the backup directory is created under <SOURCE_PATH>

echo "ITCM installed location: %ITCMINSTDIR%"

cd %ITCMINSTDIR%

echo "Creating a directory with the name backup in %ITCMINSTDIR%"
IF EXIST "backup"  (
    echo "backup folder already exists."
    ren backup backup_%x%
    echo "backup folder has been renamed to backup_%x%"
)
mkdir  backup
IF EXIST "backup"  (
    echo "backup folder created successfully"
)

Resolution

The solution is to change in script webappsPreInstaller.bat command CD by CD /D

Example in CU6 webappsPreInstaller.bat script change the lines #40 and #191 like this :

cd %ITCMINSTDIR%
by
cd /D %ITCMINSTDIR%

and

 
cd %SOURCEDIR%
by
cd /D %SOURCEDIR%