Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 11-18-2005, 09:43 AM
KevinH KevinH is offline
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,781
KevinH is on a distinguished road
Default M1 -> M2 Upgrade Scripts

Thanks to Marcmac we now have upgrade scripts(released under the terms of the MPL), which are attached to this message.

Here are the steps to upgrade if the new M2 build has not been installed:

1. As the zimbra user:
2. untar the upgrade.tgz file (tar xzvf upgrade.tgz)
3. find the upgrade script (cd Upgrade)
4. execute the upgrade script (upgradeM1M2.pl)
5. Install the new build. Answer "Y" to do you wish to upgrade.
6. Done!

If the new M2 build has already been installed:

1. As the zimbra user:
2. stop the zimbra software (zmcontrol shutdown)
3. make sure it stopped (ps -ef | grep zimbra)
4. untar the upgrade.tgz file (tar xzvf upgrade.tgz)
5. find the upgrade script (cd Upgrade)
6. execute the upgrade script (upgradeM1M2.pl)
7. start the zimbra software (zmcontrol start)
8. Done!

Notes:

The following error may be displayed during the install.sh process: "M2: integer expression expected". This error can be ignored. The install will complete normally.
Attached Files
File Type: tgz upgrade.tgz (4.1 KB, 617 views)

Last edited by KevinH : 11-18-2005 at 11:13 AM.
Reply With Quote
  #2 (permalink)  
Old 11-18-2005, 10:59 AM
DanCody DanCody is offline
Member
 
Join Date: Oct 2005
Location: Milwaukee, WI
Posts: 26
DanCody is on a distinguished road
Default

Our upgrade seemed to go ok, everything appeared to be imported, but upon stopping and trying to start zcs on the primary server, we're getting:

zmcontrol -v
Release 3.0.0_M2_744.RHEL4_20051116095201 installed Fri Nov 18 12:45:05 2005

[zimbra@mail1 ~]$ zmcontrol startup
Host xxxxx.test.uwm.edu
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException xxxxx.test.uwm.edu:389)

Our slave servers that auth off the primary server are also throwing errors. I don't see any way to just fire up the LDAP server to try to troubleshoot this more.. Any ideas?

Dan


Quote:
Originally Posted by KevinH
Thanks to Marcmac we now have upgrade scripts, which are attached to this message.

Here are the steps to upgrade if the new M2 build has not been installed:

1. As the zimbra user:
2. untar the upgrade.tgz file (tar xzvf upgrade.tgz)
3. find the upgrade script (cd Upgrade)
4. execute the upgrade script (upgradeM1M2.pl)
5. Install the new build. Answer "Y" to do you wish to upgrade.
6. Done!

If the new M2 build has already been installed:

1. As the zimbra user:
2. stop the zimbra software (zmcontrol shutdown)
3. make sure it stopped (ps -ef | grep zimbra)
4. untar the upgrade.tgz file (tar xzvf upgrade.tgz)
5. find the upgrade script (cd Upgrade)
6. execute the upgrade script (upgradeM1M2.pl)
7. start the zimbra software (zmcontrol start)
8. Done!

Notes:

The following error may be displayed during the install.sh process: "M2: integer expression expected". This error can be ignored. The install will complete normally.
Reply With Quote
  #3 (permalink)  
Old 11-18-2005, 11:08 AM
KevinH KevinH is offline
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,781
KevinH is on a distinguished road
Default

/opt/zimbra/bin/ldap is the start/stop script for LDAP.
Reply With Quote
  #4 (permalink)  
Old 11-18-2005, 12:36 PM
TheDingy TheDingy is offline
Junior Member
 
Join Date: Oct 2005
Posts: 8
TheDingy is on a distinguished road
Default On a test box

