Lilac Open edX Native Installation - Having issues with pymongo installation

Hello Experts,

I need help with getting my installation working.

Followed instructions from this page:

Linux ip-172-31-37-223 5.13.0-1021-aws #23~20.04.2-Ubuntu SMP Thu Mar 31 11:36:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

This is the error I am seeing:

TASK [mongo_4_0 : determine if there is a replica set already] *****************
fatal: [localhost]: FAILED! => {“changed”: false, “module_stderr”: “/root/.ansible/tmp/ansible-tmp-1649961115.693133-51029-213535617717076/AnsiballZ_mongodb_rs_status:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses\n import imp\nTraceback (most recent call last):\n File “/root/.ansible/tmp/ansible-tmp-1649961115.693133-51029-213535617717076/AnsiballZ_mongodb_rs_status”, line 114, in \n _ansiballz_main()\n File “/root/.ansible/tmp/ansible-tmp-1649961115.693133-51029-213535617717076/AnsiballZ_mongodb_rs_status”, line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File “/root/.ansible/tmp/ansible-tmp-1649961115.693133-51029-213535617717076/AnsiballZ_mongodb_rs_status”, line 49, in invoke_module\n imp.load_module(‘main’, mod, module, MOD_DESC)\n File “/usr/lib/python3.8/”, line 234, in load_module\n return load_source(name, filename, file)\n File “/usr/lib/python3.8/”, line 169, in load_source\n module = _exec(spec, sys.modules[name])\n File “”, line 604, in _exec\n File “”, line 848, in exec_module\n File “”, line 219, in _call_with_frames_removed\n File “/tmp/ansible_mongodb_rs_status_payload_pw49zfwh/”, line 133, in \n File “/tmp/ansible_mongodb_rs_status_payload_pw49zfwh/”, line 115, in main\n File “/usr/local/lib/python3.8/dist-packages/pymongo/”, line 736, in command\n with self.__client._socket_for_reads(\n File “/usr/lib/python3.8/”, line 113, in enter\n return next(self.gen)\n File “/usr/local/lib/python3.8/dist-packages/pymongo/”, line 1325, in _socket_for_reads\n server = self._select_server(read_preference, session)\n File “/usr/local/lib/python3.8/dist-packages/pymongo/”, line 1278, in _select_server\n server = topology.select_server(server_selector)\n File “/usr/local/lib/python3.8/dist-packages/pymongo/”, line 241, in select_server\n return random.choice(self.select_servers(selector,\n File “/usr/local/lib/python3.8/dist-packages/pymongo/”, line 199, in select_servers\n server_descriptions = self._select_servers_loop(\n File “/usr/local/lib/python3.8/dist-packages/pymongo/”, line 215, in _select_servers_loop\n raise ServerSelectionTimeoutError(\npymongo.errors.ServerSelectionTimeoutError: [Errno 111] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: 6258689cdd932db75af0835d, topology_type: Single, servers: [<ServerDescription (‘’, 27017) server_type: Unknown, rtt: None, error=AutoReconnect(‘ [Errno 111] Connection refused’)>]>\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}

Ansible failed!

Decoded error:
== censored ===========================
the output has been hidden due to the fact that ‘no_log: true’ was specified for this result

Installation failed!

If you need help, see Connect – Open edX .
When asking for help, please provide as much information as you can.
These might be helpful:
Your log file is at /home/ubuntu/logs/install-20220414-182856.log
Your environment:

Installation finished at 2022-04-14 19:19:21


sudo /edx/bin/supervisorctl status
cms RUNNING pid 78203, uptime 0:19:19
edxapp_worker:cms_default_1 RUNNING pid 69234, uptime 0:32:57
edxapp_worker:cms_high_1 RUNNING pid 69250, uptime 0:32:56
edxapp_worker:lms_default_1 RUNNING pid 69261, uptime 0:32:55
edxapp_worker:lms_high_1 RUNNING pid 69285, uptime 0:32:53
edxapp_worker:lms_high_mem_1 RUNNING pid 69312, uptime 0:32:52
lms RUNNING pid 82133, uptime 0:17:42

I don’t see other processes running as listed on this page for the above command

Any help appreciated.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.