Hello everyone,
I’m currently exploring the process of setting up a discussion forum. I have a server that contains my MongoDB data. I’ve installed forum plugins to enable the discussion functionality. I ran the command “tutor local launch” but when it comes to the forum connecting to MongoDB, I encountered an " Authentication failed" error.
/app/cs_comments_service/lib/tasks/flags.rake:6: warning: already initialized constant ROOT
/app/cs_comments_service/lib/tasks/deep_search.rake:7: warning: previous definition of ROOT was here
/app/cs_comments_service/lib/tasks/kpis.rake:7: warning: already initialized constant ROOT
/app/cs_comments_service/lib/tasks/flags.rake:6: warning: previous definition of ROOT was here
/app/cs_comments_service/models/constants.rb:2: warning: already initialized constant COURSE_ID
/app/cs_comments_service/lib/tasks/db.rake:28: warning: previous definition of COURSE_ID was here
W, [2023-08-24T08:42:08.307019 #15] WARN -- : Overwriting existing field _id in class User.
W, [2023-08-24T08:42:08.409547 #15] WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
W, [2023-08-24T08:42:08.409633 #15] WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
W, [2023-08-24T08:42:08.409657 #15] WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
W, [2023-08-24T08:42:08.420711 #15] WARN -- : MONGODB | Failed to authenticate to :27017: Mongo::Auth::Unauthorized: User funixLMSUser (mechanism: scram) is not authorized to access lms2019 (auth source: admin, used mechanism: SCRAM-SHA-1, used server: :27017 (STANDALONE)): [18:AuthenticationFailed]: Authentication failed.
rake aborted!
Mongo::Auth::Unauthorized: User funixLMSUser (mechanism: scram) is not authorized to access lms2019 (auth source: admin, used mechanism: SCRAM-SHA-1, used server: :27017 (STANDALONE)): [18:AuthenticationFailed]: Authentication failed. (modern retry, attempt 1)
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/auth/base.rb:135:in `validate_reply!'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/auth/base.rb:114:in `dispatch_msg'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/auth/base.rb:89:in `converse_multi_step'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/auth/scram.rb:63:in `login'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/pending_connection.rb:186:in `block in authenticate!'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server.rb:479:in `handle_auth_failure!'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/pending_connection.rb:178:in `authenticate!'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/pending_connection.rb:95:in `handshake_and_authenticate!'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/connection.rb:249:in `do_connect'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/connection.rb:215:in `connect!'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/connection_pool.rb:863:in `connect_connection'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/connection_pool.rb:419:in `check_out'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server/connection_pool.rb:666:in `with_connection'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/server.rb:448:in `with_connection'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/operation/shared/polymorphic_operation.rb:35:in `execute'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/collection/view/iterable.rb:197:in `send_initial_query'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/collection/view/iterable.rb:127:in `block in select_cursor'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/retryable.rb:64:in `block in read_with_retry_cursor'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/retryable.rb:370:in `modern_read_with_retry'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/retryable.rb:127:in `read_with_retry'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/retryable.rb:63:in `read_with_retry_cursor'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/collection/view/iterable.rb:126:in `select_cursor'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/mongo-2.18.1/lib/mongo/collection/view/iterable.rb:60:in `each'
/app/cs_comments_service/app.rb:173:in `map'
/app/cs_comments_service/app.rb:173:in `<top (required)>'
/app/cs_comments_service/Rakefile:24:in `require'
/app/cs_comments_service/Rakefile:24:in `block in <top (required)>'
/app/cs_comments_service/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
I’m certain that my user has the necessary access privileges because I can still interact with my MongoDB server without any issues, even without the forum plugins.
Could anyone help me with this? Thank you!