Unable to update Spectrum content by using spectrum-wkp-update.bat on BOXI machine because of "Access is denied" error.

Document ID : KB000049286
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

If OneClick and BOXI are installed on the same machine, the Spectrum-wkp-update.bat throws "Access is denied" error and won't update Spectrum content.

Root Cause:

When updating Spectrum content on CABI machine, the spectrum-wkp-update.bat script takes the backup of below files and replaces them with latest ones downloaded from the OneClick server. If these files have read-only flag on or the file ownership is wrong, then spectrum-wkp-update.bat script cannot update these files and throws "Access is denied" error.

CommonReporting3\BusinessObjects Enterprise 12.0\java\applications\SpectrumCustomParams.war
CommonReporting3\deployment\apps\SpectrumCustomParams.properties
CommonReporting3\cacaf\spectrum-custom-params.xml

The other reasons for this error can be either:

  • Another user has encrypted the file or the user account configuration has changed.
  • The spectrum-wkp-update.bat is configured to run under the context of another account that is not a member of the admin group.
  • Another program is using same files

Solution:

Make sure that read-only flags are not set on the following files. Also make sure that the file ownership is correct for these files.

CommonReporting3\BusinessObjects Enterprise 12.0\java\applications\SpectrumCustomParams.war
CommonReporting3\deployment\apps\SpectrumCustomParams.properties
CommonReporting3\cacaf\spectrum-custom-params.xml

After correcting the file permissions/ownership, the spectrum-wkp-update.bat script runs successfully. If correcting the file permissions/ownership did not solve the problem, move the above listed files to a backup directory and then run the update script again.