0

I have a mongo 3.4 instance with a cfg file thus:

systemLog:
 destination: file
 path: D:\Mongo\log\mongod.log
storage:
 dbPath: D:\Mongo\db

Using robomongo version 0.9.0 I've added a user:

enter image description here enter image description here

Now when I try and connect to the DB I get an error:

enter image description here

I've checked passwords etc all seems correct:

enter image description here

Without using auth all works as expected.

I've ran though a similar issue Mongodb & Robomongo: Can't connect (authentication) but because I have a newer version of the client (0.9) which supports SCRAM-SHA-1 this should work.

What am I missing here?

Community
  • 1
  • 1
Liam
  • 27,717
  • 28
  • 128
  • 190

1 Answers1

1

Looks like there's a bug in robobmongo. If I add the user using the console:

db.createUser({user:"mongoUser", pwd:"***", roles:["userAdminAnyDatabase"]})

Authentication works. But I now get an error from robomongo:

enter image description here

when I try and expand the list of users in admin.

Community
  • 1
  • 1
Liam
  • 27,717
  • 28
  • 128
  • 190
  • 2
    You are correct, I am one of the contributors of Robomongo codebase and the user management dialogs do not work as expected. I strongly suggest to use Robomongo shell to add new user or edit not the Robomongo 'Add/Edit User' dialogs. – Gokhan Simsek Jan 26 '17 at 06:20