Install native edX: edx_django_service times out while migrating database

I’m attempting to install edX natively (koa.master), on a virtual machine (using Oracle VirtualBox) with 2GB of RAM and 50GB of VHD space.
While running the bash script, an error came up, which I assume is a timeout:

Ansible failed!

Decoded error:
== cmd ===========================
['make', 'migrate']
== msg ===========================
non-zero return code
== stderr ===========================
Traceback (most recent call last):
  File "/edx/app/discovery/venvs/discovery/lib/python3.8/site-packages/urllib3/", line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/edx/app/discovery/venvs/discovery/lib/python3.8/site-packages/urllib3/", line 421, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/", line 1347, in getresponse
  File "/usr/lib/python3.8/http/", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/", line 669, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Full pastebin of the matter can be found here (truncated the entire content before the decoded error, please tell me if you need the entire thing): ERROR : edx_django_service - migrate database -
If it helps, I am also running several Internet-connected programs in the background in addition to VirtualBox.

I’d appreciate any help in resolving this, and maybe if you could, advise me on how you looked into the problem.

I suspect that you hit the memory limit. 2Gb (4Gb swap) is too small to get all components works.
The error shows that the Elasticsearch services is down (port 9200). You can investigate /edx/var/log/elasticsearch/elasticsearch.log to figure out what happened.

1 Like