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

Review and correct change config server to WiredTiger procedure

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    Description

      Hello, i think the section "Change Config Server to Use WiredTiger" is not right.

      First a minor comment, it is confusing that you refer to the config servers as first, second and third, but in the second point you say "last", i assume that is the third, but for sake of consistency, it should say third instead of last.

      Then, the main problem is in point 6, if in point 5 i've restarted the second config server with a new empty dbpath for WiredTiger, before executing the mongorestore in point 6, that new directory starts getting data and creating files, i suppose, from the first config server that is still running. My problem is that i use authentication and i cannot connect to this second config server with WiredTiger, the password doesn't work and if i connect without user and password, i don't have enough privileges to run mongorestore (for security the anonymous user doesn't have any privilege). Somehow, the new directory is in a weird state with some data from the first config server but for some reasons you can't log in with the usual user.

      Is this something you are aware?

      This is what i get trying to connect with the usual user "admin":

      # mongo localhost:27031/admin -u admin -p
      MongoDB shell version: 3.0.3
      Enter password: 
      connecting to: localhost:27031/admin
      2015-07-09T14:40:34.076-0700 E QUERY    Error: 18 Authentication failed.
          at DB._authOrThrow (src/mongo/shell/db.js:1266:32)
          at (auth):6:8
          at (auth):7:2 at src/mongo/shell/db.js:1266
      exception: login failed
      
      

      And if i run mongorestore without user:

      # mongorestore -h localhost --port 27031 /tmp/mongodumps/m2
      2015-07-09T14:41:54.782-0700	building a list of dbs and collections to restore from /tmp/mongodumps/m2 dir
      2015-07-09T14:41:54.783-0700	Failed: error getting auth version of server: not authorized on admin to execute command { getParameter: 1, authSchemaVersion: 1 }
      

      Thank you

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago