Hi,

when running sudo wget 
https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/native.sh
 -O 
- | bash the installation fails.

TASK [mongo_3_2 : determine if there is a replica set already] 
*****************
An exception occurred during task execution. To see the full traceback, use 
-vvv. The error was: pymongo.errors.ServerSelectionTimeoutError: 
127.0.0.1:27017: [Errno 111] Connection refused
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, 
"module_stderr": "Traceback (most recent call last):\n  File 
\"/tmp/ansible_9fcG8c/ansible_module_mongodb_rs_status.py\", line 131, in 
<module>\n    main()\n  File 
\"/tmp/ansible_9fcG8c/ansible_module_mongodb_rs_status.py\", line 113, in 
main\n    repl_set = 
client.admin.command('getCmdLineOpts')['parsed']['replication']['replSetName']\n
  
File \"/usr/local/lib/python2.7/dist-packages/pymongo/database.py\", line 
478, in command\n    with client._socket_for_reads(read_preference) as 
(sock_info, slave_ok):\n  File \"/usr/lib/python2.7/contextlib.py\", line 
17, in __enter__\n    return self.gen.next()\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py\", line 
752, in _socket_for_reads\n    with self._get_socket(read_preference) as 
sock_info:\n  File \"/usr/lib/python2.7/contextlib.py\", line 17, in 
__enter__\n    return self.gen.next()\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py\", line 
716, in _get_socket\n    server = 
self._get_topology().select_server(selector)\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/topology.py\", line 142, 
in select_server\n    address))\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/topology.py\", line 118, 
in select_servers\n    
self._error_message(selector))\npymongo.errors.ServerSelectionTimeoutError: 
127.0.0.1:27017: [Errno 111] Connection refused\n", "module_stdout": "", 
"msg": "MODULE FAILURE", "rc": 0}
...ignoring

TASK [mongo_3_2 : Try checking the replica set with no user/pass in case 
this is a new box] ***
An exception occurred during task execution. To see the full traceback, use 
-vvv. The error was: pymongo.errors.ServerSelectionTimeoutError: 
127.0.0.1:27017: [Errno 111] Connection refused
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, 
"module_stderr": "Traceback (most recent call last):\n  File 
\"/tmp/ansible_J7ptBK/ansible_module_mongodb_rs_status.py\", line 131, in 
<module>\n    main()\n  File 
\"/tmp/ansible_J7ptBK/ansible_module_mongodb_rs_status.py\", line 113, in 
main\n    repl_set = 
client.admin.command('getCmdLineOpts')['parsed']['replication']['replSetName']\n
  
File \"/usr/local/lib/python2.7/dist-packages/pymongo/database.py\", line 
478, in command\n    with client._socket_for_reads(read_preference) as 
(sock_info, slave_ok):\n  File \"/usr/lib/python2.7/contextlib.py\", line 
17, in __enter__\n    return self.gen.next()\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py\", line 
752, in _socket_for_reads\n    with self._get_socket(read_preference) as 
sock_info:\n  File \"/usr/lib/python2.7/contextlib.py\", line 17, in 
__enter__\n    return self.gen.next()\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py\", line 
716, in _get_socket\n    server = 
self._get_topology().select_server(selector)\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/topology.py\", line 142, 
in select_server\n    address))\n  File 
\"/usr/local/lib/python2.7/dist-packages/pymongo/topology.py\", line 118, 
in select_servers\n    
self._error_message(selector))\npymongo.errors.ServerSelectionTimeoutError: 
127.0.0.1:27017: [Errno 111] Connection refused\n", "module_stdout": "", 
"msg": "MODULE FAILURE", "rc": 0}
...ignoring

TASK [mongo_3_2 : set facts that default to not initializing a replica set] 
****
ok: [localhost]

TASK [mongo_3_2 : track if you have a replica set] 
*****************************
ok: [localhost]

TASK [mongo_3_2 : warn about unconfigured replica sets] 
************************
ok: [localhost] => {
    "msg": "You do not appear to have a Replica Set configured, deploying 
one for you"
}

TASK [mongo_3_2 : copy mongodb key file] 
***************************************
ok: [localhost]

TASK [mongo_3_2 : copy configuration template] 
*********************************
ok: [localhost]

TASK [mongo_3_2 : install logrotate configuration] 
*****************************
ok: [localhost]

TASK [mongo_3_2 : restart mongo service if we changed our configuration] 
*******
skipping: [localhost]

TASK [mongo_3_2 : wait for mongo server to start] 
******************************
fatal: [localhost]: FAILED! => {"changed": false, "elapsed": 300, "failed": 
true, "msg": "Timeout when waiting for 127.0.0.1:27017"}
        to retry, use: --limit 
@/var/tmp/configuration/playbooks/openedx_native.retry

PLAY RECAP 
*********************************************************************
localhost                  : ok=85   changed=21   unreachable=0    failed=1

INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: wait 
for mongo server to start ------------------------------------------------ 
300.54s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: 
determine if there is a replica set already 
------------------------------------ 30.83s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Try 
checking the replica set with no user/pass in case this is a new box 
------- 30.75s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: install 
mongo server and recommends -------------------------------------------- 
10.02s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: restart 
mysql ------------------------------------------------------------------- 
2.95s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Update 
apt-get ------------------------------------------------------------------ 
2.92s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install 
memcached --------------------------------------------------------------- 
2.56s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install 
role-independent useful system packages [2] ----------------------------- 
2.45s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install 
the nginx package ------------------------------------------------------- 
2.44s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install 
ubuntu system packages [1] ---------------------------------------------- 
2.22s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing:
Playbook Configure instance(s) finished: 2019-04-13 16:28:12.507391, 267 
total tasks.  0:07:06.401585 elapsed.


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


I've tried 3 times now, same error.

Does anyone have any ideas?

Regards
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/5527546e-cbdb-4feb-b816-13965da52eb6%40googlegroups.com.

Reply via email to