If you are running an elastic search in your local environment or on a hosted environment you might come across the following error. You can view this error in Event Viewer and System logs.

The Elasticsearch 5.5.3 (Elasticsearch5.5.3) service terminated with the following service-specific error:
Incorrect function.

The version might be different but the error is the same. The error normally comes after a Java upgrade or after a windows upgrade.

Elastic search windows service can not able to find the java JRE folder.

Solution

The simplest solution is to check if the Java folder is available on the path mentioned in your environment variable. If this is not available then please reinstall Java.

Categorized in: