Charts: [bitnami/mongodb] when auth disabled, mongod throws an error about its exporter connection

Created on 30 Jun 2020  路  4Comments  路  Source: bitnami/charts

https://github.com/bitnami/charts/blob/54aa501b7f6633c437add6eb260f9b3f16179f5f/bitnami/mongodb/templates/replicaset/statefulset.yaml#L293
https://github.com/bitnami/charts/blob/54aa501b7f6633c437add6eb260f9b3f16179f5f/bitnami/mongodb/templates/standalone/dep-sts.yaml#L234

when auth disabled, mongod throws errors as follows, with and without root user password:

2020-06-30T18:40:40.152+0000 I  ACCESS   [conn560] Supported SASL mechanisms requested for unknown user 'root@admin'
2020-06-30T18:40:40.152+0000 I  ACCESS   [conn560] SASL SCRAM-SHA-1 authentication failed for root on admin from client 127.0.0.1:38408 ; UserNotFound: Could not find user "root" for db "admin"
2020-06-30T18:40:40.153+0000 I  NETWORK  [conn560] end connection 127.0.0.1:38408 (17 connections now open)

I guess the exporter should connect without _root@_ when auth is disabled...?

Most helpful comment

Hi @ReToCode, @ianhlee, we have just created a PR to address the issue. Take a look if you want!

All 4 comments

Hi @ianhlee ,
Thank you very much for reporting the issue. I am not totally sure I understand the issue, could you share the steps to reproduce it?

I have the same issue. Just deploy the chart with auth.enabled: false and metrics.enabled: true. The connection from the metrics container will fail with:

mongodb container

mongodb 2020-07-16T07:10:38.752+0000 I  ACCESS   [conn31578 Supported SASL mechanisms requested for unknown user 'root@admin'

mongodb 2020-07-16T07:10:38.753+0000 I  ACCESS   [conn31578 SASL SCRAM-SHA-1 authentication failed for root on admin from client 127.0.0.1:41566 ; UserNotFound: Could not find user "root" for db "admin"

mongodb 2020-07-16T07:10:38.753+0000 I  NETWORK  [conn31578 end connection 127.0.0.1:41566 (32 connections now open)

mongodb 2020-07-16T07:10:40.760+0000 I  NETWORK  [listener connection accepted from 127.0.0.1:41598 #31579 (33 connections now open)

metrics container

metrics time="2020-07-16T07:10:42Z" level=error msg="Could not get MongoDB BuildInfo: connection() : auth error: sasl conversation error: unable to authenticate using mechanism \"SCRAM-SHA-1\": (AuthenticationFailed) Authentication failed.!" source="connection.go:84"

metrics time="2020-07-16T07:10:42Z" level=error msg="Problem gathering the mongo server version: connection() : auth error: sasl conversation error: unable to authenticate using mechanism \"SCRAM-SHA-1\": (AuthenticationFailed) Authentication failed." source="mongodb_collector.go:195"

Hi @ReToCode, @ianhlee, we have just created a PR to address the issue. Take a look if you want!

oops, forgot to follow up. Thank you so much @andresbono

Was this page helpful?
0 / 5 - 0 ratings