Search code examples
mongodbmongodump

MongoDump index conversion error of 'bson.Decimal128' not supported


Failed: error dumping metadata: error converting index (<nil>): conversion of BSON value '2' of type 'bson.Decimal128' not supported

Any idea why this error is popping up? I am using the latest version (3.4) of mongo with both the remote server as well as the local machine.


Solution

  • I found my error. Version compatibility issues. Check by running mongodump --version.

    Turns out doing apt install mongodb doesn't install the latest version. Make sure to uninstall and remove mongo tools and update to latest version.