Datastore Failing to Startup After Upgrading to 7.9.0
search cancel

Datastore Failing to Startup After Upgrading to 7.9.0

book

Article ID: 418819

calendar_today

Updated On:

Products

Carbon Black EDR

Issue/Introduction

After upgrading the EDR server to 7.9.0 datastore fails to startup with a systemctl message of "Exited too quickly"

  • /var/log/cb/datastore/startup.out shows the following error. 
    /etc/cb/datastore/datastore.in: line 2: Could: command not found
    grep: /etc/sysconfig/clock: No such file or directory
    Path to Java : /usr/lib/jvm/jre-11//bin/java
    Exception in thread "main" java.lang.reflect.InvocationTargetException
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:566)
            at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
            at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
    Caused by: java.lang.NumberFormatException: For input string: ""
            at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.base/java.lang.Integer.parseInt(Integer.java:662)
            at java.base/java.lang.Integer.parseInt(Integer.java:770)
            at org.jolokia.jvmagent.JolokiaServerConfig.initConfigAndValidate(JolokiaServerConfig.java:358)
            at org.jolokia.jvmagent.JolokiaServerConfig.init(JolokiaServerConfig.java:111)
            at org.jolokia.jvmagent.JvmAgentConfig.init(JvmAgentConfig.java:61)
            at org.jolokia.jvmagent.JolokiaServerConfig.<init>(JolokiaServerConfig.java:94)
            at org.jolokia.jvmagent.JvmAgentConfig.<init>(JvmAgentConfig.java:55)
            at org.jolokia.jvmagent.JvmAgentConfig.<init>(JvmAgentConfig.java:46)
            at org.jolokia.jvmagent.JvmAgent.premain(JvmAgent.java:72)
            ... 6 more

 

Environment

  • Carbon Black EDR Server: 7.9.0

Cause

datastore.in.rpmnew was renamed as a backup or deleted. 

Resolution

  1. cd to /etc/cb/datastore/ 
  2. Verify which file has the correct 
    grep -l 'temurin-17' /etc/cb/datastore/datastore.in*
  3. Overwrite the current /etc/cb/datastore/datastore.in with the file found above. 
  4. Make sure services have stopped. 
    Standalone
    /usr/share/cb/cbservice cb-enterprise stop
    
    Cluster
    /usr/share/cb/cbcluster stop
  5. Clear the failure status. 
    systemctl reset-failed
  6. Start services again.  
    Standalone
    /usr/share/cb/cbservice cb-enterprise start
    
    Cluster
    /usr/share/cb/cbcluster start

Additional Information

Solr Fails to Start During cbupgrade to 7.9.0