Error with elasticsearch in local mode, rlimits: operation not permitted

I was trying to trying to deploy Tutor in production container, and decided to try out the
precompiled-binary using tutor local launch, but it gives an rlimits error.

Steps taken:

  • Install openedx binary from releases
  • Run tutor local launch

Environment:

tutor, version 17.0.4
Docker Compose version v2.26.1
Docker version 26.1.0, build 9714adc
Linux domain-dev 5.15.136-1-pve #1 SMP PVE 5.15.136-1 (2024-01-23T11:10Z) x86_64 x86_64 x86_64 GNU/Linux

tutor local launch error:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting rlimits for ready process: error setting rlimit type 8:
operation not permitted: unknown
Error: Command failed with status 1: docker compose -f /home/edx/.local/share/tutor/env/local/docker-compose.yml -f /home/edx/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d

I found a similar issue in github, and changed the local
docker-compose.yml file to remove the ulimits, and tried to build again but this time it gives a different
error (not sure if related to this).

tutor images build all error:

------
 > [locales 2/2] RUN mkdir --parents /openedx/locale &&     mv /tmp/openedx-i18n/edx-platform/locale /openedx/locale/contrib &&     rm -rf /tmp/openedx-i18n/:
0.360 mv: cannot remove '/tmp/openedx-i18n/edx-platform/locale/fr_CA/LC_MESSAGES': Invalid argument
0.377 mv: cannot remove '/tmp/openedx-i18n/edx-platform/locale/es_ES/LC_MESSAGES': Invalid argument
0.377 mv: cannot remove '/tmp/openedx-i18n/edx-platform/locale/hr/LC_MESSAGES': Invalid argument
0.377 mv: cannot remove '/tmp/openedx-i18n/edx-platform/locale/sv/LC_MESSAGES': Invalid argument
0.377 mv: cannot remove '/tmp/openedx-i18n/edx-platform/locale/fa_IR/LC_MESSAGES': Invalid argument
0.377 mv: cannot remove '/tmp/openedx-i18n/edx-platform/locale/ro/LC_MESSAGES': Invalid argument
------
Dockerfile:70
--------------------
  69 |     ADD --keep-git-dir=true $OPENEDX_I18N_REPOSITORY#$OPENEDX_I18N_VERSION /tmp/openedx-i18n
  70 | >>> RUN mkdir --parents /openedx/locale && \
  71 | >>>     mv /tmp/openedx-i18n/edx-platform/locale /openedx/locale/contrib && \
  72 | >>>     rm -rf /tmp/openedx-i18n/
  73 |
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir --parents /openedx/locale &&     mv /tmp/openedx-i18n/edx-platform/locale /openedx/locale/contrib &&     rm -rf /tmp/openedx-i18n/" did not complete successfully: exit code: 1
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx:17.0.4-indigo --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx:17.0.4-indigo-cache /home/edx/.local/share/tutor/env/build/openedx

Complete logs:

What I have tried:

  • Removing the ulimits section
  • Setting the ulimits to memlock: soft: 0 hard: 0 in all relevant containers.
  • Giving the elastic-search container priviliged access.
  • Increasing the nofile using ulimits command.