[zimbra@ghostrider Upgrade]$ ./upgradeM1M2.pl
Fri Nov 18 14:28:58 2005: Finding installed version of ZCS
Fri Nov 18 14:28:58 2005: Stopping zimbra services
Fri Nov 18 14:29:08 2005: Checking mysql status
Fri Nov 18 14:29:09 2005: SELECT value FROM config WHERE name = 'db.version'
sh: mysql.out: No such file or directory
Error while running 'mysql --user=zimbra --password=6R9sU0aUeWuBtK4oqaTbyazHSCYr --database=zimbra --batch --skip-column-names'. at scripts/Migrate.pm line 101.
[zimbra@ghostrider Upgrade]

is what I get
Reply With Quote
  #5 (permalink)  
Old 11-18-2005, 12:53 PM
marcmac marcmac is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 2,068
marcmac is on a distinguished road
Default permissions

The zimbra user must be able to write to the directory in which you've got the upgrade script.
Reply With Quote
  #6 (permalink)  
Old 11-18-2005, 01:07 PM
DanCody DanCody is offline
Member
 
Join Date: Oct 2005
Location: Milwaukee, WI
Posts: 26
DanCody is on a distinguished road
Default

Duh me. I was looking for some zmldapctl like everything else has..

OK. I fired up ldap manually, then ran zmcontrol start and everything works on both servers. Bug in the startup script?

Dan

Quote:
Originally Posted by KevinH
/opt/zimbra/bin/ldap is the start/stop script for LDAP.
Reply With Quote
  #7 (permalink)  
Old 11-18-2005, 01:23 PM
rhostager rhostager is offline
Senior Member
 
Join Date: Nov 2005
Posts: 56
rhostager is on a distinguished road
Default

I upgraded using the scripts and all went well. (After I figured out you had to use a directory that zimbra owned) This was from M1 with no M2 install. Thankyou for the scripts -- you saved me some work! Anyway, I ran the scripts, then upgraded to M2. The server starts up just fine with no errors like DanCody had.

I do have one question though... My admin panel shows "Your Zimbra Network trial expires on 1/17/06". I did not intall the network version. Will my M2 Open Source version expire on 1/17/06?

- Rob

Last edited by rhostager : 11-18-2005 at 01:26 PM.
Reply With Quote
  #8 (permalink)  
Old 11-18-2005, 01:25 PM
marcmac marcmac is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 2,068
marcmac is on a distinguished road
Default nope

Nope - that's a bug in the upgrade script (and the server) - you can disregard the trial expiration date.
Reply With Quote
  #9 (permalink)  
Old 11-18-2005, 04:13 PM
jholder's Avatar
jholder jholder is offline
Zimbra Employee
 
Join Date: Oct 2005
Location: San Mateo, CA
ZCS Version: 5.0.5 RHEL4 64-bit GA
Posts: 5,405
jholder is on a distinguished road
Send a message via Yahoo to jholder
Default

Does the upgrade script have to be in the same dir as the untar-ed upgrade download?

Also, all I do is run the upgrade script only?

thx!
Reply With Quote
  #10 (permalink)  
Old 11-18-2005, 04:45 PM
marcmac marcmac is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 2,068
marcmac is on a distinguished road
Default No, and no.

No, it doesn't have to be in the same directory - any directory, as long as zimbra can write to that dir.

And no, it doesn't perform the software upgrade, just prepares the db and config for it (or fixes the db and config after an upgrade) - so you'll have to run install.sh for M2 at some point.

(Next release, this will all be one step - I promise )
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/announcements/782-m1-m2-upgrade-scripts.html
Posted By For Type Date
M1 -> M2 Upgrade Scripts - Page 3 - Zimbra - Forums This thread Refback 06-01-2007 02:55 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.5.6 -> 5.0 Upgrade Problem :( uxbod Installation 3 07-21-2007 08:02 PM
4.0.3 -> 4.5.1 upgrade Storm16 Installation 1 02-11-2007 08:44 PM
fc4 zcs-3.0.1 -> 3.1 upgrade worked great.. almost keyhman Installation 29 09-29-2006 11:06 AM
M2 -> M3 upgrade gutzeit Installation 26 01-12-2006 09:46 AM
Upgrade M1 -> M2? .... Yes!! jholder Installation 27 11-20-2005 03:34 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0