Does NodeBB work with MongoDB 6.0?
-
Hi,
I am trying to setup NodeBB on my Windows PC., but iI get the error in the NodeBB Installer: There was an error connecting to your database. Please try again.
I was wondering if using Version 6 of MongoDB instead of 5 could be the problem.Thanks in advance!
-
@Topper have you checked if the mongodb service is running? Can you connect via the mongodb cli?
-
It is running, but somehow I cannot connect. It seems like the shell writes the users (admin) into a different folder then what is read out. When i create an admin user it says that the user already exists. I also used the method db.auth which allows me to type in the username, but when i enter the password it says MongoServerError: Authentication failed. I typed in use admin before that.
This is how mongosh looks. Is something wrong here?
-
@Topper looks like you haven't enabled authentication. You have to edit the mongo config file and enable it there.
See the "How to Enable Authentication in MongoDB" section at the following link:
MongoDB Developer Data Platform With Strong Security Capabilities
Safeguard your data with strong security defaults on the MongoDB data platform. Meet stringent requirements with robust operational and security controls.
MongoDB (www.mongodb.com)
-