Skip to content

start-odk.sh fails if /sys/fs/cgroup/memory/memory.limit_in_bytes is missing #1603

@yanokwa

Description

@yanokwa

Ubuntu 22.04.5, which has cgroup2fs enabled, does not have a /sys/fs/cgroup/memory/memory.limit_in_bytes file. It also doesn't have /sys/fs/cgroup/memory.max (but that is expected since it's not cgroup v1).

Without this memory, Central goes into a boot loop.

root@server:~/central# cat /etc/lsb-release  | grep _RELEASE
DISTRIB_RELEASE=22.04

root@server:~/central# stat -fc %T /sys/fs/cgroup/
cgroup2fs

root@server:~/central# cat /sys/fs/cgroup/memory.max
cat: /sys/fs/cgroup/memory.max: No such file or directory

root@server:~/central# cat /sys/fs/cgroup/memory/memory.limit_in_bytes
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory

root@server:~/central# grep MemTotal /proc/meminfo | awk '{print $2 * 1024}'
2003337216

Metadata

Metadata

Assignees

Labels

opsDocker, nginx, ops to deploy Central

Type

Projects

Status

✅ done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions