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:
Switch to the novell user:
su novell
Delete the file <sentinel_installation_path>/opt/novell/sentinel/3rdparty/elasticsearch/config/elasticsearch.keystore.tmp.
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>
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
Refer to Enabling Event Visualization in Sentinel and perform step 5 to step 11, for configuring Elasticsearch.
Restart the Sentinel:
rcsentinel restart