Skip to content

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

@xunshuairu

Description

@xunshuairu

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}}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions