ODK central installed failed

1. What is the issue? Please be detailed.
The installation of of ODK central at "docker compose build" is failing as shown on the screenshot:

It shows warning of NPM installation, where I have updated the npm from 10 to 11, but still it shows the problem.

Both docker version are up to date too.

Hi @abbytank1 ! :smile:

May I know the specifications for your server? Are you using 1 GiB of memory / RAM?

I am using 2GB Ubuntu 20.04 LT.

Hmm, are you running other services on the same server as well? :thinking:
Given my experience, ODK Central fails to build (exactly at build-frontend.sh) when there isn't sufficient memory. A fresh server with no other application running, requires atleast 2 GiB of RAM to build ODK Central effectively.

1 Like

I am running fresh server, with no other application running. I have just installed the GUI and then started to install the ODK.

@abbytank1 You are running out of memory. Add swap, reboot, and try again. If that fails upgrade to 4GB of physical RAM.

1 Like

Yes, very likely like @yanokwa says. But how did he know? :laughing:

In the output it says "killed". One of the reasons processes get killed is because of memory shortages, the thing that does the killing is called the "OOM killer" (OOM = Out-Of-Memory). That mechanism reports on its actions in the kernel log, which you can see with the dmesg command, dmesg -T if you're human-like, dmesg -T | less if you want to be able to scroll. One the wikipedia page there's a photo that shows what message to look for, it's a bit outdated, I think nowadays you'll get an extended stacktrace too so there's a bit of noise around the message you'll be looking for (unless the stacktrace is not noise to you :laughing: ).