Skip to content
English
  • There are no suggestions because the search field is empty.

FileCloud Server 23.251 Upgrade – “Database Ensure Index Failed” (E11000 Duplicate Key Error on settingkey_index)

Original Question or Issue:

After upgrading to FileCloud Server version 23.251.0.30079, the following error appears:

Database Ensure Index Failed

The issue did not exist prior to the upgrade.


Environment:

  • Product - FileCloud Server
  • Version - 23.251
  • Platform - Windows

Steps to Reproduce:

 


Error or Log Message:

Database Ensure Index Failed – E11000 duplicate key error collection: tonidosettings.keystore index: settingkey_index dup key: { key: "last_heartbeat_ts_seconds_webdrm" }


Defect or Enhancement Number:

 


Cause:

This means MongoDB attempted to create a unique index (settingkey_index) on the key field, but the collection already contains duplicate entries for last_heartbeat_ts_seconds_webdrm, which violates the uniqueness constraint required for index creation.


Resolution or Workaround:

Follow the steps below to remove the duplicate keys (Run via Command Prompt):

---
cd C:\xampp\mongodb\bin
 mongosh
 use tonidosettings

 db.keystore.deleteOne({"_id" : ObjectId("687f3792da18c629be08f452")}) 
---


Notes:

The ObjectId depends on the customer’s database record.