There was a problem loading the comments.

DB schema fails to update after an upgrade

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Original Question or Issue:

DB schema can't be updated after an upgrade

 

Environment:

Product - On Premises

Version - 23.252.0

Platform - Windows

 

 

Steps to Reproduce:

NA

 

Error or Log Message:

2025-11-18 0:25:11.331073 ERROR: [2448][17634435108254] Update Database Error. Exception Message: CodeLathe\Core\Common\Exception\TonidoCloudException: updateDbFromVersion91 failed Metadata set definition 55557777bbbbccccddddaabf already exists in C:\xampp\htdocs\src\Core\Subsystem\System\Install\UpdateManager.php:0

 

Defect or

Enhancement Number:

NA

 

Cause:

DB Conflict

 

Resolution or

Workaround:

Run a DB command

use tonidoclouddb;

db.getCollection("metadata_set_definitions").deleteOne({_id:ObjectId('55557777bbbbccccddddaabf')})

db.getCollection("searchpattern_group").deleteOne({name:/ITAR/})

db.getCollection("searchpattern").deleteMany({name:/ITAR/})

db.getCollection("content_classification_rules").deleteMany({name:/ITAR/})

db.getCollection("metadata_set_definitions").deleteOne({_id:ObjectId('55557777bbbbccccddddaabe')})

db.getCollection("searchpattern").deleteMany({name:/CUI BASIC/})

db.getCollection("searchpattern").deleteMany({name:/CUI SPECIFIED/})

db.getCollection("searchpattern_group").deleteOne({name:'CUI'})

 

Notes:

The issue is observed after upgrading from a different version, but the system has an enabled ServerLink

The upgrade procedure must include deactivating ServerLink before performing the update.


Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud