Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20988

Mongorestore fails on GridFS collection

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.6, 3.0.7
    • Component/s: None
    • None
    • ALL
    • Hide

      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.

      Show
      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.

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            ripperdoc Martin Frojd
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: