[SERVER-20662] Mongod server broken pipe error (from localhost) Created: 28/Sep/15  Updated: 12/Nov/15  Resolved: 28/Sep/15

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 3.0.5
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Alex Leon Liu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

Mongod version 3.0.5
Connection using mongo shell from same server.

Current /etc/sysctl.conf network params:
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.route.flush = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.default.accept_redirects = 0
net.ipv4.tcp_keepalive_time = 120

Participants:

 Description   

rs1:PRIMARY> rs.status()
2015-09-28T09:41:54.349-0600 I NETWORK Socket say send() errno:32 Broken pipe 127.0.0.1:27017
2015-09-28T09:41:54.350-0600 E QUERY Error: socket exception [SEND_ERROR] for 127.0.0.1:27017
at DBQuery._exec (src/mongo/shell/query.js:83:36)
at DBQuery.hasNext (src/mongo/shell/query.js:240:10)
at DBCollection.findOne (src/mongo/shell/collection.js:187:19)
at DB.runCommand (src/mongo/shell/db.js:58:41)
at DB.adminCommand (src/mongo/shell/db.js:65:21)
at Function.rs.status (src/mongo/shell/utils.js:937:37)
at (shell):1:4 at src/mongo/shell/query.js:83
2015-09-28T09:41:54.351-0600 I NETWORK trying reconnect to localhost:27017 (127.0.0.1) failed
2015-09-28T09:41:54.351-0600 I NETWORK reconnect localhost:27017 (127.0.0.1) ok
rs1:PRIMARY>



 Comments   
Comment by Alex Leon Liu [ 12/Nov/15 ]

solved the problem by adding an arbiter since we had two members in each replica set

Comment by Ramon Fernandez Marina [ 28/Sep/15 ]

laleon@tigo.com.gt, this message means the shell lost the connection to the server (for example, because this node was restarted) and had to reconnect, so this is expected.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 03:54:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.