What's problem ? Install error

What is the cause of code error?
I’m beginner.

============================================================
Ansible failed!

Decoded error:
== module_stderr ===========================
Traceback (most recent call last):
File “/root/.ansible/tmp/ansible-tmp-1594193502.74-141503057242974/AnsiballZ_mongodb_rs_status”, line 113, in
_ansiballz_main()
File “/root/.ansible/tmp/ansible-tmp-1594193502.74-141503057242974/AnsiballZ_mongodb_rs_status”, line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File “/root/.ansible/tmp/ansible-tmp-1594193502.74-141503057242974/AnsiballZ_mongodb_rs_status”, line 48, in invoke_module
imp.load_module(‘main’, mod, module, MOD_DESC)
File “/tmp/ansible_mongodb_rs_status_payload__G0toa/main.py”, line 133, in
File “/tmp/ansible_mongodb_rs_status_payload__G0toa/main.py”, line 115, in main
File “/usr/local/lib/python2.7/dist-packages/pymongo/database.py”, line 529, in command
with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
File “/usr/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py”, line 982, in _socket_for_reads
server = topology.select_server(read_preference)
File “/usr/local/lib/python2.7/dist-packages/pymongo/topology.py”, line 224, in select_server
address))
File “/usr/local/lib/python2.7/dist-packages/pymongo/topology.py”, line 183, in select_servers
selector, server_timeout, address)
File “/usr/local/lib/python2.7/dist-packages/pymongo/topology.py”, line 199, in _select_servers_loop
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused

== msg ===========================
MODULE FAILURE
See stdout/stderr for the exact error

============================================================
Installation failed!

If you need help, see https://open.edx.org/getting-help .
When asking for help, please provide as much information as you can.
These might be helpful:
Your log file is at /root/logs/install-20200708-142122.log
Your environment:
OPENEDX_RELEASE=open-release/juniper.1

Installation finished at 2020-07-08 15:04:15

1 Like

I also encountered this problem
But my environment is OPENEDX_RELEASE=open-release/juniper.2

I also encounter this exact issue with junniper.3. I have no idea how to fix it but I can login to mongodb without issues:

That shows that it also fails to write the edx databases or collectioins…

root@town:~/openedx# mongo -u admin -p7XwkYi1UHEZHlnchd73Ao2un7u6oykTxQtc --eval 'db.adminCommand({listDatabases:1});'
MongoDB shell version v3.6.17
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("1224a904-338d-48e5-9483-c5d1f9030cd0") }
MongoDB server version: 3.6.17
{
        "databases" : [
                {
                        "name" : "admin",
                        "sizeOnDisk" : 163840,
                        "empty" : false
                },
                {
                        "name" : "config",
                        "sizeOnDisk" : 118784,
                        "empty" : false
                },
                {
                        "name" : "local",
                        "sizeOnDisk" : 299008,
                        "empty" : false
                }
        ],
        "totalSize" : 581632,
        "ok" : 1,
        "operationTime" : Timestamp(1610444349, 1),
        "$clusterTime" : {
                "clusterTime" : Timestamp(1610444349, 1),
                "signature" : {
                        "hash" : BinData(0,"XQrheThkhi8+wrn0qMMxn3+Zdi0="),
                        "keyId" : NumberLong("6916791543101652993")
                }
        }

Yet error reveals,

============================================================
Ansible failed!
------------------------------------------------------------

Decoded error:
== module_stderr ===========================
Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-tmp-1610440987.2-156851369972909/AnsiballZ_mongodb_rs_status", line 113, in <module>
    _ansiballz_main()
  File "/root/.ansible/tmp/ansible-tmp-1610440987.2-156851369972909/AnsiballZ_mongodb_rs_status", line 105, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/root/.ansible/tmp/ansible-tmp-1610440987.2-156851369972909/AnsiballZ_mongodb_rs_status", line 48, in invoke_module
    imp.load_module('__main__', mod, module, MOD_DESC)
  File "/tmp/ansible_mongodb_rs_status_payload_q_d_c8/__main__.py", line 133, in <module>
  File "/tmp/ansible_mongodb_rs_status_payload_q_d_c8/__main__.py", line 115, in main
  File "/usr/local/lib/python2.7/dist-packages/pymongo/database.py", line 529, in command
    with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 982, in _socket_for_reads
    server = topology.select_server(read_preference)
  File "/usr/local/lib/python2.7/dist-packages/pymongo/topology.py", line 224, in select_server
    address))
  File "/usr/local/lib/python2.7/dist-packages/pymongo/topology.py", line 183, in select_servers
    selector, server_timeout, address)
  File "/usr/local/lib/python2.7/dist-packages/pymongo/topology.py", line 199, in _select_servers_loop
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused

== msg ===========================
MODULE FAILURE
See stdout/stderr for the exact error

============================================================
Installation failed!
------------------------------------------------------------

Anyone knows the fix?