How do you re-create the Spotfire Data Virtualization Default Cache database?

book

Article ID: KB0135679

calendar_today

Updated On:

Products Versions
Spotfire Data Virtualization Software All supported versions

Description

This article provides details on how to re-create the Spotfire Data Virtualization(SDV) default cache database. It can be useful in situations where the default cache metadata is missing, out of sync, or inaccessible:

  • Accidental Deletion of the Default Cache Data Source: An administrator or privileged user inadvertently deletes the Default Cache data source under the system or shared resources tree.

  • Corrupted or Missing Cache Metadata After Migration or Restore: During a major server upgrade, CAR import/export, or environment migration, the Default Cache data source metadata fails to link properly or is absent entirely.

  • Cache Target Errors on Published Views: Views configured to use the default cache fail at runtime or during refresh jobs with errors such as Cache data source not found, Datasource does not exist, or unable to resolve target database connections.

  • Underlying Cache Database Re-initialization: The underlying PostgreSQL default cache database was re-initialized, moved, or reset, but TDV Studio fails to register or interact with the default cache resource.

  • Differentiating from Re-Introspection: When the default cache data source definition itself is missing or corrupted, introspecting it will fail; recreating the data source restores the parent resource object

Environment

All supported Operating Systems

Resolution

Follow below steps - 

(1) Open SDV Studio, navigate to Administration tab > Configuration > Server > Configuration > Debugging > Cache > 'Re-Create Default Cache Datasource On Server Startup' > set to true. Click Apply to save the changes. 

Screenshot of the configuration for reference : 

image.png

(2) Restart SDV Server services. 

(3) After logging back in Studio, navigate to /lib/sources/defaultCacheDataSource, and you will see the tables that are existing in the default cache data source, however the data will be wiped out. 

Screenshot of the default cache db path for reference : 

image.png

Note - 

- Information regarding this configuration : 

Defaults to "false". When "true", the server will re-create the Default Cache Datasource on server startup, the value will be reset to "false" by the server after recreating the datasource.

This value is locally defined. It will not be altered when restoring a backup and will not be replicated in a cluster.

- The data in the default cache db tables and cache management tables (csstatus and cstracking) will be wiped out.  

- If this server is part of a cluster, this process must be evaluated and executed individually on any other node experiencing the issue, as the setting does not replicate across the cluster. 

Issue/Introduction

How do you re-create the Spotfire Data Virtualization Default Cache database?