java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword

JIRA | Joshua Maag | 12 months ago
  1. 0

    User ran into an issue where they replaced the gen.key file but had the wrong user. They received the following message in the preflight check: {code} [root@opsmanager01-db tmp]# /etc/init.d/mongodb-mms start Starting pre-flight checks An unexpected error occurred during pre-flight checks: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124) at com.xgen.svc.core.AppSettings.class(AppSettings.java:45) while locating com.xgen.svc.core.AppSettings for parameter 0 at com.xgen.svc.core.dao.mongo.MongoSvcProvider.<init>(MongoSvcProvider.java:23) at com.xgen.svc.core.dao.mongo.MongoSvcProvider.class(MongoSvcProvider.java:19) while locating com.xgen.svc.core.dao.mongo.MongoSvcProvider while locating com.xgen.svc.core.dao.mongo.MongoSvc 1 error com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124) at com.xgen.svc.core.AppSettings.class(AppSettings.java:45) while locating com.xgen.svc.core.AppSettings for parameter 0 at com.xgen.svc.core.dao.mongo.MongoSvcProvider.<init>(MongoSvcProvider.java:23) at com.xgen.svc.core.dao.mongo.MongoSvcProvider.class(MongoSvcProvider.java:19) while locating com.xgen.svc.core.dao.mongo.MongoSvcProvider while locating com.xgen.svc.core.dao.mongo.MongoSvc 1 error at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051) at com.mycila.inject.jsr250.Jsr250InjectorImpl.getInstance(Jsr250InjectorImpl.java:123) at com.xgen.svc.core.PreFlightCheck.performChecks(PreFlightCheck.java:89) at com.xgen.svc.core.PreFlightCheck.main(PreFlightCheck.java:149) Caused by: java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword at com.xgen.svc.core.AppSettings.lambda$recordInstanceOverrides$55(AppSettings.java:357) at java.util.Hashtable.forEach(Hashtable.java:878) at com.xgen.svc.core.AppSettings.recordInstanceOverrides(AppSettings.java:348) at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:169) at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124) at com.xgen.svc.core.AppSettings$$FastClassByGuice$$577b2d6c.newInstance(<generated>) at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:61) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) {code} Is there a way to intercept and provide a cleaner error message here to indicate to the user what is going on?

    JIRA | 12 months ago | Joshua Maag
    java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword
  2. 0

    User ran into an issue where they replaced the gen.key file but had the wrong user. They received the following message in the preflight check: {code} [root@opsmanager01-db tmp]# /etc/init.d/mongodb-mms start Starting pre-flight checks An unexpected error occurred during pre-flight checks: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124) at com.xgen.svc.core.AppSettings.class(AppSettings.java:45) while locating com.xgen.svc.core.AppSettings for parameter 0 at com.xgen.svc.core.dao.mongo.MongoSvcProvider.<init>(MongoSvcProvider.java:23) at com.xgen.svc.core.dao.mongo.MongoSvcProvider.class(MongoSvcProvider.java:19) while locating com.xgen.svc.core.dao.mongo.MongoSvcProvider while locating com.xgen.svc.core.dao.mongo.MongoSvc 1 error com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124) at com.xgen.svc.core.AppSettings.class(AppSettings.java:45) while locating com.xgen.svc.core.AppSettings for parameter 0 at com.xgen.svc.core.dao.mongo.MongoSvcProvider.<init>(MongoSvcProvider.java:23) at com.xgen.svc.core.dao.mongo.MongoSvcProvider.class(MongoSvcProvider.java:19) while locating com.xgen.svc.core.dao.mongo.MongoSvcProvider while locating com.xgen.svc.core.dao.mongo.MongoSvc 1 error at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051) at com.mycila.inject.jsr250.Jsr250InjectorImpl.getInstance(Jsr250InjectorImpl.java:123) at com.xgen.svc.core.PreFlightCheck.performChecks(PreFlightCheck.java:89) at com.xgen.svc.core.PreFlightCheck.main(PreFlightCheck.java:149) Caused by: java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword at com.xgen.svc.core.AppSettings.lambda$recordInstanceOverrides$55(AppSettings.java:357) at java.util.Hashtable.forEach(Hashtable.java:878) at com.xgen.svc.core.AppSettings.recordInstanceOverrides(AppSettings.java:348) at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:169) at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124) at com.xgen.svc.core.AppSettings$$FastClassByGuice$$577b2d6c.newInstance(<generated>) at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:61) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) {code} Is there a way to intercept and provide a cleaner error message here to indicate to the user what is going on?

    JIRA | 12 months ago | Joshua Maag
    java.lang.RuntimeException: Failed to encrypt setting value for storage in database: mms.ldap.bindPassword
  3. 0
    samebug tip
    I did this as root, and works dpkg --add-architecture i386 apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If the decompile process didn't work properly, try the Android APK Decompiler.
  6. 0
    samebug tip
    Switch to Android Build Tools 23.0.3

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to encrypt setting value for storage in database: mms.ldap.bindPassword

      at com.xgen.svc.core.AppSettings.<init>()
    2. com.xgen.svc
      AppSettings.class
      1. com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124)
      2. com.xgen.svc.core.AppSettings.class(AppSettings.java:45)
      2 frames