TIBCO Spotfire Server upgrade may fail with the error message "Error writing database connection configuration to output stream:(Access is denied)"

TIBCO Spotfire Server upgrade may fail with the error message "Error writing database connection configuration to output stream:(Access is denied)"

book

Article ID: KB0071829

calendar_today

Updated On:

Products Versions
Spotfire Server All

Description

Upgrading the TIBCO Spotfire Server may fail with the following error message in Spotfire upgrade tool box: 

Upgrade failed
Upgrading database.
Replacing configuration 46f2dca45941bbd1c8b11759610a429cf5a5b45d ('Created when upgrading to
10.4.0' ,set on 2019-10-10 09: 43: 42. 0)with configuration 46f2dca45941bbd1c8b 11759 610a429cf5a5b45d
Successfully upgraded the database to TIBCO Spotfire Server 10.4.0 format.
Upgrading files.
Unable to create bootstrap.xml file.
com.spotfire.server.config.tool.CommandException: Error writing database connection configuration to output stream:
C: tibco\tss\10.4.0\tomcat\webapps\spotfire\WEB-INF\bootstrap.xml (Access is denied)
    at
com.spotfire.server.config.tool.BootstrapCommand.createBootstrapConfigDescriptor (BootstrapCom
mand.java: 488) ?:?]
    at
com.spotfire.server.tools.upgrade. UpgradeHanager.createBootstrapConfiguration(UpgradeManager.
java: 1455) [2:2]
    at
com.spotfire.server.tools. upgrade. UpgradeHanager.doFilesUpgrade (UpgradeHanager.java: 392)
at com.spotfire.server.tools.upgrade. UpgradeManager.execute (UpgradeManager.java: 284)
    at
com.spotfire.server.tools. upgrade.steps. ExecuteUpgradeStep. doUpgrade (ExecuteUpgradeStep.java:
102) [?:]
    at
com.spotfire.server.tools.upgrade.swing. ExecuteUpgradeStepViewSExecuteUpgrade.do InBackground (
ExecuteUpgradeStepView.java: 192) [?:?]



 

Resolution

This error occurs when calling the bootstrap configuration during the upgrade.
To resolve the issue, ensure that the user account running upgrade tool has access to <Spotfire server installation directory>\tomcat\webapps\spotfire\WEB-INF\bootstrap.xml file and also make sure to run the Upgrade tool as Administrator.
 

Issue/Introduction

This article will help you resolve the issue if you encounter such error message during the upgrade procedure.

Additional Information

Doc: Running the Spotfire Server upgrade tool interactively