com.mongodb.MongoException$Network: Read operation to server cs-mongo-mongo-west-t/10.4.0.110:3306 failed on database mdb

JIRA | Daniel Heitepriem | 2 years ago
  1. 0

    I'm using an sharded-cluster with a java application. After a specifid time (10 minutes or more) I got the following exception: {noformat} com.mongodb.MongoException$Network: Read operation to server cs-mongo-mongo-west-t/10.4.0.110:3306 failed on database mdb at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:253) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:216) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:288) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:273) at com.mongodb.DBCursor._check(DBCursor.java:368) at com.mongodb.DBCursor._hasNext(DBCursor.java:459) at com.mongodb.DBCursor._fill(DBCursor.java:518) at com.mongodb.DBCursor.toArray(DBCursor.java:553) at com.mongodb.DBCursor.toArray(DBCursor.java:542) at com.pribas.messagesdb.impl.GetMessagesDBHandlerImpl.handleRequest(GetMessagesDBHandlerImpl.java:86) at com.pribas.messagesdb.impl.MessagesDBHandlerImpl.handleRequest(MessagesDBHandlerImpl.java:37) at com.pribas.messagesdb.service.MessageServlet.processRequest(MessageServlet.java:161) at com.pribas.messagesdb.service.MessageServlet.doPost(MessageServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Zeitlimit f\303\274r Verbindung \303\274berschritten at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.bson.io.Bits.readFully(Bits.java:46) at org.bson.io.Bits.readFully(Bits.java:33) at org.bson.io.Bits.readFully(Bits.java:28) at com.mongodb.Response.<init>(Response.java:40) at com.mongodb.DBPort.go(DBPort.java:142) at com.mongodb.DBPort.call(DBPort.java:92) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:244) ... 30 more {noformat} Is there a way to disable this timeout of the cursor within the sharded-cluster or within the config-file? Thank you very much, Daniel

    JIRA | 2 years ago | Daniel Heitepriem
    com.mongodb.MongoException$Network: Read operation to server cs-mongo-mongo-west-t/10.4.0.110:3306 failed on database mdb
  2. 0

    I'm using an sharded-cluster with a java application. After a specifid time (10 minutes or more) I got the following exception: {noformat} com.mongodb.MongoException$Network: Read operation to server cs-mongo-mongo-west-t/10.4.0.110:3306 failed on database mdb at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:253) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:216) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:288) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:273) at com.mongodb.DBCursor._check(DBCursor.java:368) at com.mongodb.DBCursor._hasNext(DBCursor.java:459) at com.mongodb.DBCursor._fill(DBCursor.java:518) at com.mongodb.DBCursor.toArray(DBCursor.java:553) at com.mongodb.DBCursor.toArray(DBCursor.java:542) at com.pribas.messagesdb.impl.GetMessagesDBHandlerImpl.handleRequest(GetMessagesDBHandlerImpl.java:86) at com.pribas.messagesdb.impl.MessagesDBHandlerImpl.handleRequest(MessagesDBHandlerImpl.java:37) at com.pribas.messagesdb.service.MessageServlet.processRequest(MessageServlet.java:161) at com.pribas.messagesdb.service.MessageServlet.doPost(MessageServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Zeitlimit f\303\274r Verbindung \303\274berschritten at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.bson.io.Bits.readFully(Bits.java:46) at org.bson.io.Bits.readFully(Bits.java:33) at org.bson.io.Bits.readFully(Bits.java:28) at com.mongodb.Response.<init>(Response.java:40) at com.mongodb.DBPort.go(DBPort.java:142) at com.mongodb.DBPort.call(DBPort.java:92) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:244) ... 30 more {noformat} Is there a way to disable this timeout of the cursor within the sharded-cluster or within the config-file? Thank you very much, Daniel

    JIRA | 2 years ago | Daniel Heitepriem
    com.mongodb.MongoException$Network: Read operation to server cs-mongo-mongo-west-t/10.4.0.110:3306 failed on database mdb
  3. 0

    I assume that astyanax when calling to context just shutdown not closing the connection

    GitHub | 4 years ago | PavelTCo
    org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Retry mongodb connection

    GitHub | 3 years ago | j0hnsmith
    com.mongodb.MongoException$Network: Read operation to server /172.17.0.2:27017 failed on database local

  1. Andreas Häber 4 times, last 2 months ago
  2. sriharshakiran 1 times, last 7 months ago
14 unregistered visitors
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. java.net.SocketException

    Zeitlimit f\303\274r Verbindung \303\274berschritten

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    BufferedInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(Unknown Source)
    3. java.net.SocketInputStream.read(Unknown Source)
    4. java.io.BufferedInputStream.fill(Unknown Source)
    5. java.io.BufferedInputStream.read1(Unknown Source)
    6. java.io.BufferedInputStream.read(Unknown Source)
    6 frames
  3. MongoDB Java Driver
    DBCursor.toArray
    1. org.bson.io.Bits.readFully(Bits.java:46)
    2. org.bson.io.Bits.readFully(Bits.java:33)
    3. org.bson.io.Bits.readFully(Bits.java:28)
    4. com.mongodb.Response.<init>(Response.java:40)
    5. com.mongodb.DBPort.go(DBPort.java:142)
    6. com.mongodb.DBPort.call(DBPort.java:92)
    7. com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:244)
    8. com.mongodb.DBTCPConnector.call(DBTCPConnector.java:216)
    9. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:288)
    10. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:273)
    11. com.mongodb.DBCursor._check(DBCursor.java:368)
    12. com.mongodb.DBCursor._hasNext(DBCursor.java:459)
    13. com.mongodb.DBCursor._fill(DBCursor.java:518)
    14. com.mongodb.DBCursor.toArray(DBCursor.java:553)
    15. com.mongodb.DBCursor.toArray(DBCursor.java:542)
    15 frames
  4. com.pribas.messagesdb
    MessageServlet.doPost
    1. com.pribas.messagesdb.impl.GetMessagesDBHandlerImpl.handleRequest(GetMessagesDBHandlerImpl.java:86)
    2. com.pribas.messagesdb.impl.MessagesDBHandlerImpl.handleRequest(MessagesDBHandlerImpl.java:37)
    3. com.pribas.messagesdb.service.MessageServlet.processRequest(MessageServlet.java:161)
    4. com.pribas.messagesdb.service.MessageServlet.doPost(MessageServlet.java:86)
    4 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    2 frames
  6. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    10 frames
  7. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    3 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames