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

mongodump outputs to the error stream instead to to stdio

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.0.5
    • Component/s: mongodump
    • None
    • Environment:
      Linux - Ubuntu / Debian

      Given on my daily cron should not output any on mongodump, but if there is a  an error I should receive en e-mail. Right now, I do not know if it is really an error or a wrong output stream.

      For example:  
      mongodump --username backup --password pass --out=test > test.log 2> test.err.log

      As you can see, there is no error, but mongodump.log is empty and the attached mongodump.err.log has verbose information and it is not correct.

       

       

        1. test.err.log
          49 kB
        2. test.log
          0.1 kB

            Assignee:
            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            Reporter:
            alabard@gmail.com Patrik Laszlo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: