32.5 Error While Adding a Password to the Elasticsearch Keystore on Upgrade Setup

FileAlreadyExistsException error message is displayed while running the below command on upgrade setup:

./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password

Workaround:

  1. Switch to the novell user:

    su novell
  2. Delete the file <sentinel_installation_path>/opt/novell/sentinel/3rdparty/elasticsearch/config/elasticsearch.keystore.tmp.

  3. Delete the certificate <sentinel_installation_path>/opt/novell/sentinel/3rdparty/elasticsearch/config/http.pks and run the following command to regenerate the certificate:

    <sentinel_installation_path>/opt/novell/sentinel/bin/javacert.sh --generateES <sentinel_installation_path>/opt/novell/sentinel/3rdparty/elasticsearch/config/http.pks <password> <keyalias>
  4. Run the following command in <sentinel_installation_path>/opt/novell/sentinel/3rdparty/elasticsearch, to add the password for the certificate created in the above step to the Elasticsearch keystore:

    ./bin/elasticsearch-keystore add xpack.security.http.ssl.keystore.secure_password
  5. Refer to Enabling Event Visualization in Sentinel and perform step 5 to step 11, for configuring Elasticsearch.

  6. Restart the Sentinel:

    rcsentinel restart