Another issue I’ve hit since an upgrade to 4.2-1 is a periodic segfault in slapd. I haven’t yet been able to pin it down to a reproducible cause for you.
But its often triggered seemingly randomly if I click around in the UMC interfaces of other servers (backup/member). Doesn’t seem to happen as often if I’m in the UMC of the master (which is most of the time).
Grepped syslog:
Jul 8 20:47:46 dcm1 slapd[5946]: Starting ldap server(s): slapd ...done.
Jul 8 20:47:46 dcm1 slapd[5946]: Checking Schema ID: ...done.
Jul 8 20:48:43 dcm1 kernel: [71889.842511] slapd[5969]: segfault at f ip 00007f8081c07c72 sp 00007f7ffee63210 error 4 in libxmlsec1.so.1.2.20[7f8081bcb000+5d000]
Jul 8 20:48:43 dcm1 systemd[1]: slapd.service: main process exited, code=killed, status=11/SEGV
Jul 8 20:48:44 dcm1 logger: /etc/init.d/slapd stop (pid: 6093, ppid: 1 systemd)
Jul 8 20:48:44 dcm1 slapd[6093]: Stopping ldap server(s): slapd ...start-stop-daemon: warning: failed to kill 5962: No such process
Jul 8 20:48:44 dcm1 slapd[6093]: done.
Jul 8 20:48:44 dcm1 systemd[1]: Unit slapd.service entered failed state.
In the systemctl status window it states slapd loads metadata from “/usr/share/univention-management-console/saml/idp/ucs-sso.ourdomain snipped.com.au.xml”. Given the log says a libxmlsec.so is what segfaults and the issues I’ve had with SSO SAML in another thread, could these issues be wrapped up together?
Startup
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd)
Active: active (running) since Sat 2017-07-08 20:49:20 AEST; 8min ago
Process: 6093 ExecStop=/etc/init.d/slapd stop (code=exited, status=0/SUCCESS)
Process: 6171 ExecStart=/etc/init.d/slapd start (code=exited, status=0/SUCCESS)
Main PID: 6183 (slapd)
CGroup: /system.slice/slapd.service
└─6183 /usr/sbin/slapd -h ldapi:/// ldap://:7389/ ldaps://:7636/
Jul 08 20:49:20 dcm1 slapd[6182]: @(#) $OpenLDAP: slapd (Jun 20 2017 17:36:33) $
pbuser@ladda:/var/build/temp/tmp.9FUzllUqUa/pbuilder/openldap-2.4.42+dfsg/debian/build/servers/slapd
Jul 08 20:49:20 dcm1 slapd[6182]: Loaded metadata from "/usr/share/univention-management-console/saml/idp/ucs-sso.<our domain snipped>.com.au.xml"
Jul 08 20:49:20 dcm1 slapd[6171]: Starting ldap server(s): slapd ...done.
Jul 08 20:49:20 dcm1 slapd[6171]: Checking Schema ID: ...done.
Jul 08 20:49:20 dcm1 systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Failed:
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd)
Active: failed (Result: signal) since Sat 2017-07-08 20:47:17 AEST; 23s ago
Process: 5894 ExecStop=/etc/init.d/slapd stop (code=exited, status=0/SUCCESS)
Process: 4414 ExecStart=/etc/init.d/slapd start (code=exited, status=0/SUCCESS)
Main PID: 4426 (code=killed, signal=SEGV)
Jul 08 20:37:21 dcm1 slapd[4425]: @(#) $OpenLDAP: slapd (Jun 20 2017 17:36:33) $
pbuser@ladda:/var/build/temp/tmp.9FUzllUqUa/pbuilder/openldap-2.4.42+dfsg/debian/build/servers/slapd
Jul 08 20:37:21 dcm1 slapd[4425]: Loaded metadata from "/usr/share/univention-management-console/saml/idp/ucs-sso.<our domain snipped>.au.xml"
Jul 08 20:37:21 dcm1 slapd[4414]: Starting ldap server(s): slapd ...done.
Jul 08 20:37:22 dcm1 slapd[4414]: Checking Schema ID: ...done.
Jul 08 20:37:22 dcm1 systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
Jul 08 20:47:16 dcm1 systemd[1]: slapd.service: main process exited, code=killed, status=11/SEGV
Jul 08 20:47:17 dcm1 slapd[5894]: Stopping ldap server(s): slapd ...start-stop-daemon: warning: failed to kill 4426: No such process
Jul 08 20:47:17 dcm1 slapd[5894]: done.
Jul 08 20:47:17 dcm1 systemd[1]: Unit slapd.service entered failed state.