Hi,
Can you help me with this issue:
-
I deploy the mongodb rs with authentication for mongodb as example: root/rootpwd on cs_comments_service database
-
Update the deployment for forum path as following
- name: MONGODB_AUTH
value: "root:rootpwd@"
- name: MONGOID_AUTH_MECH
value: ":mongodb_cr"
- name: MONGODB_HOST
value: "mongodb-0.mongodb-headless.default.svc.cluster.local"
- name: MONGODB_PORT
value: "27017"
I got this error when starting the forum service:
W, [2021-01-11T14:28:12.604779 #13] WARN – : Overwriting existing field _id in class User.
W, [2021-01-11T14:28:12.711481 #13] WARN – : MONGODB | Unsupported client option ‘max_retries’. It will be ignored.
W, [2021-01-11T14:28:12.711931 #13] WARN – : MONGODB | Unsupported client option ‘retry_interval’. It will be ignored.
W, [2021-01-11T14:28:12.712137 #13] WARN – : MONGODB | Unsupported client option ‘timeout’. It will be ignored.
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/mongo-2.5.3/lib/mongo/auth/cr/conversation.rb:130:in `validate!’: User root is not authorized to access cs_comments_service. (Mongo::Auth::Unauthorized)
Do you have idea on how to fix this?
I used the docker image: overhangio/openedx-forum:10.0.11
Thank you for your help.