Hello, while installing Open edX koa.master release, (following this guide: link) I am facing the error at step 5, pasted below (at the end of this full log file: https://pastebin.com/3yFrt601). Please let me know what I am doing wrong here? On a side note, I am totally new to this. Thanks in advance!
TASK [edxapp : migrate] ********************************************************
failed: [localhost] (item=lms) => {"ansible_loop_var": "item", "changed": true, "cmd": ["/edx/bin/edxapp-migrate-lms"], "delta": "0:01:01.155515", "end": "2021-05-20 07:18:39.224244", "item": "lms", "msg": "non-zero return code", "rc": 1, "start": "2021-05-20 07:17:38.068729", "stderr": "2021-05-20 07:18:15,704 WARNING 44479 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/newrelic/console.py:84: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly\n prototype = wrapper.__name__[3:] + ' ' + inspect.formatargspec(\n\nTraceback (most recent call last):\n File \"manage.py\", line 120, in <module>\n startup.run()\n File \"/edx/app/edxapp/edx-platform/lms/startup.py\", line 20, in run\n django.setup()\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/__init__.py\", line 24, in setup\n apps.populate(settings.INSTALLED_APPS)\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/registry.py\", line 91, in populate\n app_config = AppConfig.create(entry)\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/config.py\", line 90, in create\n module = import_module(entry)\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 783, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 11, in <module>\n class CoursegraphConfig(AppConfig):\n File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 17, in CoursegraphConfig\n from openedx.core.djangoapps.coursegraph import tasks\n File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/tasks.py\", line 250, in <module>\n @set_code_owner_attribute\nNameError: name 'set_code_owner_attribute' is not defined", "stderr_lines": ["2021-05-20 07:18:15,704 WARNING 44479 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/newrelic/console.py:84: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly", " prototype = wrapper.__name__[3:] + ' ' + inspect.formatargspec(", "", "Traceback (most recent call last):", " File \"manage.py\", line 120, in <module>", " startup.run()", " File \"/edx/app/edxapp/edx-platform/lms/startup.py\", line 20, in run", " django.setup()", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/__init__.py\", line 24, in setup", " apps.populate(settings.INSTALLED_APPS)", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/registry.py\", line 91, in populate", " app_config = AppConfig.create(entry)", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/config.py\", line 90, in create", " module = import_module(entry)", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/importlib/__init__.py\", line 127, in import_module", " return _bootstrap._gcd_import(name[level:], package, level)", " File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import", " File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load", " File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load_unlocked", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed", " File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import", " File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load", " File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked", " File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked", " File \"<frozen importlib._bootstrap_external>\", line 783, in exec_module", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed", " File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 11, in <module>", " class CoursegraphConfig(AppConfig):", " File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 17, in CoursegraphConfig", " from openedx.core.djangoapps.coursegraph import tasks", " File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/tasks.py\", line 250, in <module>", " @set_code_owner_attribute", "NameError: name 'set_code_owner_attribute' is not defined"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=cms) => {"ansible_loop_var": "item", "changed": true, "cmd": ["/edx/bin/edxapp-migrate-cms"], "delta": "0:00:02.860943", "end": "2021-05-20 07:18:42.378986", "item": "cms", "msg": "non-zero return code", "rc": 1, "start": "2021-05-20 07:18:39.518043", "stderr": "2021-05-20 07:18:41,069 WARNING 44527 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/newrelic/console.py:84: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly\n prototype = wrapper.__name__[3:] + ' ' + inspect.formatargspec(\n\nTraceback (most recent call last):\n File \"manage.py\", line 120, in <module>\n startup.run()\n File \"/edx/app/edxapp/edx-platform/cms/startup.py\", line 20, in run\n django.setup()\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/__init__.py\", line 24, in setup\n apps.populate(settings.INSTALLED_APPS)\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/registry.py\", line 91, in populate\n app_config = AppConfig.create(entry)\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/config.py\", line 90, in create\n module = import_module(entry)\n File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 783, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 11, in <module>\n class CoursegraphConfig(AppConfig):\n File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 17, in CoursegraphConfig\n from openedx.core.djangoapps.coursegraph import tasks\n File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/tasks.py\", line 250, in <module>\n @set_code_owner_attribute\nNameError: name 'set_code_owner_attribute' is not defined", "stderr_lines": ["2021-05-20 07:18:41,069 WARNING 44527 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/newrelic/console.py:84: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly", " prototype = wrapper.__name__[3:] + ' ' + inspect.formatargspec(", "", "Traceback (most recent call last):", " File \"manage.py\", line 120, in <module>", " startup.run()", " File \"/edx/app/edxapp/edx-platform/cms/startup.py\", line 20, in run", " django.setup()", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/__init__.py\", line 24, in setup", " apps.populate(settings.INSTALLED_APPS)", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/registry.py\", line 91, in populate", " app_config = AppConfig.create(entry)", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/apps/config.py\", line 90, in create", " module = import_module(entry)", " File \"/edx/app/edxapp/venvs/edxapp/lib/python3.8/importlib/__init__.py\", line 127, in import_module", " return _bootstrap._gcd_import(name[level:], package, level)", " File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import", " File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load", " File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load_unlocked", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed", " File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import", " File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load", " File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked", " File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked", " File \"<frozen importlib._bootstrap_external>\", line 783, in exec_module", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed", " File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 11, in <module>", " class CoursegraphConfig(AppConfig):", " File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/apps.py\", line 17, in CoursegraphConfig", " from openedx.core.djangoapps.coursegraph import tasks", " File \"/edx/app/edxapp/edx-platform/openedx/core/djangoapps/coursegraph/tasks.py\", line 250, in <module>", " @set_code_owner_attribute", "NameError: name 'set_code_owner_attribute' is not defined"], "stdout": "", "stdout_lines": []}
NO MORE HOSTS LEFT *************************************************************
PLAY RECAP *********************************************************************
localhost : ok=188 changed=127 unreachable=0 failed=1 skipped=309 rescued=0 ignored=3
============================================================
Ansible failed!
------------------------------------------------------------
Decoded error:
== module_stderr ===========================
/root/.ansible/tmp/ansible-tmp-1621489513.8833401-25864-91040802929421/AnsiballZ_mongodb_rs_status:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1621489513.8833401-25864-91040802929421/AnsiballZ_mongodb_rs_status", line 114, in <module>
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1621489513.8833401-25864-91040802929421/AnsiballZ_mongodb_rs_status", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1621489513.8833401-25864-91040802929421/AnsiballZ_mongodb_rs_status", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/usr/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.8/imp.py", line 169, in load_source
module = _exec(spec, sys.modules[name])
File "<frozen importlib._bootstrap>", line 604, in _exec
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_mongodb_rs_status_payload_kfawj4_q/__main__.py", line 133, in <module>
File "/tmp/ansible_mongodb_rs_status_payload_kfawj4_q/__main__.py", line 115, in main
File "/usr/local/lib/python3.8/dist-packages/pymongo/database.py", line 529, in command
with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pymongo/mongo_client.py", line 982, in _socket_for_reads
server = topology.select_server(read_preference)
File "/usr/local/lib/python3.8/dist-packages/pymongo/topology.py", line 222, in select_server
return random.choice(self.select_servers(selector,
File "/usr/local/lib/python3.8/dist-packages/pymongo/topology.py", line 182, in select_servers
server_descriptions = self._select_servers_loop(
File "/usr/local/lib/python3.8/dist-packages/pymongo/topology.py", line 198, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 111] Connection refused
== msg ===========================
MODULE FAILURE
See stdout/stderr for the exact error