From the terminal, the application launches and connects with MongoDB, but when I attempt to access it at the IP address of the droplet (with the correct port), I am getting an error:
MongoError: not authorized on cmf to execute command
(cmf
is the dbname).
I followed the install & setup instructions here, creating a user and afterward added the role of root
described here. This was for the admin database.
When logged into the Mongo shell, I can access data thru db.status()
, and when using admin db I can run show users
and see the user.
I am confused whether I lack configuration for the cmf
database. When using cmf
db, when I run show users
, nothing is returned.
For unknown reasons, the application cannot connect with mongodb. I am now thoroughly confused about where to go from here.
If anyone can point me in the right direction, I would appreciate it.