Bug 1590974

Summary: ipa-replica-install is failing with "error] DatabaseError: Operations error: The changelog directory [/var/lib/dirsrv/slapd-EXAMPLE-LOCAL/cldb] already exists and is not empty."
Product: Red Hat Enterprise Linux 7 Reporter: aheverle
Component: 389-ds-baseAssignee: Ludwig <lkrispen>
Status: CLOSED NOTABUG QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.5CC: aheverle, cpelland, ekeck, frenaud, gparente, hkhot, lkrispen, mreynolds, nkinder, pasik, pvoborni, rakkumar, rcritten, rmeggins, tmihinto, tscherf, vashirov
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-15 20:12:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error log from install
none
audit log none

Description aheverle 2018-06-13 20:14:58 UTC
Description of problem:
When attempting an install of ipa-replica, it fails with with the error below.

#####
[28/42]: setting up initial replication
  [error] DatabaseError: Operations error: The changelog directory [/var/lib/dirsrv/slapd-EXAMPLE-LOCAL/cldb] already exists and is not empty.  Please choose a directory that does not exist or is empty.
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR    Operations error: The changelog directory [/var/lib/dirsrv/slapd-EXAMPLE-LOCAL/cldb] already exists and is not empty.  Please choose a directory that does not exist or is empty.
ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR    The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
#####

Have tried a new VM and still fails.


How reproducible:
Everytime

Steps to Reproduce:
1. ipa-replica-install

Actual results:
Fail

Expected results:
Install

Additional info:
There is no changelog prior to install, but one due to failure.

Before install attempt:

[root@SERVER dirsrv]# ls
scripts-EXAMPLE-LOCAL
[root@SERVER dirsrv]# pwd
/var/lib/dirsrv

After failed install:
[root@SERVER ~]# ls -la /var/lib/dirsrv/slapd-EXAMPLE-LOCAL/cldb/
total 4
drwxr-xr-x. 2 dirsrv dirsrv 23 Jun 13 09:07 .
drwxrwx---. 6 dirsrv dirsrv 51 Jun 13 09:07 ..
-rw-------. 1 dirsrv dirsrv 30 Jun 13 09:07 DBVERSION

Comment 3 Florence Blanc-Renaud 2018-06-14 14:59:56 UTC
Moving the component to 389-ds as it seems to be a DS issue.

Comment 8 aheverle 2018-09-12 13:48:48 UTC
Created attachment 1482696 [details]
error log from install

Comment 15 aheverle 2018-10-11 17:20:51 UTC
Created attachment 1492984 [details]
audit log