Can't access DB collections through Compass

676 views
Skip to first unread message

Lev Karatun

unread,
Aug 16, 2018, 6:05:44 PM8/16/18
to mongodb-user
Hi,

I'm trying to see the contents of a collection using MongoDB Compass. I have username/password authentication set up. I can log in successfully but can't see any documents in the collection. Instead, I see the error: An error occurred while loading navigationcommand hostInfo requires authentication.
Here are the list of roles the user has:
 "roles" : [
                {
                        "role" : "readWrite",
                        "db" : "moviesDB"
                },
                {
                        "role" : "dbAdmin",
                        "db" : "moviesDB"
                },
                {
                        "role" : "dbOwner",
                        "db" : "moviesDB"
                },
                {
                        "role" : "clusterMonitor",
                        "db" : "admin"
                },
                {
                        "role" : "dbAdmin",
                        "db" : "moviesDB"
                }
        ]

I can successfully query the collection using mongo shell and node.js driver but not through Compass. 
If someone could tell me what I'm doing wrong I'd appreciate it. Thanks in advance! 

Reply all
Reply to author
Forward
0 new messages