Bug 1381153

Summary: Crash in import_wait_for_space_in_fifo().
Product: Red Hat Enterprise Linux 6 Reporter: Marcel Kolaja <mkolaja>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0CC: ekeck, gparente, msauton, nhosoi, nkinder, rmeggins, sramling, tbordaz, tmihinto
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.11.15-81.el6_8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1368209 Environment:
Last Closed: 2016-11-15 19:38:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1368209    
Bug Blocks:    

Description Marcel Kolaja 2016-10-03 09:15:46 UTC
This bug has been copied from bug #1368209 and has been proposed
to be backported to 6.8 z-stream (EUS).

Comment 5 Sankar Ramalingam 2016-10-26 15:45:59 UTC
Are there steps to reproduce/verify this issue? Based on my understanding, I need to import(online) large number of users with duplicate DNs. Can you please guide me if you already have steps to reproduce?

Comment 7 Sankar Ramalingam 2016-10-27 18:32:54 UTC
Thanks Noriko for the steps. I followed the sequence of steps + online import + Add users simultaneously. However, I didn't encounter any crash with the server.

The error logs showed that the db file in not accessible.

 [27/Oct/2016:23:54:03 +051800] - WARNING---no write permission to file /var/lib/dirsrv/slapd-M1/db/example11189/id2entry.db4
[27/Oct/2016:23:54:03 +051800] - dbp->open("example11189/id2entry.db4") failed: Permission denied (13)
[27/Oct/2016:23:54:03 +051800] - Instance directory /var/lib/dirsrv/slapd-M1/db/example11189 may not be writable
[27/Oct/2016:23:54:03 +051800] - dblayer_instance_start fail: Permission denied (13)
[27/Oct/2016:23:54:03 +051800] - start: Failed to start databases, err=13 Permission denied
[27/Oct/2016:23:54:03 +051800] - Failed to start database plugin ldbm database
[27/Oct/2016:23:54:03 +051800] - WARNING: ldbm instance userRoot already exists


After that, I changed the permission for id2dbentry.db4 file, then the server is brought back alive.

chown dsuser.dsuser //var/lib/dirsrv/slapd-M1/db/example11189/id2entry.db4 

[root@vm-idm-006 slapd-M1]# service dirsrv restart
Shutting down dirsrv: 
    C1...[  OK  ]
    C2...[  OK  ]
    M1... server already stopped[FAILED]
  *** Error: 1 instance(s) unsuccessfully stopped[FAILED]
Starting dirsrv: 
    C1...[  OK  ]
    C2...[  OK  ]
    M1...[  OK  ]

Hence, marking the bug as Verified.

Comment 9 errata-xmlrpc 2016-11-15 19:38:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2765.html