TIBCO Spotfire Web Player fails to start after enabling AllowAllFilePaths in service configuration

TIBCO Spotfire Web Player fails to start after enabling AllowAllFilePaths in service configuration

book

Article ID: KB0076809

calendar_today

Updated On:

Products Versions
Spotfire Web Player 7.9 and higher

Description

The TIBCO Spotfire Web Player instance fails to start after adding in the AllowAllFilePaths setting to allow the services access to all files paths for data sources. The following error is seen due to an invalid configuration:
 From nm.log  INFO 2018-01-19T15:19:07,694-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753: 01/19/2018 15:19:07 - 72b3f19e-5e8f-4242-8c6f-9a0d07366753 Failed to start worker. INFO 2018-01-19T15:19:07,695-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753: System.ArgumentNullException: Value cannot be null. INFO 2018-01-19T15:19:07,695-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753: Parameter name: source INFO 2018-01-19T15:19:07,695-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753:    at System.Linq.Enumerable.Cast[TResult](IEnumerable source) INFO 2018-01-19T15:19:07,695-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753:    at Spotfire.Dxp.Web.SystemInformation.GetWebApplicationInfo(Boolean addItems, Boolean onlyDocumentedFeatures, Boolean isAutomationServices, List`1 extraConfigItemsToAdd) INFO 2018-01-19T15:19:07,695-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753:    at Spotfire.Dxp.Worker.Host.WorkerHost.WriteCurrentConfigFile() INFO 2018-01-19T15:19:07,695-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753:    at Spotfire.Dxp.Worker.Host.WorkerHost.Run(String[] parameters) INFO 2018-01-19T15:19:07,697-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753: 01/19/2018 15:19:07 - 72b3f19e-5e8f-4242-8c6f-9a0d07366753 Application failed to start, see application log for more information. INFO 2018-01-19T15:19:07,731-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753: 01/19/2018 15:19:07 - 72b3f19e-5e8f-4242-8c6f-9a0d07366753 Shutting down service application. DEBUG 2018-01-19T15:19:07,996-0500 [] web.controller.NodeManagerInterceptor: Received request from nm78.nc.com for URL /spotfire. Will allow? true DEBUG 2018-01-19T15:19:07,998-0500 [] web.controller.RemoteController: Received ping request from tss78.nc.com ERROR 2018-01-19T15:19:08,129-0500 [] 72b3f19e-5e8f-4242-8c6f-9a0d07366753: 72b3f19e-5e8f-4242-8c6f-9a0d07366753 [WEB_PLAYER] process state switched to failure with exit value 4201
Here is the picture of how it looks through the UI:

                     User-added image


 

Issue/Introduction

This article resolves the issue of the TIBCO Spotfire Web Player failing to start after enabling the AllowAllFilePaths in the service configuration, which allows access to the paths used in analysis files.

Resolution

To resolve this issue, ensure to have both the "AllowedFilePaths" and "AllowAllFilePaths" settings in ‘Spotfire.Dxp.Worker.Host.exe.config’ file instead of just AllowAllFilePaths. Otherwise, the TIBCO Spotfire Web Player will not start due to the invalid configuration. 
 <setting name="AllowedFilePaths" serializeAs="Xml">         <value>           <ArrayOfString>             <string/>           </ArrayOfString>         </value>       </setting>   <setting name="AllowAllFilePaths" serializeAs="String">        <value>True</value>            </setting>     </Spotfire.Dxp.Data.Properties.Settings>

If only AllowAllFilePaths is present (AllowedFilePaths was removed when adding AllowAllFilePaths) then you will see the error described in this article. For further instructions on the setting, see the referenced KB article.

Additional Information

KB: 000029119 How to configure access to local and shared network directories for the TIBCO Spotfire Web Player