mongod.conf에서 아래 항목을 사용하여 mongod를 시작하려고 할 때, mongod가 실행되지 않고 다음과 같은 오류가 발생합니다:
mongod.service : main process exited, code=exited, status=2/INVALIDARGUMENT
mongod.conf에서 authenticationMechanisms: SCRAM-SHA-1 항목을 주석 처리하면 정상적으로 mongod가 실행됩니다.
security:
authorization: enabled
clusterAuthMode: keyFile
keyFile:/st/mongodb/mongodb-keyfile
authenticationMechanisms: SCRAM-SHA-1
parameter issue is fixed now: but in log we are getting this error below:-
"C": "ACCESS", "id": 507, "ctx": "conn20", "msg": "Failed to authenticate", "attr""{"client": "10.0.3.12:554","isSpeculative":"true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"Mtxader","db":
"MtxDatabase", "error": "MechanismUnavailable: unable to use scram-sha-256 based authentication for user without any SCRAM-SHA-256 credentials registerd". "result":334,"metrics":{"conversation_duration":{"micros"99,"summary":{"o":{"step":1,"step_total":2,"duration_micros":48}}}