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

    • Type: Icon: Investigation Investigation
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 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@mongodb.com Dave Rolsky
            Reporter:
            david.pons@wefish.app David Pons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: