#1216 Infinite loop if slapd crashes during installation
Closed: migrated by dmoluguw. Opened by edewata.

If slapd crashes during Dogtag installation (see https://fedorahosted.org/389/ticket/47966), the installation process may get stuck in an infinite loop. There should be a timeout or max number of attempts so that in such condition pkispawn will eventually terminate and report an error.

In ConfigurationUtils.populateVLVIndexes() if the LDAP connection fails it will never exit the loop:

boolean taskComplete = false;
...
do {
    try {
        task = conn.read(wait_dn, (String[]) null);
        ...
        taskComplete = true;
        ...
    } catch (Exception le) {
        CMS.debug("Still checking wait_dn '" + wait_dn + "' (" + le.toString() + ")");
    }
} while (!taskComplete);

When that happens Dogtag will repeat the operation indefinitely. Here's the debug log:

...
[26/Nov/2014:01:40:18][http-bio-8443-exec-3]: Still checking wait_dn 'cn=index1160589769, cn=index, cn=tasks, cn=config' (netscape.ldap.LDAPException: failed to connect to server ldap://vm-064.idm.lab.bos.redhat.com:389 (91))

Proposed milestone: 10.2.x


Per Dogtag 10.2.X meeting of 01/14/2015: Milestone 10.2 Backlog

Per 10.2.3 TRIAGE meeting of 02/26/2015: 10.3

NOTE: Moved from 10.2 Backlog since it was not a documentation/man page issue.

Metadata Update from @edewata:
- Issue set to the milestone: UNTRIAGED

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1778

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

Metadata