MongoDB expects the Data/data/db folders to be in a location which Mac OS Catalina does not allow. As a consequence the folders must be placed elsewhere, on one of the disk volumes. But modifying the MongoDB settings to find the new data folders is not working properly.
There are many supposed solutions for this in various places on the web but none of them have solved my issues.
MongoDB was installed using homebrew. There is no MongoDB directory on the file system - should there be?
The actual database file structure for this installation is: /System/Volumes/MacProSSD1TB/Data/data/db
When I run the Mongod command I get the following errors:
sudo Mongod --dbpath /System/Volumes/MacProSSD1TB/Data/data/db
2020-04-19T10:00:25.693+1000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-04-19T10:00:25.697+1000 W ASIO [main] No TransportLayer configured during NetworkInterface startup
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] MongoDB starting : pid=6480 port=27017 dbpath=/System/Volumes/MacProSSD1TB/Data/data/db 64-bit host=192-168-1-102.tpgi.com.au
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] db version v4.2.5
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] git version: 2261279b51ea13df08ae708ff278f0679c59dc32
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] allocator: system
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] modules: none
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] build environment:
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] distarch: x86_64
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] target_arch: x86_64
2020-04-19T10:00:25.698+1000 I CONTROL [initandlisten] options: { storage: { dbPath: "/System/Volumes/MacProSSD1TB/Data/data/db" } }
2020-04-19T10:00:25.699+1000 I STORAGE [initandlisten] exception in initAndListen: NonExistentPath: Data directory /System/Volumes/MacProSSD1TB/Data/data/db not found., terminating
2020-04-19T10:00:25.699+1000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2020-04-19T10:00:25.699+1000 I - [initandlisten] Stopping further Flow Control ticket acquisitions.
2020-04-19T10:00:25.699+1000 I CONTROL [initandlisten] now exiting
2020-04-19T10:00:25.699+1000 I CONTROL [initandlisten] shutting down with code:100
It seems to me that I need to:
(a) specify to MongoDB exactly where the new data/db folders are
(b) grant the appropriate permissions do that Mongood can access them
How do I do this?