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

Backend Storage Migration from S3 to Local Storage Fails Due to Missing MongoDB Authentication Database

Original Question or Issue:

The incident has persisted for a month, and we urgently need a solution to transition our backend storage from S3 to local storage. Our project team is set to launch a service next month that requires encryption to be implemented in our production environment. Please provide a solution to this issue as soon as possible.


Environment:

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

Steps to Reproduce:

 


Error or Log Message:

 


Defect or Enhancement Number:

 


Cause:

The customer has MongoDB authentication enabled, and the authentication database was not specified in the mongoexport command.


Resolution or Workaround:

mongoexport --uri="mongodb://dbuser:YourPassword@155.255.254.51,154.154.52.85,143.25.42.2/?replicaSet=rs0" --authenticationDatabase=admin --db=tonidos3storage --collection=items --out=D:\Backup\data.json

mongoimport --uri="mongodb://dbuser:YourPassword@155.255.254.51,154.154.52.85,143.25.42.2/?replicaSet=rs0" --authenticationDatabase=admin --db=tonidostoragedb --collection=items --file=D:\Backup\new_data.json


Notes: