Results 1 to 9 of 9

Thread: Prompted for zimbra password during upgrade (failed)

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    6

    Default Prompted for zimbra password during upgrade (failed)

    We're running Ubuntu Linux 8.04.1 and Zimbra 5.10 has been running fine. When we attempted to upgrade to 5.15, no problems until the prompt to change the system when we were prompted for zimbra password. The upgrade failed at this point (we had to terminate the process) and now zimbra will not restart - it looks like this:

    sudo su zimbra
    zmcontrol restart
    starting ldap...[sudo] password for zimbra:

    We are now without email. Any advice gratefully received!

    Carol

    I just tried editing sudoers file like this post: http://www.zimbra.com/forums/install...oers-file.html
    The file had only one non-comment line, which mentioned root. I added a line:
    %zimbra ALL=NOPASSWD:/opt/zimbra/openldap-2.3.39.6z/libexec/slapd

    trying to restart zimbra produced the same result:

    Starting ldap...[sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    Done.
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
    Starting ldap...[sudo] password for zimbra:
    Last edited by CarolBooth; 04-02-2009 at 03:35 AM. Reason: more information

  2. #2
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    6

    Default back up but not sure what went wrong

    We restored a backup of /opt/zimbra and zimbra then restarted but I don't understand why the upgrade failed. When I look now at /etc/sudoers, it looks as I believe it should (below)

    Can anyone explain what happened? I'm scared to try the upgrade again!

    thanks
    Carol

    /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the man page for details on how to write a sudoers file.
    #

    Defaults env_reset

    # Uncomment to allow members of group sudo to not need a password
    # %sudo ALL=NOPASSWD: ALL

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # User privilege specification
    root ALL=(ALL) ALL



    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    %zimbra ALL=NOPASSWD:/opt/zimbra/openldap/libexec/slapd
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmslapd
    %zimbra ALL=NOPASSWD:/opt/zimbra/postfix/sbin/postfix, /opt/zimbra/postfix/sbin/postalias, /opt/zimbra/postfix/sbin/qshape.pl, /opt/zimbra/postfix/sbin/postconf,/opt/zimbra/postfix/sbin/postsuper
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmqstat,/opt/zimbra/libexec/zmmtastatus
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmmailboxdmgr
    %zimbra ALL=NOPASSWD:/opt/zimbra/bin/zmcertmgr
    %zimbra ALL=NOPASSWD:/opt/zimbra/nginx/sbin/nginx
    ~

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You shouldn't need to modify the sudoers file and when you want to start Zimbra you should login as root and do the following:

    Code:
    su - zimbra 
    zmcontrol stop ; zmcontrol start
    It's important to make sure you use 'su -' with a hyphen otherwise the environment doesn't get created correctly. I assume you attempted to run the upgrade as the root user? What erros did you get in the install log?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    Mar 2007
    Location
    New England
    Posts
    55
    Rep Power
    8

    Default

    Quote Originally Posted by phoenix View Post
    You shouldn't need to modify the sudoers file and when you want to start Zimbra you should login as root and do the following:

    Code:
    su - zimbra 
    zmcontrol stop ; zmcontrol start
    It's important to make sure you use 'su -' with a hyphen otherwise the environment doesn't get created correctly. I assume you attempted to run the upgrade as the root user? What erros did you get in the install log?
    I've just had this same issue with an upgrade from 8.0.6 to 8.0.7, on ubuntu 10.04.

    I'm loathe to go through the backup procedure if I don't have to.

    I tried the uninstalling sudo thing, amongst other things, but no love. It just keeps asking for the sudo password:

    root@mail:/opt/zimbra# su - zimbra
    To run a command as administrator (user "root"), use "sudo ".
    See "man sudo_root" for details.

    zimbra@mail:~$ zmcontrol stop ; zmcontrol start
    Host mail.majortheatre.com
    Stopping vmware-ha...Done.
    Stopping zmconfigd...Done.
    Stopping stats...Done.
    Stopping mta...[sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    Done.
    Stopping spell...Done.
    Stopping snmp...Done.
    Stopping cbpolicyd...Done.
    Stopping archiving...Done.
    Stopping opendkim...Done.
    Stopping antivirus...Done.
    Stopping antispam...Done.
    Stopping proxy...Done.
    Stopping memcached...Done.
    Stopping mailbox...[sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:
    Done.
    Stopping logger...Done.
    Stopping ldap...Done.

    Host mail.majortheatre.com
    Starting ldap...[sudo] password for zimbra:
    [sudo] password for zimbra:
    [sudo] password for zimbra:

  5. #5
    Join Date
    Mar 2007
    Location
    New England
    Posts
    55
    Rep Power
    8

    Default

    I've looked for install logs, but for some reason can't find any (either under var/log or opt/zimbra).

    So, I tried the sudo thing from earlier... and now zimbra can't seem to find sudo, even though it is absolutely installed:

    FOUND: NPTL
    FOUND: netcat-openbsd-1.89-3ubuntu2
    MISSING: sudo
    FOUND: libidn11-1.15-2
    FOUND: libpcre3-7.8-3build1
    FOUND: libgmp3c2-2:4.3.2+dfsg-1ubuntu1
    FOUND: libexpat1-2.0.1-7ubuntu1.1
    FOUND: libstdc++6-4.4.3-4ubuntu5.1
    FOUND: libperl5.10-5.10.1-8ubuntu2.4
    FOUND: libaio1-0.3.107-3ubuntu2

    Checking for suggested prerequisites...
    FOUND: pax
    FOUND: perl-5.10.1
    FOUND: sysstat
    FOUND: sqlite3

    root@mail:~# apt-get install sudo
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    sudo is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    Seeing as my email server is now down, and people are fuming (all just to fix the dumb printing email bug fix), I'd love some input.

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Does this post help?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    Mar 2007
    Location
    New England
    Posts
    55
    Rep Power
    8

    Default

    Quote Originally Posted by phoenix View Post
    Does this post help?
    That's what I did last night. And that also wipes out the sudoers file, at least it did for me. Luckily earlier in this thread the sudoers fixes were listed in.

    It was when I did the purge and reinstall that zimbra stopped seeing sudo. Before that, it was asking for sudo password on the start of ldap.

    I'll try again though.

  8. #8
    Join Date
    Mar 2007
    Location
    New England
    Posts
    55
    Rep Power
    8

    Default

    Ok, so I've checked this thread for my sudo issues: sudo....missing error when installing However, my sudo is installed in the right place, and via apt.

    I'm also dealing with the large mdb file size using the FOSS snapshots LVM script, which I really really wish someone would update the wiki with a better working script that deals with this issue: ldap database went from 97meg to 86gig - Page 9
    (I fixed with mdb_copy, thanks to quanah)

    I also can't turn on my old deployment due to this issue: Upgrading from 8.0.2 -> 8.0.3 fails: mailbox no longer starting

    So, basically, my company is dead in the water while I pray for a response. I can't re-install from my backup because it can't see sudo, and it can't open the old version because the install broke. Please, someone, help.

Similar Threads

  1. Help!!! Moving ZCS does not work!
    By ASebestian in forum Migration
    Replies: 7
    Last Post: 02-12-2009, 05:06 PM
  2. Problem with Mail Server - Need help!
    By joeleo in forum Installation
    Replies: 2
    Last Post: 03-04-2008, 11:03 AM
  3. My Zimbra server down ... please help :)
    By frankb in forum Administrators
    Replies: 2
    Last Post: 12-12-2007, 10:29 AM
  4. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 09:23 PM
  5. Lotus migration
    By babou in forum Migration
    Replies: 15
    Last Post: 03-05-2007, 09:33 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
  •