Page 1 of 6 123 ... LastLast
Results 1 to 10 of 58

Thread: M1 -> M2 Upgrade Scripts

  1. #1
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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 Attached Files
    Last edited by KevinH; 11-18-2005 at 11:13 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Milwaukee, WI
    Posts
    34
    Rep Power
    10

    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.

  3. #3
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    /opt/zimbra/bin/ldap is the start/stop script for LDAP.

  4. #4
    Join Date
    Oct 2005
    Posts
    8
    Rep Power
    10

    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

  5. #5
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default permissions

    The zimbra user must be able to write to the directory in which you've got the upgrade script.

  6. #6
    Join Date
    Oct 2005
    Location
    Milwaukee, WI
    Posts
    34
    Rep Power
    10

    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.

  7. #7
    Join Date
    Nov 2005
    Posts
    61
    Rep Power
    9

    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.

  8. #8
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default nope

    Nope - that's a bug in the upgrade script (and the server) - you can disregard the trial expiration date.

  9. #9
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    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!

  10. #10
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    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 )

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •