com.mongodb.MongoTimeoutException: Timed out after 500 ms while waiting for a se rver that matches ReadPreferenceServerSelector{readPreference=primary}. Client v iew of cluster state is {type=UNKNOWN, servers=[{address=localhost:51531, type=U NKNOWN, state=CONNECTING}]

GitHub | jkaa | 3 months ago
  1. 0

    hawkBit demo server not accessible and failed tests on module build of Repository JPA Implementation

    GitHub | 3 months ago | jkaa
    com.mongodb.MongoTimeoutException: Timed out after 500 ms while waiting for a se rver that matches ReadPreferenceServerSelector{readPreference=primary}. Client v iew of cluster state is {type=UNKNOWN, servers=[{address=localhost:51531, type=U NKNOWN, state=CONNECTING}]
  2. 0

    mongodb-user - [mongodb-user] Java driver cannot connect to MongoDB over SSL while MongoDB CLI can - msg#00522 - Recent Discussion OSDir.com

    osdir.com | 5 months ago
    com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=mon0101.pre2.zeldalabs.internal:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Prematurely reached end of stream}}]
  3. 0

    Problemas para conectarse con la base de datos

    GitHub | 6 months ago | npasserini
    play.api.UnexpectedException: Unexpected exception[MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=mongoplay:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: mongoplay}, caused by {java.net.UnknownHostException: mongoplay}}]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 49#225462830

    GitHub | 6 months ago | ChristianDaniel
    play.api.UnexpectedException: Unexpected exception[MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=mongoplay:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: mongoplay}, caused by {java.net.UnknownHostException: mongoplay}}]]
  6. 0

    Unable to establish a connnection to MongoDB AWS instance using MongoClient

    Stack Overflow | 6 months ago | Ajay Mehra
    com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches {serverSelectors=[ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15 ms}]}. Client view of cluster state is {type=ReplicaSet, servers=[{address=10.162.45.16:27017, type=Unknown, state=Connecting}, {address=10.174.19.120:27017, type=Unknown, state=Connecting}]

    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 500 ms while waiting for a se rver that matches ReadPreferenceServerSelector{readPreference=primary}. Client v iew of cluster state is {type=UNKNOWN, servers=[{address=localhost:51531, type=U NKNOWN, state=CONNECTING}]

      at com.mongodb.connection.BaseCluster.createTimeoutException()
    2. MongoDB Java Driver
      GridFS.remove
      1. com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:369)
      2. com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:101)
      3. com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:75)
      4. com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:71)
      5. com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:63)
      6. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:210)
      7. com.mongodb.operation.FindOperation.execute(FindOperation.java:482)
      8. com.mongodb.operation.FindOperation.execute(FindOperation.java:79)
      9. com.mongodb.Mongo.execute(Mongo.java:772)
      10. com.mongodb.Mongo$2.execute(Mongo.java:759)
      11. com.mongodb.DBCursor.initializeCursor(DBCursor.java:851)
      12. com.mongodb.DBCursor.hasNext(DBCursor.java:152)
      13. com.mongodb.gridfs.GridFS.find(GridFS.java:247)
      14. com.mongodb.gridfs.GridFS.find(GridFS.java:227)
      15. com.mongodb.gridfs.GridFS.remove(GridFS.java:310)
      15 frames
    3. Spring Data MongoDB - Core
      GridFsTemplate.delete
      1. org.springframework.data.mongodb.gridfs.GridFsTemplate.delete(GridFsTemplate.java:207)
      1 frame
    4. org.eclipse.hawkbit
      AbstractIntegrationTest.cleanCurrentCollection
      1. org.eclipse.hawkbit.repository.test.util.AbstractIntegrationTest.cleanCurrentCollection(AbstractIntegrationTest.java:205)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    6. JUnit
      RunAfters.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
      4 frames
    7. Spring TestContext
      RunAfterTestMethodCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
      1 frame
    8. JUnit
      TestWatchman$1.evaluate
      1. org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:53)
      1 frame
    9. org.eclipse.hawkbit
      WithSpringAuthorityRule$1.evaluate
      1. org.eclipse.hawkbit.repository.test.util.WithSpringAuthorityRule$1.evaluate(WithSpringAuthorityRule.java:40)
      1 frame
    10. JUnit
      RunRules.evaluate
      1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      1 frame
    11. Spring TestContext
      SpringRepeat.evaluate
      1. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
      1 frame
    12. JUnit
      ParentRunner.runLeaf
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      1 frame
    13. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
      2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
      2 frames
    14. JUnit
      RunBefores.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      6. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6 frames
    15. Spring TestContext
      RunBeforeTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
      1 frame
    16. JUnit
      RunAfters.evaluate
      1. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      1 frame
    17. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
      1 frame
    18. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      1 frame