[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapcat hangs v2.2.24

Thanks, I'll give that a shot when I can schedule an outage, hopefully overnight tonight.

Further info: This is a new ldap server just bought online with v2.2.24, as such is was loaded from scratch using ldapadd without any errors. Then immediately after starting slapd this slapcat problem was there, so I'm just curious as to what the db_recovery is expected to do? I would think the db would be pristine from just being loaded.

Howard Chu wrote:

If slapd is running, stop it first. Then do a db_recover on the database directory, then try it again.

Curt Blank wrote:

OK, this problem is back. It is a real problem I need help!

Whether I do a:

slapcat -f /etc/openldap/slapd.conf -l 20050423-0155-new.ldif

or a:

slapcat -f /etc/openldap/slapd.conf

it hangs and never exits and never returns the command line prompt.

Curt Blank wrote:

Never mind. Now I can't make it fail. I did nothing to fix it. It was there for 3 days and now it's not.

I suspect something else I was running was screwing up my environment/shell or process because I was seeing other weird behavior, I just put two and two together. If/When I see that other weird behavior I will try a slapcat at that point and see, I cannot force that other behavior at the moment either, my fix there was to ^D and su again to make it go away. I couldn't even read man pages when it acted up.

I do not like unexplained anomalies, so I will pursue this.

Curt Blank wrote:

This appears to be some sort of buffer flush issue, even though I see it get to the end the last 4 entries that the debug info shows it processed are not in the output file.

I really could use some help here, this is a show stopper.

Curt Blank wrote:

I'm trying to do a slapcat and it dumps all the entries but never exits and returns the command line prompt. I put it in debug mode (-d 1) and it takes under a minute to do the dump and then just sits there. I'm pretty sure it dumped all the entries because I see the entry that is usually the last one dumped. I'm not doing anything fancy just:

slapcat -d 1 -f /etc/openldap/slapd.conf -l 20050419-1326.ldif

and the last thing it outputs after what I know is the last user entry is:

entry_decode: "cn=ldapsync,o=uwm.edu"
<= entry_decode(cn=ldapsync,o=uwm.edu)
slapcat shutdown: initiated
====> bdb_cache_release_all
slapcat shutdown: freeing system resources.

then sits there. Any ideas what is happening? I let it sit for 45 minutes one time and it never came back. I've tried it with slapd running and with it not running, same result.