Failed to start slapd

How to fix the error "Failed to start slapd. Attempting debug start to determine error"

   KB 24552        Last updated on 2023-12-20  

(0 votes)


Zimbra could not load anymore and slapd refuse to start.

zmcontrol start
Host ########.###
Starting ldap...Done.
Failed to start slapd. Attempting debug start to determine error.
TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:175
TLS: error:2006D080:BIO routines:BIO_new_file:no such file bss_file.c:178
main: TLS init def ctx failed: -1 

Proxy service will also fail with the error below.

zmproxyctl restart
Stopping proxy...proxy is not running.
Starting proxy...nginx: [emerg] BIO_new_file("/opt/zimbra/conf/dhparam.pem") failed (SSL: error:02001002:system library:fopen:
No such file or directory:fopen('/opt/zimbra/conf/dhparam.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)failed. 


Verify dhparam.pem file exist into /opt/zimbra/conf directory or not.

Run following command to check:

$ ls -lrth /opt/zimbra/conf/dhparam*

Run the following command to create file if this file doesn't exist:

$ openssl dhparam -out /opt/zimbra/conf/dhparam.pem 2048
$ zmcontrol restart 

If the file exist,move this file and create new one:

# su - zimbra
$ cd /opt/zimbra/conf/
$ mv dhparam.pem dhparam.pem.old
$ openssl dhparam -out /opt/zimbra/conf/dhparam.pem 2048
$ zmcontrol restart 

Submitted by: Gopal Singh Bhandari
Verified Against: ZCS 8.8.15, ZCS 9.0 Date Created: 2020-07-28
Article ID: Date Modified: 2023-12-20

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search