Hello
I installed java and Elasticsearch in vps
my vps have 4g ram and 50g ssd
when i start Elasticsearch this error display
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2022-03-01 09:05:08 UTC; 21min ago
Docs: https://www.elastic.co
Main PID: 27813 (code=exited, status=1/FAILURE)
Mar 01 09:05:08 194-31-194-14.cprapid.com systemd[1]: Starting Elasticsearch...
Mar 01 09:05:08 194-31-194-14.cprapid.com systemd-entrypoint[27813]: could not find java in ES_JAVA_HOME at /usr/openv/java/jre/bin/bin/java
Mar 01 09:05:08 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Mar 01 09:05:08 194-31-194-14.cprapid.com systemd[1]: Failed to start Elasticsearch.
Mar 01 09:05:08 194-31-194-14.cprapid.com systemd[1]: Unit elasticsearch.service entered failed state.
Mar 01 09:05:08 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service failed.
when i type this journalctl -xe
show
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
Mar 01 10:09:13 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN
Mar 01 10:09:22 194-31-194-14.cprapid.com polkitd[579]: Registered Authenticati
Mar 01 10:09:25 194-31-194-14.cprapid.com polkitd[579]: Operator of unix-proces
Mar 01 10:09:25 194-31-194-14.cprapid.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.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd-entrypoint[31053]: could not
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service: ma
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: Failed to start Elasticse
-- 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.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: Unit elasticsearch.servic
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service fai
Mar 01 10:09:25 194-31-194-14.cprapid.com polkitd[579]: Unregistered Authentica
Mar 01 10:09:34 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN
lines 2218-2240/2240 (END)
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has finished shutting down.
Mar 01 10:09:04 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=175
Mar 01 10:09:05 194-31-194-14.cprapid.com polkitd[579]: Operator of unix-process:30975:6977549 successfully authenticated as unix-user:doki
Mar 01 10:09:07 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=175
Mar 01 10:09:08 194-31-194-14.cprapid.com polkitd[579]: Operator of unix-process:30975:6977549 successfully authenticated as unix-user:doki
Mar 01 10:09:08 194-31-194-14.cprapid.com systemd[1]: Reloading.
Mar 01 10:09:08 194-31-194-14.cprapid.com polkitd[579]: Unregistered Authentication Agent for unix-process:30975:6977549 (system bus name :1.15
Mar 01 10:09:10 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=185
Mar 01 10:09:13 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=175
Mar 01 10:09:22 194-31-194-14.cprapid.com polkitd[579]: Registered Authentication Agent for unix-process:31038:6980552 (system bus name :1.1557
Mar 01 10:09:25 194-31-194-14.cprapid.com polkitd[579]: Operator of unix-process:31038:6980552 successfully authenticated as unix-user:doki
Mar 01 10:09:25 194-31-194-14.cprapid.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.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd-entrypoint[31053]: could not find java in ES_JAVA_HOME at /usr/openv/java/jre/bin/bin/java
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Mar 01 10:09:25 194-31-194-14.cprapid.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.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: Unit elasticsearch.service entered failed state.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service failed.
Mar 01 10:09:25 194-31-194-14.cprapid.com polkitd[579]: Unregistered Authentication Agent for unix-process:31038:6980552 (system bus name :1.15
Mar 01 10:09:34 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=162
lines 2218-2240/2240 (END)
Mar 01 10:09:13 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=175.9.53.101 DST=1
Mar 01 10:09:22 194-31-194-14.cprapid.com polkitd[579]: Registered Authentication Agent for unix-process:31038:6980552 (system bus name :1.1557 [/usr/bin/pktt
Mar 01 10:09:25 194-31-194-14.cprapid.com polkitd[579]: Operator of unix-process:31038:6980552 successfully authenticated as unix-user:doki to gain
Mar 01 10:09:25 194-31-194-14.cprapid.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.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd-entrypoint[31053]: could not find java in ES_JAVA_HOME at /usr/openv/java/jre/bin/bin/java
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Mar 01 10:09:25 194-31-194-14.cprapid.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.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: Unit elasticsearch.service entered failed state.
Mar 01 10:09:25 194-31-194-14.cprapid.com systemd[1]: elasticsearch.service failed.
Mar 01 10:09:25 194-31-194-14.cprapid.com polkitd[579]: Unregistered Authentication Agent for unix-process:31038:6980552 (system bus name :1.1557, object path
Mar 01 10:09:34 194-31-194-14.cprapid.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:48:03:3d:08:55:31:31:43:14:08:00 SRC=162.142.125.143 DS
lines 2218-2240/2240 (END)