Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: [SOLVED] Zimbra won't start on bootup

  1. #11
    Mccreations is offline Active Member
    Join Date
    Mar 2008
    Location
    Chicago, IL
    Posts
    49
    Rep Power
    7

    Default

    Quote Originally Posted by Bill Brock View Post
    When you manually run su zimbra, does UBUNTU ask for a password? SuSE doesn't when I do this. But now I can tell you it is probably over my head and needs a real Linux guru to help you.
    Well thanks for trying to help. You got me going in the right direction

    When I run su - zimbra under root, I don't get asked for a password. But when I run su - zimbra under net, I am asked for a password. I believe for some reason Ubuntu is starting my scripts under net, which makes no sense to me .

    I think if I add sudo in front of my startup scripts and allow net to access su through sudo with no password that may be the key. I'm going to try this and post my results.

  2. #12
    heinzg is offline Loyal Member
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    Hi there

    I have a ubuntu 7.10 test server and hope I can help...

    the normal method to start zimbra by hand on ubuntu is:
    Code:
    sudo /etc/init.d/zimbra start
    or to do it a the zimbra user....
    Code:
    (become the zimbra user)
    # sudo su - zimbra
    (start command)
    # zmcontrol start
    But I am guessing you are having a permissions problem.
    If at some stage you have run zmcontrol as "root" then the "zimbra" user will not be able to start the server anymore as lots of the files it needs to read and write belong to root i.e. you should see permission denied in the logs
    To try fix this do the following:
    Code:
    sudo /opt/zimbra/libexec/zmfixperms
    some other checks:
    run the following:
    Code:
    # runlevel
    On my system it returns "N 2" meaning runlevel 2
    Now check the start an kill links are correctly set, for this I check in "/etc/rc2.d/"
    Code:
    ls -l /etc/rc2.d/*zim*
    lrwxrwxrwx 1 root root 18 2008-03-30 15:05 /etc/rc2.d/K01zimbra -> /etc/init.d/zimbra
    lrwxrwxrwx 1 root root 18 2008-03-30 15:05 /etc/rc2.d/S99zimbra -> /etc/init.d/zimbra
    hope this helps!
    heinzg

  3. #13
    Mccreations is offline Active Member
    Join Date
    Mar 2008
    Location
    Chicago, IL
    Posts
    49
    Rep Power
    7

    Default

    Thanks for the input everyone. The problem is with permissions, but not with Zimbra itself. The permission issue lies with Ubuntu and my user setup.

    This is what I used for my startup script:
    Code:
    #!/bin/sh
    # Zimbra Servers
    case "$1" in
    'start')
        su - zimbra -c "zmcontrol start"
        ;;
    'stop')
        su - zimbra -c "zmcontrol stop"
        ;;
    *)
        echo "Usage: $0 { start | stop }"
        ;;
    esac
    exit 0
    And now when my computer starts, a user net runs /etc/init.d/Zimbra. Net doesn't have permissions to use su without a password, so it can't run the script. I either need a script in which I can run the command without permissions of get permissions for net.


    I believe I have found a solution I will test it and post soon.

    Thanks everyone.

  4. #14
    heinzg is offline Loyal Member
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    hi

    you have a user called "net" who wants to run the zimbra init script at boot?

    heinzg

  5. #15
    Mccreations is offline Active Member
    Join Date
    Mar 2008
    Location
    Chicago, IL
    Posts
    49
    Rep Power
    7

    Default

    Quote Originally Posted by heinzg View Post
    hi

    you have a user called "net" who wants to run the zimbra init script at boot?

    heinzg
    Yes. When I start my server, a user called net logins automatically.

    I thought under ubuntu rc.d scripts were run under root, but it appears not. I also am having the same problem with a program called webmin where it is starting under net and causing issues.

    I wish I could startup the scripts using root but for some reason they aren't.

  6. #16
    heinzg is offline Loyal Member
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    are you running a server or desktop version of ubuntu?
    How did the "net" user come to be? he is not a default account. And How is it that he does a auto login?

    Odd i say
    As the user net will have to be a root member to run zimbra properly as as normal user he will not have the right to open needed ports under 1024.

  7. #17
    Mccreations is offline Active Member
    Join Date
    Mar 2008
    Location
    Chicago, IL
    Posts
    49
    Rep Power
    7

    Default

    Quote Originally Posted by heinzg View Post
    are you running a server or desktop version of ubuntu?
    How did the "net" user come to be? he is not a default account. And How is it that he does a auto login?

    Odd i say
    As the user net will have to be a root member to run zimbra properly as as normal user he will not have the right to open needed ports under 1024.
    It's Zimbra server with the Ubuntu desktop installed. The reason the net user is there is a long story, let's just say it runs the rest of the servers I have on that box.

    I always start Zimbra under the user zimbra, or using sudo /etc/init.d/zimbra start. I never start any services under net I start them under root.

    But that's where the problem is. For some reason my startup scripts aren't starting up under root. If I disable the Ubuntu auto-login will the scripts startup as root?

  8. #18
    heinzg is offline Loyal Member
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    sorry i had to make myself a toast...

    can you please run the following and post the output:
    Code:
    #runlevel
    and then
    Code:
    ls -la /etc/rc(number printed by runlevel).d/*zim*
    cheers

  9. #19
    heinzg is offline Loyal Member
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    did zimbra ever boot with the system after installing it??

    I would say try using "sudo update-rc.d" to delete and recreate your start & kill links for the appropriate runlevels.

    If the output of "ls -l /etc/rc2.d/*zim*" looks like this:
    lrwxrwxrwx 1 root root 18 2008-03-30 15:05 /etc/rc2.d/K01zimbra -> /etc/init.d/zimbra
    lrwxrwxrwx 1 root root 18 2008-03-30 15:05 /etc/rc2.d/S99zimbra -> /etc/init.d/zimbra

    then it should start at boot time. As the "init" daemon will start it for you

    cheers
    heinzg
    Last edited by heinzg; 03-31-2008 at 11:29 AM. Reason: update

  10. #20
    Mccreations is offline Active Member
    Join Date
    Mar 2008
    Location
    Chicago, IL
    Posts
    49
    Rep Power
    7

    Default

    Sorry for the long reply. My computer is crashing and giving me BSODs...

    Anyways back to the problem.

    I ran the update-rc.d command and got this result:
    Code:
    root@mccreations:~# update-rc.d
    usage: update-rc.d [-n] [-f] <basename> remove
           update-rc.d [-n] <basename> defaults|multiuser [NN | sNN kNN]
           update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
                    -n: not really
                    -f: force
    Sorry I'm not a linux pro yet, this rc.d stuff is new territory for me.

    And then the other command,
    Code:
    root@mccreations:~# ls -l /etc/rc2.d/*zim*
    ls: /etc/rc2.d/*zim*: No such file or directory
    But I clearly see:
    root@mccreations:~# ls -l /etc/rc2.d/
    ...
    lrwxrwxrwx 1 root root 16 2008-03-31 13:46 S99Zimbra -> ../init.d/Zimbra
    I think this may be where the problem is, I may have the wrong startup file. Where can I get the right one?

    And no it has never started on bootup. I'm just really noticing now because my server restarts more now so it becomes a pain.
    Last edited by Mccreations; 03-31-2008 at 12:08 PM.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 03-01-2008, 08:21 PM
  2. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  3. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM
  5. Seeming variety of problems on suse-9.1
    By Crexis in forum Installation
    Replies: 52
    Last Post: 03-04-2006, 12:19 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
  •