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

Mongorestore: ns name too long, max size is 128

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: mongorestore
    • None
    • Environment:
      Linux 2.6.21, x64. MongoDB running with auth.

      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.

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

              Created:
              Updated:
              Resolved: