[DOCS-14143] Incorrect mongod.conf file location for brew on Apple Silicon Created: 20/Jan/21  Updated: 30/Oct/23  Due: 22/Jan/21  Resolved: 05/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Brian Leonard Assignee: Andrew Feierabend (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOS Big Sur
Version 11.1

MacBook Pro (13-inch, M1, 2020)


Attachments: PNG File Screen Shot 2021-01-20 at 4.58.05 PM.png    
Issue Links:
Related
Participants:
Days since reply: 3 years, 5 days ago
Epic Link: DOCSP-11701
Story Points: 3

 Description   

Description

The instructions to start MongoDB Community on macOS indicate the mongod.conf file is located at:

/usr/local/etc/mongod.conf

But according to Homebrew, it's located at (which is correct):

/opt/homebrew/etc/mongod.conf

{{  }}

 

Scope of changes

Impact to Other Docs

MVP (Work and Date)

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



 Comments   
Comment by Githook User [ 05/Feb/21 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-14143,DOCSP-8696,DOCSP-14087 macOS brew conf file location apple silicon
Branch: v4.0
https://github.com/mongodb/docs/commit/f32d93dd890d1fddebf4c9868bcecf2cbb233898

Comment by Githook User [ 05/Feb/21 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-14143,DOCSP-8696,DOCSP-14087 macOS brew conf file location apple silicon
Branch: v4.2
https://github.com/mongodb/docs/commit/a869982543018a042c40ee30bb17a423d1d19f0a

Comment by Githook User [ 04/Feb/21 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-14143,DOCSP-8696,DOCSP-14087 macOS brew conf file location apple silicon
Branch: master
https://github.com/mongodb/docs/commit/b6122810aa743af982b1f5f3d3c446b098b1c430

Comment by Githook User [ 04/Feb/21 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-14143,DOCSP-8696,DOCSP-14087 macOS brew conf file location apple silicon
Branch: v5.0
https://github.com/mongodb/docs/commit/7282f4f447dcfb8e7780f6beb31029635ed3c0d2

Comment by Stennie Steneker (Inactive) [ 21/Jan/21 ]

This is a path change for Homebrew on Apple Silicon. Per the Homebrew Documentation:

This script installs Homebrew to its preferred prefix (/usr/local for macOS Intel, /opt/homebrew for Apple Silicon)

Related discussion including a comment from a Homebrew maintainer:
https://www.reddit.com/r/MacOS/comments/jw9guu/why_did_homebrew_move_from_usrlocalto_opthomebrew/

The MongoDB brew formula should cope with the prefix change on installation, but our documentation will need to consider the prefix variations.

brew --prefix will report the correct path, so we could use shell eval (or similar), eg:

mongod --config $(brew --prefix)/etc/mongod.conf

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