MongoCommandException: Command 'filemd5' failed

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Blocker - P1
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      We are getting the following exception on replica set using GridFS. I read online about manually adding the index but shouldn't the C# driver automatically do so? How can we fix this?

      Exception: MongoDB.Driver.MongoCommandException: Command 'filemd5' failed: need an
      index on

      { files_id : 1 , n : 1 }

      (response: { "errmsg" : "need an index on

      { files_id : 1 , n : 1 }

      ", "ok" : 0.0 })

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            Majid Sameni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: