Hi all,
I've just installed the MongoDB Ops Manager on my Windows 7 PC. During the install process I got the API Key. The installation finished fine and the Ops Manager worked.
However, for some reasons, I did an uninstallation the Ops Manager and then tried to reinstall it. This time the installation terminated OK but I did not receive the new API Key. And when I tried to start the MongDB MMS http service it did not work. The service stopped after starting few seconds.
I took a look in the log files of the MMS server and here is the log (see below) As you can see the problem might be :
The custom gen.key file at mms.keyfile does not match the gen.key
already used for this MMS installation. The key file for this OnPrem MMS
server must be copied from another OnPrem MMS server.It seems the problem is quite rarely, there are no infos about it, how to fix it .... If someone can help me, i would appreciate very much. Thank you very much.
2015-06-02T15:29:20.383+0000 [main] gid INFO MigrationSvc:171 - Releasing the migration lock
2015-06-02T15:29:20.472+0000 [main] gid INFO ServerMain:240 - Starting pre-flight checks
2015-06-02T15:29:33.338+0000 [main] gid ERROR AutomationMongoDbVersionSvc:136 - Failed to update MongoDB default versions from `
https://opsmanager.mongodb.com/static/version_manifest/1.6.json`java.lang.IllegalStateException: json: 'null'
at com.xgen.svc.core.util.HttpUtils.doGetJson(HttpUtils.java:590) ~[mms.jar:1.6.2]
at com.xgen.svc.core.util.HttpUtils.doGetJson(HttpUtils.java:572) ~[mms.jar:1.6.2]
at com.xgen.svc.atm.svc.AutomationMongoDbVersionSvc.autoUpdateDefaultVersions(AutomationMongoDbVersionSvc.java:124) [mms.jar:1.6.2]
at com.xgen.svc.atm.svc.AutomationMongoDbVersionSvc.<init>(AutomationMongoDbVersionSvc.java:45) [mms.jar:1.6.2]
at com.xgen.svc.mms.MmsPreFlightCheck$AutomationMongoDBVersionCheck.check(MmsPreFlightCheck.java:148) [mms.jar:1.6.2]
at com.xgen.svc.core.PreFlightCheck.performChecks(PreFlightCheck.java:75) [mms.jar:1.6.2]
at com.xgen.svc.core.PreFlightCheck.performChecks(PreFlightCheck.java:88) [mms.jar:1.6.2]
at com.xgen.svc.core.ServerMain.doPreFlightCheck(ServerMain.java:241) [mms.jar:1.6.2]
at com.xgen.svc.core.ServerMainDaemon.start(ServerMainDaemon.java:41) [mms.jar:1.6.2]
Caused by: java.net.UnknownHostException:
opsmanager.mongodb.com at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.8.0_31]
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:907) ~[na:1.8.0_31]
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1302) ~[na:1.8.0_31]
at java.net.InetAddress.getAllByName0(InetAddress.java:1255) ~[na:1.8.0_31]
at java.net.InetAddress.getAllByName(InetAddress.java:1171) ~[na:1.8.0_31]
at java.net.InetAddress.getAllByName(InetAddress.java:1105) ~[na:1.8.0_31]
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:101) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[httpclient-4.3.3.jar:4.3.3]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) ~[httpclient-4.3.3.jar:4.3.3]
at com.xgen.svc.core.util.HttpUtils.doGetJson(HttpUtils.java:585) ~[mms.jar:1.6.2]
... 8 common frames omitted
2015-06-02T15:29:33.347+0000 [main] gid ERROR ServerMain:90 - The custom gen.key file at mms.keyfile does not match the gen.key already used for this MMS installation. The key file for this OnPrem MMS server must be copied from another OnPrem MMS server.
2015-06-02T15:29:33.347+0000 [main] gid INFO ServerMain:242 - Pre-flight checks failed. Service can not start.