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 on hidden node #123

Open
yunusemrecatalcam opened this issue Jan 14, 2020 · 1 comment
Open

Unauthorized error on hidden node #123

yunusemrecatalcam opened this issue Jan 14, 2020 · 1 comment

Comments

@yunusemrecatalcam
Copy link

We have a hidden node, I can see it as a member on member state graph. I'm running 3 instance of exporter for 3 mongo (1 master and 2 rs). While I can get the metrics from rs that is not hidden, can't get metric from hidden rs. Exporter trying to crawl metric from hidden rs prints an error like this:

level=error msg="Failed to get replSetGetConfig: (Unauthorized) command replSetGetConfig requires authentication." source="replset_conf.go:115

I've tried manually logging in to hidden rs with the same user and querying the same as code do:
db.runCommand( { replSetGetConfig: 1 } );
and it returned the data succesfully which makes us think it's not a authorization issue actually.
Any help is appreciated, thank y'all

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

2 participants