[DOCS-11146] "Change the Size of the Oplog" does not explicitly call out that auth must be disabled Created: 20/Dec/17  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Minor - P4
Reporter: James Kovacs Assignee: Ravind Kumar (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

https://docs.mongodb.com/manual/tutorial/change-oplog-size/#restart-a-secondary-in-standalone-mode-on-a-different-port

>Restart this mongod as a standalone instance running on a different port and without the --replSet parameter.

We call out that the mongod must be restarted without the -replSet parameter but we do not explicitly say to omit the auth parameter. If the -auth parameter is present, the user will get the following error message:

MongoDB Enterprise > use local
switched to db local
MongoDB Enterprise > db.runCommand( { create: "oplog.rs", capped: true, size: (150 * 1024 * 1024 * 1024) } )
{
"ok" : 0,
"errmsg" : "not authorized on local to execute command { create: "oplog.rs", capped: true, size: 161061273600.0 }",
"code" : 13,
"codeName" : "Unauthorized"
}

The mongod standalone must be started with both the -replSet and -auth parameters removed or the user must have the _system privilege temporarily added in order to run the oplog create command in this step. (I would personally discourage adding the _system privilege as it is a dangerous privilege and its removal from the user is easily forgotten.)



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 08:02:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.