![]() How to configure mongodb for development and production, as that is subject of another article worth visiting.How to stop/start automatically prior/after system restarts.How to install mongodb on Linux, macOS and Windows.However, the article is designed to help those who bought the book to setup their working environment, as well as the wide audience of software developers who need same information. This article has complementary materials to the Testing nodejs Applications book. Hopefully this saves someone a few hours – I wasted way too much time on the issue.This article revisits essentials on how to install mongodb, one of leading noSQL databases on development and production servers. I changed the dbPath value to the following and copied my existing DB files into the folder: dbPath: /System/Volumes/Data/data/dbįinally, I made sure my account had the proper access to the folder by running chown (something I had tried many times earlier but on a folder outside of /System/Volumes/Data): sudo chown -R $USER /System/Volumes/Data/data/dbĪfter that I was able to start MongoDB and everything was back to normal. Note that it’s possible yours may be located in a different location based on how you installed MongoDB. I then went into the MongoDB config file at /usr/local/etc/nf. I ran the following commands to install the latest version of MongoDB using Homebrew (see for more details): brew tap mongodb/brew The MongoDB files can then go at: /System/Volumes/Data/data/db That wasn’t the problem on my machine.Īfter doing more research I found out that Catalina added a new volume to the hard drive and creates a special folder where the MongoDB files need to go. I found a lot of posts with the same issue but they all solved it by changing security on the folder. But, try as I might I still saw the read-only folder error when trying to start the server….very frustrating. I tried every chmod and chown command known to man and woman kind, tried manually changing security in Finder, compared security to my other iMac (they were the same), and tried a bunch of other things as well. Running the following command resulted in an error about the data/db directory being read-only: mongod -auth After starting an application I’m building I quickly realized that I couldn’t get MongoDB to start. ![]() The migration went really well overall and within a few hours I had my development machine up and running. I recently bought a new iMac and moved all of my files over using Time Machine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |