仲裁者不接受连接

时间:2014-07-16 13:55:27

标签: mongodb replicaset

(MongoDB版本2.6.3)

我有一个副本集:2个节点+仲裁者。副本集没有问题,但我无法连接到仲裁器:

Failed to connect to myarbiter.com, reason: errno:111 Connection refused
2014-07-16T13:41:59.513+0000 Error: couldn't connect to server myarbiter.com ( myIP), connection attempt failed at src/mongo/shell/mongo.js:148
exception: connect failed

Courios是我可以添加&将节点删除到我的副本集中。连接到辅助或主要,我可以看到Arbiter:

"_id" : 2,
"name" : "myarbiter:myport",
"health" : 1,
"state" : 7,
"stateStr" : "ARBITER",
"uptime" : 4,
"lastHeartbeat" : ISODate("2014-07-16T13:25:13Z"),
"lastHeartbeatRecv" : ISODate("2014-07-16T13:25:13Z"),
"pingMs" : 111

如果我拖尾mongod.log(在Arbiter上)我可以看到

2014-07-16T13:48:15.583+0000 [initandlisten] connection accepted from SOME_IP:SOME_PORT #46 (37 connections now open)
2014-07-16T13:48:15.754+0000 [conn42]  authenticate db: admin { authenticate: 1, user: "MYUSER", nonce: "xxx", key: "xxx" }
2014-07-16T13:48:15.754+0000 [conn42] Failed to authenticate MYUSER@admin with mechanism MONGODB-CR: AuthenticationFailed UserNotFound Could not find user MYUSER@admin
2014-07-16T13:48:15.974+0000 [initandlisten] connection accepted from SOME_IP:SOME_POR #47 (38 connections now open)

使用我的其他副本集,我可以毫无问题地连接到Arbiter。知道发生了什么事吗?

修改:如果我删除副本信息&删除auth,我可以毫无问题地连接到该节点。没有防火墙问题:)

1 个答案:

答案 0 :(得分:5)

你说你有另一个副本集运行无故障。它是否与麻烦的MongoDB版本完全相同?

MongoDB有一个关于仲裁器配置和连接限制的开放票据。最近似乎有一些变化 - 您可以查看一下,看看那里写的信息是否对您有帮助:https://jira.mongodb.org/browse/SERVER-5479