When upgrading AAI on Windows from 24.x to 24.2.x or 24.3.x the upgrade may fail the error below in the <Upgrade Dir>\install\upgrade.log
Exception in thread "main"<Upgrade Dir>\AAI_Upgrader.Windows_24_3_0-hf.1.build.251015210622\install\build.xml:434: Failed to copy <Upgrade Dir>AAI_Upgrader.Windows_24_3_0-hf.1.build.251015210622\files\config\webswing-server.war to <Install Dir>\config\webswing-server.war due to <Install Dir>\config\webswing-server.war (Access is denied) and I couldn't delete the corrupt <Install Dir>\config\webswing-server.war
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:637)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at com.termalabs.upgrade.main.UpgradeCli.main(UpgradeCli.java:194)
Caused by: java.io.FileNotFoundException: <Install Dir>\config\webswing-server.war (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:184)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:631)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:330)
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:626)
... 7 more
--- Nested Exception ---
java.io.FileNotFoundException: <Install Dir>\config\webswing-server.war (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)