【问题标题】:MongoDB replica creation error: Quorum check failed because not enough voting nodes respondedMongoDB 副本创建错误:Quorum check failed 因为没有足够的投票节点响应
【发布时间】:2018-08-25 06:03:27
【问题描述】:

我正在尝试部署 MongoDB 副本集。我已将我的 MongoDB 实例作为 First Digitalocen 液滴中副本的主要实例。现在我正在尝试添加另一个托管在 Second Digitalocen droplet 上的 MongoDB 实例,作为副本的辅助。我还在防火墙(ufw)中打开了 27017 端口,允许 IP 地址27017 ALLOW Anywhere 27017 ALLOW 206.189.168.245

但我收到以下错误:

rs0:PRIMARY> rs.add('206.189.168.245:27017')
{
    "ok" : 0,
    "errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: 159.89.150.245:27017; the following nodes did not respond affirmatively: 206.189.168.245:27017 failed with Couldn't get a connection within the time limit",
    "code" : 74,
    "codeName" : "NodeNotFound" 
}

这里,Digitalocean droplet 版本:Ubuntu 16.04.4 x64 和 MongoDB 版本:v3.4.16

这是什么原因?

【问题讨论】:

    标签: mongodb digital-ocean


    【解决方案1】:

    尝试禁用 SELinuxFirewalld

    检查 SELinux 和 Firewalld 状态:

    1. 状态
    2. systemctl status firewalld

    它会起作用的......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 2021-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多