Results 1 to 7 of 7

Thread: Zimbra won't start: slapd loglevel wildness

  1. #1
    Join Date
    Oct 2007
    Posts
    22
    Rep Power
    8

    Default Zimbra won't start: slapd loglevel wildness

    I have had Zimbra running for a week or so in a VMware virtual machine. I shut the machine down, bumped the RAM up, and can't get zimbra to start.

    /var/log/zimbra contents are last.

    I pull up /opt/zimbra/conf/slapd.conf in vim and see that the offending line 34 says:

    Code:
    loglevel ^[%@32768
    In other words, there's an <ESC> character, %@32768. If I change this or comment it out, it always gets replaced when I do

    Code:
    su - zimbra
    zmcontrol start
    What is causing this? How do I fix this? Our e-mail is completely down until I can get this running again.

    Thank you very much!

    Code:
    Dec 29 20:10:08 mail zimbramon[15716]: 15716:info: 2007-12-29 20:10:02, STATUS: mail.inn0vate.com: stats: Stopped 
    Dec 29 20:10:43 mail zimbramon[16326]: 16326:info: Starting services 
    Dec 29 20:10:44 mail slapd[16500]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:10:44 mail slapd[16500]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:10:44 mail slapd[16500]: slapd stopped. 
    Dec 29 20:10:44 mail slapd[16500]: connections_destroy: nothing to destroy. 
    Dec 29 20:10:49 mail slapd[16505]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:10:49 mail slapd[16505]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:10:49 mail slapd[16505]: slapd stopped. 
    Dec 29 20:10:49 mail slapd[16505]: connections_destroy: nothing to destroy. 
    Dec 29 20:10:55 mail slapd[16535]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:10:55 mail slapd[16535]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:10:55 mail slapd[16535]: slapd stopped. 
    Dec 29 20:10:55 mail slapd[16535]: connections_destroy: nothing to destroy. 
    Dec 29 20:11:00 mail slapd[16565]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:11:00 mail slapd[16565]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:11:00 mail slapd[16565]: slapd stopped. 
    Dec 29 20:11:00 mail slapd[16565]: connections_destroy: nothing to destroy. 
    Dec 29 20:11:05 mail slapd[16596]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:11:05 mail slapd[16596]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:11:05 mail slapd[16596]: slapd stopped. 
    Dec 29 20:11:05 mail slapd[16596]: connections_destroy: nothing to destroy. 
    Dec 29 20:11:10 mail slapd[16626]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:11:10 mail slapd[16626]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:11:10 mail slapd[16626]: slapd stopped. 
    Dec 29 20:11:10 mail slapd[16626]: connections_destroy: nothing to destroy. 
    Dec 29 20:11:15 mail slapd[16656]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:11:15 mail slapd[16656]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:11:15 mail slapd[16656]: slapd stopped. 
    Dec 29 20:11:15 mail slapd[16656]: connections_destroy: nothing to destroy. 
    Dec 29 20:11:21 mail slapd[16686]: @(#) $OpenLDAP: slapd 2.3.39 (Nov 11 2007 11:48:12) $ 	build@build10.re.zimbra.com:/home/build/p4/FRANK/ThirdParty/openldap/openldap-2.3.39.5z/servers/slapd 
    Dec 29 20:11:21 mail slapd[16686]: /opt/zimbra/conf/slapd.conf: line 34: <loglevel> unknown level "@32768" 
    Dec 29 20:11:21 mail slapd[16686]: slapd stopped. 
    Dec 29 20:11:21 mail slapd[16686]: connections_destroy: nothing to destroy. 
    Dec 29 20:12:04 mail zmtomcatmgr[17131]: status requested
    Dec 29 20:12:04 mail zmtomcatmgr[17131]: file /opt/zimbra/log/zmtomcatmgr.pid does not exist
    Dec 29 20:12:04 mail zmtomcatmgr[17131]: assuming no other instance is running
    Dec 29 20:12:04 mail zmtomcatmgr[17131]: no manager process is running
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: antispam: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: antivirus: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: ldap: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: logger: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: mailbox: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: mta: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: snmp: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: spell: Stopped 
    Dec 29 20:12:05 mail zimbramon[16917]: 16917:info: 2007-12-29 20:12:01, STATUS: mail.inn0vate.com: stats: Stopped

  2. #2
    Join Date
    Oct 2007
    Posts
    22
    Rep Power
    8

    Default

    I got things running, but the core problem still exists.

    After poking around in /opt/zimbra/conf, I noticed that there is the file:

    slapd.conf.in

    it appears to be something that the startup processes and uses to create slapd.conf.

    Line 34 of slapd.conf.in says:

    Code:
    loglevel @@ldap_log_level@@
    I was able to get past the problem by changing it to:

    Code:
    #loglevel @@ldap_log_level@@
    loglevel 256
    which generates the following in the slapd.conf file:

    Code:
    #loglevel ^[%@32768
    loglevel 256
    As you can see, the problem is still there in the comments.

    So while I'm up and running again, it doesn't address the core question of why this line, which seems to have been working before, suddenly is freaking out with the ^[%@32768 value.

  3. #3
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default I'm seeing this now too

    As a curious mind, I'd like to know the answer too.

    Thanks in advance,
    todd_dsm

    Don't forget to Vote for this RFE:
    RFE: A place To Display the contents of 'My Documents'
    Reasoning: It's new, bold, and cool.
    Last edited by todd_dsm; 10-08-2010 at 09:47 AM.

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Old thread, but based on the @@ldap_log_level@@ keep getting replaced in the sldap.conf/sldap.conf.in I'd say examine:
    zmlocalconfig | grep ldap_log_level

    zmlocalconfig -e ldap_log_level=32768
    zmcontrol stop/start

    This on 5.0.10 or are you still running 5.0.5? (profile)

  5. #5
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default

    Quote Originally Posted by mmorse View Post
    This on 5.0.10 or are you still running 5.0.5? (profile)
    Sorry it took so long getting back to you on this. I'm using 5.0.11.

    Cheers,
    todd_dsm

    Don't forget to Vote for this RFE:
    RFE: A place To Display the contents of 'My Documents'
    Reasoning: It's new, bold, and cool.
    Last edited by todd_dsm; 10-08-2010 at 09:47 AM.

  6. #6
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default

    I started seeing this during the walk-through for UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI

    Code:
    $ /opt/zimbra/openldap-2.3.43.5z/sbin/slapindex -v -f /opt/zimbra/conf/slapd.conf.in
    /opt/zimbra/conf/slapd.conf.in: line 36: <loglevel> unknown level "@@ldap_log_level@@"
    slapindex: bad configuration file!
    Then, per the suggestion, ran with this:
    Code:
    $ zmlocalconfig | grep ldap_log_level
    ldap_log_level = 49152
    
    $ zmlocalconfig -e ldap_log_level=32768
    
    $ zmcontrol stop
    $ zmcontrol start
    
    $ zmlocalconfig | grep ldap_log_level
    ldap_log_level = 32768
    Went to re-attempt the index:
    Code:
    $ zmcontrol stop
    $ /opt/zimbra/openldap-2.3.43.5z/sbin/slapindex -v -f /opt/zimbra/conf/slapd.conf.in
    /opt/zimbra/conf/slapd.conf.in: line 36: <loglevel> unknown level "@@ldap_log_level@@"
    slapindex: bad configuration file!
    The loglevel did change but the error persists.

    Thanks in advance,
    todd_dsm

    Don't forget to Vote for this RFE:
    RFE: A place To Display the contents of 'My Documents'
    Reasoning: It's new, bold, and cool.
    Last edited by todd_dsm; 10-08-2010 at 09:47 AM.

  7. #7
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default

    OK, I found this answer in the #zimbra irc room:

    1) $vi /opt/zimbra/conf/slapd.conf.in
    2) Comment out the "@@ldap_log_level@@" and enter on the next line
    3) loglevel 256 (or whatever)

    slapindex does not appear to be parsing this variable correctly. Just set it to a static value.

    Thanks in advance,
    todd_dsm

    Don't forget to Vote for this RFE:
    RFE: A place To Display the contents of 'My Documents'
    Reasoning: It's new, bold, and cool.
    Last edited by todd_dsm; 10-08-2010 at 09:48 AM.

Similar Threads

  1. [SOLVED] Spam Being Sent Thru Server - Help Needed!
    By msf004 in forum Administrators
    Replies: 22
    Last Post: 03-14-2008, 11:11 PM
  2. Replies: 22
    Last Post: 12-02-2007, 04:05 PM
  3. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 09:39 AM
  4. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •