Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized error of disconnected MongoDB replica set #125

Open
itsx opened this issue Apr 7, 2020 · 0 comments
Open

Unauthorized error of disconnected MongoDB replica set #125

itsx opened this issue Apr 7, 2020 · 0 comments

Comments

@itsx
Copy link

itsx commented Apr 7, 2020

We have MongoDB replica set with 3 nodes. When are MongoDB nodes disconnected, because of the network failure, mongodb exporter logs errors and doesn't collect the majority of metrics:

mongodb exporter log output:

time="2020-04-03T06:16:22Z" level=error msg="Failed to get database names, (Unauthorized) command listDatabases requires authentication" source="database_status.go:92"
time="2020-04-03T06:16:22Z" level=error msg="Failed to get replSetGetConfig: (Unauthorized) command replSetGetConfig requires authentication." source="replset_conf.go:115"
time="2020-04-03T06:16:22Z" level=error msg="Failed to get replSet status: (Unauthorized) command replSetGetStatus requires authentication" source="replset_status.go:307"
time="2020-04-03T06:16:22Z" level=error msg="Failed to get oplog collection status: (Unauthorized) command collStats requires authentication" source="oplog_status.go:144"
time="2020-04-03T06:16:22Z" level=error msg="Failed to get oplog timestamps status: (Unauthorized) command find requires authentication" source="oplog_status.go:149"

When the connection between nodes is established again and replica set is recovered, errors
disappear and metrics are being collected again without problems.

I found out, there is a similar issue, with same mogndodb exporter errors, although there is a difference, that we haven't got any hidden nodes in our replica set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant