Migration tool installation failed, Zimbra 6.0.16 and Zextras 1.8.17
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Migration tool installation failed, Zimbra 6.0.16 and Zextras 1.8.17

  1. #1
    Active Member
    Join Date
    Sep 2014
    Posts
    6

    Migration tool installation failed, Zimbra 6.0.16 and Zextras 1.8.17

    Hi. I'm running Zimbra FOSS 6.0.16 on Debian 4.0

    When I try to install the Migration tool (1.8.17), I get the following error: Variable CORE_VERSION undefined
    I have read all the other threads referring to this error message (3), and have downloaded and unpacked the Zextras again with the same result.

    I have run install.sh with the -d option, and have the following output:

    Code:
    mail2:~/zextras_migration_tool-1.8.17# ./install.sh -d all
    + set -v
    + shift
    + '[' 1 -ne 0 ']'
    + case $1 in
    + PROCESS_MODE=all
    + break
    
    if [ $# -gt 1 ]; then
      echo "Error: check the invocation parameters."
      usage
      exit 1
    fi
    + '[' 1 -gt 1 ']'
    
    if [ x$PROCESS_MODE == "x" ]; then
      echo "A target for the operations is needed:"
      echo "either core, zimlet or all"
      echo "See $0 -h"
      exit 1
    fi
    + '[' xall == x ']'
    
    . ./libs/variables.sh
    + . ./libs/variables.sh
    #!/bin/bash
    # 
    # ***** BEGIN LICENSE BLOCK *****
    # Copyright (C) 2011 ZeXtras
    # 
    # The contents of this file are subject to the ZeXtras License; 
    # you may not use this file except in compliance with the License. 
    # You may obtain a copy of the License at 
    # http://www.zextras.com/zextras-eula.html
    # 
    # Software distributed under the License is distributed on an "AS IS"
    # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
    # ***** END LICENSE BLOCK *****
    # 
    
    
    PACKAGE_DIR=`dirname $0`/packages
    dirname $0
    +++ dirname ./install.sh
    ++ PACKAGE_DIR=./packages
    
    UPGRADE="no"
    ++ UPGRADE=no
    
    ZM_MIN_MAJOR=6
    ++ ZM_MIN_MAJOR=6
    ZM_MIN_MINOR=0
    ++ ZM_MIN_MINOR=0
    ZM_MIN_MICRO=7
    ++ ZM_MIN_MICRO=7
    
    CORE_INSTALL_DIR="/opt/zimbra/lib/ext/zextras"
    ++ CORE_INSTALL_DIR=/opt/zimbra/lib/ext/zextras
    
    CORE_EXT_PACKAGE="packages/common/zextras-lib.jar"
    ++ CORE_EXT_PACKAGE=packages/common/zextras-lib.jar
    ZIMLET_PACKAGE="packages/common/com_zextras_zxmig.zip"
    ++ ZIMLET_PACKAGE=packages/common/com_zextras_zxmig.zip
    TOOL="packages/zxmig"
    ++ TOOL=packages/zxmig
    NAILGUN="packages/ng"
    ++ NAILGUN=packages/ng
    
    ZEXTRAS_ZIMLET_NAME="com_zextras_zextras"
    ++ ZEXTRAS_ZIMLET_NAME=com_zextras_zextras
    ZXMIG_ZIMLET_NAME="com_zextras_zxmig"
    ++ ZXMIG_ZIMLET_NAME=com_zextras_zxmig
    
    PRODUCT="ZeXtras Migration Tool"
    ++ PRODUCT='ZeXtras Migration Tool'
    
    INSTALL_LOG="/opt/zimbra/.zextras_install_history"
    ++ INSTALL_LOG=/opt/zimbra/.zextras_install_history
    
    logInfo "Command Line: $@"
    + logInfo 'Command Line: all'
    + logInst 'INFO Command Line: all'
    dirname "$INSTALL_LOG"
    ++ dirname /opt/zimbra/.zextras_install_history
    + '[' -d /opt/zimbra ']'
    date +%s
    ++ date +%s
    + echo 1411253595 'INFO Command Line: all'
    
    while :
    do
      case $PROCESS_MODE in
        core)
          preCheck
          coreProcess
          break
          ;;
        zimlet)
          preCheck
          zimletProcess
          break
          ;;
        all)
          preCheck
          coreProcess
          zimletProcess
          break
          ;;
      esac
    done
    + :
    + case $PROCESS_MODE in
    + preCheck
    + checkExistingZimbraInstall
    + echo ''
    
    + echo -------------------------
    -------------------------
    + echo ''
    
    + echo 'Checking for existing installations ...'
    Checking for existing installations ...
    + isZimbraInstalled
    + ZCSINSTALLED=
    + '[' -x /opt/zimbra/bin/zmcontrol ']'
    + '[' -x /opt/zimbra/bin/zmmailboxdctl ']'
    + ZCSINSTALLED=1
    + checkZcsVersion
    + su - zimbra -c 'zmcontrol -v'
    + grep -q -i -- 'ZCA Release 7'
    + '[' x1 '!=' x ']'
    + VRS_ARR=(`su - zimbra -c "zmcontrol -v" | perl -wne 'print join " ", /(\d+)\.(\d+)\.(\d+).([[:alnum:]]+)?.*(FOSS|NETWORK)/ if /edition/'`)
    su - zimbra -c "zmcontrol -v" | perl -wne 'print join " ", /(\d+)\.(\d+)\.(\d+).([[:alnum:]]+)?.*(FOSS|NETWORK)/ if /edition/'
    ++ su - zimbra -c 'zmcontrol -v'
    ++ perl -wne 'print join " ", /(\d+)\.(\d+)\.(\d+).([[:alnum:]]+)?.*(FOSS|NETWORK)/ if /edition/'
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    	LANGUAGE = (unset),
    	LC_ALL = (unset),
    	LC_PAPER = "nb_NO.UTF-8",
    	LC_ADDRESS = "nb_NO.UTF-8",
    	LC_MONETARY = "nb_NO.UTF-8",
    	LC_NUMERIC = "nb_NO.UTF-8",
    	LC_TELEPHONE = "nb_NO.UTF-8",
    	LC_IDENTIFICATION = "nb_NO.UTF-8",
    	LC_MEASUREMENT = "nb_NO.UTF-8",
    	LC_TIME = "nb_NO.UTF-8",
    	LC_NAME = "nb_NO.UTF-8",
    	LANG = "en_DK.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    + ZM_CUR_MAJOR=6
    + ZM_CUR_MINOR=0
    + ZM_CUR_MICRO=16
    + [[ 6 -eq 8 ]]
    + ZM_CUR_EDITION=FOSS
    + '[' x1 '!=' x ']'
    + echo ''
    
    + echo 'FOUND Zimbra 6.0.16'
    FOUND Zimbra 6.0.16
    + echo ''
    
    + logInfo 'Detected Zimbra version 6.0.16'
    + logInst 'INFO Detected Zimbra version 6.0.16'
    dirname "$INSTALL_LOG"
    ++ dirname /opt/zimbra/.zextras_install_history
    + '[' -d /opt/zimbra ']'
    date +%s
    ++ date +%s
    + echo 1411253601 'INFO Detected Zimbra version 6.0.16'
    + [[ 6 -eq 8 ]]
    + checkMinimumZimbraVersion
    echo ${ZM_CUR_MAJOR}.${ZM_CUR_MINOR}.${ZM_CUR_MICRO} ${ZM_MIN_MAJOR}.${ZM_MIN_MINOR}.${ZM_MIN_MICRO}|bin/check_version.pl
    ++ echo 6.0.16 6.0.7
    ++ bin/check_version.pl
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    	LANGUAGE = (unset),
    	LC_ALL = (unset),
    	LC_PAPER = "nb_NO.UTF-8",
    	LC_ADDRESS = "nb_NO.UTF-8",
    	LC_MONETARY = "nb_NO.UTF-8",
    	LC_NUMERIC = "nb_NO.UTF-8",
    	LC_TELEPHONE = "nb_NO.UTF-8",
    	LC_IDENTIFICATION = "nb_NO.UTF-8",
    	LC_MEASUREMENT = "nb_NO.UTF-8",
    	LC_TIME = "nb_NO.UTF-8",
    	LC_NAME = "nb_NO.UTF-8",
    	LANG = "en_DK.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    + CMP=1
    + '[' 1 -gt 0 -o 1 -eq 0 ']'
    + ZEXTRAS_INSTALLABLE=yes
    + return 0
    + CORE_PACKAGE=packages/6.0.16/zextras.jar
    + payloadCheck
    + '[' -r packages/6.0.16/zextras.jar ']'
    bin/zxtool.sh -p $CORE_PACKAGE -v 2>/dev/null|sed -n 's/.*\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\).*/\1/p'
    ++ bin/zxtool.sh -p packages/6.0.16/zextras.jar -v
    ++ sed -n 's/.*\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\).*/\1/p'
    + CORE_VERSION=
    + '[' x == x ']'
    + echo 'Variable CORE_VERSION undefined'
    Variable CORE_VERSION undefined
    + exit 1
    Before running Zextras Migration tool, I have upgraded Zimbra from 5.0.14 to 6.0.16 so that I could use Zextras. Zextras is my only path over to a new platform and a newer version of Zimbra now. Hope to get some helt på resolve this installation fault.

    Thanks

  2. #2
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    570
    Hi aseem and welcome to the forums.

    It seems there is a problem with integrity check of zextras' jar file. If you have already tried to re-download the package, please try to verify the whole file integrity with MD5 and compare your output with mine:
    Code:
    # md5sum zextras_suite-1.8.17.tgz 
    351547eae6032ed7fe7e73b4380d7335  zextras_suite-1.8.17.tgz
    
    # md5sum packages/6.0.16/zextras.jar 
    b62b474dab2531f8ac5c667d1fe5c0c2  packages/6.0.16/zextras.jar

    Another important test to do is verify the output of the failed payloadCheck function by executing the zxtool.sh shell script in debug mode from the root of the installer (as root user):
    Code:
    ~/zextras_suite-1.8.17 # bash -x bin/zxtool.sh -p packages/6.0.16/zextras.jar -v 
    + getopts vlm:z:p: Option
    + case $Option in
    + PACKAGE=packages/6.0.16/zextras.jar
    + getopts vlm:z:p: Option
    + case $Option in
    + ARGS=--version
    + break
    + shift 3
    + DEFAULT_JAR=/opt/zimbra/lib/ext/zextras/zextras.jar
    + '[' '!' -e /opt/zimbra/lib/ext/zextras/zextras.jar -a xpackages/6.0.16/zextras.jar == x ']'
    + DEFAULT_JAR=/opt/zimbra/lib/ext/zextras/zextras.jar:/opt/zimbra/lib/ext/zextras/zextras-lib.jar
    ++ dirname packages/6.0.16/zextras.jar
    + PACKAGE=packages/6.0.16/zextras.jar:packages/6.0.16/../common/zextras-lib.jar
    + exec /opt/zimbra/bin/zmjava -cp packages/6.0.16/zextras.jar:packages/6.0.16/../common/zextras-lib.jar com.zextras.ZxSuite --version
    zextras version 1.8.17, commit 3b7a8649b068d66a838dccbab045261aa8f9c19c

    Have a nice day.
    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  3. #3
    Active Member
    Join Date
    Sep 2014
    Posts
    6
    Thanks for the tip D0s0n. I see that your check sum is for the Zextras Suite download. I have downloaded the file: zextras_migration_tool-latest.tgz, so the check sum is different. Different also for the file packages/zextras.jar file
    Do you also have the md5sum for the migration tool package?
    Should I use the suite instead of the migration tool? I'm now trying to extract data from the old server....

    Thank you

  4. #4
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    570
    My mistake

    Code:
    # md5sum zextras_migration_tool-latest.tgz 
    89a92a2da8d8eca1a67c315a572de37c  zextras_migration_tool-latest.tgz
    # md5sum zextras_migration_tool-1.8.17/packages/6.0.16/zextras.jar 
    c5bb6117f82018b41e0dbd83d873cf1d  zextras_migration_tool-1.8.17/packages/6.0.16/zextras.jar
    
    ~/zextras_migration_tool-1.8.17 # bash -x bin/zxtool.sh -p packages/6.0.16/zextras.jar -v 
    + getopts vlm:z:p: Option
    + case $Option in
    + PACKAGE=packages/6.0.16/zextras.jar
    + getopts vlm:z:p: Option
    + case $Option in
    + ARGS=--version
    + break
    + shift 3
    + DEFAULT_JAR=/opt/zimbra/lib/ext/zextras/zextras.jar
    + '[' '!' -e /opt/zimbra/lib/ext/zextras/zextras.jar -a xpackages/6.0.16/zextras.jar == x ']'
    + DEFAULT_JAR=/opt/zimbra/lib/ext/zextras/zextras.jar:/opt/zimbra/lib/ext/zextras/zextras-lib.jar
    ++ dirname packages/6.0.16/zextras.jar
    + PACKAGE=packages/6.0.16/zextras.jar:packages/6.0.16/../common/zextras-lib.jar
    + exec /opt/zimbra/bin/zmjava -cp packages/6.0.16/zextras.jar:packages/6.0.16/../common/zextras-lib.jar com.zextras.ZxSuite --version
    zextras version 1.8.17, commit 75c2d883fb87d042042446f1895402186b2d4c3e
    ...and yes you can use zxbackup module also to extract all data, I suggest you to take a look at our incremental migration guide.

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  5. #5
    Active Member
    Join Date
    Sep 2014
    Posts
    6
    Thank you. So here is the output from that zxtool run:

    mail2:~/zextras_migration_tool-1.8.17# bash -x bin/zxtool.sh -p packages/6.0.16/zextras.jar -v
    + getopts vlm:z: Option
    + case $Option in
    + PACKAGE=packages/6.0.16/zextras.jar
    + getopts vlm:z: Option
    + case $Option in
    + ARGS=--version
    + break
    + shift 3
    + DEFAULT_JAR=/opt/zimbra/lib/ext/zextras/zextras.jar
    + '[' '!' -e /opt/zimbra/lib/ext/zextras/zextras.jar -a xpackages/6.0.16/zextras.jar == x ']'
    + DEFAULT_JAR=/opt/zimbra/lib/ext/zextras/zextras.jar:/opt/zimbra/lib/ext/zextras/zextras-lib.jar
    ++ dirname packages/6.0.16/zextras.jar
    + PACKAGE=packages/6.0.16/zextras.jarackages/6.0.16/../common/zextras-lib.jar
    + exec /opt/zimbra/bin/zmjava -cp packages/6.0.16/zextras.jarackages/6.0.16/../common/zextras-lib.jar com.zextras.ZxSuite --version
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass2(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :719)
    at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:160)
    at java.net.URLClassLoader.defineClass(URLClassLoader .java:254)
    at java.net.URLClassLoader.access$100(URLClassLoader. java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)

  6. #6
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    570
    Have you tried with ZeXtras Suite package? Did you got the same behavior?
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  7. #7
    Active Member
    Join Date
    Sep 2014
    Posts
    6
    Same result unfortunately

  8. #8
    ZeXtras Developer ZeroZeroOne ZeXtras Reseller
    Participant

    Join Date
    Jun 2011
    Posts
    23
    Hi aseem, ZeXtras developer here.

    The first guess that I can make for the error it's that zmjava points to a previous (and unsupported) version of /opt/zimbra/java maybe due to a problem during the upgrade to Zimbra 6.0.16.
    Could you please send us the output of the following commands (executed as root user)?


    Code:
    /opt/zimbra/bin/zmjava -version
    Code:
    ls -ld /opt/zimbra/j*
    Code:
    dpkg -l "zimbra*"
    If it's possible, it would be nice to have a look to /opt/zimbra/.install_history, can you attach it to the reply or send us via email to community@zextras.com

    Thanks.
    kral

    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    ZeXtras Software Alchemist

  9. #9
    Active Member
    Join Date
    Sep 2014
    Posts
    6
    Kral, I think you are right. I have recently discovered that everything is not right after my 6.0.16 upgrade. Things like server statistics etc. in Zimbra amin GUI has stopped after the upgrade.

    Code:
    mail2:~# /opt/zimbra/bin/zmjava -version
    java version "1.5.0_17"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_17-b04, mixed mode, sharing)

    Code:
    mail2:~# ls -ld /opt/zimbra/j*
    lrwxrwxrwx  1 zimbra zimbra   23 Mar 30  2009 /opt/zimbra/java -> /opt/zimbra/jdk1.5.0_17
    drwxr-xr-x  3 zimbra zimbra 4096 Mar 30  2009 /opt/zimbra/jdk1.5.0_15
    drwxr-xr-x  7 zimbra zimbra 4096 Mar 30  2009 /opt/zimbra/jdk1.5.0_17
    drwxr-xr-x  3 root   root   4096 Oct 11  2008 /opt/zimbra/jdk1.6.0_04
    lrwxrwxrwx  1 zimbra zimbra   23 Mar 30  2009 /opt/zimbra/jetty -> /opt/zimbra/jetty-6.1.5
    drwxr-xr-x 11 root   root   4096 Mar 30  2009 /opt/zimbra/jetty-6.1.5

    Code:
    mail2:~# dpkg -l "zimbra*"
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name                   Version                Description
    +++-======================-======================-============================================================
    ii  zimbra-apache          6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-core            6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-ldap            6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-logger          6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-memcached       6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-mta             6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-proxy           6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-snmp            6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-spell           6.0.16_GA_2998.DEBIAN4 Best email money can buy
    ii  zimbra-store           6.0.16_GA_2998.DEBIAN4 Best email money can buy
    Thanks for helping. Appreciate all the help i can get at this moment....

  10. #10
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    570
    Hi aseem,

    I can suggest you to analyze all your upgrade logs and retry to install the 6.0.16 version.

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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