1

Topic: iRedMail 0.9.8 OpenLdap installation error 13

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian 9 Stretch
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes but not installed at this step
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,
I would like to install a new iRedMail server to replace a old I don't want to upgrade (cut services is not possible) and after migrate domains.

I a Debian 9 when I launch installation of iRedMail 0.9.8 I have error for openldap :

Setting up slapd (2.4.44+dfsg-5+deb9u2) ...
  Moving old database directory to /var/backups:
  - directory unknown... done.
  Creating initial configuration... done.
  Creating LDAP directory... done.
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.
* slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
   Loaded: loaded (/etc/init.d/slapd; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2018-09-07 11:19:04 CEST; 4ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31264 ExecStart=/etc/init.d/slapd start (code=exited, status=1/FAILURE)

Sep 07 11:19:04 hs-mail-1 systemd[1]: Starting LSB: OpenLDAP standalone ser…)...
Sep 07 11:19:04 hs-mail-1 slapd[31269]: @(#) $OpenLDAP: slapd  (May 23 2018 …) $
                                                Debian OpenLDAP Maintainers …rg>
Sep 07 11:19:04 hs-mail-1 slapd[31269]: invalid config directory /etc/ldap/s… 13
Sep 07 11:19:04 hs-mail-1 slapd[31264]: Starting OpenLDAP: slapd failed!
Sep 07 11:19:04 hs-mail-1 systemd[1]: slapd.service: Control process exited…us=1
Sep 07 11:19:04 hs-mail-1 systemd[1]: Failed to start LSB: OpenLDAP standal…ol).
Sep 07 11:19:04 hs-mail-1 systemd[1]: slapd.service: Unit entered failed state.
Sep 07 11:19:04 hs-mail-1 systemd[1]: slapd.service: Failed with result 'ex…de'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package slapd (--configure):
 subprocess installed post-installation script returned error exit status 1

Log in syslog :

Sep  7 11:21:58 hs-mail-1 slapd[47690]: @(#) $OpenLDAP: slapd  (May 23 2018 04:25:19) $#012#011Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sep  7 11:21:58 hs-mail-1 slapd[47690]: invalid config directory /etc/ldap/slapd.d, error 13
Sep  7 11:21:58 hs-mail-1 slapd[47690]: slapd stopped.
Sep  7 11:21:58 hs-mail-1 slapd[47690]: connections_destroy: nothing to destroy.
Sep  7 11:21:58 hs-mail-1 slapd[47678]: Starting OpenLDAP: slapd failed!
Sep  7 11:21:58 hs-mail-1 systemd[1]: slapd.service: Control process exited, code=exited status=1
Sep  7 11:21:58 hs-mail-1 systemd[1]: slapd.service: Unit entered failed state.
Sep  7 11:21:58 hs-mail-1 systemd[1]: slapd.service: Failed with result 'exit-code'.

I search what is the openldap error 13 and nothing about that. For the "invalid config directory" there is all /etc/ldap : https://dl.digdeo.fr/TYbIW/ldap.tgz

Anybody else have this error?

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail 0.9.8 OpenLdap installation error 13

Do you have line below in /etc/default/slapd?

SLAPD_CONF="/etc/ldap/slapd.conf"