EDR: cbupgrade fails with "Error: Invalid value for "INDEX-DIR": Directory "/data/solr_migration_artifacts/old_cores/cbalerts/data/index" does not exist"
search cancel

EDR: cbupgrade fails with "Error: Invalid value for "INDEX-DIR": Directory "/data/solr_migration_artifacts/old_cores/cbalerts/data/index" does not exist"

book

Article ID: 291645

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

Error when running /usr/share/cb/cbupgrade 
usage: cb-solr-reindexer [OPTIONS] SOLR-CORE INDEX-DIR
Error: Invalid value for "INDEX-DIR": Directory "/var/cb/data/solr_migration_artifacts/old_cores/cbalerts/data/index" does not exist




 

Environment

  • EDR Server: All versions

Cause

There is an existing, empty /var/cb/data/solr_migration_artifacts/old_cores directory, possibly from a previous failed attempt

Resolution

  1. Move the problem directory
sudo mv /var/cb/data/solr_migration_artifacts /var/cb/data/old_solr_migration_artifacts
  1. Rerun the cbupgrade utility again and validate the error does not happen
  2. If the issue persists, update the ownership of /var/cb/data/solr_migration_artifacts/old_cores to cb:cb
chown cb:cb -R /var/cb/data/solr_migration_artifacts/old_cores

Additional Information

​​​​​​