From 8c6f5f35affa0a0f94cf355a6d421d1e8a786d8d Mon Sep 17 00:00:00 2001 From: evgeniy-antonyuk Date: Tue, 21 Jun 2022 19:05:27 +0300 Subject: [PATCH] Fix timeout error when starting elasticsearch --- run-community-server.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run-community-server.sh b/run-community-server.sh index f020c1f..8d161ae 100644 --- a/run-community-server.sh +++ b/run-community-server.sh @@ -1203,6 +1203,8 @@ if [ ${ELASTICSEARCH_SERVER_HOST} ]; then rm -f /usr/lib/systemd/system/elasticsearch.service rm -f /etc/init.d/elasticsearch else + sed "s,\(\TimeoutStartSec=\).*,\1"300"," -i /usr/lib/systemd/system/elasticsearch.service #Fix error 'Failed with result timeout' + systemctl daemon-reload systemctl enable elasticsearch.service fi