Unable to restart DS after reboot

Solution Verified - Updated -

Issue

Customer was unable to restart the IPA embedded DS after rebooting the host. The customer was seeing the following messages in the DS' errors log:
[10/Sep/2016:09:03:33 +0200] - Unable to access nsslapd-rundir: Permission denied
[10/Sep/2016:09:03:33 +0200] - Ensure that user "dirsrv" has read and write permissions on /var/run/dirsrv
[10/Sep/2016:09:03:33 +0200] - Shutting down.

Customer worked around the issue by manually changing permissions on the following files:
mkdir /run/lock/dirsrv
mkdir /run/lock/dirsrv/slapd-EXAMPLE
mkdir /run/lock/dirsrv/slapd-EXAMPLE/exports
mkdir /run/lock/dirsrv/slapd-EXAMPLE/imports
mkdir /run/lock/dirsrv/slapd-EXAMPLE/server
mkdir /var/run/dirsrv
chown -R dirsrv:dirsrv /var/run/dirsrv
chown -R dirsrv:dirsrv /run/lock/dirsrv

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