MongoDB not working on Sierra or High Sierra

55 views
Skip to first unread message

John Cable

unread,
Mar 12, 2018, 4:51:13 AM3/12/18
to mongodb-user
Hi,

I have successfully installed MongoDB 3.6.1 on High Sierra. It starts up correctly and the mongo command runs. 

When I send a POST request (from Postman) to my REST service, it stores a new document but only with the document id - no data items from my schema have their data stored. When I try and insert data using the Mongo shell, that also does not store the data.

I have also tried this on Sierra using MongoDB 3.0.7 (I didnt upgrade this after seeing the above) and the results using the REST API and the direct Mongo shell insert give the same results - i.e. no data is stored.

Can anyone advise how to get MongoDB working on Sierra / High Sierra yet?  There have been reported issues re using APFS (High Sierra) but Sierra also fails as described.


Stephen Steneker

unread,
Mar 12, 2018, 5:11:31 AM3/12/18
to mongodb-user
On Monday, 12 March 2018 19:51:13 UTC+11, John Cable wrote:
I have successfully installed MongoDB 3.6.1 on High Sierra. It starts up correctly and the mongo command runs. 

When I send a POST request (from Postman) to my REST service, it stores a new document but only with the document id - no data items from my schema have their data stored. When I try and insert data using the Mongo shell, that also does not store the data.

I have also tried this on Sierra using MongoDB 3.0.7 (I didnt upgrade this after seeing the above) and the results using the REST API and the direct Mongo shell insert give the same results - i.e. no data is stored.

Hi John,

I would start troubleshooting the issue using the mongo shell before trying to verify via your REST interface / MongoDB driver.

Can you confirm your version of the mongo shell and server (output of version() and db.version()) and provide an example insert() and subsequent find() that does not work for you?

Can you also confirm how you installed MongoDB (Homebrew, tgz download, other ... )? 


Can anyone advise how to get MongoDB working on Sierra / High Sierra yet?  There have been reported issues re using APFS (High Sierra) but Sierra also fails as described.

I'm not aware of any specific issues with the mongo shell or mongod server that prevents them from running on Sierra or High Sierra.

We do have a caveat in the documentation about APFS not being tested yet, but that was cautionary since High Sierra was still very new when MongoDB 3.6 was first released. I (and many of my colleagues on the MongoDB engineering team) have been using High Sierra for almost six months now.

Regards,
Stennie
Reply all
Reply to author
Forward
0 new messages