Robomongo: Connecting via vagrant

Created on 26 Oct 2014  路  5Comments  路  Source: Studio3T/robomongo

I'm trying to connect to my vagrant install of mongodb, I'm able to connect with the username and password but I can't see anything in the database.

When I try and view the collection statistics, db.printCollectionStats(), I get the following error.

uncaught exception: error: {
    "$err" : "not authorized for query on holiday.system.namespaces",
    "code" : 16550
}

Any ideas how I can view my mongo install? thanks.

works as designed

Most helpful comment

I had to set the SSH Address to '127.0.0.1' from 'localhost' on order to work for me

All 5 comments

I just set up a connection to my Vagrant mongo today. Here's how I configured my connection settings:

In the Connection tab, I set my Address to 'localhost', with the default mongod port of '27017'.

In the SSH tab, set the SSH Address to 'localhost' port '2222'. Set the username to 'vagrant', the Auth Method to 'Password', and the password to 'vagrant'.

@Fynkymynky It sounds like you need to add appropriate role/privileges to the user you have created.

In particular, this user either doesn't have access to the database or the listDatabases command.

@dougalcampbell +1

@dougalcampbell +1

I had to set the SSH Address to '127.0.0.1' from 'localhost' on order to work for me

Was this page helpful?
0 / 5 - 0 ratings