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

Failed: error marshalling metadata json for collection

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.3
    • Component/s: mongodump
    • Environment:
      AWS, EC2, Amazon Linux

      We get the following when running a regular "mongodump" command against our 3 node replica set (v3.0.3 on WiredTiger). The full command we run is as follows:

      "mongodump --host xxx.xxx.xxx.xxx --username adminUserHere --password aSecretPassHere --ssl --authenticationDatabase admin --sslPEMKeyFile /path/to/pem/db.pem --sslAllowInvalidCertificates --out /path/to/dump/mongoBackup"

      The majority of the database gets backed up as expected, however on the same collection on each run we get the following error...

      "Failed: error marshalling metadata json for collection `ourDb.ourCollection`: json: error calling MarshalJSON for type bsonutil.MarshalD: cannot marshal [

      {"users.userId" 1}

      ]: json: error calling MarshalJSON for type bsonutil.MarshalD: invalid character 'u' after object key"

      Any ideas what would cause this error, the data looks ok when viewing it.

      Thanks.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            Crispy1975 Paul C [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: