Skip to main content
Question

Failed - Commserve upgrade 11.28. to 11.32 - DB Main Upgrade phase

  • February 28, 2025
  • 4 replies
  • 49 views

Forum|alt.badge.img+7

Hi Community,

I have cloned our production Commserve 11.28 (Network and Livesync disabled) and try to upgrade it to 11.32 before doing it directly on production.

But the installation process getting stuck on the phase “Performing Main Upgrade for the databases”.

 

Install.log

DatabaseUpgrade.log

Note: Sorry for the screenshots as i cannot do copy/paste.

Can anyone please suggest me how to solve this issue?

Thank you

4 replies

dude
Byte
Forum|alt.badge.img+15
  • Byte
  • 316 replies
  • February 28, 2025

I would start by looking this error “cannot insert duplicate key”.

How are you starting this upgrade? Are you logged in the console and selecting the CS there then pushing the upgrade software? I have never “cloned” an entire environment.

On the cloned machine, can you open Windows Explorer and browse the Cache directory and start the upgrade from there, instead of pushing it via CS COnsole?

Also, looking at the forum history, I found the post 

 which is similar to yours. I would look on the logs and find what duplicate entry the logs is reporting then perhaps renaming that as suggested on the post above.


Forum|alt.badge.img+7
  • Author
  • Byte
  • 37 replies
  • March 3, 2025

Hi ​@dude,

Thank you for the reply.

I am doing a manual install by executing the setup file from the full package downloaded by the download manager.

I have also tried the upgrade from the Cache directory, but the same issue persists.

As per your link, I don’t think it’s an username or password issue because the installation has successfully upgraded the other SQL files except the TM_Task.sql.


dude
Byte
Forum|alt.badge.img+15
  • Byte
  • 316 replies
  • March 3, 2025

When I pointed to the post, I meant for so for you to review the logs and see what the “duplicate entry” was if it actually shows you in the logs.


Forum|alt.badge.img+7
  • Author
  • Byte
  • 37 replies
  • March 5, 2025

ah sorry, i can see in the log bellow that CV trying to insert a duplicate key in TM_Task.sql file.

 

5928  1a98  02/28 16:51:24 ### INIFileProcessor::executeSQLList() - Processing list file [D:\Program Files\Commvault\ContentStore\Base\DBUpgrade\CommServer\MainUpgrade/TableScript\All_Tblscript_Upg.lst].
5928  1a98  02/28 16:51:24 ### INIFileProcessor::executeSQLList() - Executing file [D:\Program Files\Commvault\ContentStore\Base\DBUpgrade\CommServer\MainUpgrade/TableScript\TM_Task.sql].
5928  1a98  02/28 16:51:24 ### CVSimpleDB::SQLINFO() - INFO: [Violation of PRIMARY KEY constraint 'PK__#ADD3712__E67E1A049AB2FC22'. Cannot insert duplicate key in object 'dbo.@linkedCSClient'. The duplicate key value is (21708).] [RecNum:1, State:23000, NativeErr:2627, RowNum:1, Severity:14, LineNum:1397, Spid:70]
5928  1a98  02/28 16:51:24 ### INIFileProcessor::executeSQLList() - INFO: [Violation of PRIMARY KEY constraint 'PK__#ADD3712__E67E1A049AB2FC22'. Cannot insert duplicate key in object 'dbo.@linkedCSClient'. The duplicate key value is (21708).] [RecNum:1, State:23000, NativeErr:2627, RowNum:1, Severity:14, LineNum:1397, Spid:70]
5928  1a98  02/28 16:51:24 ### INIFileProcessor::executeSQLList() - Execution of file [D:\Program Files\Commvault\ContentStore\Base\DBUpgrade\CommServer\MainUpgrade/TableScript\TM_Task.sql] failed
5928  1a98  02/28 16:51:24 ### INIFileProcessor::processPhase() - Failed to process Phase [TableScript]. ReturnCode [2]
5928  1a98  02/28 16:51:24 ### DBUpgrade::executePhase() - Failed to process Phase [MainUpgrade] for Config File [D:\Program Files\Commvault\ContentStore\Base\DBUpgrade\CommServer\DBConfig.ini], RestartPoint [<?xml version="1.0" encoding="UTF-8" standalone="no" ?><CVDBUpgrade_ProcessPhase currentFileName="" currentLstFileName="" currentStep="2" phaseName="MainUpgrade" resume="1"><currentSubPhase currentFileName="TM_Task.sql" currentLstFileName="All_Tblscript_Upg.lst" currentStep="1" phaseName="TableScript" resume="0"/></CVDBUpgrade_ProcessPhase>].
5928  1a98  02/28 16:51:24 ### DBUpgrade::executePhase() - Failed to process Phase [MainUpgrade] for Config File [D:\Program Files\Commvault\ContentStore\Base\DBUpgrade\CommServer\DBConfig.ini].
5928  1a98  02/28 16:51:24 ### DBUpgrade::executePhase() - Please check log file [D:\Program Files\Commvault\ContentStore\Log Files\CommServer_MainUpgrade_ErrorLog.txt] for details.
5928  1a98  02/28 16:51:24 ### DBUpgrade::runMainUpgrade() - Failed to execute Phase [MainUpgrade] for Database [CommServ].
5928  1a98  02/28 16:51:24 ### DBUpgrade::runUpgrade() - Main Upgrade failed for Database [CommServ].
5928  1a98  02/28 16:51:24 ### DatabaseUpgrade() - retValue [2].
10084 1818  02/28 16:51:24 ### CVDBUPGRADEWRAPPER() - Return code for Product [CommServer] is [2]
10084 1818  02/28 16:51:24 ### CVDBUPGRADEWRAPPER() - Return Code [2]
10084 1818  02/28 16:51:24 ### CVDBUPGRADEWRAPPER() - [MainUpgrade] Phase Completed

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings