Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-2008, 04:37 PM
Junior Member
 
Posts: 6
Default ldap doesn't fully start, and slapd totally hangs

When starting ZCM with ' zmcontrol start ' the typical service starting messages show up, however the very first one is ldap saying that it's started but this information is only from cache.... then everything else seems to start.

The problem is that ldap doesn't actually start, if you look at the system processes slapd is totally hung and pulling 100% of the processor.

So I have a few questions for anyone who's had ldap issues.

1. Where are the logs for the real zimbra service transactions at startup ? The ones in /opt/zimbra/logs/.... just have that same echoed message about the services all starting but the information is from cache and is basically worthless since it's not ' real time ' start information.

2. Where are the logs for ldap ?

3. Is there a debug mode for starting Zimbra to give verbose startup information ?

4. Is there a way to start ldap in debug mode so that verbose information on the startup is echoed to the terminal ?
Reply With Quote
  #2 (permalink)  
Old 12-03-2008, 07:41 PM
Trained Alumni
 
Posts: 108
Default

Quote:
Originally Posted by EricOnE View Post
1. Where are the logs for the real zimbra service transactions at startup ? The ones in /opt/zimbra/logs/.... just have that same echoed message about the services all starting but the information is from cache and is basically worthless since it's not ' real time ' start information.
I believe that that's the correct location

Quote:
Originally Posted by EricOnE View Post
2. Where are the logs for ldap ?
try /var/log/zimbra.log

Quote:
Originally Posted by EricOnE View Post
3. Is there a debug mode for starting Zimbra to give verbose startup information ?
There are logging levels with slapd, but i'm pretty certain the defaults are already extremely verbose (these defaults were changed in 5.0.6 i think?)


Quote:
Originally Posted by EricOnE View Post
4. Is there a way to start ldap in debug mode so that verbose information on the startup is echoed to the terminal ?
I'm not sure
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 07:45 PM
Trained Alumni
 
Posts: 108
Default

Quote:
Originally Posted by EricOnE View Post
The problem is that ldap doesn't actually start, if you look at the system processes slapd is totally hung and pulling 100% of the processor.
I actually saw this on one of my systems, and for us, it eventually "cleared up" after about 15 minutes.


Have you played with linux debugging tools? strace, lsof, et cetera.
Reply With Quote
  #4 (permalink)  
Old 12-03-2008, 11:48 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by EricOnE View Post
The problem is that ldap doesn't actually start, if you look at the system processes slapd is totally hung and pulling 100% of the processor.
Some idea of operating system and Zimbra version & release would help. Please update your forum profile with the output of the following:

Code:
zmcontrol -v
. Is this a new install or an upgrade or has this 'just started happening'?

Have a look at the LDAP Troubleshooting and try the suggestions there.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 12-04-2008, 06:42 AM
Junior Member
 
Posts: 6
Default

It's running an older version: 4.5.10_GA on FC4 2.6.17-1.2142_FC4smp

This seems to have just started happening.

There isn't anything in the logs about ldap or slapd. The most that the system says is that it's starting , then says ldap has start but cautions you that it's only getting this information from cache and it may not be accurate... which indeed it's not.

Here's what I tried so far:
I tried /opt/zimbra/sleepycat/bin/db_recover and that just hangs like everything else.

Running as root:
/opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://mail.<domain>.com:389 -f /opt/zimbra/conf/slapd.conf -d 7

This gave me lots of verbose output ending in:

cn: Write
creatorsName: cn=config
modifiersName: cn=config
createTimestamp: 20081204140257Z
modifyTimestamp: 20081204140257Z
"
>>> dnPrettyNormal: <cn=Write,cn=Waiters,cn=Monitor>
=> ldap_bv2dn(cn=Write,cn=Waiters,cn=Monitor,0)
<= ldap_bv2dn(cn=Write,cn=Waiters,cn=Monitor)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=Write,cn=Waiters,cn=Monitor)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=write,cn=waiters,cn=monitor)=0
<<< dnPrettyNormal: <cn=Write,cn=Waiters,cn=Monitor>, <cn=write,cn=waiters,cn=monitor>
>>> dnNormalize: <cn=config>
=> ldap_bv2dn(cn=config,0)
<= ldap_bv2dn(cn=config)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=config)=0
<<< dnNormalize: <cn=config>
>>> dnNormalize: <cn=config>
=> ldap_bv2dn(cn=config,0)
<= ldap_bv2dn(cn=config)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=config)=0
<<< dnNormalize: <cn=config>
<= str2entry(cn=Write,cn=Waiters,cn=Monitor) -> 0x96291cc
backend_startup_one: starting ""
bdb_db_open:
bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: dbenv_open(/opt/zimbra/openldap-data)

This looks like it was going to just try and repair the database like the first thing I tried.. so this hangs too.

The main issue is that either the database is so jacked up that the tools can't even deal with it enough to at least quit with an error, or ldap gets stuck on something that's just not being logged or I'm not seeing.

After this problem initially started someone tried an attempt to just upgrade Zimbra ( done before I got involved ), and this just froze at some point I'm told.

Any suggestions ?





I've even tried dumping some of the bdb files from openldap manually using /opt/zimbra/sleepycat/bin/db_dump but that just hangs too.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.