CU4 installation hangs in execution of webappsPreInstaller.bat
search cancel

CU4 installation hangs in execution of webappsPreInstaller.bat

book

Article ID: 254991

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

Installation of CU4 patch on Domain Manager hangs. In preinstall.log following error appears :

"Unable to delete the directories wac or AMS or pmengine or ItcmRestServer. Wait continues until the folders deleted manually... [Wait interval 30 Seconds]"
"Unable to delete the directories wac or AMS or pmengine or ItcmRestServer. Wait continues until the folders deleted manually... [Wait interval 30 Seconds]"
"Unable to delete the directories wac or AMS or pmengine or ItcmRestServer. Wait continues until the folders deleted manually... [Wait interval 30 Seconds]"
"Unable to delete the directories wac or AMS or pmengine or ItcmRestServer. Wait continues until the folders deleted manually... [Wait interval 30 Seconds]"

Environment

Client Automation 14.5

Cause

In preinstall.log there are these lines :

"Deleting wac folder ... "
[Operation] Folder delete
[Path] D:\CA\DSM\\Web Console\\webapps\\wac
remove_readonly() takes 2 positional arguments but 3 were given
Folder delete status: False
"wac folder deleted succesfully "

"Deleting AMS folder ... "
[Operation] Folder delete
[Path] D:\CA\DSM\\Web Console\\webapps\\AMS
remove_readonly() takes 2 positional arguments but 3 were given
Folder delete status: False
"AMS folder deleted succesfully "

 

Deletion of folders D:\CA\DSM\Web Console\webapps\wac and D:\CA\DSM\Web Console\webapps\AMS were not successfull.

Maybe a running process are still locking some files inside these directories.

Resolution

1- Stop caf
caf stop
caf kill all
 
2- Make sure with Windows Task Manager there is no more running process java.exe with command line like :
 
"C:\Program Files (x86)\CA\SC\JRE\1.8.0_212\bin\java.exe" -Xrs -Dfile.encoding=utf8 -Xms128m -Xmx256m -XX:MaxPermSize=256m -classpath "C:\Program Files (x86)\CA\SC\Tomcat\8.5.56\bin\bootstrap.jar";"C:\Program Files (x86)\CA\SC\Tomcat\8.5.56\bin\tomcat-juli.jar" -Dcatalina.base="C:\Program Files (x86)\CA\DSM\Web Console" -Dcatalina.home="C:\Program Files (x86)\CA\SC\Tomcat\8.5.56" -Djava.io.tmpdir="C:\Program Files (x86)\CA\DSM\Web Console\temp"  -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager  -Djava.util.logging.config.file="C:\Program Files (x86)\CA\SC\Tomcat\8.5.56\conf\logging.properties"   org.apache.catalina.startup.Bootstrap start
 
 
https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=mpzonBTbaurGperpDvERmw==
 
 
Otherwise kill it.
 
 
3- Recyle IIS :
iisreset
 
4- Delete manually the 2 folders 
 
CA\DSM\Web Console\webapps\wac
CA\DSM\Web Console\webapps\AMS
 
5- Try again to apply the patch CU4