Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2573

Unexpected behavior when running the mongofiles command to get a file stored in a Gridfs collection

    XMLWordPrintableJSON

Details

    • Investigation
    • Status: Closed
    • Major - P3
    • Resolution: Cannot Reproduce
    • 4.2.6
    • None
    • mongofiles
    • Ubuntu 18.04.4 LTS

    Description

       

       

      Hi! I try to download the images stored in a gridfs collection using the mongofiles command.

      When I run the command for a file that has only one chunk, it works fine. But when another file that is made up of several chunks, the behavior is not as expected, I receive the following error by console:

      connected to: mongodb://localhost:27017/
      Failed: error while writing Data into local file 'test.png': chunk size does not match expected size

      Command executed

      mongofiles -d test --port 27017 --prefix=cfs_gridfs.test_images -l "../../test/test.png" get_id '{"$oid":"5dc145e57e30034e16c81f5e"}'

      Greetings,

      David

       

      Attachments

        Activity

          People

            dave.rolsky@mongodb.com Dave Rolsky
            david.pons@wefish.app David Pons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: