Skip to content

Installer - slapd not installing on latest OSes #2864

@tpurschke

Description

@tpurschke

affected OSes:

  • debian 13
  • ubuntu 25.04

Error message in clean install (debian 13 ):

TASK [openldap-server : Start the slapd service] ******************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => changed=false 
  msg: |-
    Unable to start service slapd: Job for slapd.service failed because the service did not take the steps required by its unit configuration.
    See "systemctl status slapd.service" and "journalctl -xeu slapd.service" for details.

PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost                  : ok=99   changed=47   unreachable=0    failed=1    skipped=40   rescued=0    ignored=0   

(ansible-venv) tim@deb-testing:~/fwo-luca$ sudo systemctl status slapd.service
× slapd.service - OpenLDAP Server Daemon
     Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/slapd.service.d
             └─override.conf
     Active: failed (Result: protocol) since Wed 2025-02-12 16:40:06 CET; 2min 27s ago
 Invocation: 35aff6078c9f45ac8f15963ee6b3e3ac
       Docs: man:slapd
             man:slapd-config
             man:slapd-mdb
    Process: 6233 ExecStartPre=/bin/mkdir -p /run/slapd (code=exited, status=0/SUCCESS)
    Process: 6234 ExecStartPre=/bin/chown openldap:openldap /run/slapd (code=exited, status=0/SUCCESS)
    Process: 6237 ExecStart=/usr/sbin/slapd -u openldap -g openldap -h ldap://127.0.0.1 ldaps:/// (code=exited, status=0/SUCCESS)
   Main PID: 6237 (code=exited, status=0/SUCCESS)
   Mem peak: 5.3M
        CPU: 55ms

Feb 12 16:40:06 deb-testing systemd[1]: Starting slapd.service - OpenLDAP Server Daemon...
Feb 12 16:40:06 deb-testing slapd[6237]: @(#) $OpenLDAP: slapd 2.6.9+dfsg-1 (Jan 15 2025 02:30:51) $
                                                 Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Feb 12 16:40:06 deb-testing slapd[6238]: slapd starting
Feb 12 16:40:06 deb-testing slapd[6238]: daemon: shutdown requested and initiated.
Feb 12 16:40:06 deb-testing slapd[6238]: slapd shutdown: waiting for 0 operations/tasks to finish
Feb 12 16:40:06 deb-testing slapd[6238]: slapd stopped.
Feb 12 16:40:06 deb-testing systemd[1]: slapd.service: Failed with result 'protocol'.
Feb 12 16:40:06 deb-testing systemd[1]: Failed to start slapd.service - OpenLDAP Server Daemon.
(ansible-venv) tim@deb-testing:~/fwo-luca$ 


(ansible-venv) tim@deb-testing:~/fwo-luca$ sudo journalctl -xeu slapd.service
░░ The job identifier is 137 and the job result is failed.
Feb 12 16:39:53 deb-testing systemd[1]: Starting slapd.service - OpenLDAP Server Daemon...
░░ Subject: A start job for unit slapd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit slapd.service has begun execution.
░░ 
░░ The job identifier is 1902.
Feb 12 16:39:53 deb-testing slapd[5754]: @(#) $OpenLDAP: slapd 2.6.9+dfsg-1 (Jan 15 2025 02:30:51) $
                                                 Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Feb 12 16:39:53 deb-testing slapd[5755]: slapd starting
Feb 12 16:39:53 deb-testing slapd[5755]: listener initialization failed
Feb 12 16:39:53 deb-testing slapd[5755]: daemon: shutdown requested and initiated.
Feb 12 16:39:53 deb-testing slapd[5755]: slapd shutdown: waiting for 1 operations/tasks to finish
Feb 12 16:39:53 deb-testing slapd[5755]: slapd stopped.
Feb 12 16:39:53 deb-testing systemd[1]: slapd.service: Failed with result 'protocol'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit slapd.service has entered the 'failed' state with result 'protocol'.
Feb 12 16:39:53 deb-testing systemd[1]: Failed to start slapd.service - OpenLDAP Server Daemon.
░░ Subject: A start job for unit slapd.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit slapd.service has finished with a failure.
░░ 
░░ The job identifier is 1902 and the job result is failed.
Feb 12 16:40:06 deb-testing systemd[1]: Starting slapd.service - OpenLDAP Server Daemon...
░░ Subject: A start job for unit slapd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit slapd.service has begun execution.
░░ 
░░ The job identifier is 2093.
Feb 12 16:40:06 deb-testing slapd[6237]: @(#) $OpenLDAP: slapd 2.6.9+dfsg-1 (Jan 15 2025 02:30:51) $
                                                 Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Feb 12 16:40:06 deb-testing slapd[6238]: slapd starting
Feb 12 16:40:06 deb-testing slapd[6238]: daemon: shutdown requested and initiated.
Feb 12 16:40:06 deb-testing slapd[6238]: slapd shutdown: waiting for 0 operations/tasks to finish
Feb 12 16:40:06 deb-testing slapd[6238]: slapd stopped.
Feb 12 16:40:06 deb-testing systemd[1]: slapd.service: Failed with result 'protocol'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit slapd.service has entered the 'failed' state with result 'protocol'.
Feb 12 16:40:06 deb-testing systemd[1]: Failed to start slapd.service - OpenLDAP Server Daemon.
░░ Subject: A start job for unit slapd.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit slapd.service has finished with a failure.
░░ 
░░ The job identifier is 2093 and the job result is failed.
(ansible-venv) tim@deb-testing:~/fwo-luca$ 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions