TurnKey Linux Virtual Appliance Library

How to upgrade Zimbra appliance to latest zimbra 6.0 release

alex_1's picture

Hi Folks,

Am enjoying this zimbra thingy but was wondering if there is anything special I should think about to upgrade it to the latest 6.0 zimbra release?

Can I just follow the instructions on zimbra.com?

Thanks

Alex

Guest's picture

Upgrade Zimbra

Great job!

I installed in few minutes your Zimbra and it's running OK.

But (always a but...) I've found some bugs on Zimbra 5 that I hope solved with Zimbra 6. So I have the same question than Alex.

 

Thanks again.

 

Miguel

Liraz Siri's picture

Haven't tried this myself

I haven't tried this myself but you should give it a shot!

If you mess things up you can always go back to a clean, known-good installation. That's part of whats great about appliances. BTW, the next release of TurnKey Zimbra will be based on Zimbra 6.

If it works, drop us a line on the forums. Others may be interested in your experience!

Neil Bird's picture

stuck part way through an upgrade to ZC6

Hi all, I decided, as a noob to linux to try my hand at upgrading.  What better way than to pick a project.

This is my method so far (credits to a couple of sources from Zimbra forums and this forum)

What I have done so far:

 Install turnkey zimbra

/usr/local/bin/zimbra-conf DOMAIN ADMIN_PASS
apt-get upgrade
apt-get update
chown root:root /tmp
chmod 777 /tmp
chmod +t /tmp
cd /temp
tar -xzf zc*
cd zcs-6.0.4_GA_2038.UBUNTU8.20091214184037
./install.sh
      ERROR: Installation can not proceeed. Please fix your /etc/hosts file to contain: <ip> <FQHN> <HN>
 
mod /etc/hosts
 127.0.0.1  localhost mydomain.here

 10.3.2.244  mail.mydomain.here mail

again ...

cd zcs-6.0.4_GA_2038.UBUNTU8.20091214184037

./install.sh

  ERROR: Installation can not proceeed.  Please fix your /etc/hosts file  to contain:  <ip> <FQHN> <HN>  Where <IP> is the ip address of the host,   <FQHN> is the FULLY QUALIFIED host name, and  <HN> is the (optional) hostname-only portion

 ... should I have tried it with just the default example domain... I am not completely sure what the upgrade is expecting by way of formatting/ability to resolve the name.

During the process of upgrading I do get the indications that an upgrade will happen... Seems close but I am curious what I need to fix.  I do have active mx records to resolve mail.mydomain.here

Hope this is detailed enough for guidance... maybe it is just too late at night :)

Neil Bird's picture

now installing...

Well, after serching the zimbra forums, this is apparently quite common, and I find oddly not considered a bug.

Although I was testing this, I did try my live ip and hostname.... and removing, not commenting out the ip6 lines.

This and only this in hosts file allowed the upgrade to proceed.

 

127.0.0.1  localhost.localdomain localhost
xx.xx.xx.xx mail.mydomain.ca  mail
 
no extra spaces, lines etc.
Will replace all removed lines later... and will possibly re-run the custom script to change domain... just to be thorough I suppose.
Neil Bird's picture

Well.. nearly there...

I ran the upgrade twice after the initial prep.

They both failed with this.

....

Upgrading from  to 6.0.4_GA_2038

Stopping zimbra services...done.

Verifying /opt/zimbra/conf/my.cnf

Starting mysql...done.

I can't upgrade version


UPGRADE FAILED - exiting.

 

So I have decided to not upgrade... as I had nothing to lose on this test box.  As you said, nice to go back to a known working appliance :)

 

I will test this "upgrade" as it looks to have installed ok.  However, I am curious if anyone smarter than I is interested in trying this upgrade.  I might just go to the core server and install, however, I like the benefits of the appliance, but think that a viable upgrade is worth trying to sort out.

 

Cheers! ... will post back later if I stuck with this or moved to the core.  The core makes sense as In the process of doing a full install any mail and users were deleted.

Guest's picture

Upgrading

I'm a Linux noob myself, but I do believe the reason you can't upgrade is that the installer is unable to determine the current version of Zimbra. The same errors mentioned previously occur if you try to upgrade to 5.0.22 as well as 6.0.x. The error should list the current version and if you look closely at the installation is says something like "Upgrading version to 5.0.22". I'm pretty sure I read somewhere that this install was done from a Debian upstream server... does this help?

Guest's picture

/etc/hosts error with zimbra

I ran into the same issue as Neil when intially attmepting an install. I ended up resolving the hosts error by adding zimbra to optional host parameter after FQDN and putting localhost in the expected format. Also, make sure that the IP address you put in matches the one reported by eth0 in ipconfig and that your MX records in DNS are correct (suggested by Zimbra wiki, but not 100% sure if required). sysstat(?) package may also need to be installed prior to this installation (you can 'apt-get install sysstat').

My hosts file looked something like this when I was done:

127.0.0.1 localhost.localdomain localhost
XXX.XXX.XXX.XXX mail.yourdomain.com zimbra
127.0.1.1 zimbra
# ..ip6 stuff below

I'm stuck in the same spot now with the error: "I can't upgrade version UPGRADE FAILED - exiting." Will post back if I make any progress.

Guest's picture

Possible Solution?

I found the following thread that may be helpful. Will try in the morning and update on success:

https://www.zimbra.com/forums/administrators/36481-solved-another-logger...

Guest's picture

Success

I found *some* success following this thread: www.zimbra.com/forums/administrators/34112-upgrade-5-0-19-6-0-2-error.html 

The update completed, but the webserver is now timing out when I access it from the url.

 

I made the following changes:

in /etc/default/sysstat I changed: 

ENABLED="false" to 
ENABLED="true"

Then during the update, immedietly after zimbra-core package has installed I modified:

/opt/zimbra/libexec/scripts/migrate20090406-DataSourceItemTable.pl and changed
ENGINE = InnoDB to
ENGINE = MyISAM

I'm going to try a clean install with this fix to see if that resolves the web access issue (I made significant other changes that may have broken the web access along the way). I will keep you posted on my progress.


 

Guest's picture

Modify install.sh?

BountyX, did you have to modify install.sh so that you could change migrate20090406-DataSourceItemTable.pl? Or did you just let it fail once, make changes then re-run the install?

Guest's picture

Got It!!!

I should have gone with my first instinct. The problem is that zmsetup.pl is not recognizing this version of Zimbra. While you still may have to do some/all the fixes mentioned previously, here is the workaround I found:

./install.sh -s

Don't forget the "-s" switch because that tells the installer to just do the upgrade and not run zmsetup.pl

You need to edit /opt/zimbra/libexec/zmsetup.pl to force it to see the Zimbra version on this appliance as 5.0.18 (please make sure this really is your version in case a new appliance is uploaded or you could mess up your install). One way to do this which seems fool-proof is to find the following line:

if (($prevVersion ne $curVersion )) {

Add the following line right BEFORE the above:

$prevVersion = "5.0.18_GA_3011";

Save zmsetup.pl then run it. Voila! Life is good. I just successfully tested this with the appliance download as-is after setting it up for my domain and upgraded to 5.0.22. Will check if this works for a 6.0 upgrade also...

Oh yeah. After the upgrade, don't forget to remove that line from zmsetup.pl. Future upgrades could be a real problem if you don't I'm sure.

Guest's picture

Got It!!!

I should have gone with my first instinct. The problem is that zmsetup.pl is not recognizing this version of Zimbra. While you still may have to do some/all the fixes mentioned previously, here is the workaround I found:

./install.sh -s

Don't forget the "-s" switch because that tells the installer to just do the upgrade and not run zmsetup.pl

You need to edit /opt/zimbra/libexec/zmsetup.pl to force it to see the Zimbra version on this appliance as 5.0.18 (please make sure this really is your version in case a new appliance is uploaded or you could mess up your install). One way to do this which seems fool-proof is to find the following line:

if (($prevVersion ne $curVersion )) {

Add the following line right BEFORE the above:

$prevVersion = "5.0.18_GA_3011";

Save zmsetup.pl then run it. Voila! Life is good. I just successfully tested this with the appliance download as-is after setting it up for my domain and upgraded to 5.0.22. Will check if this works for a 6.0 upgrade also...

Oh yeah. After the upgrade, don't forget to remove that line from zmsetup.pl. Future upgrades could be a real problem if you don't I'm sure.

Guest's picture

Fixed

Well, I just posted the fix but maybe my comment was too long? Tried posting several times and it still isn't showing here.

Guest's picture

Ah! You beat me to it ;)

Ah! You beat me to it ;) Going to give it a try now. 

