Get Zimbra LDAP Back Online After a Failed Boot

Example scenario (illustrative only): After a planned reboot, a fictional mail administrator sees “LDAP server not responding,” and the Zimbra services do not come up. Start by checking whether Zimbra’s LDAP process, slapd, actually started. Then use the first concrete error in the startup logs to choose a fix; do not rebuild or replace the LDAP database based on this message alone.

The message describes a failed connection, not a root cause. It can mean LDAP did not start, the server name cannot resolve, or a network connection to the configured LDAP host failed. Zimbra’s LDAP troubleshooting notes identify these as separate failure classes. The steps below use a single-server example; multi-server deployments must check the configured LDAP master or replica from the affected node.

1. Confirm the host and service state

Log in to the affected server and switch to the Zimbra account. Record the installed version before applying release-specific advice, then query service status:

su - zimbra
zmcontrol -v
zmcontrol status
A terminal mockup running zmcontrol -v, with a fictional release string shown as an example.
Illustrative terminal mockup showing where zmcontrol -v prints the installed release and build; the displayed version is fictional.

If LDAP is stopped, continue below. Other services may also stop because they need LDAP to read their configuration. On multi-server deployments, identify which LDAP host this node is configured to use before testing connectivity.

A terminal mockup showing zmcontrol status with LDAP stopped and other services unavailable.
Illustrative status output shows LDAP stopped; dependent services may also be unavailable until directory access returns.

2. Check whether slapd is running and read the boot log

As root, look for the Zimbra LDAP process and check available space. These are read-only checks:

ps auxww | grep '[s]lapd'
df -h /opt/zimbra
df -i /opt/zimbra
A terminal mockup running ps auxww and finding no slapd process.
Illustrative process check with no slapd match, which points toward LDAP failing to start rather than a client-side connection issue.

No slapd process suggests a startup failure. If one is present, check whether Zimbra recognizes it:

su - zimbra
ldap status

Inspect the Zimbra log around the latest boot. On systemd hosts, check boot errors; older systems may use /var/log/messages or /var/log/syslog.

tail -n 100 /var/log/zimbra.log
journalctl -b -p err --no-pager
A terminal mockup tailing the Zimbra system log and displaying simulated LDAP startup messages.
Simulated log lines illustrate the kind of startup sequence to inspect; they are not evidence from a real Zimbra host.

Find the first LDAP or slapd error, not later connection failures from dependent services. A full filesystem or inode table can block startup. If full, free only known expendable space under your server policy; never delete LDAP database files or logs blindly.

A terminal mockup checking free disk space on the /opt/zimbra filesystem.
The df output illustrates how to check whether the filesystem containing /opt/zimbra has room for LDAP startup.

3. Match the repair to the error

If the logs show no TLS or permission error

As the Zimbra user, try the supported LDAP service command once and capture the output:

su - zimbra
ldap start
A Zimbra shell mockup running ldap start and showing the start command returning.
Illustrative Zimbra shell view of ldap start; a returned prompt alone is not proof that LDAP is healthy.

Afterward, check ldap status and the listening socket. “Done” is not proof if slapd exits; inspect the newest log lines.

If a TLS private-key error says “Permission denied”

Only when the log explicitly reports a permission error while opening a TLS file, Zimbra’s documented remedy for that specific error is to run the permissions repair tool as root, then start the services as the Zimbra user:

# As root
/opt/zimbra/libexec/zmfixperms --extended

# As zimbra
su - zimbra
zmcontrol start

That remedy is tied to the matching TLS permission error. Do not run it as a generic LDAP repair. If the log instead reports a missing certificate, an expired certificate, a TLS initialization failure with a different cause, database errors, or a schema/configuration problem, stop and follow the procedure for that specific error or contact Zimbra support. Do not regenerate certificates or alter LDAP database files without a verified backup and version-appropriate instructions.

If the process is present but ldap status cannot detect it

This may indicate an orphaned or stale LDAP process, but a process match alone does not prove that it is safe to terminate. Capture the PID and command line, check whether it belongs to the Zimbra installation, and follow a graceful stop procedure for your ZCS release. Avoid kill -9, deleting PID files, or starting another slapd over a live one unless Zimbra support or a release-specific recovery procedure directs you to do so. Zimbra’s LDAP page includes legacy cleanup instructions; verify applicability before using them on a newer release.

4. If LDAP runs but Zimbra still cannot reach it

Test the hostname and port configured for LDAP from the affected Zimbra node. Zimbra’s documentation notes that hostname resolution matters even when administrators expect a local connection. Use the LDAP hostname from your deployment configuration, and test the port your installation actually uses (commonly 389 for LDAP or 636 for LDAPS):

getent hosts ldap-hostname
ss -lntp | grep -E ':389|:636'
A terminal mockup showing ss reporting an LDAP listener on port 389 owned by slapd.
Illustrative ss output shows slapd listening on port 389; check the port configured in your own deployment.

If the host resolves to the wrong address, correct the host/DNS configuration using your normal change process. If the configured LDAP host is remote, check routing and firewall rules between the two Zimbra nodes. Do not open LDAP ports to the public internet; allow only the required trusted systems. A listening local socket proves only that a process has bound a port—it does not prove remote connectivity, a successful TLS handshake, or a healthy LDAP database.

5. Verify the recovery

After the root cause is fixed, confirm LDAP’s own status, then check the Zimbra service list and the expected LDAP listener:

su - zimbra
ldap status
zmcontrol status

# As root, if you need to verify the listener
ss -lntp | grep -E ':389|:636'
A Zimbra shell mockup showing ldap status and zmcontrol status with LDAP and services running.
Illustrative final checks show LDAP and Zimbra services running; compare with your host’s actual status output.

LDAP should report running, the intended services should return to their normal state, and the listener should match the host and port configured for the deployment. In a multi-server environment, also test resolution and connection from the dependent node. If the error returns, save the first slapd error and recent boot logs before contacting support or applying another repair.

Sources

Leave a Comment

How to