Open luqmanrizal opened 6 months ago
Thanks for the headsup! 7.6.9
should resolve this with also adding libevent and libuuid as runtime dependencies..
still got same error at 7.6.9
That's a different issue. Can you open another one and provide some snippets of DEBUG_MODE=TRUE
which can tell where things are breaking
i got this error when enable debug
2024-06-11.13:13:19 [NOTICE] /etc/cont-init.d/10-openldap ** [openldap] Configuring OpenLDAP server
+ set -e
+ set -o pipefail
+ '[' -z dc=qiscus,dc=com ']'
+ '[' '!' -e /assets/state/slapd-first-start-done ']'
+ new_install=false
+ transform_file_var ADMIN_PASS CONFIG_PASS
+ local variables
++ echo ADMIN_PASS CONFIG_PASS
++ tr ' ' '\n'
+ variables='ADMIN_PASS
CONFIG_PASS'
+ for variable in $variables
+ '[' -v ADMIN_PASS_FILE ']'
+ for variable in $variables
+ '[' -v CONFIG_PASS_FILE ']'
+ unset file_variable
+ unset variables
+ var_true FALSE
+ '[' false = true ']'
+ '[' false = yes ']'
++ ls -A -I lost+found /var/lib/openldap
ls: unrecognized option: I
BusyBox v1.36.1 (2024-05-21 13:38:37 UTC) multi-call binary.
Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...
List directory contents
-1 One column output
-a Include names starting with .
-A Like -a, but exclude . and ..
-x List by lines
-d List directory names, not contents
-L Follow symlinks
-H Follow symlinks on command line
-R Recurse
-p Append / to directory names
-F Append indicator (one of */=@|) to names
-l Long format
-i List inode numbers
-n List numeric UIDs and GIDs instead of names
-s List allocated blocks
-lc List ctime
-lu List atime
--full-time List full date/time
-h Human readable sizes (1K 243M 2G)
--group-directories-first
-S Sort by size
-X Sort by extension
-v Sort by version
-t Sort by mtime
-tc Sort by ctime
-tu Sort by atime
-r Reverse sort order
-w N Format N columns wide
--color[={always,never,auto}]
+ '[' -z '' ']'
++ ls -A -I lost+found /etc/openldap//slapd.d
ls: unrecognized option: I
BusyBox v1.36.1 (2024-05-21 13:38:37 UTC) multi-call binary.
Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...
List directory contents
-1 One column output
-a Include names starting with .
-A Like -a, but exclude . and ..
-x List by lines
-d List directory names, not contents
-L Follow symlinks
-H Follow symlinks on command line
-R Recurse
-p Append / to directory names
-F Append indicator (one of */=@|) to names
-l Long format
-i List inode numbers
-n List numeric UIDs and GIDs instead of names
-s List allocated blocks
-lc List ctime
-lu List atime
--full-time List full date/time
-h Human readable sizes (1K 243M 2G)
--group-directories-first
-S Sort by size
-X Sort by extension
-v Sort by version
-t Sort by mtime
-tc Sort by ctime
-tu Sort by atime
-r Reverse sort order
-w N Format N columns wide
--color[={always,never,auto}]
+ '[' -z '' ']'
+ new_install=true
+ print_warn 'First time install detected'
+ output_off
+ '[' true = true ']'
+ set +x
2024-06-11.13:13:19 [WARN] /etc/cont-init.d/10-openldap ** [openldap] First time install detected
+ '[' nis = rfc2307bis ']'
+ print_notice 'Using NIS schema type'
+ output_off
+ '[' true = true ']'
+ set +x
2024-06-11.13:13:19 [NOTICE] /etc/cont-init.d/10-openldap ** [openldap] Using NIS schema type
+ SCHEMA_TYPE=nis
+ get_ldap_base_dn
+ '[' -z dc=qiscus,dc=com ']'
+ print_debug 'Create core openldap configuration'
+ output_off
+ '[' true = true ']'
+ set +x
2024-06-11.13:13:19 [DEBUG] /etc/cont-init.d/10-openldap ** [openldap] Create core openldap configuration
+ cat
++ slappasswd -s P@ssw0rd123
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)
Error relocating /usr/lib/libldap.so.2: sasl_set_mutex: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_step: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_version: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_decode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_init: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_dispose: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errstring: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_encode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errdetail: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_getprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_global_listmech: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_setprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_start: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_start: symbol not found
Error relocating /usr/sbin/slappasswd: prop_request: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_listmech: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_generate: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_unparse_lower: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_set_mutex: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_getctx: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlopenext: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlexit: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_version: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_dispose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_seterror: symbol not found
Error relocating /usr/sbin/slappasswd: prop_set: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_checkpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_done: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_errdetail: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlclose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_getprop: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlerror: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_add_plugin: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_step: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setprop: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_init: symbol not found
Error relocating /usr/sbin/slappasswd: prop_getnames: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsym: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlinit: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsetsearchpath: symbol not found
++ slappasswd -s P@ssw0rd123
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)
Error relocating /usr/lib/libldap.so.2: sasl_set_mutex: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_step: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_version: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_decode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_init: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_dispose: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errstring: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_encode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errdetail: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_getprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_global_listmech: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_setprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_start: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_start: symbol not found
Error relocating /usr/sbin/slappasswd: prop_request: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_listmech: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_generate: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_unparse_lower: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_set_mutex: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_getctx: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlopenext: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlexit: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_version: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_dispose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_seterror: symbol not found
Error relocating /usr/sbin/slappasswd: prop_set: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_checkpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_done: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_errdetail: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlclose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_getprop: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlerror: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_add_plugin: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_step: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setprop: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_init: symbol not found
Error relocating /usr/sbin/slappasswd: prop_getnames: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsym: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlinit: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsetsearchpath: symbol not found
+ set +e
+ /usr/bin/schema2ldif /etc/openldap//schema/core.schema
/assets/functions/10-openldap: line 313: /usr/bin/schema2ldif: cannot execute: required file not found
+ /usr/bin/schema2ldif /etc/openldap//schema/cosine.schema
/assets/functions/10-openldap: line 314: /usr/bin/schema2ldif: cannot execute: required file not found
+ /usr/bin/schema2ldif /etc/openldap//schema/inetorgperson.schema
/assets/functions/10-openldap: line 315: /usr/bin/schema2ldif: cannot execute: required file not found
+ /usr/bin/schema2ldif /etc/openldap//schema/nis.schema
/assets/functions/10-openldap: line 316: /usr/bin/schema2ldif: cannot execute: required file not found
+ silent slapadd -n 0 -F /etc/openldap//slapd.d -l /tmp/slapd.ldif
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ slapadd -n 0 -F /etc/openldap//slapd.d -l /tmp/slapd.ldif
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slapadd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slapadd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slapadd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)
Interesting. That doesn't seem right to me - I've just built a local copy on my system and fixed the issue that was happening with ls
- it was an old and dirty way of detecting if there were files in directories and I've long built functions to support that. Wondering if this resolves everything else.
Best to start off with fresh data/config directories (eg empty)
docker.io/tiredofit/openldap:2.6-develop
by building a new image including package install libsasl && \ package install libuuid && \ in the dockerfile, I avoid these messages
Try 2.6-7.6.10
to see if this is solved once and for all..
YES! Thank you for fixing.
Am 18. Juni 2024 um 17:20 schrieb "Dave Conroy" @.***>:
Try 2.6-7.6.10 to see if this is solved once and for all
Summary
The container failed to run the latest commit 9b995549db020cc0029e088e3352622aa3985cbd with the default out-of-the-box configuration.
Steps to reproduce
2.6-7.6.8
image tagWhat is the expected correct behavior?
Expected the container to run normally with no additional configuration.
Relevant logs and/or screenshots
Environment
Possible fixes
Possible bash script failure in
tiredofit/alpine:3.20
. Reverting base image totiredofit/alpine:3.19
as a temporary fix.