Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] LDAP and Logger Not starting

  1. #1
    AndresTarallo is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Montevideo, Uruguay
    Posts
    18
    Rep Power
    6

    Default [SOLVED] LDAP and Logger Not starting

    I have installed a backup script form my Zimbra Server. In a certain point of the script it stop the services, then it starts it again. Both operations are performed with Zimbra control.

    When I run the script from the command line it works fine. When I run it from cron services aren't properly started. Specifically LDAP and Logger doesn't start.

    If I run zmcontrol status I get:

    Enabled services read from cache. Service list may be inaccurate.
    Host zimbra-XXX.ZZZZZ.com.uy
    antispam Running
    antivirus Running
    ldap Stopped
    logger Stopped

    logmysql.server is not running
    zmlogswatchctl is not running
    mailbox Running
    mta Running
    snmp Running
    spell Running
    stats Running


    For starting zmcontrol I've tryied:
    /bin/su - zimbra -c "/opt/zimbra/bin/zmcontrol start"
    and
    sudo -u zimbra /opt/zimbra/bin/zmcontrol start
    A/P Andrés Tarallo
    Montevideo, Uruguay

  2. #2
    Dirk's Avatar
    Dirk is offline Moderator
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    9

    Default

    It's generally a permissions issue when something works from the console but not from within a script. It may also be the environment settings. Have your script dump the envirnonment to a file just before it hits the command that's causing you some trouble and compare the output to the results of 'env' when you run it interactivly. There may be something there.

    What used does the script run as? does that user have suders rights to be able to use the sudo command?

    Without seeing the exact script you are using, it's hard to say for sure what the problem may be, feel free to post your script here or into your Sandbox pages and link to it.

  3. #3
    AndresTarallo is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Montevideo, Uruguay
    Posts
    18
    Rep Power
    6

    Default

    The script I'm trying to run is a backup script, taken from this page of zimbra wiki: Open Source Edition Backup Procedure - Zimbra :: Wiki

    The only change I've made was commenting the line where it FTP the compressed backup.

    I've also tested the suggestion of using sudo, instead of su. got the same results.
    Last edited by AndresTarallo; 12-16-2008 at 06:09 AM.
    A/P Andrés Tarallo
    Montevideo, Uruguay

  4. #4
    Dirk's Avatar
    Dirk is offline Moderator
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    9

    Default

    Ah, that's odd, I'm sure that script is in use by others. Can you just confirm that it's being ran from the root users cron?

    The script was designed for Ubuntu 6, so there's a possibility that a change in 8 is causing you some problems.

  5. #5
    AndresTarallo is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Montevideo, Uruguay
    Posts
    18
    Rep Power
    6

    Default

    We're running the script in Ubuntu 8.04.1, with all patch applied.

    The script is run in the crontab of the root user (edited with crontab -e)
    A/P Andrés Tarallo
    Montevideo, Uruguay

  6. #6
    AndresTarallo is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Montevideo, Uruguay
    Posts
    18
    Rep Power
    6

    Default Crontab where the script is runned

    MAILTO=myuser@somwhere.com
    SHELL=/bin/bash
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    SHLVL=2
    USER=root
    LANG=en_US.UTF-8
    48 21 * * * /usr/local/bin/zimbra_backup.sh
    A/P Andrés Tarallo
    Montevideo, Uruguay

  7. #7
    AndresTarallo is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Montevideo, Uruguay
    Posts
    18
    Rep Power
    6

    Default More information

    The backup script seems to die when zmcontrol is executed.
    A/P Andrés Tarallo
    Montevideo, Uruguay

  8. #8
    BarefootPanda's Avatar
    BarefootPanda is offline Special Member
    Join Date
    Jun 2008
    Location
    Minneapolis, MN
    Posts
    112
    Rep Power
    6

    Default

    I have just recently started experiencing the exact same thing on my Mac OS X box.

    I do no have a custom backup script doing anything. It's just doing the standard nightly backups.

    When the system is rebooted zmlogswatchctl and zmswatch services do not restart. I have to stop with zmcontrol and then start it back up again.

  9. #9
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

  10. #10
    AndresTarallo is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Montevideo, Uruguay
    Posts
    18
    Rep Power
    6

    Default

    At least I was aware of that bug, and I´ve applied the patch. The result's are the same as without patch.

    As I've said before it seems to me that zmcontrol dies when trying to start the services, running from a cron job
    A/P Andrés Tarallo
    Montevideo, Uruguay

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mailbox and logger not starting - SLES9 M3 Beta436
    By DanielP in forum Installation
    Replies: 49
    Last Post: 08-25-2008, 03:23 AM
  2. Replies: 4
    Last Post: 07-12-2008, 09:36 PM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Replies: 2
    Last Post: 05-24-2006, 10:01 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
  •