mongodbmongoid

Mongo::Error::OperationFailure (not authorized on [db] to execute command....(13))


On my production server, I keep getting not authorized error randomly. The following is my setup:

I don't have username and password configured in mongoid.yml. I only have uri configured to connect to remote database server.

I couldn't find anything that could explain/help what's going on.


Solution

  • It seems like upgrading to mongo 3.x fixes the problem, as this jira ticket shows.

    https://jira.mongodb.org/browse/RUBY-1100