Database corruption error during post install of Spectrum
search cancel

Database corruption error during post install of Spectrum

book

Article ID: 121475

calendar_today

Updated On:

Products

Spectrum Network Observability

Issue/Introduction

During post-install on a Spectrum upgrade, the installation stopped with a corrupt db error in the post install log:

Migration file dbsavefile.SSdb was not found or is not readable.
Backing up catalog and models to db_20181120,1.SSdb ERROR:
This application has been started using a Spectrum database which was not gracefully closed.
The application will now shut down to allow you to load and initialize a previously-saved good database.
SPC-DBS-20095: SSdbsave Error: Unable to open database.
** Error during backup to db_20181120,1.SSdb <user>@xxxxxx

During an upgrade to 25.4.10 from 25.4.4 the install errored out saying the SSdb was not gracefully closed. I tried to restore a backup (ssdbload -il) and get the following error

[root@<HostName> SS]# ../SS-Tools/SSdbload -il ../SS-DB-Backup/db_20260603_2000.SSdb
SPC-DBS-23007: This save file cannot be loaded by version 25.4.10.000 of Spectrum.
It was saved as version 25.4.4.000 .
[root@<HostName> SS]#

Environment

All supported Network Observability DX NetOps Spectrum Fault Management releases

Cause

Install steps that didn't complete successfully left a broken database. Possible cause is Spectrum processes left running during the upgrade run.

Resolution

There are two solution options. The first depends on the availability of a functional server snapshot or backup to restore to from before the failed upgrade. The second is a manual process if a backup is not available.

 

Solution using a pre-upgrade failure system backup for restoration.

If this is a VM and a snapshot was taken before running the upgrade:

    1. Reload the snapshot image
    2. Ensure there are no issues with the SpectroSERVER database by starting the SpectroSERVER and ensuring it activates 100%.
    3. If the SpectroSERVER fails to activate, reinitialize with a recent database save and retest.
    4. After verifying the SpectroSERVER database is good, shutdown the Spectrum processes and rerun the upgrade.
      1. Ensure all Spectrum processes are stopped before running the upgrade again.

 

Solution where no system backup is available for restoration.

If this is not a VM or if it is a VM but there is no snapshot from before running the upgrade:

    1. Remove the *.ix and *.db files from the $SPECROOT/SS directory.
      1. Delete the files or move them to an alternative location.
    2. Locate a recent SSdb database save from the previous version
      1. If compressed, decompress the SSdb database save file
      2. Rename the uncompressed SSdb database save file to dbsavefile.SSdb
      3. Copy the dbsavefile.SSdb file to the $SPECROOT/SS directory
    3. Run the upgrade again.
      1. The Spectrum installation process looks for a file named dbsavefile.SSdb in the $SPECROOT/SS directory and if found, will run a migration of that database.
      2. Reference the "Migrate and Upgrade on Linux" section of the documentation for more information on using the dbsavefile.SSdb