When deploying a MongoDB cluster, rs.initiate (config) initializes the configuration times wrong

Source: Internet
Author: User
Tags mongodb iptables firewall

Problem: MongoDB configures the replica set file to initialize the times wrong:


"OK": 0, "errmsg": "Replsetinitiate quorum check failed because not all proposed set members responded affirmatively:17 2.24.240.103:28001 failed with no route to host, 172.24.240.104:28001 failed with no route to host, 172.24.240.105:28001 F Ailed with No route to host ",
"Code": 74,

"codename": "Nodenotfound"


Solution:


Since the MongoDB distributed replica set is initialized with calls between the individual nodes, the firewall on each node needs to be shut down.

Method One: The command is: # service iptables Stop (immediate effect, temporarily shut down the firewall, the firewall will automatically open after the system)

Method Two: # Chkconfig iptables off (takes effect after reboot, permanently shuts down the firewall)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.