Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > General Zimbra > Announcements

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack (1) Thread Tools Display Modes
  #1 (permalink)  
Old 11-18-2005, 10:43 AM
Zimbra Employee
 
Posts: 4,784
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, 668 views)

Last edited by KevinH : 11-18-2005 at 12:13 PM.
Reply With Quote
  #2 (permalink)  
Old 11-18-2005, 11:59 AM
Active Member
 
Posts: 34
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, 12:08 PM
Zimbra Employee
 
Posts: 4,784
Default

/opt/zimbra/bin/ldap is the start/stop script for LDAP.
Reply With Quote
  #4 (permalink)  
Old 11-18-2005, 01:36 PM
Junior Member
 
Posts: 8
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, 01:53 PM
Zimbra Employee
 
Posts: 2,073
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, 02:07 PM
Active Member
 
Posts: 34
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, 02:23 PM
Senior Member
 
Posts: 61
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 02:26 PM.
Reply With Quote
  #8 (permalink)  
Old 11-18-2005, 02:25 PM
Zimbra Employee
 
Posts: 2,073
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, 05:13 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
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, 05:45 PM
Zimbra Employee
 
Posts: 2,073
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


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0