M1 -> M2 Upgrade Scripts

Official Zimbra news, events, releases, and updates.
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

M1 -> M2 Upgrade Scripts

Post by 14319KevinH »

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.
upgrade.tgz
DanCody
Posts: 34
Joined: Fri Sep 12, 2014 9:57 pm

M1 -> M2 Upgrade Scripts

Post by DanCody »

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 user="14319KevinH"]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.[/QUOTE]
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

M1 -> M2 Upgrade Scripts

Post by 14319KevinH »

/opt/zimbra/bin/ldap is the start/stop script for LDAP.
TheDingy
Posts: 8
Joined: Fri Sep 12, 2014 9:58 pm

M1 -> M2 Upgrade Scripts

Post by TheDingy »

[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
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

M1 -> M2 Upgrade Scripts

Post by marcmac »

The zimbra user must be able to write to the directory in which you've got the upgrade script.
DanCody
Posts: 34
Joined: Fri Sep 12, 2014 9:57 pm

M1 -> M2 Upgrade Scripts

Post by DanCody »

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 user="14319KevinH"]/opt/zimbra/bin/ldap is the start/stop script for LDAP.[/QUOTE]
rhostager
Advanced member
Advanced member
Posts: 61
Joined: Fri Sep 12, 2014 9:59 pm

M1 -> M2 Upgrade Scripts

Post by rhostager »

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
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

M1 -> M2 Upgrade Scripts

Post by marcmac »

Nope - that's a bug in the upgrade script (and the server) - you can disregard the trial expiration date.
User avatar
jholder
Ambassador
Ambassador
Posts: 4824
Joined: Fri Sep 12, 2014 10:00 pm

M1 -> M2 Upgrade Scripts

Post by jholder »

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!
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

M1 -> M2 Upgrade Scripts

Post by marcmac »

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 :) )
Post Reply