首页  :: 新随笔  :: 管理

"stateStr" : "(not reachable/healthy)"

Posted on 2022-04-10 09:50  高&玉  阅读(964)  评论(0编辑  收藏  举报

问题背景

查看复制集状态,节点异常(not reachable),authenticated:false

> rs.status()
			"_id" : 5,
			"name" : "192.168.5.133:27018",
			"health" : 0,
			"state" : 6,
			"stateStr" : "(not reachable/healthy)",
			"uptime" : 0,
			"lastHeartbeat" : ISODate("2022-04-09T12:14:34.678Z"),
			"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
			"pingMs" : NumberLong(0),
			"lastHeartbeatMessage" : "",
			"authenticated" : false,
			"syncSourceHost" : "",
			"syncSourceId" : -1,
			"infoMessage" : "",
			"configVersion" : -1,
			"configTerm" : -1
		}

解决办法

经查询复制集启动时启用了security.KeyFile,而此Arbiter节点未启用security.KeyFile,取消security.KeyFile注释重启Arbiter节点即可。