[SERVER-56316] Unable to perform mongodump getting an error with collection size issues Created: 23/Apr/21  Updated: 22/Jun/22  Resolved: 23/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.4.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Bharath Kumar CM Assignee: Edwin Zhou
Resolution: Done Votes: 0
Labels: mongodump
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
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

Participants:
Story Points: 1

 Description   

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



 Comments   
Comment by Bharath Kumar CM [ 25/Apr/21 ]

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

 

 

Comment by Edwin Zhou [ 23/Apr/21 ]

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

Comment by Bharath Kumar CM [ 23/Apr/21 ]

any solution to this issue apart from upgrading as a quicker resolution ?

Generated at Thu Feb 08 05:38:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.