Directory server fails to start with message: Failed to open errors log file

Solution Verified - Updated -

Issue

  • RHDS directory service fails to start.
[root@host1 ~]# systemctl status dirsrv@dir.service
● dirsrv@dir.service - 389 Directory Server dir.
Loaded: loaded (/usr/lib/systemd/system/dirsrv@.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/dirsrv@.service.d
└─custom.conf
Active: inactive (dead) since Mon 2023-04-24 15:21:14 CST; 56min ago
Process: 2572626 ExecStart=/usr/sbin/ns-slapd -D /etc/dirsrv/slapd-dir -i /run/dirsrv/slapd-dir.pid (code=exited, status=0/>
Process: 2572619 ExecStartPre=/usr/libexec/dirsrv/ds_selinux_restorecon.sh /etc/dirsrv/slapd-dir/dse.ldif (code=exited, sta>
Process: 2572614 ExecStartPre=/usr/libexec/dirsrv/ds_systemd_ask_password_acl /etc/dirsrv/slapd-dir/dse.ldif (code=exited, >
Main PID: 2572626 (code=exited, status=0/SUCCESS)
Status: "slapd started: Ready to process requests"

Apr 24 15:21:11 host1 ns-slapd[2572626]: Failed to reopen errors log file, Netscape Portable Runtime error -5966 (Acce>
Apr 24 15:21:12 host1 ns-slapd[2572626]: Failed to open errors log file /var/log/dirsrv/slapd-dir/errors: error 13 (Pe>
Apr 24 15:21:12 host1 ns-slapd[2572626]: Failed to reopen errors log file, Netscape Portable Runtime error -5966 (Acce>
Apr 24 15:21:14 host1 ns-slapd[2572626]: Failed to open errors log file /var/log/dirsrv/slapd-dir/errors: error 13 (Pe>
Apr 24 15:21:14 host1 ns-slapd[2572626]: Failed to reopen errors log file, Netscape Portable Runtime error -5966 (Acce>
Apr 24 15:21:14 host1 ns-slapd[2572626]: Failed to open errors log file /var/log/dirsrv/slapd-dir/errors: error 13 (Pe>
Apr 24 15:21:14 host1 ns-slapd[2572626]: Failed to reopen errors log file, Netscape Portable Runtime error -5966 (Acce>
Apr 24 15:21:14 host1 ns-slapd[2572626]: Failed to open errors log file /var/log/dirsrv/slapd-dir/errors: error 13 (Pe>
Apr 24 15:21:14 host1 ns-slapd[2572626]: Failed to reopen errors log file, Netscape Portable Runtime error -5966 (Acce>
Apr 24 15:21:14 host1 systemd[1]: dirsrv@dir.service: Succeeded.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Directory server 11
  • 389-ds-base

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content