Uninstalling Elasticsearch

The ElasticSearch could be installed either on a dedicated server, or on the main File Access Manager server.

You must use the Installation wizard if you want to move the Elasticsearch database from one server to another. Contact the File Access Manager Support Center if the Elasticsearch database must be moved after installation.

To uninstall the Elasticsearch:

  1. Open an elevated command line in Windows and run the following commands. After running the commands, close the cmd windows:

    1. "%SAILPOINT_HOME%\elasticsearch-5.1.1\bin\elasticsearch-service.bat" remove

    2. setx JAVA_HOME "" -m

      Note: There is no need to stop the Elasticsearch service before removing it.

      Note: In some instances, the service will still be listed in the WIndows services even though it has actually been removed. A refresh, waiting a few minutes, or a reboot (in extreme cases) will update the services list. We can trust that it has indeed been deleted.

  2. From windows Programs and Features, uninstall the Java 8. This program was installed by the installer to support the Elasticsearch.

  3. Delete the folder "%SAILPOINT_HOME%\elasticsearch-5.1.1". This folder stores the Elasticsearch program and configuration files, but not the actual stored data.

  4. Execute the following update in the DB, to mark that the Elasticsearch database is uninstalled :

    Copy
    declare @server_name nvarchar(100) = N'ELASTICSEARCH SERVER FQDN'
    delete
    FROM   [whiteops].[installed_service]
    WHERE  install_service_id = 20
    and    server_id = (select id from [whiteops].[install_server] where name = @server_name)

    ELASTICSEARCH SERVER FQDN

    This value must be replaced with the FQDN of the server from which we we wish to uninstall the Elasticsearch.

  5. Delete the Elasticsearch data folder. Deleting this folder will delete all the activities it stores, so make sure you want to delete it. If you wish to reinstall Elasticsearch at a later time and use these data, do not delete this folder.

  6. If this instance of the Elasticsearch is on a dedicated server - Uninstall the Watchdog service from this server

    1. Open the Server Installer

    2. Next till the Action Select page

    3. Click Uninstall File Access Manager Features from the current server

      Important: This procedure removes all services from this server, including the Server Installer itself.

      This will open the configuration summary page. In this case, the list of services will be empty. This is normal, since no services besides the watchdog are to be uninstalled.

  7. Click Next to start the uninstall process.

To reinstall Elasticsearch:

  1. Install Elasticsearch using the Server Installer.

  2. Restart the Event Manager services.

Note: If you do not delete the Elasticsearch data folder (described below), reinstaling the Elasticsearch will maintain all the data in the website as it was before Uninstalling.