Koa Release - error during installation - npm error code ELIFECYCLE

Hello.

I’m running an installation of koa.master, but it fail always at the same stage.

Here is the log output:

TASK [mfe : upgrade npm] *******************************************************
changed: [localhost]

TASK [mfe : install npm dependencies] ******************************************
changed: [localhost]

TASK [mfe : install npm overrides] *********************************************

TASK [mfe : build MFE] *********************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“npm”, “run”, “build”], “delta”: “0:01:15.660180”, “end”: “2021-02-02 13:26:51.169238”, “msg”: “non-zero return code”, “rc”: 137, “start”: “2021-02-02 13:25:35.509058”, “stderr”: “Killed\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 137\nnpm ERR! @edx/frontend-app-account@1.0.0-semantically-released build: fedx-scripts webpack\nnpm ERR! Exit status 137\nnpm ERR! \nnpm ERR! Failed at the @edx/frontend-app-account@1.0.0-semantically-released build script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /edx/app/account/.npm/_logs/2021-02-02T12_26_50_149Z-debug.log”, “stderr_lines”: [“Killed”, “npm ERR! code ELIFECYCLE”, “npm ERR! errno 137”, “npm ERR! @edx/frontend-app-account@1.0.0-semantically-released build: fedx-scripts webpack”, “npm ERR! Exit status 137”, “npm ERR! “, “npm ERR! Failed at the @edx/frontend-app-account@1.0.0-semantically-released build script.”, “npm ERR! This is probably not a problem with npm. There is likely additional logging output above.”, “”, “npm ERR! A complete log of this run can be found in:”, “npm ERR! /edx/app/account/.npm/_logs/2021-02-02T12_26_50_149Z-debug.log”], “stdout”: “\n> @edx/frontend-app-account@1.0.0-semantically-released build /edx/app/account/frontend-app-account\n> fedx-scripts webpack\n\nRunning with resolved config:\n/edx/app/account/frontend-app-account/node_modules/@edx/frontend-build/config/webpack.prod.config.js”, “stdout_lines”: [””, “> @edx/frontend-app-account@1.0.0-semantically-released build /edx/app/account/frontend-app-account”, “> fedx-scripts webpack”, “”, “Running with resolved config:”, “/edx/app/account/frontend-app-account/node_modules/@edx/frontend-build/config/webpack.prod.config.js”]}

PLAY RECAP *********************************************************************
localhost : ok=704 changed=453 unreachable=0 failed=1 skipped=1465 rescued=0 ignored=5

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

Decoded error:
No message to decode.

============================================================
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 /root/logs/install-20210202-110251.log
Your environment:
OPENEDX_RELEASE=open-release/koa.master

Hi @Herve_siyou!

How much RAM does the machine this is running at have? Running out of it is one of the main causes for this error. (“Killed” is the best hint.)

Hello @arbrandes .

The machine is 8Go. Not enough?

Though the instructions say 8GB, I would not consider a native installation with all default services on less than 16. And if you have a decent number of users, at least 32 per app server.

1 Like

I have the same problem as you. Is the error reported because the memory is too small

In my case, changing from 8 to 16Gb fixed the issue.

okay, thank you very much