-
Type:
Question
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: Legacy C++ Implementation, 3.0.9
-
Component/s: mongoexport, mongoimport
-
None
-
Environment:Development
-
v3.0, v2.4
Executed a mongoexport against 2.4.9 database:
mongoexport -u user -p ***** -h localhost --port 27017 --collection auditLog -d testDB--out=/tmp/testDBExport/auditLog.json connected to: localhost:27017 exported 1351 records
Executed mongoimport against 3.0.9 database:
mongoimport -u user -p ***** -h localhost --port 10000 -d testDB --file=/tmp/testDBExport/auditLog.json -c auditLog --authenticationDatabase=admin 2016-04-11T12:18:14.576-0400 connected to: localhost:10000 2016-04-11T12:18:15.406-0400 error inserting documents: lost connection to server 2016-04-11T12:18:15.406-0400 Failed: lost connection to server 2016-04-11T12:18:15.406-0400 imported 0 documents
Follow error on server log:
2016-04-11T12:18:15.406-0400 I NETWORK [conn1447] AssertionException handling request, closing client connection: 10334 BSONObj size: 31589283 (0x1E203A3) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "auditLog"
What can we do to import the data into new database? I have executed these commands against similar collections with no issue.