MLstate / opalang

The Opa Language for Web Application Development
http://opalang.org
Other
1.24k stars 125 forks source link

Not authorized for query error When mongodb is using a keyFile #186

Open xunshuairu opened 9 years ago

xunshuairu commented 9 years ago

I found this problem, when I play with PEPS-source code.

To reproduce the error only need to use a keyFile to launch mongod service:

sudo mongod --keyFile /PathTo/key

Then run the opa app, you will get the error:

DbGen/Mongo Error while opening database "rawdata"
{DocError = [{name = ok; value = {Double = 0.0}}, {name = errmsg; value = {String = auth failed}}, {name = code; value = {Int32 = 18}}]}