Info
Unable to perform mongodump getting an error with collection size issues
Error:
2021-04-22T09:14:23.690-0700 Failed: error counting dbname.collectionname: Total size of documents in collection_DesignDetails matching { $match: { $and: [ { PartNo:
{ $eq: null }
}, {} ] } } exceeds maximum document size
Top User Comments
JIRAUSER1269847 commented on Sun, 25 Apr 2021 05:48:07 +0000:
Thanks Edwin after I downloaded latest mongodump and mognorestore and initiated the backup and restore and both looked good.
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu1604-x86_64-100.3.1.tgz
tar xvzf mongodb-database-tools-ubuntu1604-x86_64-100.3.1.tgz
JIRAUSER1257066 commented on Fri, 23 Apr 2021 20:56:51 +0000:
Hi bharath_achar@outlook.com,
According to our support policy, MongoDB v3.4 has not been supported since January 2020. We strongly recommend that you upgrade to a more recent version of MongoDB before reattempting mongodump.
Since MongoDB 4.4, mongodump has been released as a part of MongoDB Database Tools which is separate from MongoDB server, so you may install the latest version of these tools and attempt mongodump once you upgrade your server to a compatible version.
If this issue persists after upgrading your server, please let us know and we will happily reopen this issue.
Best,
Edwin
JIRAUSER1269847 commented on Fri, 23 Apr 2021 18:37:35 +0000:
any solution to this issue apart from upgrading as a quicker resolution ?
Steps to Reproduce
Command
/usr/bin/mongodump -u ********* -p ***************** --port $port --host $server --authenticationDatabase admin --out /mongodb/files/backups/tmp/dbname_2021-04-22_16.04.23 --db dbname --ssl --sslAllowInvalidCertificates --excludeCollectionsWithPrefix=system --verbose=5
Logs
2021-04-22T09:14:23.567-0700 will listen for SIGTERM, SIGINT, and SIGKILL
2021-04-22T09:14:23.690-0700 Failed: error counting dbname.collectionname: Total size of documents in collection_DesignDetails matching { $match: { $and: [ { PartNo:
{ $eq: null }
}, {} ] } } exceeds maximum document size