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

Failed: error marshalling metadata json for collection

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gabriel.russell Gabriel Russell
                Reporter:
                Crispy1975 Paul C
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: