Skip to main content

install elasticsearch 7.x on cpanel whm

Comments

9 comments

  • andrew.n
    What does journalctl -xe shows?
    0
  • madamada
    -- Unit user-1015.slice has finished shutting down. Jan 03 12:22:20 srv6.le.com polkitd[652]: Registered Authentication Agent for unix-process:31749:92031614 (system bus name :1.450885 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, loca Jan 03 12:22:20 srv6.le.com systemd[1]: Starting Elasticsearch... -- Subject: Unit elasticsearch.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit elasticsearch.service has begun starting up. Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: fatal error in thread [main], exiting Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.systemd.Libsystemd.lambda$static$0(Libsystemd.java:34) Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.systemd.Libsystemd.(Libsystemd.java:33) Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.systemd.SystemdPlugin.sd_notify(SystemdPlugin.java:126) Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.systemd.SystemdPlugin.onNodeStarted(SystemdPlugin.java:137) Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1511 Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.node.Node.start(Node.java:902) Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.jav Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsea Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elastic Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(Env Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Co Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.cli.Command.main(Command.java:90) Jan 03 12:22:34 srv6.e.com systemd-entrypoint[31755]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsea Jan 03 12:22:34 srv6.le.com systemd-entrypoint[31755]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsea Jan 03 12:22:34 srv6.le.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE Jan 03 12:22:34 srv6.le.com systemd[1]: Failed to start Elasticsearch. -- Subject: Unit elasticsearch.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit elasticsearch.service has failed. -- -- The result is failed. Jan 03 12:22:34 srv6.le.com systemd[1]: Unit elasticsearch.service entered failed state. Jan 03 12:22:34 srv6.le.com systemd[1]: elasticsearch.service failed. Jan 03 12:22:34 srv6.le.com polkitd[652]: Unregistered Authentication Agent for unix-process:31749:92031614 (system lines 4077-4099/4099 (END)
    0
  • andrew.n
    Give this a try:
    -1
  • madamada
    Give this a try:
    0
  • andrew.n
    I'm happy I could help. Take care
    0
  • ahmadroje
    I have an error please help me Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
    0
  • andrew.n
    and have you made sure the folder exist? You might need to follow up with ElasticSearch support in order to get this resolved as this forum is for primary cPanel related issues.
    0
  • kodeslogic
    Try: curl -XGET 'http://localhost:9200'
    Expected Output: [QUOTE] { "status" : 200, "name" : "Paradigm", "cluster_name" : "elasticsearch", "version" : { "number" : "6.8.12", "build_hash" : "16e5641082fg1fb57e1g5gb7ff75ecd8eg760793", "build_timestamp" : "2019-11-21T10:15:28Z", "build_snapshot" : false, "lucene_version" : "4.10.4" }, "tagline" : "You Know, for Search" }
    You need to make sure that port 9200 is open otherwise you will see this connection refused error: curl -XGET 'http://localhost:9200/' curl: (7) Failed connect to localhost:9200; Connection refused
    0
  • cPRex Jurassic Moderator
    Great collaboration here, guys!
    0

Please sign in to leave a comment.