(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 是我可以将节点添加和删除到我的副本集中。连接到辅助或主,我可以看到仲裁器:
"_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(在仲裁器上)我可以看到
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)
使用我的其他副本集,我始终可以毫无问题地连接到仲裁器。知道发生了什么吗?
编辑:如果我删除副本信息并删除身份验证,我可以毫无问题地连接到该节点。没有防火墙问题:)