Cant upgrade 4.2-1 - slapd

Hi,

i try to upgrade but it fails, here the updater.log:updater.log (85.5 KB)

the slapd will not start, what could be the reason?

Thx!

Erik

Hey,

unfortunately the update log doesn’t contain the actual error message slapd outputs. You should be able to find those in the journal or in /var/log/syslog. If you’re still stuck in that situation, you can also try to start the daemon manually:

slapd -h "ldapi:/// ldap://:7389/ ldaps://:7636/" -d 64

This should start the daemon and run it as a foreground process instead of forking. The -d 64 enables debugging for schema configuration files. Ideally it should just start and then seem to hang — which means it’s actually ready for serving connections. If it does output an error, please paste the full error message.

m.

Hi,
there seems to be an issue with the configuration directory:


Vorbereitung zum Entpacken von .../slapd_2.4.44+dfsg-5+deb9u2_amd64.deb ...
Saving current slapd configuration to /var/backups/slapd-2.4.42+dfsg-2.A~4.2.0.201707261131...
slapcat: bad configuration directory!
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/slapd_2.4.44+dfsg-5+deb9u2_amd64.deb (--unpack):
 Unterprozess neues pre-installation-Skript gab den Fehlerwert 1 zurĂĽck
File: /etc/init.d/slapd
Multifile: /etc/ldap/slapd.conf
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.44+dfsg-5+deb9u2... done.
[....] Stopping slapd (via systemctl): slapd.servicee[0;1;31mWarning:e[0m slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
e[?25le7e[1G[e[32m ok e[39;49me8e[?12le[?25h.
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
Job for slapd.service failed because the control process exited with error code.
See "systemctl status slapd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript slapd, action "start" failed.
e[0;1;31mâ—Źe[0m slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
   Loaded: loaded (/etc/init.d/slapd; generated; vendor preset: enabled)
   Active: e[0;1;31mfailede[0m (Result: exit-code) since Tue 2018-09-25 23:18:17 CEST; 8ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4875 ExecStart=/etc/init.d/slapd start e[0;1;31m(code=exited, status=1/FAILURE)e[0m
 Main PID: 1064 (code=exited, status=0/SUCCESS)
      CPU: 202ms

Sep 25 23:18:17 ucs slapd[4887]: slapd stopped.
Sep 25 23:18:17 ucs slapd[4887]: connections_destroy: nothing to destroy.
Sep 25 23:18:17 ucs slapd[4875]: Starting ldap server(s): slapd ...failed.
Sep 25 23:18:17 ucs slapschema[4890]: e[0;1;39mLoaded metadata from "/usr/share/univ…xml"e[0m
Sep 25 23:18:17 ucs slapschema[4890]: DIGEST-MD5 common mech free
Sep 25 23:18:17 ucs slapd[4875]: 5baaa619 OVER: Loading Translog Overlay 5b…roy.
Sep 25 23:18:17 ucs systemd[1]: e[0;1;39mslapd.service: Control process exited, code…us=1e[0m
Sep 25 23:18:17 ucs systemd[1]: e[0;1;31mFailed to start LSB: OpenLDAP standalone se…ol).e[0m
Sep 25 23:18:17 ucs systemd[1]: e[0;1;39mslapd.service: Unit entered failed state.e[0m
Sep 25 23:18:17 ucs systemd[1]: e[0;1;39mslapd.service: Failed with result 'exit-code'.e[0m
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: Fehler beim Aufräumen:
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurĂĽck
Vorbereitung zum Entpacken von .../pciutils_1%3a3.5.2-1_amd64.deb ...

Well, the PRE script tells about a “bad configuration directory”. So far I would guess /etc/ldap is not existant or has some strange permissions set. Show us ls -alh /etc/ldap.

root@ucs:~# ls -alh /etc/ldap
insgesamt 60K
drwxr-xr-x   5 root     root     4,0K Sep 26 04:31 .
drwxr-xr-x 125 root     root      12K Sep 26 09:09 ..
-rw-r--r--   1 root     root      424 Sep 26 04:31 dh_2048.pem
-rw-r--r--   1 root     root      676 Sep  1  2017 ldap.conf
-rw-r--r--   1 root     root      332 Nov  6  2015 ldap.conf.debian
-rw-r--r--   1 root     root        0 Aug  5  2017 rootpw.conf
drwxr-xr-x   2 root     root     4,0K Sep  1  2017 sasl2
drwxr-xr-x   2 root     root     4,0K Aug  5  2017 schema
-rw-r--r--   1 root     root      17K Sep  1  2017 slapd.conf
drwxr-xr-x   3 openldap openldap 4,0K Jun 14  2016 slapd.d

that looks for me okay, i will check syslogs next night

1 Like

Just a tip: when you copy & paste whole blocks of text here, don’t prefix them with >. Instead place them between lines consisting solely of three backticks, like this:

```
text goes here
and here
```

That way all special characters will lose their meaning and a fixed-width font will be used. Makes reading such output much easier. Thanks!