Guest's picture

Confirmed Working

Thanks, looks like I was able to successfully upgrade from 5.0.18 to 6.0.5 using your fix.For others, here are the exact steps I took:

Update virtual machine and dependancies:
apt-get update
apt-get install wget sysstat
apt-get upgrade

Enable sysstat (required by 6.0.5)
nano /etc/default/sysstat
Changed: ENABLED="false" to ENABLED="true"
/etc/init.d/sysstat restart

Execute zimbra-conf:
Apply patch from url www.turnkeylinux.org/forum/support/20091104/zimbra-conf-fails-error-accountauthfailed#comment-1034
/usr/local/bin/zimbra-conf example.com PASS
 

Edit hosts file:
nano /etc/hosts
*See my comment above on how hosts entries should look like*

Download and Extract 6.0.5:
wget http://files2.zimbra.com/downloads/6.0.5_GA/zcs-6.0.5_GA_2213.UBUNTU8.20...
tar -xzf zcs-6.0.5_GA_2213.UBUNTU8.20100202225756.tgz
cd zcs-6.0.5_GA_2213.UBUNTU8.20100202225756

Apply DeJuan's fix:
./install.sh -s (said yes to all options during script execution)
nano /opt/zimbra/libexec/zmsetup.pl
Found: if (($prevVersion ne $curVersion )) {
Above found line I placed: $prevVersion = "5.0.18_GA_3011";
/opt/zimbra/libexec/zmsetup.pl

Setup will ask you to take care of items marked with ** . You will need to set the option to automatically check for updates (or not to check updates) to complete the setup.

All done!

Guest's picture

Please need your help

hi, i am currently using the older version 5.0.18 fo zimbra CS turnkey...can you please tell me how to change the default example.com host and change it my own host called yyling.com

 

i am unsure why is the DNS supposed to be edited (as mentioend in zimbra wiki) as my DNS is bring provided by afraid.org can u please help me fix the server.

 

thanks alot!

Guest's picture

Another Confirmed Working Case Here

I followed BountyX post on Sat, 2010/03/06 to the T an I can say it worked for me. Great post by the way! The only thing differnet that I did was upgrade to the latest zimbra version which is the 6.0.6.1 GA Release (I have to use 32 bit unfortunately) an I also used pico instead of nano..but no bigge there just a personal preference. Feel free to reply to this post an I will be emailed to my person email in the background so I can respong to any questions you may have.

Guest's picture

change of host from example.com to yyling.com

i am currently using the older version 5.0.18 fo zimbra CS turnkey...can you please tell me how to change the default example.com host and change it my own host called yyling.com

 

i am unsure why is the DNS supposed to be edited (as mentioend in zimbra wiki) as my DNS is bring provided by afraid.org can u please help me fix the server.

 PLease HELP

thanks alot!

Jeremy Davis's picture

Probably start your own thread

Seeing as your issue really has nothing to do with this thread (other than the fact it's TKL Zimbra related) you'd be better off starting your own thread detailing your setup environment, what you have read, what you have tried, what errors you are getting, etc.

But seeing as we're here now: Before you go any further I urge you to have a good read of the TKL Zimbra appliance page (where you would've downloaded from). It details how to run the config script which will help you set your domain, etc. Personally I would start again from scratch (with a clean install) so you know that everything is as it should be and something you've already tried before doesn't cause problems. You can still use afraid.org as your external DNS, but AFAIK you will need an local one (on the server or within your LAN) for Zimbra as well (although I'm not sure as I have no experience with TKL Zimbra). There is a really detailed post here, with lots of info, which should help too.

If you have a go at all that but still can't get it to work, start a new support topic with all the details (as I suggest in my first paragraph) and we'll go form there. Good luck.

Guest's picture

Thank you Master Jedi! i

Thank you Master Jedi! i shall read up on the suggested article

Guest's picture

unable to figure out how to add a server to the zimbra cs

hi, actually i have been following this for about 3 days now but i have still have no idea how to add a customer server something like mail.yyling.com to the ZIMBRA CS,

 

i used the command zmprov createserver mail.yyling.com, it creates the server but i am still unable to send / recv emails...

can someone please post a step by step guide thanks

Jonathan Carroll's picture

Working Cold Steel

Another confirmed upgrade here, I was doing a "cold steel" install and I am writing a tutorial/description of what I had to do to get it working on a home-network.  

I still have a DNS issue that may never be resolved because of a Dynamic Domain, and the conflict with Postfix/Hosts file.  Seems that it wants a static IP for receiving emails.  The problem is documented on the zimbra forums, but with no fix from dynamic home users stand-point.  

I have created a low tech workaround that will be described in the tutorial.  It utilizes a php mailbox on the Windows machine that has the Dynamic DNS update client.  So mail is retrieved by Zimbra via an external POP account that has the same account name and password as the primary account.  

It has the unfortunate issue of being work intensive for creating new accounts, but since this server is only for my friends and family it is sufficient for home use/serving.  You can view a Web Log of the process at: http://joeordie.com/index.php?option=com_content&view=article&id=58:zimbra-open-source&catid=34:webserverdata&Itemid=76 which is also on another homeserver. 

Also I never had to use the sysstat edit/workaround.  (ENABLED="false" to ENABLED="true")

Good work working out a complete solution!

Jonathan Carroll's picture

upgrade to 7.0

Completed an upgrade from 6.0.5 tonight.  Cold Steel Installation!!!!!!! My BIND conf is still jacked up cause of dynamic dns, but with the workaround everything is functioning as good as it ever was.  ***see post above*** 

Steps

download the Ubuntu 8.x 32bit ***last 32 bit OS supported :(  ***  http://www.zimbra.com/downloads/os-downloads.html

Also down load the release notes it has important info on the Documents and webex integration aswell as instructions for installation. 

"apt-get install sqlite3" <--- new package needed for Zimbra 7

then push installer package to server <---- I used the file manager in the webadmin cause it will unpack and run while you cook dinner Shell in a box may time out. 

"cd /opt/upzim/zcs-7.0.0_GA_3077.UBUNTU8.20110127201433"

 ***/upzim is the dir i create to push upgrades you don't have it on you system***

"./install.sh"

follow prompts till end.  If you are missing a package make sure you exit and get it!  

I completed this upgrade in about an hour.  It took a very long time to shut down services and start the upload, but man is it a pretty upgrade. 
 

Have fun!!!!!

Guest's picture

Turnkey Linux 11 Zimbra

Turnkey Linux 11 Zimbra appliance will be based on version 7?

Jonathan Carroll's picture

If they do it will only be

If they do it will only be for a 64bit OS this edition of turnkeylinux with Zimbra OCS is the last 32 bit option.  :*(  

***I remember somewhere that they posted they were going to ubuntu 10.x for TK11***

check out the options on Zimbra's website :http://www.zimbra.com/downloads/os-downloads.html

I don't really harbor any feelings against Turnkey or Zimbra for forcing Zimbra to strictly 64bit.  For Pro servers its the defacto standard already, however those of us that are DIY homeservers will have to: 

    A.  build 64 bit servers 

    B. Stop using older POS they find here and there. 

Maybe Zimbra 8 will suck and I wont want to upgrade.... LOL!

Jeremy Davis's picture

Yep TKL v11.x is based on Ubuntu 10.04 (32 bit only ATM)

So I'm sure the TKL devs are having an interesting dilema about that one. The only officially supported version(s) of Zimbra that support 32 bit are for 8.04 only but TKL is 10.04 32 bit based.

The options as I see them are:

  • Updated 8.04 based version (but it can't really be called v11.x then though as it will be out of line compared to other appliances).
  • Hold off on Zimbra release until 64 bit TKL is released, not sure how far away that is and I doubt Liraz and Alon would be keen to push Zimbra back even further.
  • Hack it together somehow. I'm sure this would be possible but I imagine it would be quite labour intensive and will result in an appliance without official support from Zimbra. Official support is not necessary for many but would be ideal and lack of it may also rule out a TKL v11.x 32 bit Zimbra appliance for some.
Guest's picture

  ubuntu 10.04 with

 

  • ubuntu 10.04 with Zimbra debian5-version
  • wait TKL debian-based with Zimbra debian5-version
Jeremy Davis's picture

Is that from experience?

Because Debian 5 (Lenny - released early '09 after a long freeze) is closer to Ubuntu 8.04 than 10.04 I would imagine that you would have just as many issues installing that as you would the 8.04 package - but feel free to prove me wrong :).

TKL will not be releasing a Debian 5 based appliance range. Now that Debian 6 (Squeeze) is released as 'stable' (with Debian 5 now becoming 'old stable') Liraz has stated that TKL will jump straight to Squeeze, so that won't be an option.

Jonathan Carroll's picture

Options for 32bit Zimbra

The problem is that there is not going to be any new releases with Zimbra on the 32bit OS any more.... their may be patches or even updates.  I suggest that you do two things:

1. Build a final 32 bit appliance on Ubuntu 8.04 and keep a link to it on the TKL download page.  If Zimbra pay's attention and they see the download counter maybe they figure out there is an actually calling for 32 bit OS support and restart their support for Zimbra 32bit. ( I am not holding my breath)

2. All further releases (TKL 11) becomes 64 bit.  I will be building a 64 bit server in the future just for this!  

You guys at TKL shouldn't have to piece it together and honestly since there wont be support for it with Zimbra alot of functionality may be lost.  The idea behind TKL is simple and effective!  You shouldn't have to rebuild Zimbra into 32 bit functionality. 

Its frustrating for the DIY ers and Homeservers. There are things that Zimbra does that nothing else can hang with.  I use it as my personal cloud.  I link up with NetDrive and WebDAV for a unlimited cloud drive. use it to carry my messages where ever I go, manage documents and photos, etc. I wouldnt even know about it if TKL hadn't made an awesome appliance with it. 

Just my 2 cents worth.

Guest's picture

bug with upgrade!

found a problem with this upgrade method when going to zimbra 7,  seems the conference server is lost.  I no longer have conference server for xmpp avaliable and I'm not sure how to add it back.

 

anyone familure with the command line know how to add a conference server?

Jeremy Davis's picture

Probably best to ask on the Zimbra forums

Technically Zimbra 7 is not supported on Ubuntu 32 bit though, so you may be out of luck.

Guest's picture

yes,  I got it working

yes,  I got it working though,  my solution was to write a quick script to backup all user mailboxes and accounts, then reinstall zimbra fresh,  no upgrade.  doing this requires answering no to upgrade,  and no to exiting installer.  it'll then proceed with a clean install after removing all existing data.  couldn't find any other way to fix it.  the zimbra community was a whole lot of not helpful refusing to help cause 'it's being removed next version'

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)