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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 4.2.6
    • Fix Version/s: None
    • Component/s: mongofiles
    • Labels:
    • Environment:
      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.pons@wefish.app David Pons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: