Bug 606439 - Creating server instance with LDAPI takes too long.
Summary: Creating server instance with LDAPI takes too long.
Alias: None
Product: 389
Classification: Retired
Component: Install/Uninstall
Version: 1.2.6
Hardware: All
OS: All
Target Milestone: ---
Assignee: Nathan Kinder
QA Contact: Viktor Ashirov
Depends On:
Blocks: 389_1.2.7 639035
TreeView+ depends on / blocked
Reported: 2010-06-21 15:46 UTC by Endi Sukma Dewata
Modified: 2015-12-07 16:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-12-07 16:49:05 UTC

Attachments (Terms of Use)
scripts.tar.gz (525 bytes, application/x-gzip)
2010-06-21 15:46 UTC, Endi Sukma Dewata
no flags Details
Patch (2.84 KB, patch)
2010-12-10 22:14 UTC, Nathan Kinder
nhosoi: review+
Details | Diff

Description Endi Sukma Dewata 2010-06-21 15:46:19 UTC
Created attachment 425678 [details]

When a new server instance is created using setup-ds.pl, the startServer() in DSCreate.pm will wait until a phrase "slapd started." appears in the error log. If the new instance is configured to listen to LDAPI interface only, not the regular LDAP port, it will not display the phase causing the script to wait until timeout (10 minutes).

How reproducible: consistently.

To reproduce the problem, unpack the attached scripts.tar.gz, then execute run.sh. It will create an instance with the following .inf file:


RootDN=cn=Directory Manager

Actual results:
Could not start the directory server using command '/usr/lib/dirsrv/slapd-example/start-slapd'.  The last line from the error log was '[21/Jun/2010:00:41:55 -0500] - Listening on /tmp/ldapi for LDAPI requests
'.  Error:
Error: Could not create directory server instance 'example'.
Exiting . . .
Log file is '/tmp/setupT6JK7h.log'

Expected results:
The setup-ds.pl should complete without timing out.

Comment 3 Nathan Kinder 2010-12-10 22:14:52 UTC
Created attachment 468075 [details]

Comment 4 Nathan Kinder 2010-12-10 22:24:36 UTC
Pushed to master.  Thanks to Noriko for her review!

Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 964 bytes, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
   b3b0217..d9cac18  master -> master

Comment 5 Amita Sharma 2011-05-25 10:53:11 UTC
[root@amsharma scripts]# ./run.sh
Stopping slapd...
Removing slapd...
Instance slapd-amsharma removed.
Creating slapd...
Your new DS instance 'example' was successfully created.
Exiting . . .
Log file is '/tmp/setupimsedY.log'

[11/05/25:16:21:39] - [Setup] Info Your new DS instance 'example' was successfully created.
[11/05/25:16:21:39] - [Setup] Success Exiting . . .
Log file is '/tmp/setupimsedY.log'

Finished in no time. Hence Verified.

Note You need to log in before you can comment on or make changes to this bug.