EDR Server: Datagrid restarting every few seconds due to unsupported Java version
search cancel

EDR Server: Datagrid restarting every few seconds due to unsupported Java version

book

Article ID: 292485

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

  • Starting server fails after Datagrid
  • /var/log/cb/datagrid/startup.out error
    • Error: A JNI error has occurred, please check your installation and try again
      Exception in thread "main" java.lang.UnsupportedClassVersionError: com/carbonblack/datagrid/server/StartServer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
  • /var/log/cb/supervisord/supervisord.log shows datagrid stopping and starting every few seconds

Environment

  • EDR Server: 7.3 and higher

Cause

Default configs have been changed so Datagrid is not pointing to the correct Java path. 

Resolution

Confirm the following lines are present and uncommented
  • /etc/cb/supervisord.templates/cb-datagrid.conf.template
    • environment=DATAGRID_INCLUDE="/etc/cb/datagrid/datagrid.in"
      
  • /etc/cb/cb.conf
    • CbJavaHome=/usr/lib/jvm/jre-11/