EDR: Upgrade failed from 6.x to 7.4.0

EDR: Upgrade failed from 6.x to 7.4.0

Environment

  • EDR Server: 6.x

Symptoms

  • Upgrading from 6.x to 7.4.0
  • Get the following error while running /usr/share/cb/cbupgrade
SOLR 6 UPGRADE
--------------------------------------------------------------------------------
Scanning for legacy (Solr 4.x) cores that need to first be upgraded to Solr 5.x
Checking index folder for legacy cores: /var/cb/data/solr5/cbalerts/data/index
Empty Solr core detected, rewriting index.
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.apache.lucene.codecs.Codec$Holder
        at org.apache.lucene.codecs.Codec.getDefault(Codec.java:140)
        at org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:120)
        at org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:140)
        at com.carbonblack.cbfs.solr.upgrade.CbSolrUpgrader.run(CbSolrUpgrader.kt:52)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:170)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:16)
        at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:258)
        at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:255)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:273)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:298)
        at com.carbonblack.cbfs.solr.upgrade.CbSolrUpgraderKt.main(CbSolrUpgrader.kt:80)
Unexpected error while upgrading solr cores.

Cause

  • A known bug CB-34047

Resolution

 1. Download the updated jar file from https://sflinks.carbonblack.com/7UeZLBV1pCQ/
 2. Backup /usr/share/cb/datastore/solr-index-upgrader/solr-index-upgrader-7.4.0.jar
mv /usr/share/cb/datastore/solr-index-upgrader/solr-index-upgrader-7.4.0.jar /usr/share/cb/datastore/solr-index-upgrader/solr-index-upgrader-7.4.0.jar.bak
3.  Place the downloaded jar file in /usr/share/cb/datastore/solr-index-upgrader/
4.  Run 
/usr/share/cb/cbupgrade

Related Content


Labels (1)
Was this article helpful? Yes No
100% helpful (2/2)
Article Information
Author:
Creation Date:
‎01-18-2021
Views:
473
Contributors