Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to start replica #243

Open
priyanka1628 opened this issue Jan 18, 2021 · 3 comments
Open

unable to start replica #243

priyanka1628 opened this issue Jan 18, 2021 · 3 comments

Comments

@priyanka1628
Copy link

}, 
"item": {
    "host_name": "mongo_master", 
    "host_port": 27017, 
    "host_type": "replica"
}, 
"msg": "Unable to initiate replica set: This node was not started with the replSet option"

}
added the above params in vars, but on starting mongo it gives this error. please help how to fix

@priyanka1628
Copy link
Author

hi anyone can please help on the issue of connection refused .

"module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_MoaOAr/ansible_module_mongodb_replication.py\", line 466, in <module>\r\n    main()\r\n  File \"/tmp/ansible_MoaOAr/ansible_module_mongodb_replication.py\", line 425, in main\r\n    client['admin'].command('replSetInitiate', config)\r\n  File \"/home/ubuntu/.local/lib/python2.7/site-packages/pymongo/database.py\", line 611, in command\r\n    read_preference) as (sock_info, slave_ok):\r\n  File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\r\n    return self.gen.next()\r\n  File \"/home/ubuntu/.local/lib/python2.7/site-packages/pymongo/mongo_client.py\", line 1099, in _socket_for_reads\r\n    server = topology.select_server(read_preference)\r\n  File \"/home/ubuntu/.local/lib/python2.7/site-packages/pymongo/topology.py\", line 224, in select_server\r\n    address))\r\n  File \"/home/ubuntu/.local/lib/python2.7/site-packages/pymongo/topology.py\", line 183, in select_servers\r\n    selector, server_timeout, address)\r\n  File \"/home/ubuntu/.local/lib/python2.7/site-packages/pymongo/topology.py\", line 199, in _select_servers_loop\r\n    self._error_message(selector))\r\npymongo.errors.ServerSelectionTimeoutError: 0.0.0.0:27017: [Errno 111] Connection refused\r\n", 
"msg": "MODULE FAILURE", 
"rc": 1

@joe-speedboat
Copy link

Hi I work with this role and ALMA8 and can confirm it works perfect!
If you want help, please provide all information for us to "test your case" (whole ansible project).
cu chris

@joe-speedboat
Copy link

#254
my example from here may solve your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants