[碎片空间] GaussDB for DWS维护宝典-安装类故障-安装OMS提示解密失败

问题背景与现象

安装OMS失败,报Failed to get omm db password

原因分析

  1. 查看安装日志(/var/log/Bigdata/controller/scriptlog/install.log),报如下错误:

java.security.InvalidKeyException: Illegal key size or default parameters
        at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1011)
        at javax.crypto.Cipher.implInit(Cipher.java:786)
        at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
        at javax.crypto.Cipher.init(Cipher.java:1213)
        at javax.crypto.Cipher.init(Cipher.java:1153)
        at org.wcc.framework.util.encrypt.PasswordUtil.decryptByAes256(PasswordUtil.java:180)
        at org.wcc.framework.util.encrypt.PasswordUtil.decryptByAes256(PasswordUtil.java:146)
        at com.omm.encrypt.DecryptCommandMain.decryptCommandLine(DecryptCommandMain.java:71)
        at com.omm.encrypt.DecryptCommandMain.main(DecryptCommandMain.java:130)
[2014-12-09 10:58:47] ERROR Failed to get omm db password. [installcontroller.sh(main):788](12851)

2.解密失败的原因最常见的就是JDK的版本不匹配,大数据FusionInsight系统会在omm用户下安装JDK。如果在安装以前root用户下已经有JDK或者JAVA_HOME环境变量,可能会导致安装FusionInsight失败。

解决办法

              1. 请卸载root用户下的JDKJAVA_HOME

              2. 可以通过在root用户下执行env |grep JAVA_HOME查看。

              3. 如果存在,请在“/root/.bash_profile”文件中去除JAVA相关环境变量,或者彻底删除安装的JDK,或者清除“/etc/profile”中的JAVA_HOME相关变量。