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

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.2.6
    • Component/s: mongofiles
    • Environment:
      Ubuntu 18.04.4 LTS

       

       

      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

       

            Assignee:
            Dave Rolsky
            Reporter:
            David Pons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: