java.lang.InternalError: internal error: SHA-1 not available


Sorry if this question has been asked before, i searched but no where to be found

I'm unable to start elasticsearch
I did reinstall JAVA but nothing changed

Trying to use elasticsearch with wordpress
Following this GitHub - 10up/ElasticPress: A fast and flexible search and query engine for WordPress. Tuto

I installed Elastic before java (just a mistake)
OS centos 7.1
Elasticsearch v5.4

service elasticsearch status
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-05-22 22:36:40 UTC; 2s ago
Process: 1657 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/ --quiet -Edefault.path.logs=${LOG_DIR}${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=128)
Process: 1655 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 1657 (code=exited, status=128)

May 22 22:36:37 Movie systemd[1]: Starting Elasticsearch...
May 22 22:36:37 Movie systemd[1]: Started Elasticsearch.
May 22 22:36:40 Movie systemd[1]: elasticsearch.service: main process exited, code=exited, status=128/n/a
May 22 22:36:40 Movie systemd[1]: Unit elasticsearch.service entered failed state.
May 22 22:36:40 Movie systemd[1]: elasticsearch.service failed.

elasticsearch.yml mycluster mycluster1 localhost
http.port: 9200


[ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [mycluster1] fatal error in thread [main], exiting
java.lang.InternalError: internal error: SHA-1 not available.
at ~[?:1.8.0_131]
at ~[?:1.8.0_131]
at ~[?:1.8.0_131]
at ~[?:1.8.0_131]
at$TempDirectory.( ~[?:1.8.0_131]
at ~[?:1.8.0_131]
at com.sun.jna.Native.extractFromResourcePath( ~[jna-4.4.0.jar:4.4.0 (b0)]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath( ~[jna-4.4.0.jar:4.4.0 (b0)]
at com.sun.jna.Native.loadNativeDispatchLibrary( ~[jna-4.4.0.jar:4.4.0 (b0)]
at com.sun.jna.Native.( ~[jna-4.4.0.jar:4.4.0 (b0)]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_131]
at java.lang.Class.forName( ~[?:1.8.0_131]
at org.elasticsearch.bootstrap.Natives.( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.setup( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.init( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.init( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.Command.main( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.main( ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.main( ~[elasticsearch-5.4.0.jar:5.4.0]
Caused by: SHA MessageDigest not available
at ~[?:1.8.0_131]
at ~[?:1.8.0_131]
at ~[?:1.8.0_131]
at ~[?:1.8.0_131]
... 22 more

You have misconfigured your Java.

Remove all Java packages and installations, including custom environment variables, and re-install the JDK you want again.

Hi jprante

Thank You for your reply

I did forgot to mention that i'm using centmin mod, if that may play a role.

As for java all i did is yum install java, nothing more.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.