Index Server is not running after restarting the Presentation Server

The Index Server fails to restart sometimes when you restart the Presentation Server. You can see the following error message in the indexserver.log file:

Caused by: java.nio.file.FileAlreadyExistsException: <Presentation Server Installation Directoy>/truesightpserver/bin/../modules/elasticsearch/data/nodes/0/indices/1lIvz2wZROGt4JXKcM5DqQ/33/index/.es_temp_file

Probable cause: 

When you restart the Presentation Server, the .es_temp_file Elasticsearch file is created in different directories to help the Index Server process to verify the directory access. If the .es_temp_file file that is created temporarily during the restart operation is not deleted, the next Index Server restart operation fails.

Note

The directory path in the preceding error message varies depending on the directory in which the .es_temp_file is found.

Workaround

  1. From the command prompt, navigate to the directory specified in the error message. For example, in the preceding error message, .es_temp_file is present in the <Presentation Server Installation Directoy>/truesightpserver/bin/../modules/elasticsearch/data/nodes/0/indices/1lIvz2wZROGt4JXKcM5DqQ/33/index/ directory. 
  2. Delete the .es_temp_file file.
  3. Start the Presentation Server by running the following command:
    tssh server start
  4. Run the following command and ensure that the Index Server is up and running:
    tssh server status
Was this page helpful? Yes No Submitting... Thank you

Comments