Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13886

mongodump will not work according to docs

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: 4.4.0
    • Component/s: manual, Server
    • Labels:
    • Environment:
      macos 10.15.6

      Description

      I tried to follow mongodb docs and tried to make a dump of the local mongodb database with no authentication enabled. Compass connects just fine with no parameters

      But when I try running

      mongodump

      it results in the following error message:

      Failed: error creating intents to dump: error getting database names: (Unauthorized) there are no users authenticated
      

      The problem is: I don't have authentication mode enabled.

      This is either an error on mongodump side (authentication is disabled, and mongodump checks against authenticated users anyways) or a documentation mistake (auth is required for mongodump, which means "mongodump" command example is invalid).

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        1. log.txt
          4 kB
          Yurii Predborskyii
        2. mongodump_auth_troubleshooting
          5 kB
          Andrew Feierabend
        3. mongodump_auth_troubleshooting_4.4.1
          4 kB
          Andrew Feierabend

            Assignee:
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Reporter:
            yurii.p@masterborn.com Yurii Predborskyii
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 23 weeks ago