Unable to start nginx after install in AWS EC2

I am very new to Kaltura. Installed Kaltura CE 13.14.0 in AWS Instance. Not been able to start nginx

– Unit kaltura-nginx.service has begun starting up.
Mar 12 17:49:13 nginx[28484]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Mar 12 17:49:13 nginx[28484]: nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 536870912) failed (12: Cannot allocate memory)
Mar 12 17:49:13 nginx[28484]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 12 17:49:13 systemd[1]: kaltura-nginx.service: control process exited, code=exited status=1
Mar 12 17:49:13 ip-172-31-31-28.us-west-2.compute.internal systemd[1]: Failed to start nginx - high performance web server.
– Subject: Unit kaltura-nginx.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Checked System memory and it looks fine.

Hi @somiran,

What’s the output for:

# free -m
# ipcs -lm
# ulimit -a


1 Like

[root log]# free -m
total used free shared buff/cache available
Mem: 990 322 257 108 411 392
Swap: 0 0 0

[root log]# ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398442373116
min seg size (bytes) = 1

[root log]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 3803
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 3803
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root log]#

Sorry but that’s not enough RAM to run a Kaltura Server instance, not even a very small/low traffic one… Please increase your RAM to at least 2G.

Ok- will try that. Thanks again