Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-186

Mongorestore: ns name too long, max size is 128

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.8.0-rc1
    • None
    • mongorestore
    • None
    • Linux 2.6.21, x64. MongoDB running with auth.

    Description

      My Mongo database has few indexes with a custom name, because there are too many fields in them to generate a name automatically without failing with "ns name too long" error.

      When I try to restore this database from a backup using mongorestore - it fails with the this very error ("ns name too long, max size is 128"). It seems like mongorestore tries to generate index names based on their content rather than just restore whatever name was actually used in a database.

      Attachments

        Activity

          People

            kyle.erf Kyle Erf
            freetonik Rakhim Davletkaliyev
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: