CAST Management Studio - Launching CAST MS - Fatal Error - Internal error occurred - The application is closing - The delivery folder is already set

Description

Following error is encountered while updating License of CAST MS using CLI CAST-MS-CLI.exe

Internal error occurred.
The application is closing. Call CAST support now providing the log file at C:\Users\XXXX\AppData\Local\Temp\2\CAST\CAST\7.3\CAST-MS1.log.txt
com.castsoftware.java.MessageRuntimeException:Internal error occurred.

The application is closing. Call CAST support now providing the log file at C:\Users\125565\AppData\Local\Temp\2\CAST\CAST\7.3\CAST-MS1.log.txt
com.castsoftware.java.IOMonitor.fail(IOMonitor.java:252)
com.castsoftware.java.IOMonitor.throwGeneralError(IOMonitor.java:194)
com.castsoftware.mda.run.ConfiguredApplication$2.call(ConfiguredApplication.java:251)
com.castsoftware.mda.run.ConfiguredApplication$2.call(ConfiguredApplication.java:1)
com.castsoftware.util.logger.Logging.execute(Logging.java:491)
com.castsoftware.util.logger.Logging.runInNewContext(Logging.java:383)
com.castsoftware.mda.run.ConfiguredApplication.run(ConfiguredApplication.java:227)

The delivery folder is already set.
com.castsoftware.mda.validations.ValidationException:The delivery folder is already set.
com.castsoftware.mda.validations.ValidationQuery.(ValidationQuery.java:44)
com.castsoftware.mda.validations.ValidationQuery.(ValidationQuery.java:55)
com.castsoftware.mda.transactions.SectionAction.runInternal(SectionAction.java:37)
com.castsoftware.mda.transactions.Section.runInTransaction(Section.java:192)
com.castsoftware.mda.transactions.Section.run(Section.java:137)

Return value: 1000

Observed in CAST AIP

ReleaseYes/No
8.3.x

Observed on RDBMS

RDBMSYes/No
CSS

Step by Step Scenario

Try to set the Management Service schema license key with command as shown below:
CAST-MS-CLI.exe ConfigurePlatformPreferences -connectionProfile "xxxxx_mngt on CastStorageService _ YYYXXX:2280" -licenseKey "xxxxx" -sourceDeliveryFolder "C:\CAST\Delivery"
-sourceDeploymentFolder "C:\CAST\Deploy" -logRootPath "C:\CAST\Log"

Action Plan

The command mentioned in step by step scenario, is used to set the License as well as Delivery and Deployment Folder of CAST MS.

The error in question is encountered if the Deliver and Deployment folder is already set.
Since delivery and deployment folder is already set, so the solution is to

  1. Only update the license and not delivery and deployment folder with below comment.

CAST-MS-CLI.exe ConfigurePlatformPreferences -connectionProfile “” -licenseKey “


**Impact on Analysis Results and Dashboard**

Impact of error : License key is not set  
Impact of solution: None

**Notes/comments**

Reference ticket - 2985

**Related Pages**