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

mongorestore: error parsing metadata: call of reflect.Value.Set on zero Value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.7, 3.0.7
    • Affects Version/s: 3.0.5, 3.1.6
    • Component/s: All Tools, mongorestore
    • Labels:
      None
    • Kernel Tools Iteration 7, Kernel Tools 8 08/28/15
    • Not Needed
    • v3.0

      I want to restore an old dump (done with MongoDB 2.4.1) to Mongo 3.0.3.
      I get this error:

      2015-06-01T13:40:01.013+0200 Failed: restore error: main.xxx: error parsing metadata file main/xxx.metadata.json: reflect: call of reflect.Value.Set on zero Value

      The metadata file:

      { "options" : { "create" : "xxx", "capped" : null, "size" : null, "max" : null }, "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "main.xxx", "name" : "_id_" }, { "v" : 1, "key" : { "user" : 1 }, "ns" : "main.xxx", "sparse" : false, "name" : "user_1" }, { "v" : 1, "key" : { "uuu" : 1 }, "ns" : "main.xxx", "sparse" : false, "name" : "uuu_1" }, { "v" : 1, "key" : { "store" : 1 }, "ns" : "main.xxx", "sparse" : false, "name" : "store_1" } ] }
      

      If I remove the "null" values, it works.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            pierrre Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: