Patching of 6.0.2-1 is failing while running upgrade.sh script.
ERROR [upgrade.main.UpgradeCli] 11/19/2020 10:41:01.577 - Automic Automation Intelligence upgrade has terminated prematurely. For details, please look at the log files in the install/log directory.
/<install dir>/jaw/JAWS_INSTALLER/AAI_6_0_2-1/install/build.xml:333: Problem creating TAR: /<install dir>/batch/examples/.jython_cache/packages/dnsns$8.pkc (Permission denied)
Release : 6.0.2
Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE
The user running the upgrade did not have the permissions to create files within /<install dir>/batch/examples/.jython_cache/packages/dnsns$8.pkc
/<install dir>/batch/examples/.jython_cache/packages/dnsns$8.pkc is a temp directory used during the upgrade/install to unpack files for the CLI.
Set "chmod -R 755 /<install dir>/batch/examples/" to ensure user had writes to create files under the examples directory.
Ran the upgrade again it was successful.