How to troubleshoot Vault Background Upgrade Process - In Version 14.0 and above

How to troubleshoot Vault Background Upgrade Process - In Version 14.0 and above

91
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 16:08 PM


Objective


This KB article provides a comprehensive guide for verifying the success of a Vault database upgrade in a background mode and addressing potential issues encountered during the process.

1. In the Italog.log We will receive the following message:
ITADB491W Upgrading the database in background mode was not started or is in progress.

2. When We Check the CAVaultManager log for more information we will see.
log has 57 successful steps of the non-background upgrade (first part).
From the time that the customer did the initial upgrade to 14
07/03/2024 22:01:37 CAVLT197I Performing step 50 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 51 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 52 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 53 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 54 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 55 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 56 of 57...
07/03/2024 22:01:37 CAVLT197I Performing step 57 of 57...
07/03/2024 22:01:37 CAVLT223I Performing post DB upgrade steps...
07/03/2024 22:01:37 CAVLT197I Performing step 1 of 1...
07/03/2024 22:01:38 CAVLT1013I The first part of the database upgrade has successfully completed. The second part of the upgrade will run in the background to reduce Vault downtime.

3. log does not show any log messages from running the continuance of background upgrade


Environment


14.0 Privileged Access Manager (PAM, self-hosted) Vault

Procedure


First step – verify
 
1. Verify again that the first part of the upgrade is all good, and that the second background upgrade has not run and will not run automatically”
  • Compare the customer schema to the version 14 schema (from the lab) and see that the only difference is an additional 4 audit tables in the customer schema:
vault_safes_log_target_bk
vault_users_log_target_bk
vault_users_log_background
vault_safes_log_background
  • Generate diagnoseDBReport Command to show schema:
For example:
cavaultmanger diagnoseDBReport /includeSchema >report.txt
  • Also, see in
Utilize diagnoseDbReport to verify ca_vault.vault_system.iVaultDBStatus, which should be 6.
(We don't need a DBScript, it is in the report output)

Important Note: The upgradedb /background mode process takes the configuration of the padr.ini into consideration. If you're upgrading a Primary which has DR installed, please confirm FailoverMode=Yes, otherwise it will think it's in a DR state and fail the background mode process. Will give you a message like this: 
11/09/2024 11:22:01 CAVLT1036I This Vault might be considered a Disaster Recovery Vault.

Change FailoverMode=Yes and then run: CAVaultManager UpgradeDB /backgroundmode /PrimaryNode
 
2.Check Scheduled Task:
  • Open Task Scheduler by pressing WinKey + R and running taskschd.msc.
  • Determine if cavaultmanager upgradeDB /backgroundmode is listed. Restart the system if present.
 
Second step – action
  1. If customer schema is not in order – then we need to investigate further (until now, we did not see such a customer case) if customer schema is the same as lab schema (except for 4 tables above), then continue:
  2. If iVaultDBStatus != 6 – then we need to investigate further (until now, we have not seen such a customer case) if iVaultDBStatus = 6 then continue:
    1. For versions 14.2.2+ and 14.6.1+ the iVaultDBStatus can be set to either 6 or 7 and still proceed.
  3. If the scheduled tasks list has the above command – instruct the customer to restart
  4. If the scheduled tasks list does not have the above command – instruct the customer to
  • Open the command line, cd to the vault installation folder, and run the following command: 
Cavaultmanager upgradeDB /Backgroundmode
Follow up
  1. Review cavaultmanager.log – see messages that the background upgrade started:

    CAVLT1014I Starting the database upgrade in the background
  2. After a day - review again, and make sure the background upgrade has ended successfully:
    • Cavaultmanager.log - See that 17 steps have ended successfully in cavaultmanager.log and successful overall upgrade.
    • italog. - see  ITADB492I Upgrading the database in background mode was successfully completed.
    • diagnosedbreport- see vault_system.iVaultDBStatus value is  2
  3. If we want to investigate why the background upgrade did not run, in the first place, check:
    • Windows Event Viewer (System) – was the machine restarted after the upgrade?
      if no – we have the reason (The customer needs to restart the Vault Machin).


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001S3vCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail