Description: When running the asg-tools configuration migration command (asg-tools -u migrate-config -cc C:\ProgramData\TIBCO_HOME\tibco\cfgmgmt\asg.bak\asg -dc C:\ProgramData\TIBCO_HOME\tibco\cfgmgmt\asg -sv 2.1) from APIX 2.1.0 to APIX 2.2.0, it fails with the following error.
java.io.FileNotFoundException: C:\ProgramData\TIBCO_HOME\tibco\cfgmgmt\asg\APIExchange\ErrorMap.cfg (Access is denied)
Symptoms: The following error message is reported.
Using property file: c:\tibco\asg\2.2\bin\asg-tools.tra
ASG configuration home directory is C:/ProgramData/TIBCO_HOME/tibco/cfgmgmt/asg
Migrating-config....
java.io.FileNotFoundException: C:\ProgramData\TIBCO_HOME\tibco\cfgmgmt\asg\APIExchange\ErrorMap.cfg (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1139)
at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1428)
at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1426)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1389)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1310)
at com.tibco.asg.tools.standalone.MigrateASG.createDir(MigrateASG.java:61)
at com.tibco.asg.tools.standalone.ASGToolMain.main(ASGToolMain.java:107)
Migration failed
Cause: The user does not have write permissions to the new configuration folder.