There was a problem loading the comments.

Database ensure index failed

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Summary:

 

When reviewing Installation Checks from FileCloud Admin Portal > Checks you can see the error " ---Database Ensure Index Failed "

 

Question/Issue Description:

 

- The error has appeared after upgrading FileCloud server application

- You have Mongod database replica set

 

 

Environment Details:

  • Product - FileCloud Server
  • Version - ALL
  • Platform - Linux
  • Application - Mongod database

Error/Log Message:

 

---Database Ensure Index Failed

 

 

 

Steps to Reproduce:

 

Upgrade FileCloud HA platform with Mongod replica set

 

rs.status() Mongod command show not healthy secondary DB node:   stateStr: 'RECOVERING' 

 

 

 

Resolution/Workaround:

 

Rebuild the data on the secondary DB node , please proceed as below on that node only:

 

- Stop mongod process on the unhealthy secondary DB node:   systemctl stop mongod

- Locate mongod data path:   grep dbPath /etc/mongod.conf                      (will assume it's /var/lib/mongo)

- Take backup of data:    tar zcvf /tmp/mongod_data.tgz /var/lib/mongo/

- Empty the mongod data directory:   rm -rf /var/lib/mongo/*

- Start mongod process:   systemctl start mongod

 

Notes: 

 

Please make sure that you have a healthy and reachable Mongod PRIMARY node before rebuilding the data.

 

 


Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud