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.
Workaround
- 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.
- Delete the .es_temp_file file.
- Start the Presentation Server by running the following command:
tssh server start
- Run the following command and ensure that the Index Server is up and running:
tssh server status
Where to go from here
Troubleshooting-the-Presentation-Server-and-the-TrueSight-console.