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 05-17-2010, 06:17 AM
Junior Member
 
Posts: 10
Default [SOLVED] Error Starting Zimbra

My objective: cronjob to do the following backup at night
** Start **
- rsync -avHK --delete /opt/zimbra/ /backup/zimbra (* OK * initial rsync to save some down time)
- sudo -u zimbra /opt/zimbra/bin/zmcontrol stop (* OK *)
- rsync -avHK --delete /opt/zimbra/ /backup/zimbra ( * OK *)
- sudo -u zimbra /opt/zimbra/bin/zmcontrol start ( ** ERROR **) - See below for the run results
** Done **
I need to run another manual start for it to start properly.
su - zimbra
/opt/zimbra/bin/zmcontrol start
****************

# Stop Zimbra Services
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop

(Result)
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping ldap...Done.

** Rsync Successful **

# Restart Zimbra Services
sudo -u zimbra /opt/zimbra/bin/zmcontrol start

(Result)
Starting ldap...Done.
Starting logger...Failed.
Starting logswatch.../opt/zimbra/bin/zmlogswatchctl: line 72: zmhostname: command not found
/opt/zimbra/bin/zmlogswatchctl: line 72: zmprov: command not found
zimbra logger service is not enabled! failed.

Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.

# Restart manually, right after "sudo -u zimbra /opt/zimbra/bin/zmcontrol start"
su - zimbra
/opt/zimbra/bin/zmcontrol start

(Result)
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.

*********

Both errors above says these files are not found but there in /opt/zimbra/bin
-rwxr-xr-x 1 root root 711 2010-05-06 11:28 zmhostname
-rwxr-xr-x 1 root root 625 2010-05-06 11:28 zmprov
Reply With Quote
  #2 (permalink)  
Old 05-17-2010, 06:26 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

You should start zimbra with the following command:

Code:
/etc/init.d/zimbra start
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 05-17-2010, 06:38 AM
Junior Member
 
Posts: 10
Default ** Solved **

Thanks for the quick reply.

After further reading I found another way to start zimbra services which works.

# Restart Zimbra Services
su - zimbra -c "/opt/zimbra/bin/zmcontrol start" ( * OK * )
#sudo -u zimbra /opt/zimbra/bin/zmcontrol start (* NOT OK * )

Currently with a few test users, the server downtime was about 3 mins for it to perform rsync and restart all the services. Will test it with more data in the next few days.

BTW: your way works too.

Quote:
Originally Posted by phoenix View Post
You should start zimbra with the following command:

Code:
/etc/init.d/zimbra start
Reply With Quote
  #4 (permalink)  
Old 05-17-2010, 06:50 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Yes, both of those methods work as you've found out - glad you've fixed it. If this fixed your problem could you mark the thread as solved (it's in the Thread Tools drop-down at the top of this page).
__________________
Regards


Bill
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.