cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
901
Views
0
Helpful
3
Replies

LMS 4.1 CTMJrmServer process stops daily

Hello community,

we are running LMS 4.1 on a windows server and I have noticed that the CTMJrmServer process stops daily. I need to manually restart the service.

After checking the EssentialsDM.log I see the following I think that when the process starts up I get a certificate error:

[ Fri Dec 30 09:23:01 EET 2016 ] DmMain: ===============DmDbMonitorThread: Going to sleep before it monitors the RMEDatabase.....zzZZZ
[ Fri Dec 30 09:23:01 EET 2016 ] DmMain: updateStatusToProcessManager: CreateReadyFile success.
[ Fri Dec 30 09:23:01 EET 2016 ] DmMain: dMgtRunner::run: entered RUN...
[ Fri Dec 30 09:23:08 EET 2016 ] DmMain: dMgtRunner::run: Got message from dmgtd...1111708500
ERROR: Certificate Date Invalid
java.security.cert.CertificateExpiredException: NotAfter: Mon Dec 19 14:28:01 EET 2016
    at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:256)
    at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:570)
    at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:543)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.verifyCert(CiscoTrustManager.java:329)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.verifyCertChain(CiscoTrustManager.java:205)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.checkCertTrusted(CiscoTrustManager.java:121)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.checkServerTrusted(CiscoTrustManager.java:160)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1198)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(HttpsURLConnectionOldImpl.java:200)
    at com.cisco.nm.xms.ctm.client.DefaultHTTPClientImpl.getOutputStream(DefaultHTTPClientImpl.java:83)
    at com.cisco.nm.xms.ctm.client.CTMCall.performBinaryRPC(CTMCall.java:782)
    at com.cisco.nm.xms.ctm.client.CTMCall.performRPC(CTMCall.java:694)
    at com.cisco.nm.xms.ctm.client.CTMCall.invoke(CTMCall.java:409)
    at com.cisco.nm.xms.ctm.client.CTMCall.setMethodAndInvoke(CTMCall.java:449)
    at com.cisco.nm.dcr.DCRProxy.invokeViaCSTM(DCRProxy.java:2307)
    at com.cisco.nm.dcr.DCRProxy.getDCRDomainID(DCRProxy.java:2026)
    at com.cisco.nm.rmeng.inventory.dm.DCRDeviceAccessManager.getDCRDomainId(DCRDeviceAccessManager.java:865)
    at com.cisco.nm.rmeng.inventory.dm.server.AppInitController.run(AppInitController.java:502)
java.lang.NullPointerException
    at com.cisco.nm.rmeng.inventory.dm.server.AppInitController.run(AppInitController.java:511)
[ Fri Dec 30 09:25:19 EET 2016 ] DmMain: dMgtRunner::run: Got message from dmgtd...1398034256
[ Fri Dec 30 09:25:19 EET 2016 ] DmMain: Exiting from dMgtRunner...
[ Fri Dec 30 09:25:19 EET 2016 ] DmMain: exit:ShutDown requested from the Cisco Process Manager
[ Fri Dec 30 09:25:19 EET 2016 ] DmMain: exit: stopping process EssentialsDM
[ Fri Dec 30 09:25:19 EET 2016 ] DmMain: exit: Before calling system.exit...

Could someone please walk me through this issue?

Thank you in advance,

Katerina

3 Replies 3

Now I see that the DCRServer failed to run! This doesn't sound good...

I also noticed that a bunch of processes fail to start after stopping and starting the daemon.

For example the ani.log shows:

2017/01/03 16:11:27 main ani ERROR ServiceModule: Failed to instantiate com.cisco.nm.ani.server.dfmpoller.NoServiceModule
2017/01/03 16:11:27 main ani MESSAGE DBConnection: Created new Database connection [hashCode = 10044878]
2017/01/03 16:11:29 main ani MESSAGE PartialSMFCommit: Partial Commit is enabled for DataCollection
log4j:WARN No appenders could be found for logger (com.cisco.nm.cmf.portal.ServerPortlet).
log4j:WARN Please initialize the log4j system properly.
The DCR port  =443
inthe portal adaptor
[Tue Jan 03 16:11:35 EET 2017] INFO   [CMICLogger : info]  : com.cisco.nm.cmf.cmic.uii.action.CMICInteractor Making RPC call to import templates on SRV-CWORKS:443
 ERROR: Certificate Date Invalid
java.security.cert.CertificateExpiredException: NotAfter: Mon Dec 19 14:28:01 EET 2016
    at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:256)
    at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:570)
    at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:543)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.verifyCert(CiscoTrustManager.java:329)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.verifyCertChain(CiscoTrustManager.java:205)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.checkCertTrusted(CiscoTrustManager.java:121)
    at com.cisco.nm.xms.security.trustmanager.CiscoTrustManager.checkServerTrusted(CiscoTrustManager.java:160)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1198)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(HttpsURLConnectionOldImpl.java:200)
    at com.cisco.nm.xms.ctm.client.DefaultHTTPClientImpl.getOutputStream(DefaultHTTPClientImpl.java:83)
    at com.cisco.nm.xms.ctm.client.CTMCall.performBinaryRPC(CTMCall.java:782)
    at com.cisco.nm.xms.ctm.client.CTMCall.performRPC(CTMCall.java:694)
    at com.cisco.nm.xms.ctm.client.CTMCall.invoke(CTMCall.java:409)
    at com.cisco.nm.cmf.cmic.uii.action.CMICInteractor.getImportedApplications(CMICInteractor.java:181)
    at com.cisco.nm.cmf.cmic.uii.action.CMICPortalAdaptor.getRegisteredApps(CMICPortalAdaptor.java:25)
    at com.cisco.nm.cmf.portal.ServerPortlet.getApplications(ServerPortlet.java:173)
    at com.cisco.nm.cmf.portal.ServerPortlet.getServerAppDetails(ServerPortlet.java:145)
    at com.cisco.nm.ani.server.dfmpoller.DFMServerInfoCollector.updateServerDetails(DFMServerInfoCollector.java:71)
    at com.cisco.nm.ani.server.frontend.AniMain.staticInitialize(AniMain.java:330)
    at com.cisco.nm.ani.server.frontend.AniMain.main(AniMain.java:1098)
Untrusted certificate. regenerate the certificate

So I assume that everything will be fixed once I regenerate the certificate. I found this post:

https://supportforums.cisco.com/discussion/11606561/lms-41-dcrserver-process-shutdown

Can someone verify that this is the correct way to go?

Thanks in advance,

Katerina

I regenerated the certificate with the following procedure.

a. Stop the CSM Daemon service [net stop crmdmgtd]

b. Remove from <CSCOpx>\MDC\Apache\conf\ssl:

  server.cert

  server.csr

  server.key

  server.pk8

c. For self-signed certificates, from the command prompt navigate to the <CSCOpx>\MDC\Apache directory, and then execute the gencert.bat file.
(where <CSCOpx> is your installation directory)

d. Start the CSM Daemon service [net start crmdmgtd]