MongoC client disconnect error from server

781 views
Skip to first unread message

arun muralidharan

unread,
May 4, 2018, 8:57:25 AM5/4/18
to mongodb-user
OS: Ubuntu 16
Mongo C driver version : 1.3.1-1 amd64
Mongo DB server version : 3.6.3

I am seeing below logs after enabling certain debug logs:

2018-05-04T11:39:26.995Z D COMMAND  [conn4] run command admin.$cmd { isMaster: 1, $readPreference: { mode: "secondaryPreferred" }, $db: "admin" }
2018-05-04T11:39:26.995Z D NETWORK  [conn4] Starting server-side compression negotiation
2018-05-04T11:39:26.995Z D NETWORK  [conn4] Compression negotiation not requested by client
2018-05-04T11:39:26.996Z I COMMAND  [conn4] command admin.$cmd command: isMaster { isMaster: 1, $readPreference: { mode: "secondaryPreferred" }, $db: "admin" } numYields:0 reslen:223 locks:{} protocol:op_query 0ms
2018-05-04T11:39:26.996Z D NETWORK  [conn4] Session from 127.0.0.1:46516 encountered a network error during SourceMessage
2018-05-04T11:39:26.996Z I NETWORK  [conn4] end connection 127.0.0.1:46516 (1 connection now open)

So, the last log pasted above says that it disconnected the client. But I am unable to figure out what exactly caused the disconnection.

Any idea folks ?

Thanks in advance!

Wan Bachtiar

unread,
Jun 5, 2018, 3:47:12 AM6/5/18
to mongodb-user

So, the last log pasted above says that it disconnected the client. But I am unable to figure out what exactly caused the disconnection.

Hi Arun,

It’s been a while since you posted this question, have you found a solution yet ?

Based on error message, it’s likely to come from the server code service_state_machine.cppL308. Seems to be caused by network error or interruption.

Is it constantly reproducible ? If so, do you have a minimal working script to reproduce the issue ? 

See also related ticket SERVER-34621. Please feel free to watch/upvote to receive updates.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages