You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I try to connect mongo atlas with "mongodb+srv://:@/" I present the following error:
forum_test | /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/server_selector/selectable.rb:110:in select_server': No server is available matching preference: #<Mongo::ServerSelector::Primary:0x47040075526120 tag_sets=[] max_staleness=nil> using server_selection_timeout=30 and local_threshold=0.015 (Mongo::Error::NoServerAvailable) forum_test | from /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/collection/view/iterable.rb:41:in block in each'
forum_test | from /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/retryable.rb:44:in read_with_retry' forum_test | from /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/collection/view/iterable.rb:40:in each'
forum_test | from /usr/local/bundle/gems/mongoid-7.0.5/lib/mongoid/query_cache.rb:227:in each' forum_test | from ./app.rb:172:in map'
forum_test | from ./app.rb:172:in `
'
forum_test | W, [2020-11-12T20:30:26.625773 #1] WARN -- : NewRelic agent library not installed
forum_test | W, [2020-11-12T20:30:27.054024 #1] WARN -- : Overwriting existing field _id in class User.
forum_test | W, [2020-11-12T20:30:27.084090 #1] WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
forum_test | W, [2020-11-12T20:30:27.084160 #1] WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
forum_test | W, [2020-11-12T20:30:27.084182 #1] WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
Then I modify a file located in the path: "cs comments service / config / mongoid.yml" like this:
when I try to connect mongo atlas with "mongodb+srv://:@/" I present the following error:
forum_test | /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/server_selector/selectable.rb:110:in
'select_server': No server is available matching preference: #<Mongo::ServerSelector::Primary:0x47040075526120 tag_sets=[] max_staleness=nil> using server_selection_timeout=30 and local_threshold=0.015 (Mongo::Error::NoServerAvailable) forum_test | from /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/collection/view/iterable.rb:41:in
block in each'forum_test | from /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/retryable.rb:44:in
read_with_retry' forum_test | from /usr/local/bundle/gems/mongo-2.5.3/lib/mongo/collection/view/iterable.rb:40:in
each'forum_test | from /usr/local/bundle/gems/mongoid-7.0.5/lib/mongoid/query_cache.rb:227:in
each' forum_test | from ./app.rb:172:in
map'forum_test | from ./app.rb:172:in `
forum_test | W, [2020-11-12T20:30:26.625773 #1] WARN -- : NewRelic agent library not installed
forum_test | W, [2020-11-12T20:30:27.054024 #1] WARN -- : Overwriting existing field _id in class User.
forum_test | W, [2020-11-12T20:30:27.084090 #1] WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
forum_test | W, [2020-11-12T20:30:27.084160 #1] WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
forum_test | W, [2020-11-12T20:30:27.084182 #1] WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
Then I modify a file located in the path: "cs comments service / config / mongoid.yml" like this:
https://github.com/freximo/cs_comments_service/blob/master/config/mongoid.yml
and finally I did the connection tests and it worked.
The text was updated successfully, but these errors were encountered: