Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with docker v.24 ldap needs a limit on nofiles #238

Closed
danduk82 opened this issue Oct 24, 2023 · 1 comment
Closed

with docker v.24 ldap needs a limit on nofiles #238

danduk82 opened this issue Oct 24, 2023 · 1 comment

Comments

@danduk82
Copy link

To run ldap on docker v.24 one might need to add the following to the docker-compose section for ldap

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

otherwise the following (might) arise:

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

see also https://stackoverflow.com/questions/76332218/openldap-ch-calloc-core-dump-in-docker-containers

@edevosc2c
Copy link
Member

closing in favor of #239

@edevosc2c edevosc2c closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants