Elasticsearch is not available

Elasticsearch webpage does not answer in the browser. The error message This site can’t be reached is displayed. Disk space overload and data loss might also indicate issues with Elasticsearch availability.

Solution

  1. Verify if the URL is correct. Elasticsearch URL starts with https:// prefix if TLS protocol is enabled on the server.
  2. Verify if Elasticsearch port number is exposed. Normally Elasticsearch port number is 9200.
  3. Login to the server using any terminal emulator. Verify disk space availability. Run the following command to check if there is space on your server for data. Clean directories regularly which are close to overload.
    df -h
  4. On the terminal emulator check if Elasticsearch process is running and check for its process number. Run the following command to check the process.
    ps -edf | grep elastic
  5. Stop the existing Elasticsearch process (if any) and restart your Elasticsearch.
  6. If Elasticsearch is still not available, see Investigating logs for further troubleshooting.