Hi Team,
During start OPsmanager service getting below error , what was mistake please elaborate to us.
/mongodb-mms start
Generating new Ops Manager private key...
Starting pre-flight checks
An unexpected error occurred during pre-flight checks: null
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.xgen.svc.core.PreFlightCheck.main(PreFlightCheck.java:204)
Caused by: com.google.inject.CreationException: Unable to create injector, see the following errors:
1) An exception was caught and reported. Message: Failed to initialize connection to App Settings Database.
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.mycila.inject.jsr250.Jsr250.createInjector(Jsr250.java:73)
at com.mycila.inject.jsr250.Jsr250.createInjector(Jsr250.java:47)
at com.mycila.inject.jsr250.Jsr250.createInjector(Jsr250.java:43)
at com.xgen.svc.core.PreFlightCheck.<init>(PreFlightCheck.java:88)
at com.xgen.svc.mms.MmsPreFlightCheck.<init>(MmsPreFlightCheck.java:68)
... 5 more
Caused by: java.lang.RuntimeException: Failed to initialize connection to App Settings Database.
at com.xgen.svc.core.AppSettings.getAppPropertyDao(AppSettings.java:472)
at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:294)
at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:229)
at com.xgen.svc.core.PreFlightCheck$1.configure(PreFlightCheck.java:244)
at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
... 11 more
Caused by: java.lang.IllegalStateException: Failed to decrypt mongodb tokens from: mongodb:// e8f0a8be706d7a9772108f78314c91c66b4fbca0c38c3d1d52761386b61fa983-f87eab10f73c688e70f7f97cccf89625-e4622851994424c653f1a23345160551f1af0df4c541592db145b5ddcea2ade7:e8f0a8be706d7a9772108f78314c91c66b4fbca0c38c3d1d52761386b61fa983-6fe17f68567b095eb564a6e54327425d-16defa3d43559f0a248b40c633af069f@ mongod-vm2.az.3pc.mbt.com,mongod-vm0.az.3pc.mbt.com,mongod-vm1.az.3pc.mbt.com:8543/?replicaSet=rs0&maxPoolSize=150 - Check that your gen.key file at /root/.mongodb-mms/gen.key has not changed.
at com.xgen.svc.mms.dao.mongo.MongoSvcUtils.decryptedMongoUri(MongoSvcUtils.java:77)
at com.xgen.svc.mms.dao.mongo.MongoSvcUriImpl$Config.getUri(MongoSvcUriImpl.java:394)
at com.xgen.svc.core.AppSettings.getAppPropertyDao(AppSettings.java:469)
... 19 more
Caused by: java.lang.IllegalStateException: CipherInfo with signature e8f0a8be706d7a9772108f78314c91c66b4fbca0c38c3d1d52761386b61fa983 is not found!
at com.google.common.base.Preconditions.checkState(Preconditions.java:588)
at com.xgen.svc.security.util.CipherManager.getDecCipherInfo(CipherManager.java:87)
at com.xgen.svc.mms.util.EncryptionUtils.genDecryptStr(EncryptionUtils.java:135)
at com.xgen.svc.mms.dao.mongo.MongoSvcUtils.decryptedMongoUri(MongoSvcUtils.java:64)
... 21 more
Preflight check failed.