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

Add needed role for clusterManager before converting standalone to replica set

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual, Server
    • Environment:

      This manual page does not mention what happens if you have already created users in the standalone database, before converting it to a replica set. I have sought for a solution for a long time, because I was not able to issue 'rs.initiate()', with the error "not authorized to execute command on admin".

      I think it is valuable to explain that, if you have existing users, one of them should be granted the 'clusterManager' role: http://docs.mongodb.org/v2.6/reference/built-in-roles/
      Then, this user can be used to log in to the Mongo shell and issue 'rs.initiate()'

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

              Created:
              Updated:
              Resolved:
              1 year, 24 weeks, 2 days ago