georchestra / docker

Quick start geOrchestra with docker
18 stars 22 forks source link

openldap - ch_calloc: Assertion `0' failed. #239

Open edevosc2c opened 10 months ago

edevosc2c commented 10 months ago

Reported on slack by @danduk82.

Error when the container openldap starts:

docker-ldap-1  | run-parts: executing /docker-entrypoint.d/00-init
docker-ldap-1  | run-parts: executing /docker-entrypoint.d/01-populate
docker-ldap-1  | slapd: ../../../../servers/slapd/ch_malloc.c:107: ch_calloc: Assertion `0' failed.
docker-ldap-1  | /docker-entrypoint.d/01-populate: line 77:    92 Aborted                 (core dumped) slapd -u ${RUN_AS_UID} -g ${RUN_AS_GID} -h "ldapi:/// ldap://127.0.0.1/"
docker-ldap-1  | Starting slapd daemon in background...Started: OK

Details about the OS:

Solution found at https://stackoverflow.com/questions/76332218/openldap-ch-calloc-core-dump-in-docker-containers: Changing the ulimit -n to 1024 for the openldap container:

services:
  ldap:
   ulimits:
    nofile:
      soft: 1024
      hard: 1024

I'm not entirely sure why that happen. Maybe a newer openldap version already fixes this issue: https://github.com/georchestra/georchestra/commit/1dd8281eb2081a4cd739326973eb99725f1789f4

ping @pmauduit