Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Server stops 2 hours after backup

  1. #11
    joe_louis is offline Member
    Join Date
    Sep 2011
    Location
    Atlanta, Ga
    Posts
    13
    Rep Power
    3

    Default

    forgive my ignorance, but how would you do that with a cron job running the command? I am sure i could do it when i run that manually

  2. #12
    soba@ukw.edu.pl is offline Special Member
    Join Date
    Jul 2011
    Posts
    146
    Rep Power
    3

    Default

    I don't use Zimbra backup of any script, so I do not know how it looks - see man crontab IN YOUR OS and openbackup Zimbra Wiki page.
    # ZCS 7.1.3 SLES11 SP1

  3. #13
    joe_louis is offline Member
    Join Date
    Sep 2011
    Location
    Atlanta, Ga
    Posts
    13
    Rep Power
    3

    Default

    last night i ran the backup automatically and woke up to this for the log in
    Code:
    A network service error has occurred.
    when trying to log in.
    but when i run service zimbra status from the command line, i see
    Code:
    Host mail.someserver.com
            antispam                Running
            antivirus               Running
            imapproxy               Running
            ldap                    Running
            logger                  Running
            mailbox                 Running
            memcached               Running
            mta                     Running
            snmp                    Running
            spell                   Running
            stats                   Running
            zmconfigd               Running
    In the log that i generate I see the following things.
    Code:
    Host mail.blahblahblah.com
            Stopping stats...Done.
            Stopping mta...Done.
            Stopping spell...Done.
            Stopping snmp...Done.
            Stopping cbpolicyd...Done.
            Stopping archiving...Done.
            Stopping antivirus...Done.
            Stopping antispam...Done.
            Stopping imapproxy...Done.
            Stopping memcached...Done.
            Stopping mailbox...Done.
            Stopping logger...Done.
            Stopping zmconfigd...Done.
            Stopping ldap...Done.
    killing all zimbra services
    root     24668  0.0  0.0   8788   680 ?        S    04:02   0:00 awk -v progname=/etc/cron.daily/zimbra_backups_with_log.sh p$
    root     24669  0.0  0.0   8724  1000 ?        S    04:02   0:00 /bin/bash /etc/zimbra_backup.sh
    root     30489  0.0  0.0   6056   584 ?        S    04:13   0:00 grep zimbra
    then later in the log
    Code:
    Host mail.someserver.com
            Stopping stats...Done.
            Stopping mta...Done.
            Stopping spell...Done.
            Stopping snmp...Done.
            Stopping cbpolicyd...Done.
            Stopping archiving...Done.
            Stopping antivirus...Done.
            Stopping antispam...Done.
            Stopping imapproxy...Done.
            Stopping memcached...Done.
            Stopping mailbox...Done.
            Stopping logger...Done.
            Stopping zmconfigd...Done.
            Stopping ldap...Done.
    Host mail.someserver.com
            Starting ldap...Done.
            WARNING: Disk space below threshold for /opt/zimbra.
            Starting zmconfigd...Done.
            Starting logger...Done.
            Starting mailbox...Done.
            Starting memcached...Done.
            Starting imapproxy...Done.
            Starting antispam...Done.
            Starting antivirus...Done.
            Starting snmp...Done.
            Starting spell...Done.
            Starting mta...Done.
            Starting stats...Done.
    SERVER WAS DOWN FOR: 0 hours 5 minutes 12 seconds
    Displaying Zimbra services status...
    Host mail.someserver.com
            antispam                Running
            antivirus               Running
            imapproxy               Running
            ldap                    Running
            logger                  Running
            mailbox                 Running
            memcached               Running
            mta                     Running
            snmp                    Running
            spell                   Running
            stats                   Running
            zmconfigd               Running
    If any one can point me in the right direction to correct this. That would be great.
    Last edited by joe_louis; 09-14-2011 at 05:44 AM.

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

    Default

    Quote Originally Posted by joe_louis View Post
    [/CODE]Displaying Zimbra services status...
    Host mail.someserver.com
    antispam Running
    antivirus Running
    imapproxy Running
    ldap Running
    logger Running
    mailbox Running
    memcached Running
    mta Running
    snmp Running
    spell Running
    stats Running
    zmconfigd Running[/CODE]
    I'm assuming this is a single server, why do you have the imapproxy & memcached installed? Having those installed can cause you problems, search the forums for details on how to disable them, remove the services and reset the ports to their default values.

    [/COLOR]
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #15
    soba@ukw.edu.pl is offline Special Member
    Join Date
    Jul 2011
    Posts
    146
    Rep Power
    3

    Default

    These can be installed on the server - but should not be enabled.

    Check out the forum - disable imap proxy (in my opinion this can be disabled from Zimbra Admin GUI) , and disable memcache (cli only)
    # ZCS 7.1.3 SLES11 SP1

  6. #16
    joe_louis is offline Member
    Join Date
    Sep 2011
    Location
    Atlanta, Ga
    Posts
    13
    Rep Power
    3

    Default

    I will try that. The thing is all my other installs are setup the same way and non of them are experiencing this problem. There is at least 5 other machines not counting the ones that my co-workers setup prior to me joining the company. These installs are all inside of a xen virtual machine. Both the host and the VM are running centos 5.6 64 bit. Yes i am also running the 64 bit version of zimbra too.

  7. #17
    joe_louis is offline Member
    Join Date
    Sep 2011
    Location
    Atlanta, Ga
    Posts
    13
    Rep Power
    3

    Default

    I tried your suggestions phoenix and soba. Unfortunatley, they did not work. the services i have running now are
    Code:
    Host mail.someserver.com
    	antispam                Running
    	antivirus               Running
    	ldap                    Running
    	logger                  Running
    	mailbox                 Running
    	mta                     Running
    	snmp                    Running
    	spell                   Running
    	stats                   Running
    	zmconfigd               Running
    when the script executes this is what it shows for stopping the service

    Code:
    Host mail.someserver.com
    Stopping stats...Done.
    Stopping mta...Done.
    Stopping spell...Done.
    Stopping snmp...Done.
    Stopping cbpolicyd...Done.
    Stopping archiving...Done.
    Stopping antivirus...Done.
    Stopping antispam...Done.
    Stopping imapproxy...Done.
    Stopping memcached...Done.
    Stopping mailbox...Done.
    Stopping logger...Done.
    Stopping zmconfigd...Done.
    Stopping ldap...Done.
    killing all zimbra services
    root     17667  0.0  0.0   8788   680 ?        S    04:02   0:00 awk -v progname=/etc/cron.daily/zimbra_backups_with_log.sh progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
    root     17668  0.0  0.0   8724   992 ?        S    04:02   0:00 /bin/bash /etc/zimbra_backup.sh
    zimbra   20229  0.2  0.0      0     0 ?        D    04:06   0:00 [freshclam]
    root     20316  0.0  0.0   6056   584 ?        S    04:06   0:00 grep zimbra
    This maybe a different problem but I have also noticed since i stuck the ps -aux in the script right after the stopping of the services to capture what is still running if anything. The ldap server does not like to restart. I have had to reboot the machine to get it to come back up and function like normal.

    Here is the section of code that I use to stop the services.
    Code:
    # Stop Zimbra Services
    #/etc/init.d/zimbra stop
    # service zimbra stop
    su - zimbra -c"/opt/zimbra/bin/zmcontrol stop"
    #sleep 15
    # Kill any orphaned Zimbra processes
    echo killing all zimbra services
    #kill -9 `ps -u zimbra -o "pid="`
    pkill -9 -u zimbra
    and here is the section for starting them
    Code:
    # Restart Zimbra Services
    su - zimbra -c "/opt/zimbra/bin/zmcontrol start"
    #service zimbra restart
    #/etc/init.d/zimbra start
    Any other ideas guys?

  8. #18
    soba@ukw.edu.pl is offline Special Member
    Join Date
    Jul 2011
    Posts
    146
    Rep Power
    3

    Default

    Probably you have a problem with your shell script and crontab var.

    Check your crontab shell (it's will be in /etc/crontab /etc/cron files).

    All backup script you must write in ZIMBRA crontab.



    Like: crontab -u root

    TIME VALUE /yourbackupscript.sh >> /dev/null 2>&1


    In the file /yourbackupscript.sh put this line:

    #!/bin/sh
    /patch_to_your_zimbra_backu_script.sh



    # end of file

    chmod -R 755 /yourbackupscript.sh



    If you use a LVM backup structure you must run a backup script as root permissions: crontab -u root -e
    TIME VALUE /yourbackupscript.sh >> /dev/null 2>&1
    # ZCS 7.1.3 SLES11 SP1

  9. #19
    joe_louis is offline Member
    Join Date
    Sep 2011
    Location
    Atlanta, Ga
    Posts
    13
    Rep Power
    3

    Default

    I am executing this script from a seperate script that generates a log. the script that generates the log has the
    Code:
    -rwxr-xr-x 1 root root
    for user and permissions aleady.

    in the script that cron runs initially, I have
    Code:
    /etc/zimbra_backup.sh > /root/zbackup.log 2>&1
    to run the other script.

    Also i noticed you keep mentioning LVM. I am actually utilizing NFS to go between storage for machines.

    Now for the path. I am drawing a blank on the correct syntax for this. I think it should be
    Code:
     path /etc
    Please correct me if this is wrong. Thank you again for all your help guys.

  10. #20
    joe_louis is offline Member
    Join Date
    Sep 2011
    Location
    Atlanta, Ga
    Posts
    13
    Rep Power
    3

    Default

    Well guys, That still didn't work. I am about to just rebuild the VM from the ground up. Creating a new VM to install on unless someone has another option to try.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 658
    Last Post: 04-04-2014, 09:01 AM
  2. Keeping a backup server synced with live server
    By Q-Mike in forum Administrators
    Replies: 5
    Last Post: 04-11-2008, 01:40 PM
  3. [SOLVED] Multi Server - DNS - Imapproxy
    By innercy in forum Installation
    Replies: 1
    Last Post: 12-29-2007, 10:21 PM
  4. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 09:19 AM
  5. Restoring a zimbra server without proper backup
    By jonnyRo in forum Administrators
    Replies: 1
    Last Post: 10-12-2006, 12:45 PM

Posting Permissions

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