com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=104.196.32.97:27017, type=Unknown, state=Connecting}]

Stack Overflow | Sam | 5 months ago
  1. 0

    Created mongodb cluster on google cloud, but unable to connect my application

    Stack Overflow | 5 months ago | Sam
    com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=104.196.32.97:27017, type=Unknown, state=Connecting}]
  2. 0
    If MongoDB is installed on the same instance as your app, use localhost to connect to MongoDB, e.g. 127.0.0.1:27017.
  3. 0

    Grails Mongo - Tomcat fails to stop creating connections

    Stack Overflow | 2 years ago | ernesto.guevara
    com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=mongodb.host:27017, type=Unknown, state=Connecting}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to insert into MongoDB from actor using Casbah?

    Stack Overflow | 2 years ago | Srini K
    com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=localhost:27017, type=Unknown, state=Connecting, exception={java.lang.NullPointerException}}]
  6. 0

    com.mongodb.MongoTimeoutException on deleting from MongoDB

    Stack Overflow | 7 months ago | Sajal Ali
    com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=api.mongolab.com:-1, type=Unknown, state=Connecting, exception={java.lang.IllegalArgumentException: port=-1}}]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.MongoTimeoutException

      Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=104.196.32.97:27017, type=Unknown, state=Connecting}]

      at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible()
    2. Spring Data MongoDB - Core
      MongoTemplate.potentiallyConvertRuntimeException
      1. org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:73)
      2. org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:2011)
      2 frames