ImportError: libldap-2.5.so.0: cannot open shared object file: No such file or directory after trixie upgrade

i updatet our 2.4.0p20.cre checkmk installation from bookworm to trixie , and afterwards got this error on start:

Starting ui-job-scheduler…Traceback (most recent call last):
File “/omd/sites/mysite/bin/cmk-ui-job-scheduler”, line 8, in
from cmk.gui.job_scheduler.main import default_crash_report_callback, main
File “/omd/sites/mysite/lib/python3/cmk/gui/job_scheduler/init.py”, line 6, in
from ._scheduler import reset_scheduling
File “/omd/sites/mysite/lib/python3/cmk/gui/job_scheduler/_scheduler.py”, line 22, in
from cmk.gui.session import SuperUserContext
File “/omd/sites/mysite/lib/python3/cmk/gui/session.py”, line 23, in
from cmk.gui import config, userdb
File “/omd/sites/mysite/lib/python3/cmk/gui/userdb/init.py”, line 9, in
from ._check_credentials import (
File “/omd/sites/mysite/lib/python3/cmk/gui/userdb/_check_credentials.py”, line 31, in
from .ldap_connector import MKLDAPException
File “/omd/sites/mysite/lib/python3/cmk/gui/userdb/ldap_connector.py”, line 44, in
import ldap # type: ignore[import-untyped]
^^^^^^^^^^^
File “/omd/sites/mysite/lib/python3.12/site-packages/ldap/init.py”, line 34, in
import _ldap
ImportError: libldap-2.5.so.0: cannot open shared object file: No such file or directory
failed

i could fix this by manually downloading and installing libldap-2.5-0_2.5.13+dfsg-5_amd64.deb from debian bookworm repo

is this a known problem ?

Is also your CMK package updated to the trixie version?

2 Likes

ouch - i missed that checkmk package was also debian version agnostic, i just read before update that 2.4.0p20.cre would be already trixie compatible, so i did miss that step to replace the checkmk debian bookworm package with the trixie package.

i installed the trixie version over the bookworm version, removed ldap package again and now all is looks fine

thanks for the pointer

1 Like