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

Thread: Zimbra don't start at boot

  1. #1
    Join Date
    Jun 2014
    Location
    Venezia - Italy
    Posts
    32
    Rep Power
    1

    Default Zimbra don't start at boot

    I'm just installed Zimbra on Ubuntu 12.04 OpenVZ CT. It works very well but everytime I reboot the machine i need to run "zmcontrol start" manually because services are all down (I can see it with "zmcontrol status").

    How can I fix?
    Last edited by Kamzata; 06-20-2014 at 11:21 AM.

  2. #2
    Join Date
    May 2014
    Location
    Madrid
    Posts
    202
    Rep Power
    1

    Default

    Hi Kamzata,
    Maybe is because haven't enough resources, try giving more and tell us if works.

    Kind regards

  3. #3
    Join Date
    Jun 2014
    Location
    Venezia - Italy
    Posts
    32
    Rep Power
    1

    Default

    Quote Originally Posted by jorgedelacruz.es View Post
    Hi Kamzata,
    Maybe is because haven't enough resources, try giving more and tell us if works.

    Kind regards
    Resources assigned are:

    CPUs: 4 of 8
    Memory: 6.00GB of 16GB
    Swap: 1.00GB
    Disk Size: 50.00GB

    Server has 16 email address/8 domains configurated at the moment. Is not enough?

    Thank you

  4. #4
    Join Date
    May 2014
    Location
    Madrid
    Posts
    202
    Rep Power
    1

    Default

    Looks enough.
    Try to find into /var/log/zimbra if tell you something.

    Paste us also the result of the command:
    zmcontrol -v
    Kind regards

  5. #5
    Join Date
    Jun 2014
    Location
    Venezia - Italy
    Posts
    32
    Rep Power
    1

    Default

    Quote Originally Posted by jorgedelacruz.es View Post
    Looks enough.
    Try to find into /var/log/zimbra if tell you something.

    Paste us also the result of the command:


    Kind regards
    Here the output:

    Code:
    zimbra@srvmail:~$ zmcontrol -v
    Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition.

  6. #6
    Join Date
    Jun 2014
    Location
    Venezia - Italy
    Posts
    32
    Rep Power
    1

    Default

    Quote Originally Posted by jorgedelacruz.es View Post
    Looks enough.
    Try to find into /var/log/zimbra if tell you something.

    Paste us also the result of the command:


    Kind regards
    In /var/log/zimbra I can see 3 files: zimbra-stats.log, zimbra.log, zimbra.log.1.gz

    I saw nothing of strange.

  7. #7
    Join Date
    Jun 2014
    Location
    Venezia - Italy
    Posts
    32
    Rep Power
    1

    Default

    So, I tried to add a crontab job @restart but it still doesn't work. Any idea?

  8. #8
    Join Date
    Apr 2012
    Posts
    101
    Rep Power
    3

    Default

    does /etc/init.d/zimbra exist? Is it executable?
    do you have links to it from /etc/rc2.d ?
    what runlevel does the machine come up in by default? Is zimbra set to start in that runlevel?
    Is your cron job set to run as zimbra or root?

  9. #9
    Join Date
    Jun 2014
    Location
    Venezia - Italy
    Posts
    32
    Rep Power
    1

    Default

    does /etc/init.d/zimbra exist? Is it executable?
    Yes, both

    do you have links to it from /etc/rc2.d ?
    what runlevel does the machine come up in by default? Is zimbra set to start in that runlevel?
    No, I haven't. There's no link to /etc/init.d/zimbra in /etc/rcx.d/ folders and nothing in rc.local.

    Is your cron job set to run as zimbra or root?
    I tried to run command both on crontab root and crontab zimbra user.

  10. #10
    Join Date
    Apr 2012
    Posts
    101
    Rep Power
    3

    Default

    Run this as root and it should solve the problem.

    update-rc.d zimbra defaults

    I get this :
    root@ztest:~# update-rc.d zimbra defaults
    update-rc.d: warning: zimbra start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 5)
    System start/stop links for /etc/init.d/zimbra already exist.

    You should get this :
    root@ztest:~# update-rc.d zimbra defaults
    update-rc.d: warning: zimbra start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 5)
    Adding system startup for /etc/init.d/zimbra ...
    /etc/rc0.d/K20zimbra -> ../init.d/zimbra
    /etc/rc1.d/K20zimbra -> ../init.d/zimbra
    /etc/rc6.d/K20zimbra -> ../init.d/zimbra
    /etc/rc2.d/S20zimbra -> ../init.d/zimbra
    /etc/rc3.d/S20zimbra -> ../init.d/zimbra
    /etc/rc4.d/S20zimbra -> ../init.d/zimbra
    /etc/rc5.d/S20zimbra -> ../init.d/zimbra

    For whatever reason, /etc/init.d/zimbra tries to install itself in only runlevel 3 & 5 on my system but the system default is runlevel 2.
    Anyway, this should happen during zimbra install and for some reason on your system it didn't.

    I had a problem once a while ago where randomly zimbra services would die. I put this in the zimbra users crontab
    7 * * * * [ -n "`/opt/zimbra/bin/zmcontrol status | grep -i stopped`" ] && /opt/zimbra/bin/zmcontrol restart

    So every hour at 7 minutes past it would query the services and if any were stopped it would restart zimbra.

    The problem turned out to be a VM related issue and nothing to do with zimbra itself, but this got me out of the poo. It's useful as a reference anyway.

Similar Threads

  1. Replies: 3
    Last Post: 12-09-2013, 11:53 AM
  2. Replies: 1
    Last Post: 10-26-2013, 04:40 PM
  3. Replies: 3
    Last Post: 05-29-2007, 10:53 PM
  4. Start services on boot
    By Dirk in forum Administrators
    Replies: 20
    Last Post: 10-26-2006, 10:44 AM
  5. start on boot problem
    By vaneck in forum Administrators
    Replies: 6
    Last Post: 05-03-2006, 02:40 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
  •