osixia / docker-openldap

OpenLDAP container image 🐳🌴
MIT License
4.06k stars 978 forks source link

Container stops gracefully on its own once in several hours. #653

Closed nix-power closed 1 year ago

nix-power commented 1 year ago

Once in several hours container just stops and exit gracefully (according to logs). I have tried to dig through code and to increase log level, it always remain the same. Container just stops and exits. I would like to have directions where to dig

640923da conn=12699 op=0 BIND dn="" method=128
640923da conn=12699 op=0 RESULT tag=97 err=0 text=
640923da conn=12699 op=1 SRCH base="ou=SUDOers,ou=Groups,ou=Company,dc=company,dc=local" scope=2 deref=0 filter="(cn=defaults)"
640923da conn=12699 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
640923da conn=12699 op=2 SRCH base="ou=SUDOers,ou=Groups,ou=Company,dc=company,dc=local" scope=2 deref=0 filter="(|(sudoUser=root)(sudoUser=%root)(sudoUser=%#0)(sudoUser=ALL))"
640923da conn=12699 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
640923da conn=12699 op=3 SRCH base="ou=SUDOers,ou=Groups,ou=Company,dc=company,dc=local" scope=2 deref=0 filter="(sudoUser=+*)"
640923da conn=12699 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
640923da conn=12699 op=4 UNBIND
640923da conn=12699 fd=32 closed
***  DEBUG  | 2023-03-09 00:10:03 | Run commands before finish...
***  INFO   | 2023-03-09 00:10:03 | Killing all processes...
640923db daemon: shutdown requested and initiated.
640923db conn=12675 fd=16 closed (slapd shutdown)
640923db conn=12676 fd=17 closed (slapd shutdown)
640923db conn=12677 fd=30 closed (slapd shutdown)
640923db slapd shutdown: waiting for 0 operations/tasks to finish
640923db slapd stopped.
nix-power commented 1 year ago

it was our own cron script to rebuild ldap db from master, stopping the container.