MongoError No primary node is available

前端 未结 4 1820
不知归路
不知归路 2021-01-04 23:59

We have upgraded to Play 2.7.0 recently and use play2-reactivemongo version 0.16.2 with reactivemongo 0.16.3. We use reactivemongo-shaded-native but also tried

相关标签:
4条回答
  • 2021-01-05 00:11

    It works for us after upgrading Reactive Mongo to 0.17.1

    0 讨论(0)
  • 2021-01-05 00:14

    It seems you reached the limit of connections available: have you tried tuning the connection parameters http://reactivemongo.org/releases/0.11/documentation/tutorial/connect-database.html? Atlas usually supports more than 20 connections https://docs.atlas.mongodb.com/connection-limits/

    I solved a similar issue with mongo native scala driver setting a pool of 50 connections, a longer wait queue and longer wait time (due latency in connection with Atlas)

    0 讨论(0)
  • 2021-01-05 00:19

    Have you tried: http://reactivemongo.org/releases/0.1x/documentation/tutorial/connect-database.html#netty-native

    Have had a similair error and a colleague suggested the above. Seems to be working for us.

    0 讨论(0)
  • 2021-01-05 00:24

    Do ensure that your user has access to the Database you are trying to connect. I had same problem. I was testing with one user which belonged to other Database. Later I created one user for my Database then tested and it works fine.

    0 讨论(0)
提交回复
热议问题