hi, i am facing a few issues for the Magento2.4.x installation.
The process' exit code is 'exited' and its exit status is 78.
Jul 04 02:12:40 somehost systemd[1]: elasticsearch.service: Failed with result>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit elasticsearch.service has entered the 'failed' state with result 'e>
Jul 04 02:12:40 ocizoqolo systemd[1]: Failed to start Elasticsearch.
-- Subject: A start job for unit elasticsearch.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
jvm options
# Xmx represents the maximum size of total heap space
-Xms256m
-Xmx256m
#############
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
systemd[1]: Failed to start Elasticsearch.
gclog21
[2021-07-04T08:08:51.782+0000][73994][gc,heap,exit] region size 1024K, 2 young (2048K), 0 survivors (0K)
[2021-07-04T08:08:51.782+0000][73994][gc,heap,exit] Metaspace used 3309K, capacity 4480K, committed 4480K, reserved 1056768K
[2021-07-04T08:08:51.782+0000][73994][gc,heap,exit] class space used 266K, capacity 384K, committed 384K, reserved 1048576K
i installed elasticsearch 7.6.0 following the steps
$apt remove elasticsearch
$apt purge elasticsearch
$apt install elasticsearch=7.6.0
$systemctl daemon-reload
$systemctl enable elasticsearch.service
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service → /lib/systemd/system/elasticsearch.service.
$systemctl start elasticsearch.service
Job for elasticsearch.service failed because a fatal signal was delivered to the control process.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
$ journalctl -xe
--
-- The process' exit code is 'killed' and its exit status is 9.
Jul 04 12:21:48 somehost systemd[1]: elasticsearch.service: Failed with result>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit elasticsearch.service has entered the 'failed' state with result 's>
Jul 04 12:21:48 myhost systemd[1]: Failed to start Elasticsearch.
-- Subject: A start job for unit elasticsearch.service has failed
$cat jvm.options|grep '256m'
-Xms256m
-Xmx256m
then changed elasticsearch.yml file
$cat /etc/elasticsearch/elasticsearch.yml|grep localhost
network.host: localhost
$cat /etc/elasticsearch/elasticsearch.yml|grep 127.0.0.1
# The default list of hosts is ["127.0.0.1", "[::1]"]
discovery.seed_hosts: ["127.0.0.1", "[::1]"]
mostly it goes well with systemctl start elasticsearch and i got
i think it was best for me as my max memory is 1G . i am with always free tier of OCI now. possibly if i move out from development i will put up 1G then. also I am planing to get separate host for this in future eg. t3. small or something on gcp would work best in that case. but i don't know how to integrate something like that with magento also magento community support forum had very limited response on such thing. increasing it to 512m will take a long time now for simple restart.
and i faced
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.