XF 2.2 elasticsearch is acting up. can i just reinstall?

Joshua

Active member
Can't figure out why elasticsearch won't start up. Can I just safely remove and reinstall without breaking anything? Gonna use this guide: https://community.centminmod.com/threads/how-to-install-elasticsearch-7-x-for-xenforo.19272/

Code:
[05:46][root@epn2022 ~]# systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/elasticsearch.service.d
           └─openfileslimit.conf
   Active: failed (Result: exit-code) since Sat 2024-03-02 02:42:52 UTC; 3h 3min ago
     Docs: https://www.elastic.co
  Process: 3066 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=134)
 Main PID: 3066 (code=exited, status=134)

Mar 02 02:42:52 epn2022 systemd-entrypoint[3066]: #
Mar 02 02:42:52 epn2022 systemd-entrypoint[3066]: # An error report file with more information is saved as:
Mar 02 02:42:52 epn2022 systemd-entrypoint[3066]: # /tmp/hs_err_pid3096.log
Mar 02 02:42:52 epn2022 systemd-entrypoint[3066]: #
Mar 02 02:42:52 epn2022 systemd-entrypoint[3066]: #
Mar 02 02:42:52 epn2022 systemd-entrypoint[3066]: /usr/share/elasticsearch/bin/elasticsearch-env: line 83:  3096 Aborted                 "$JAVA" "$XSHARE" -cp "$ES_CLASSPATH" org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Mar 02 02:42:52 epn2022 systemd[1]: elasticsearch.service: main process exited, code=exited, status=134/n/a
Mar 02 02:42:52 epn2022 systemd[1]: Failed to start Elasticsearch.
Mar 02 02:42:52 epn2022 systemd[1]: Unit elasticsearch.service entered failed state.
Mar 02 02:42:52 epn2022 systemd[1]: elasticsearch.service failed.
 
I've just restarted it on your server, an d it's up and running now:

Code:
[06:09][root@epn2022 elasticsearch]# systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/elasticsearch.service.d
           └─openfileslimit.conf
   Active: active (running) since Sat 2024-03-02 06:09:42 UTC; 18s ago
     Docs: https://www.elastic.co
 Main PID: 10277 (java)
   CGroup: /system.slice/elasticsearch.service
           ├─10277 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -X...
           └─10475 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

Mar 02 06:09:29 epn2022 systemd[1]: Starting Elasticsearch...
Mar 02 06:09:42 epn2022 systemd[1]: Started Elasticsearch.

Is it failing intermittently? The last error messages I could see were disk space related, which shouldn't be an issue now.
 
Back
Top Bottom