Repository navigation
No primary_preferred server is available in cluster #2920
|
Hi, sorry if this is not right place for this kind of question, but as I am getting NoServerAvaiable error I decided to ask here. I have ruby on rails project that uses DocumentDB database. It uses:
and everything works fine. After upgrading rails to version 8.0 (everything else is same) I started to get next error: Any idea what could be an issue. here is connection uri: If any other info would be useful feel free to ask. |
Replies: 4 comments 3 replies
|
@jerko-culina -- I'm sorry to hear you're running into issues. Sadly, MongoDB does not guarantee any compatibility with DocumentDB; AWS has developed DocumentDB without full functional parity with our database and drivers, and does not document those differences thoroughly. We can't generally help much with DocumentDB issues, since we do not test our drivers against DocumentDB and have no experience with that database. That said, if rediscovery of the primary is not successful when connected to DocumentDB, that could indicate a problem with DocumentDB not emitting the expected responses to heartbeats. If you can reproduce this issue when connected to MongoDB (either self-hosted, or via MongoDB Atlas), we'll be happy to take a closer look. Otherwise, you will probably have better luck reaching out to Amazon technical support. |
|
Hi @jamis, I am getting same error with MongoDB Atlas |
|
@jerko-culina Do you follow our "Usage with Forking Servers" guidelines? |
|
The problem was in ssl_ca_cert file.
|
The problem was in ssl_ca_cert file.