[SERVER-20988] Mongorestore fails on GridFS collection Created: 17/Oct/15  Updated: 17/Oct/15  Resolved: 17/Oct/15

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.0.6, 3.0.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Martin Frojd Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates TOOLS-939 Error restoring database "insertion e... Closed
Operating System: ALL
Steps To Reproduce:

I can reproduce it by dumping my collection from mentioned version and restoring to new version, but it may depend on the data I have in the collection.

Participants:

 Description   

I have a mongoengine-created collection images.chunks, among others. A mongodump of that database from a version 2.4.9 will fail to restore on newer releases of mongodb. Error message is:
Failed: restore error: rac-mirror.images.chunks: error restoring from raconteurdb/images.chunks.bson: insertion error: EOF
Additionally, server log states:
[conn23] Assertion: 10334:BSONObj size: 33552752 (0x1FFF970) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "images.chunks".

I can do mongorestore of the dump onto a 2.4.8 and a 2.6 version of database, but it fails to restore on 3.0.6, 3.0.7 and 3.1



 Comments   
Comment by Michael O'Brien [ 17/Oct/15 ]

Hi Martin,
This looks like the same issue as TOOLS-939, which was introduced in 3.0.6, and will be fixed in the next point release.
As a workaround, the 3.0.5 version of mongorestore which was built with the previous version of the driver, should avoid the problem in the meantime.

Generated at Thu Feb 08 03:55:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.