MongoDB Unable to read data from the transport connection

1,002 views
Skip to first unread message

Tiny...@qq.com

unread,
Aug 18, 2011, 11:38:35 PM8/18/11
to mongodb-user
Recently I found this error in my application log, and it does not
occurs always just sometimes.

I use the mongodb c# driver from official 10gen, the verison is
1.1.0.4184, and the mongodb server version is
mongodb-linux-x86_64-static-1.6.3

System.IO.IOException: Unable to read data from the transport
connection: A connection attempt failed because the connected party
did not properly respond after a period of time, or established
connection failed because connected host has failed to respond. --->
System.Net.Sockets.SocketException: A connection attempt failed
because the connected party did not properly respond after a period of
time, or established connection failed because connected host has
failed to respond
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset,
Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32
offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32
offset, Int32 size)
at MongoDB.Bson.IO.BsonBuffer.LoadFrom(Stream stream, Int32 count)
at MongoDB.Bson.IO.BsonBuffer.LoadFrom(Stream stream)
at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage[TDocument]
(BsonBinaryReaderSettings readerSettings, IBsonSerializationOptions
serializationOptions)
at
MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage
message, SafeMode safeMode)
at MongoDB.Driver.MongoCollection.Remove(IMongoQuery query,
RemoveFlags flags, SafeMode safeMode)
at
MongoDbEngine.QueryDriver.MongoQueue.MongoQueueCacher.RemoverHistoryData()

Appreate any answers, thx a lot

Robert Stam

unread,
Aug 19, 2011, 11:44:29 PM8/19/11
to mongod...@googlegroups.com
Typical causes might be:

1. The server crashed
2. The network connection between the client and the server has been interrupted
3. The server is taking too long to respond

Can you look for any errors in the server log that might have occurred at the same point in time?


--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Reply all
Reply to author
Forward
0 new messages