Elasticsearch service failure on Nagios Logserver
Posted: Wed Nov 10, 2021 6:59 am
I have been trying to stand up the latest version of Nagios Log server for several months. I had an open case on this in the past, but was told that because the server was using SELINUX that this was probably what was causing not getting the application working. Well, SELINUX is now disabled on this server ->
[myuid@myserver usr]$ getenforce
Disabled
I am still unable to get the app working. The problem seems to be that the elasticsearch service refuses to come up. See below.
[nyuid@myserver system]$ sudo systemctl status elasticsearch.service
Last login: Wed Nov 10 05:40:01 EST 2021 on cron
● elasticsearch.service - Elasticsearch
Loaded: loaded (/etc/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-11-10 05:24:39 EST; 19min ago
Docs: https://www.elastic.co
Process: 21544 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=233/RUNTIME_DIRECTORY)
Main PID: 21544 (code=exited, status=233/RUNTIME_DIRECTORY)
Nov 10 05:24:39 myserver systemd[1]: Ignoring invalid environment assignment 'if [ "$GET_ES_CONFIG_RETURN" !=0]; then': /etc/sysconfig/elasticsearch
Nov 10 05:24:39 myserver systemd[1]: Starting Elasticsearch...
Nov 10 05:24:39 myserver systemd[21544]: Failed at step RUNTIME_DIRECTORY spawning /usr/share/elasticsearch/bin/systemd-entrypoint: File exists
Nov 10 05:24:39 myserver systemd[1]: elasticsearch.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY
Nov 10 05:24:39 myserver systemd[1]: Failed to start Elasticsearch.
Nov 10 05:24:39 myserver systemd[1]: Unit elasticsearch.service entered failed state.
Nov 10 05:24:39 myserver systemd[1]: elasticsearch.service failed.
Any ideas??? Thank you in advance for your help.
[myuid@myserver usr]$ getenforce
Disabled
I am still unable to get the app working. The problem seems to be that the elasticsearch service refuses to come up. See below.
[nyuid@myserver system]$ sudo systemctl status elasticsearch.service
Last login: Wed Nov 10 05:40:01 EST 2021 on cron
● elasticsearch.service - Elasticsearch
Loaded: loaded (/etc/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-11-10 05:24:39 EST; 19min ago
Docs: https://www.elastic.co
Process: 21544 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=233/RUNTIME_DIRECTORY)
Main PID: 21544 (code=exited, status=233/RUNTIME_DIRECTORY)
Nov 10 05:24:39 myserver systemd[1]: Ignoring invalid environment assignment 'if [ "$GET_ES_CONFIG_RETURN" !=0]; then': /etc/sysconfig/elasticsearch
Nov 10 05:24:39 myserver systemd[1]: Starting Elasticsearch...
Nov 10 05:24:39 myserver systemd[21544]: Failed at step RUNTIME_DIRECTORY spawning /usr/share/elasticsearch/bin/systemd-entrypoint: File exists
Nov 10 05:24:39 myserver systemd[1]: elasticsearch.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY
Nov 10 05:24:39 myserver systemd[1]: Failed to start Elasticsearch.
Nov 10 05:24:39 myserver systemd[1]: Unit elasticsearch.service entered failed state.
Nov 10 05:24:39 myserver systemd[1]: elasticsearch.service failed.
Any ideas??? Thank you in advance for your help.