Prompted for zimbra password during upgrade (failed)

Ask questions about your setup or get help installing ZCS server (ZD section below).
CarolBooth
Posts: 2
Joined: Sat Sep 13, 2014 12:12 am

Prompted for zimbra password during upgrade (failed)

Postby CarolBooth » Thu Apr 02, 2009 5:05 am

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/installation/14431-solved-upgrade-5-0-1-5-0-oss-issue-sudoers-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:


CarolBooth
Posts: 2
Joined: Sat Sep 13, 2014 12:12 am

Prompted for zimbra password during upgrade (failed)

Postby CarolBooth » Thu Apr 02, 2009 8:15 am

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

~
phoenix
Ambassador
Ambassador
Posts: 26345
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Prompted for zimbra password during upgrade (failed)

Postby phoenix » Thu Apr 02, 2009 9:32 am

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:
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

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Cryophallion
Advanced member
Advanced member
Posts: 56
Joined: Fri Sep 12, 2014 10:28 pm

Prompted for zimbra password during upgrade (failed)

Postby Cryophallion » Tue Jun 10, 2014 9:53 pm

[quote user="10330phoenix"]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:
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?[/QUOTE]
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:
Cryophallion
Advanced member
Advanced member
Posts: 56
Joined: Fri Sep 12, 2014 10:28 pm

Prompted for zimbra password during upgrade (failed)

Postby Cryophallion » Wed Jun 11, 2014 7:00 am

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.
phoenix
Ambassador
Ambassador
Posts: 26345
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Prompted for zimbra password during upgrade (failed)

Postby phoenix » Wed Jun 11, 2014 9:35 am

Does this post help?
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Cryophallion
Advanced member
Advanced member
Posts: 56
Joined: Fri Sep 12, 2014 10:28 pm

Prompted for zimbra password during upgrade (failed)

Postby Cryophallion » Wed Jun 11, 2014 9:41 am

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.
Cryophallion
Advanced member
Advanced member
Posts: 56
Joined: Fri Sep 12, 2014 10:28 pm

Prompted for zimbra password during upgrade (failed)

Postby Cryophallion » Wed Jun 11, 2014 9:59 am

[quote user="10330phoenix"]Does this post help?[/QUOTE]

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.
Cryophallion
Advanced member
Advanced member
Posts: 56
Joined: Fri Sep 12, 2014 10:28 pm

Prompted for zimbra password during upgrade (failed)

Postby Cryophallion » Wed Jun 11, 2014 12:36 pm

Ok, so what had happened is that ubuntu decided not to remove sudo... but still triggered some studd in dpkg. I had to create a root pw before I could uninstall sudo, and that resolved it.
Holding off on trying the upgrade until tonight once people are done with their workdays. Why does this always happen when I'm stuck home with the kids?

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 4 guests