# Some install bugs - probably there is solution, not yet found by me

**URL:** <https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970>\
**Category:** Elasticsearch\
**Created:** [February 4, 2015, 11:05am UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970 "2015-02-04T11:05:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 4, 2015, 11:05am UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/1 "2015-02-04T11:05:24Z")

</div>

Hi,  
I have tested instalation of elastic search on SLES 11SP3 x64 and also on  
DEBIAN 7.8 x64.

But have some issues:  
_SLES 11SP3_

1. After installation ( from rpm or tgz ) the service/daemon is not created  
in correct folder, but in :  
/etc/init.d/init.d/  
instead of  
/etc/init.d/

2. I have copied/moved from the wrong to the correct path, but still  
receive the error messages at execution of service with several parameters:  
.... start :  
Starting elasticsearch: /etc/init.d/elasticsearch: line 89: daemon: command  
not found

_daemon --user $ES\_USER --pidfile $pidfile $exec -p $pidfile -d  
-Des.default.path.home=$ES\_HOME -Des.default.path.logs=$LOG\_DIR  
-Des.default.path.data=$DATA\_DIR -Des.default.path.work=$WORK\_DIR  
-Des.default.path.conf=$CONF\_DIR_  
daemon --user elasticsearch --pidfile  
/var/run/elasticsearch/elasticsearch.pid  
/usr/share/elasticsearch/bin/elasticsearch -p  
/var/run/elasticsearch/elasticsearch.pid -d  
-Des.default.path.home=/usr/share/elasticsearch  
-Des.default.path.logs=/var/log/elasticsearch  
-Des.default.path.data=/var/lib/elasticsearch  
-Des.default.path.work=/tmp/elasticsearch  
-Des.default.path.conf=/etc/elasticsearch

.... status:  
/etc/init.d/elasticsearch: line 121: status: command not found

_status -p $pidfile $prog_  
status -p /var/run/elasticsearch/elasticsearch.pid elasticsearch

.... restart/force-reload:  
Stopping elasticsearch: killproc: Usage:  
killproc [-v] [-q] [-L] [-g|-G] [-N] [-p pid\_file] [-i ingnore\_file]   
[-c root] [-t] [-SIG] /full/path/to/executable  
killproc -l

Starting elasticsearch: /etc/init.d/elasticsearch: line 89: daemon: command  
not found

_killproc -p $pidfile -d 20 $prog_  
killproc -p /var/run/elasticsearch/elasticsearch.pid -d 20 elasticsearch

It looks like the compilation and service/daemon script is not correctly  
configured.

daemon: is not declared in script, command does not exists in OS  
status: is not declared in script, command does not exists in OS

what should be the right declaration of daemon and status?  
for daemon I suppose that it should be the executable of application (  
_/usr/share/elasticsearch/bin/elasticsearch_ ) but I am not sure regarding  
status

_DEBIAN 7.8_:  
Currently I have found no issue. Need to check and walk thrue the scripts  
and configurations

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/25a24045-67b3-4e5d-9253-89a0b5f833ba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/25a24045-67b3-4e5d-9253-89a0b5f833ba%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 6, 2015, 8:04am UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/2 "2015-02-06T08:04:55Z")

</div>

one fix:  
2. ...start:  
_start\_daemon -u $ES\_USER -p $pidfile $exec -p $pidfile -d  
-Des.default.path.home=$ES\_HOME -Des.default.path.logs=$LOG\_DIR  
-Des.default.path.data=$DATA\_DIR -Des.default.path.work=$WORK\_DIR  
-Des.default.path.conf=$CONF\_DIR_  
start\_daemon -u elasticsearch -p /var/run/elasticsearch/elasticsearch.pid  
/usr/share/elasticsearch/bin/elasticsearch -p  
/var/run/elasticsearch/elasticsearch.pid -d  
-Des.default.path.home=/usr/share/elasticsearch  
-Des.default.path.logs=/var/log/elasticsearch  
-Des.default.path.data=/var/lib/elasticsearch  
-Des.default.path.work=/tmp/elasticsearch  
-Des.default.path.conf=/etc/elasticsearch

Do not forget to change owner and group on:  
/var/run/elasticsearch  
/var/log/elasticsearch  
/var/lib/elasticsearch  
/tmp/elasticsearch

chown -R elasticsearch /var/log/elasticsearch  
chown -R elasticsearch /var/lib/elasticsearch  
chown -R elasticsearch /tmp/elasticsearch  
chgrp -R elasticsearch /var/lib/elasticsearch  
chgrp -R elasticsearch /tmp/elasticsearch  
chgrp -R elasticsearch /var/log/elasticsearch  
chmod -R 755 /tmp/elasticsearch /var/log/elasticsearch  
/var/lib/elasticsearch

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/317b103b-6921-4720-83ad-a864c637c6cd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/317b103b-6921-4720-83ad-a864c637c6cd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 6, 2015, 8:43am UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/3 "2015-02-06T08:43:21Z")

</div>

one fix:  
2. ...start:  
_start\_daemon -u $ES\_USER -p $pidfile $exec -p $pidfile -d  
-Des.default.path.home=$ES\_HOME -Des.default.path.logs=$LOG\_DIR  
-Des.default.path.data=$DATA\_DIR -Des.default.path.work=$WORK\_DIR  
-Des.default.path.conf=$CONF\_DIR_  
start\_daemon -u elasticsearch -p /var/run/elasticsearch/  
elasticsearch.pid /usr/share/elasticsearch/bin/elasticsearch -p  
/var/run/elasticsearch/elasticsearch.pid -d  
-Des.default.path.home=/usr/share/elasticsearch  
-Des.default.path.logs=/var/log/elasticsearch  
-Des.default.path.data=/var/lib/elasticsearch  
-Des.default.path.work=/tmp/elasticsearch  
-Des.default.path.conf=/etc/elasticsearch

Do not forget to change owner and group on:  
/var/run/elasticsearch  
/var/log/elasticsearch  
/var/lib/elasticsearch  
/tmp/elasticsearch

chown -R elasticsearch /var/log/elasticsearch  
chown -R elasticsearch /var/lib/elasticsearch  
chown -R elasticsearch /tmp/elasticsearch  
chgrp -R elasticsearch /var/lib/elasticsearch  
chgrp -R elasticsearch /tmp/elasticsearch  
chgrp -R elasticsearch /var/log/elasticsearch  
chmod -R 775 /tmp/elasticsearch /var/log/elasticsearch  
/var/lib/elasticsearch

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9edd8e18-7c6f-4999-a07a-635175a8be41%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9edd8e18-7c6f-4999-a07a-635175a8be41%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 6, 2015, 8:43am UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/4 "2015-02-06T08:43:49Z")

</div>

one fix:  
2. ...start:  
_start\_daemon -u $ES\_USER -p $pidfile $exec -p $pidfile -d  
-Des.default.path.home=$ES\_HOME -Des.default.path.logs=$LOG\_DIR  
-Des.default.path.data=$DATA\_DIR -Des.default.path.work=$WORK\_DIR  
-Des.default.path.conf=$CONF\_DIR_  
start\_daemon -u elasticsearch -p /var/run/elasticsearch/  
elasticsearch.pid /usr/share/elasticsearch/bin/elasticsearch -p  
/var/run/elasticsearch/elasticsearch.pid -d  
-Des.default.path.home=/usr/share/elasticsearch  
-Des.default.path.logs=/var/log/elasticsearch  
-Des.default.path.data=/var/lib/elasticsearch  
-Des.default.path.work=/tmp/elasticsearch  
-Des.default.path.conf=/etc/elasticsearch

Do not forget to change owner and group on:  
/var/run/elasticsearch  
/var/log/elasticsearch  
/var/lib/elasticsearch  
/tmp/elasticsearch

chown -R elasticsearch /var/log/elasticsearch  
chown -R elasticsearch /var/lib/elasticsearch  
chown -R elasticsearch /tmp/elasticsearch  
chgrp -R elasticsearch /var/lib/elasticsearch  
chgrp -R elasticsearch /tmp/elasticsearch  
chgrp -R elasticsearch /var/log/elasticsearch  
chmod -R 775 /tmp/elasticsearch /var/log/elasticsearch  
/var/lib/elasticsearch

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8dc53345-cff5-4d6b-badc-4c5dd73f9fba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8dc53345-cff5-4d6b-badc-4c5dd73f9fba%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 10, 2015, 2:06pm UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/5 "2015-02-10T14:06:14Z")

</div>

I have finaly recreated from scratch the whole startup script for SLES. so  
in case that someone is interested, please let me known, I will send the  
daemon script. After some tests and some approvals I will put it here also.

It is standard start stop with feature which chceck if the ES service is  
running in the BG with the same CONF\_DIR.  
In case that it is running, it will not allow you to start the service and  
provide som information regarding that process.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2fa3f128-8177-41de-baeb-d4f4df4853c8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2fa3f128-8177-41de-baeb-d4f4df4853c8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 25, 2015, 2:47pm UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/6 "2015-02-25T14:47:03Z")

</div>

Hi, bellow is service script, it has some small bugs but works fine for me:

#!/bin/sh

# ElastiSearch daemon start/stop script.

# Comments to support chkconfig on RedHat Linux

# chkconfig: 2345 64 36

#title : elasticsearch  
#description : This script is used such a damon/service start/stop script.  
#author : Peter TAKAC / AssmodeuS  
#date : 20150210  
#version : 0.15  
#usage : service elasticsearch  
#notes : service start/stop script, also check the conf path. if  
proces with the same path runs, it will not start it  
#bash\_version : 3.2.51(1)

# 

### BEGIN INIT INFO

# Provides: Elasticsearch

# Required-Start: $network $named

# Required-Stop: $network $named

# Should-Start: ypbind nscd ldap ntpd xntpd

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: This service manages the Elasticsearch daemon

# Description: Elasticsearch is a very scalable, schema-free and

high-performance search solution supporting multi-tenancy and near realtime  
search.

### END INIT INFO

# Basic variables and settings

es\_home="/SIP/elasticsearch/es-int-inst"  
es\_bindir="$es\_home/bin"  
es\_exec="elasticsearch"  
es\_prog="$es\_bindir/$es\_exec"  
es\_pidpath="/var/run/elasticsearch"  
es\_pidfile="$es\_pidpath/${es\_exec}.pid"  
es\_lockdir="/var/lock/subsys"  
es\_lockfile="$es\_lockdir/$es\_exec"  
es\_user=elasticsearch  
es\_group=elasticsearch

# Heap size defaults to 256m min, 1g max

# Set ES\_HEAP\_SIZE to 50% of available RAM, but no more than 31g

#ES\_HEAP\_SIZE=2g

# Heap new generation

#ES\_HEAP\_NEWSIZE=

# max direct memory

#ES\_DIRECT\_SIZE=

# Additional Java OPTS

#ES\_JAVA\_OPTS=

# Maximum number of open files

MAX\_OPEN\_FILES=65535

# Maximum amount of locked memory

#MAX\_LOCKED\_MEMORY=

#More application related settings

# Elasticsearch log directory

es\_logdir="$es\_home/logs/$es\_exec"

# Elasticsearch data directory

es\_datadir="/SIP/elasticsearch/es-int-data"

# Elasticsearch work directory

es\_workdir="$es\_home/work"

# Elasticsearch configuration directory

#es\_confdir=/etc/$es\_exec  
es\_confdir="$es\_home/config"

# Elasticsearch configuration file (elasticsearch.yml)

es\_confile="$es\_confdir/elasticsearch.yml"

# Maximum number of VMA (Virtual Memory Areas) a process can own

MAX\_MAP\_COUNT=262144  
es\_daemon="$es\_bindir/$es\_exec"  
es\_daemon\_opts="-d -p $es\_pidfile -Des.default.path.home=$es\_home  
-Des.default.path.logs=$es\_logdir -Des.default.path.data=$es\_datadir  
-Des.default.path.work=$es\_workdir -Des.default.path.conf=$es\_confdir"

PATH=$PATH:$es\_home  
export PATH  
export JAVA\_HOME  
export ES\_HEAP\_SIZE  
export ES\_HEAP\_NEWSIZE  
export ES\_DIRECT\_SIZE  
export ES\_JAVA\_OPTS

# Default value, in seconds, after which the script should timeout waiting

# for server start.

# 0 means do not wait at all

# Negative numbers mean to wait indefinitely

service\_startup\_timeout=900

# 

# Use LSB init script functions for printing messages, if possible

# 

lsb\_functions="/lib/lsb/init-functions"  
if test -f $lsb\_functions ; then  
. $lsb\_functions  
else  
log\_success\_msg()  
{  
echo " SUCCESS! $@"  
}  
log\_failure\_msg()  
{  
echo " ERROR! $@"  
}  
fi

mode=$1 # start or stop

[$# -ge 1] && shift

case `echo "testing\c"`,`echo -n testing` in  
_c_,-n\*) echo\_n= echo\_c= ;;  
_c_,\*) echo\_n=-n echo\_c= ;;  
\*) echo\_n= echo\_c='\c' ;;  
esac

wait\_for\_pid () {  
verb="$1" # created | removed  
pid="$2" # process ID of the program operating on  
the pid-file  
pid\_file\_path="$3" # path to the PID file.

i=0  
avoid\_race\_condition="by checking again"

while test $i -ne $service\_startup\_timeout ; do

```
case "$verb" in
  'created')
    # wait for a PID-file to pop into existence.
    test -s "$pid_file_path" && i='' && break
  ;;
  'removed')
    # wait for this PID-file to disappear
    test ! -s "$pid_file_path" && i='' && break
  ;;
  *)
    echo "wait_for_pid () usage: wait_for_pid created|removed pid 

```

pid\_file\_path"  
exit 1  
;;  
esac

```
# if server is not running, then pid-file will never be updated
if test -n "$pid"; then
  if kill -0 "$pid" 2>/dev/null; then
    : # the server still runs
  else
    # The server may have exited between the last pid-file check and 

```

now.  
if test -n "$avoid\_race\_condition"; then  
avoid\_race\_condition=""  
continue # Check again.  
fi  
# there is nothing that will affect the file.  
log\_failure\_msg "The server quit without updating PID file  
($pid\_file\_path)."  
return 1 # not waiting any more.  
fi  
fi

```
echo $echo_n ".$echo_c"
i=`expr $i + 1`
sleep 1

```

done

if test -z "$i" ; then  
log\_success\_msg  
return 0  
else  
log\_failure\_msg  
return 1  
fi  
}

# 

# Set pid file if not given

# 

if test -z "$es\_pidfile"  
then  
es\_pidfile=$es\_datadir/`hostname`.pid  
else  
case "$es\_pidfile" in  
/\* ) ;;  
\* ) es\_pidfile="$es\_datadir/$es\_pidfile" ;;  
esac  
fi

case "$mode" in  
'start')  
# Start daemon  
# Safeguard (relative paths, core dumps..)  
cd $es\_home  
echo $echo\_n "Starting $es\_exec:"  
if test -x "$es\_bindir/$es\_exec" ; then  
es\_pidc=$(ps axwwo pid,cmd|grep -v grep|grep $es\_confdir -c -w)  
#echo "start\_daemon -u $es\_user -p $es\_pidfile $es\_daemon  
$es\_daemon\_opts \>/dev/null 2\>&1 &"  
if [[$es\_pidc -ge "1"]]; then  
es\_pid=$(ps axwwo pid,cmd|grep -v grep|grep $es\_confdir|cut -c1-5)  
echo " ${stat}${warn}failed! ${norm}"  
if test -s "$es\_pidfile" ; then  
read es\_pidf \< "$es\_pidfile"  
else  
es\_pidf="0"  
fi  
if [[$es\_pid -eq $es\_pidf]]; then  
echo "${attn}Already running with the same config file! ${norm}"  
else  
echo "${attn}Already running with the same config file but PID  
and PID-file does not match! ${norm}"  
fi  
echo "PID: "$es\_pid  
echo "For details please type: ps -Flj --pid=PID#ABOVE"  
else  
chown -R $es\_user $es\_pidpath  
chgrp -R $es\_group $es\_pidpath  
#$es\_daemon $es\_daemon\_opts \>/dev/null 2\>&1 &  
#startproc -u $es\_user -p $es\_pidfile $es\_daemon $es\_daemon\_opts

> /dev/null 2\>&1 &  
> start\_daemon -u $es\_user -p $es\_pidfile $es\_daemon $es\_daemon\_opts  
> /dev/null 2\>&1 &  
> wait\_for\_pid created "$!" "$es\_pidfile"; return\_value=$?  
> # Make lock for RedHat / SuSE  
> if test -w "$es\_lockdir"  
> then  
> touch "$es\_lockfile"  
> fi  
> #echo  
> #exit $return\_value  
> fi  
> else  
> log\_failure\_msg "Could not find Elasticsearch ($es\_bindir/$es\_exec)"  
> fi  
> ;;

'stop')  
# Stop daemon. We use a signal here to avoid having to know the  
# root password.

```
if test -s "$es_pidfile"
then
  es_pid=`cat "$es_pidfile"`
  if (kill -0 $es_pid 2>/dev/null)
  then
    echo $echo_n "Shutting down ElasticSearch"
    kill $es_pid
    # elasticsearch should remove the pid file when it exits, so wait 

```

for it.  
wait\_for\_pid removed "$es\_pid" "$es\_pidfile"; return\_value=$?  
else  
log\_failure\_msg "Elasticsearch process #$es\_pid is not running!"  
rm "$es\_pidfile"  
fi  
# Delete lock for RedHat / SuSE  
if test -f "$es\_lockfile"  
then  
rm -f "$es\_lockfile"  
fi  
exit $return\_value  
else  
log\_failure\_msg "Elasticsearch PID file could not be found!"  
fi  
;;

'restart')  
# Stop the service and regardless of whether it was  
# running or not, start it again.  
if $0 stop; then  
$0 start  
else  
log\_failure\_msg "Failed to stop running server, so refusing to try to  
start."  
exit 1  
fi  
;;  
'status')  
# First, check to see if pid file exists  
if test -s "$es\_pidfile" ; then  
read es\_pid \< "$es\_pidfile"  
if kill -0 $es\_pid 2\>/dev/null ; then  
log\_success\_msg "Elasticsearch running ($es\_pid)"  
exit 0  
else  
log\_failure\_msg "Elasticsearch is not running, but PID file exists"  
exit 1  
fi  
else  
# Try to find appropriate Elasticsearch process  
es\_pid=`pidof -o $$ -x $es_prog`  
# test if multiple pids exist  
pid\_count=`echo $es_pid | wc -w`  
if test $pid\_count -gt 1 ; then  
log\_failure\_msg "Multiple Elasticsearch running but PID file could  
not be found ($es\_pid)"  
exit 5  
elif test -z $es\_pid ; then  
if test -f "$es\_lockfile" ; then  
log\_failure\_msg "Elasticsearch is not running, but lock file  
($es\_lockfile) exists"  
exit 2  
fi  
log\_failure\_msg "Elasticsearch is not running"  
exit 3  
else  
log\_failure\_msg "Elasticsearch is running but PID file could not be  
found"  
exit 4  
fi  
fi  
;;  
\*)  
# usage  
es\_basename=`basename "$0"`  
echo "Usage: $es\_basename {start|stop|restart|status} [  
Elasticsearch options ]"  
exit 1  
;;  
esac  
echo  
exit 0

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6d3a5baa-4cee-4a84-97a2-69512e5452b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6d3a5baa-4cee-4a84-97a2-69512e5452b2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Peter\_Takac](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Peter\_Takac](https://discuss.elastic.co/u/Peter_Takac)\
**Post date:** [February 25, 2015, 2:49pm UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/7 "2015-02-25T14:49:37Z")

</div>

Hi, bellow is my service/daemon startup/shutdown script. It has some bugs,  
but works fine for me.

#!/bin/sh

# ElastiSearch daemon start/stop script.

# Comments to support chkconfig on RedHat Linux

# chkconfig: 2345 64 36

#title : elasticsearch  
#description : This script is used such a damon/service start/stop script.  
#author : Peter TAKAC / AssmodeuS  
#date : 20150210  
#version : 0.15  
#usage : service elasticsearch  
#notes : service start/stop script, also check the conf path. if  
proces with the same path runs, it will not start it  
#bash\_version : 3.2.51(1)

# 

### BEGIN INIT INFO

# Provides: Elasticsearch

# Required-Start: $network $named

# Required-Stop: $network $named

# Should-Start: ypbind nscd ldap ntpd xntpd

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: This service manages the Elasticsearch daemon

# Description: Elasticsearch is a very scalable, schema-free and

high-performance search solution supporting multi-tenancy and near realtime  
search.

### END INIT INFO

# Basic variables and settings

es\_home="/elasticsearch/es-int-inst"  
es\_bindir="$es\_home/bin"  
es\_exec="elasticsearch"  
es\_prog="$es\_bindir/$es\_exec"  
es\_pidpath="/var/run/elasticsearch"  
es\_pidfile="$es\_pidpath/${es\_exec}.pid"  
es\_lockdir="/var/lock/subsys"  
es\_lockfile="$es\_lockdir/$es\_exec"  
es\_user=elasticsearch  
es\_group=elasticsearch

# Heap size defaults to 256m min, 1g max

# Set ES\_HEAP\_SIZE to 50% of available RAM, but no more than 31g

#ES\_HEAP\_SIZE=2g

# Heap new generation

#ES\_HEAP\_NEWSIZE=

# max direct memory

#ES\_DIRECT\_SIZE=

# Additional Java OPTS

#ES\_JAVA\_OPTS=

# Maximum number of open files

MAX\_OPEN\_FILES=65535

# Maximum amount of locked memory

#MAX\_LOCKED\_MEMORY=

#More application related settings

# Elasticsearch log directory

es\_logdir="$es\_home/logs/$es\_exec"

# Elasticsearch data directory

es\_datadir="/elasticsearch/es-int-data"

# Elasticsearch work directory

es\_workdir="$es\_home/work"

# Elasticsearch configuration directory

#es\_confdir=/etc/$es\_exec  
es\_confdir="$es\_home/config"

# Elasticsearch configuration file (elasticsearch.yml)

es\_confile="$es\_confdir/elasticsearch.yml"

# Maximum number of VMA (Virtual Memory Areas) a process can own

MAX\_MAP\_COUNT=262144  
es\_daemon="$es\_bindir/$es\_exec"  
es\_daemon\_opts="-d -p $es\_pidfile -Des.default.path.home=$es\_home  
-Des.default.path.logs=$es\_logdir -Des.default.path.data=$es\_datadir  
-Des.default.path.work=$es\_workdir -Des.default.path.conf=$es\_confdir"

PATH=$PATH:$es\_home  
export PATH  
export JAVA\_HOME  
export ES\_HEAP\_SIZE  
export ES\_HEAP\_NEWSIZE  
export ES\_DIRECT\_SIZE  
export ES\_JAVA\_OPTS

# Default value, in seconds, after which the script should timeout waiting

# for server start.

# 0 means do not wait at all

# Negative numbers mean to wait indefinitely

service\_startup\_timeout=900

# 

# Use LSB init script functions for printing messages, if possible

# 

lsb\_functions="/lib/lsb/init-functions"  
if test -f $lsb\_functions ; then  
. $lsb\_functions  
else  
log\_success\_msg()  
{  
echo " SUCCESS! $@"  
}  
log\_failure\_msg()  
{  
echo " ERROR! $@"  
}  
fi

mode=$1 # start or stop

[$# -ge 1] && shift

case `echo "testing\c"`,`echo -n testing` in  
_c_,-n\*) echo\_n= echo\_c= ;;  
_c_,\*) echo\_n=-n echo\_c= ;;  
\*) echo\_n= echo\_c='\c' ;;  
esac

wait\_for\_pid () {  
verb="$1" # created | removed  
pid="$2" # process ID of the program operating on  
the pid-file  
pid\_file\_path="$3" # path to the PID file.

i=0  
avoid\_race\_condition="by checking again"

while test $i -ne $service\_startup\_timeout ; do

```
case "$verb" in
  'created')
    # wait for a PID-file to pop into existence.
    test -s "$pid_file_path" && i='' && break
  ;;
  'removed')
    # wait for this PID-file to disappear
    test ! -s "$pid_file_path" && i='' && break
  ;;
  *)
    echo "wait_for_pid () usage: wait_for_pid created|removed pid 

```

pid\_file\_path"  
exit 1  
;;  
esac

```
# if server is not running, then pid-file will never be updated
if test -n "$pid"; then
  if kill -0 "$pid" 2>/dev/null; then
    : # the server still runs
  else
    # The server may have exited between the last pid-file check and 

```

now.  
if test -n "$avoid\_race\_condition"; then  
avoid\_race\_condition=""  
continue # Check again.  
fi  
# there is nothing that will affect the file.  
log\_failure\_msg "The server quit without updating PID file  
($pid\_file\_path)."  
return 1 # not waiting any more.  
fi  
fi

```
echo $echo_n ".$echo_c"
i=`expr $i + 1`
sleep 1

```

done

if test -z "$i" ; then  
log\_success\_msg  
return 0  
else  
log\_failure\_msg  
return 1  
fi  
}

# 

# Set pid file if not given

# 

if test -z "$es\_pidfile"  
then  
es\_pidfile=$es\_datadir/`hostname`.pid  
else  
case "$es\_pidfile" in  
/\* ) ;;  
\* ) es\_pidfile="$es\_datadir/$es\_pidfile" ;;  
esac  
fi

case "$mode" in  
'start')  
# Start daemon  
# Safeguard (relative paths, core dumps..)  
cd $es\_home  
echo $echo\_n "Starting $es\_exec:"  
if test -x "$es\_bindir/$es\_exec" ; then  
es\_pidc=$(ps axwwo pid,cmd|grep -v grep|grep $es\_confdir -c -w)  
#echo "start\_daemon -u $es\_user -p $es\_pidfile $es\_daemon  
$es\_daemon\_opts \>/dev/null 2\>&1 &"  
if [[$es\_pidc -ge "1"]]; then  
es\_pid=$(ps axwwo pid,cmd|grep -v grep|grep $es\_confdir|cut -c1-5)  
echo " ${stat}${warn}failed! ${norm}"  
if test -s "$es\_pidfile" ; then  
read es\_pidf \< "$es\_pidfile"  
else  
es\_pidf="0"  
fi  
if [[$es\_pid -eq $es\_pidf]]; then  
echo "${attn}Already running with the same config file! ${norm}"  
else  
echo "${attn}Already running with the same config file but PID  
and PID-file does not match! ${norm}"  
fi  
echo "PID: "$es\_pid  
echo "For details please type: ps -Flj --pid=PID#ABOVE"  
else  
chown -R $es\_user $es\_pidpath  
chgrp -R $es\_group $es\_pidpath  
#$es\_daemon $es\_daemon\_opts \>/dev/null 2\>&1 &  
#startproc -u $es\_user -p $es\_pidfile $es\_daemon $es\_daemon\_opts

> /dev/null 2\>&1 &  
> start\_daemon -u $es\_user -p $es\_pidfile $es\_daemon $es\_daemon\_opts  
> /dev/null 2\>&1 &  
> wait\_for\_pid created "$!" "$es\_pidfile"; return\_value=$?  
> # Make lock for RedHat / SuSE  
> if test -w "$es\_lockdir"  
> then  
> touch "$es\_lockfile"  
> fi  
> #echo  
> #exit $return\_value  
> fi  
> else  
> log\_failure\_msg "Could not find Elasticsearch ($es\_bindir/$es\_exec)"  
> fi  
> ;;

'stop')  
# Stop daemon. We use a signal here to avoid having to know the  
# root password.

```
if test -s "$es_pidfile"
then
  es_pid=`cat "$es_pidfile"`
  if (kill -0 $es_pid 2>/dev/null)
  then
    echo $echo_n "Shutting down ElasticSearch"
    kill $es_pid
    # elasticsearch should remove the pid file when it exits, so wait 

```

for it.  
wait\_for\_pid removed "$es\_pid" "$es\_pidfile"; return\_value=$?  
else  
log\_failure\_msg "Elasticsearch process #$es\_pid is not running!"  
rm "$es\_pidfile"  
fi  
# Delete lock for RedHat / SuSE  
if test -f "$es\_lockfile"  
then  
rm -f "$es\_lockfile"  
fi  
exit $return\_value  
else  
log\_failure\_msg "Elasticsearch PID file could not be found!"  
fi  
;;

'restart')  
# Stop the service and regardless of whether it was  
# running or not, start it again.  
if $0 stop; then  
$0 start  
else  
log\_failure\_msg "Failed to stop running server, so refusing to try to  
start."  
exit 1  
fi  
;;  
'status')  
# First, check to see if pid file exists  
if test -s "$es\_pidfile" ; then  
read es\_pid \< "$es\_pidfile"  
if kill -0 $es\_pid 2\>/dev/null ; then  
log\_success\_msg "Elasticsearch running ($es\_pid)"  
exit 0  
else  
log\_failure\_msg "Elasticsearch is not running, but PID file exists"  
exit 1  
fi  
else  
# Try to find appropriate Elasticsearch process  
es\_pid=`pidof -o $$ -x $es_prog`  
# test if multiple pids exist  
pid\_count=`echo $es_pid | wc -w`  
if test $pid\_count -gt 1 ; then  
log\_failure\_msg "Multiple Elasticsearch running but PID file could  
not be found ($es\_pid)"  
exit 5  
elif test -z $es\_pid ; then  
if test -f "$es\_lockfile" ; then  
log\_failure\_msg "Elasticsearch is not running, but lock file  
($es\_lockfile) exists"  
exit 2  
fi  
log\_failure\_msg "Elasticsearch is not running"  
exit 3  
else  
log\_failure\_msg "Elasticsearch is running but PID file could not be  
found"  
exit 4  
fi  
fi  
;;  
\*)  
# usage  
es\_basename=`basename "$0"`  
echo "Usage: $es\_basename {start|stop|restart|status} [  
Elasticsearch options ]"  
exit 1  
;;  
esac  
echo  
exit 0

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bc5fc589-15de-4863-b64e-2c0960ae8744%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc5fc589-15de-4863-b64e-2c0960ae8744%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 25, 2015, 9:53pm UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/8 "2015-02-25T21:53:14Z")

</div>

What is wrong with the ones included in the deb/rpms?

On 26 February 2015 at 01:47, Peter Takac [assmodeus81sk@gmail.com](mailto:assmodeus81sk@gmail.com) wrote:

> Hi, bellow is service script, it has some small bugs but works fine for me:
> 
> #!/bin/sh
> 
> # ElastiSearch daemon start/stop script.
> 
> # Comments to support chkconfig on RedHat Linux
> 
> # chkconfig: 2345 64 36
> 
> #title : elasticsearch  
> #description : This script is used such a damon/service start/stop  
> script.  
> #author : Peter TAKAC / AssmodeuS  
> #date : 20150210  
> #version : 0.15  
> #usage : service elasticsearch  
> #notes : service start/stop script, also check the conf path. if  
> proces with the same path runs, it will not start it  
> #bash\_version : 3.2.51(1)
> 
> # 
> 
> ### BEGIN INIT INFO
> 
> # Provides: Elasticsearch
> 
> # Required-Start: $network $named
> 
> # Required-Stop: $network $named
> 
> # Should-Start: ypbind nscd ldap ntpd xntpd
> 
> # Default-Start: 2 3 4 5
> 
> # Default-Stop: 0 1 6
> 
> # Short-Description: This service manages the Elasticsearch daemon
> 
> # Description: Elasticsearch is a very scalable, schema-free and
> 
> high-performance search solution supporting multi-tenancy and near realtime  
> search.
> 
> ### END INIT INFO
> 
> # Basic variables and settings
> 
> es\_home="/SIP/elasticsearch/es-int-inst"  
> es\_bindir="$es\_home/bin"  
> es\_exec="elasticsearch"  
> es\_prog="$es\_bindir/$es\_exec"  
> es\_pidpath="/var/run/elasticsearch"  
> es\_pidfile="$es\_pidpath/${es\_exec}.pid"  
> es\_lockdir="/var/lock/subsys"  
> es\_lockfile="$es\_lockdir/$es\_exec"  
> es\_user=elasticsearch  
> es\_group=elasticsearch
> 
> # Heap size defaults to 256m min, 1g max
> 
> # Set ES\_HEAP\_SIZE to 50% of available RAM, but no more than 31g
> 
> #ES\_HEAP\_SIZE=2g
> 
> # Heap new generation
> 
> #ES\_HEAP\_NEWSIZE=
> 
> # max direct memory
> 
> #ES\_DIRECT\_SIZE=
> 
> # Additional Java OPTS
> 
> #ES\_JAVA\_OPTS=
> 
> # Maximum number of open files
> 
> MAX\_OPEN\_FILES=65535
> 
> # Maximum amount of locked memory
> 
> #MAX\_LOCKED\_MEMORY=
> 
> #More application related settings
> 
> # Elasticsearch log directory
> 
> es\_logdir="$es\_home/logs/$es\_exec"
> 
> # Elasticsearch data directory
> 
> es\_datadir="/SIP/elasticsearch/es-int-data"
> 
> # Elasticsearch work directory
> 
> es\_workdir="$es\_home/work"
> 
> # Elasticsearch configuration directory
> 
> #es\_confdir=/etc/$es\_exec  
> es\_confdir="$es\_home/config"
> 
> # Elasticsearch configuration file (elasticsearch.yml)
> 
> es\_confile="$es\_confdir/elasticsearch.yml"
> 
> # Maximum number of VMA (Virtual Memory Areas) a process can own
> 
> MAX\_MAP\_COUNT=262144  
> es\_daemon="$es\_bindir/$es\_exec"  
> es\_daemon\_opts="-d -p $es\_pidfile -Des.default.path.home=$es\_home  
> -Des.default.path.logs=$es\_logdir -Des.default.path.data=$es\_datadir  
> -Des.default.path.work=$es\_workdir -Des.default.path.conf=$es\_confdir"
> 
> PATH=$PATH:$es\_home  
> export PATH  
> export JAVA\_HOME  
> export ES\_HEAP\_SIZE  
> export ES\_HEAP\_NEWSIZE  
> export ES\_DIRECT\_SIZE  
> export ES\_JAVA\_OPTS
> 
> # Default value, in seconds, after which the script should timeout waiting
> 
> # for server start.
> 
> # 0 means do not wait at all
> 
> # Negative numbers mean to wait indefinitely
> 
> service\_startup\_timeout=900
> 
> # 
> 
> # Use LSB init script functions for printing messages, if possible
> 
> # 
> 
> lsb\_functions="/lib/lsb/init-functions"  
> if test -f $lsb\_functions ; then  
> . $lsb\_functions  
> else  
> log\_success\_msg()  
> {  
> echo " SUCCESS! $@"  
> }  
> log\_failure\_msg()  
> {  
> echo " ERROR! $@"  
> }  
> fi
> 
> mode=$1 # start or stop
> 
> [$# -ge 1] && shift
> 
> case `echo "testing\c"`,`echo -n testing` in  
> _c_,-n\*) echo\_n= echo\_c= ;;  
> _c_,\*) echo\_n=-n echo\_c= ;;  
> \*) echo\_n= echo\_c='\c' ;;  
> esac
> 
> wait\_for\_pid () {  
> verb="$1" # created | removed  
> pid="$2" # process ID of the program operating  
> on the pid-file  
> pid\_file\_path="$3" # path to the PID file.
> 
> i=0  
> avoid\_race\_condition="by checking again"
> 
> while test $i -ne $service\_startup\_timeout ; do
> 
> ```
> case "$verb" in
> 'created')
> # wait for a PID-file to pop into existence.
> test -s "$pid_file_path" && i='' && break
> ;;
> 'removed')
> # wait for this PID-file to disappear
> test ! -s "$pid_file_path" && i='' && break
> ;;
> *)
> echo "wait_for_pid () usage: wait_for_pid created|removed pid
> 
> ```
> 
> pid\_file\_path"  
> exit 1  
> ;;  
> esac
> 
> ```
> # if server is not running, then pid-file will never be updated
> if test -n "$pid"; then
> if kill -0 "$pid" 2>/dev/null; then
> : # the server still runs
> else
> # The server may have exited between the last pid-file check and
> 
> ```
> 
> now.  
> if test -n "$avoid\_race\_condition"; then  
> avoid\_race\_condition=""  
> continue # Check again.  
> fi  
> # there is nothing that will affect the file.  
> log\_failure\_msg "The server quit without updating PID file  
> ($pid\_file\_path)."  
> return 1 # not waiting any more.  
> fi  
> fi
> 
> ```
> echo $echo_n ".$echo_c"
> i=`expr $i + 1`
> sleep 1
> 
> ```
> 
> done
> 
> if test -z "$i" ; then  
> log\_success\_msg  
> return 0  
> else  
> log\_failure\_msg  
> return 1  
> fi  
> }
> 
> # 
> 
> # Set pid file if not given
> 
> # 
> 
> if test -z "$es\_pidfile"  
> then  
> es\_pidfile=$es\_datadir/`hostname`.pid  
> else  
> case "$es\_pidfile" in  
> /\* ) ;;  
> \* ) es\_pidfile="$es\_datadir/$es\_pidfile" ;;  
> esac  
> fi
> 
> case "$mode" in  
> 'start')  
> # Start daemon  
> # Safeguard (relative paths, core dumps..)  
> cd $es\_home  
> echo $echo\_n "Starting $es\_exec:"  
> if test -x "$es\_bindir/$es\_exec" ; then  
> es\_pidc=$(ps axwwo pid,cmd|grep -v grep|grep $es\_confdir -c -w)  
> #echo "start\_daemon -u $es\_user -p $es\_pidfile $es\_daemon  
> $es\_daemon\_opts \>/dev/null 2\>&1 &"  
> if [[$es\_pidc -ge "1"]]; then  
> es\_pid=$(ps axwwo pid,cmd|grep -v grep|grep $es\_confdir|cut -c1-5)  
> echo " ${stat}${warn}failed! ${norm}"  
> if test -s "$es\_pidfile" ; then  
> read es\_pidf \< "$es\_pidfile"  
> else  
> es\_pidf="0"  
> fi  
> if [[$es\_pid -eq $es\_pidf]]; then  
> echo "${attn}Already running with the same config file! ${norm}"  
> else  
> echo "${attn}Already running with the same config file but PID  
> and PID-file does not match! ${norm}"  
> fi  
> echo "PID: "$es\_pid  
> echo "For details please type: ps -Flj --pid=PID#ABOVE"  
> else  
> chown -R $es\_user $es\_pidpath  
> chgrp -R $es\_group $es\_pidpath  
> #$es\_daemon $es\_daemon\_opts \>/dev/null 2\>&1 &  
> #startproc -u $es\_user -p $es\_pidfile $es\_daemon $es\_daemon\_opts
> 
> > /dev/null 2\>&1 &  
> > start\_daemon -u $es\_user -p $es\_pidfile $es\_daemon $es\_daemon\_opts  
> > /dev/null 2\>&1 &  
> > wait\_for\_pid created "$!" "$es\_pidfile"; return\_value=$?  
> > # Make lock for RedHat / SuSE  
> > if test -w "$es\_lockdir"  
> > then  
> > touch "$es\_lockfile"  
> > fi  
> > #echo  
> > #exit $return\_value  
> > fi  
> > else  
> > log\_failure\_msg "Could not find Elasticsearch ($es\_bindir/$es\_exec)"  
> > fi  
> > ;;
> 
> 'stop')  
> # Stop daemon. We use a signal here to avoid having to know the  
> # root password.
> 
> ```
> if test -s "$es_pidfile"
> then
> es_pid=`cat "$es_pidfile"`
> if (kill -0 $es_pid 2>/dev/null)
> then
> echo $echo_n "Shutting down ElasticSearch"
> kill $es_pid
> # elasticsearch should remove the pid file when it exits, so wait
> 
> ```
> 
> for it.  
> wait\_for\_pid removed "$es\_pid" "$es\_pidfile"; return\_value=$?  
> else  
> log\_failure\_msg "Elasticsearch process #$es\_pid is not running!"  
> rm "$es\_pidfile"  
> fi  
> # Delete lock for RedHat / SuSE  
> if test -f "$es\_lockfile"  
> then  
> rm -f "$es\_lockfile"  
> fi  
> exit $return\_value  
> else  
> log\_failure\_msg "Elasticsearch PID file could not be found!"  
> fi  
> ;;
> 
> 'restart')  
> # Stop the service and regardless of whether it was  
> # running or not, start it again.  
> if $0 stop; then  
> $0 start  
> else  
> log\_failure\_msg "Failed to stop running server, so refusing to try  
> to start."  
> exit 1  
> fi  
> ;;  
> 'status')  
> # First, check to see if pid file exists  
> if test -s "$es\_pidfile" ; then  
> read es\_pid \< "$es\_pidfile"  
> if kill -0 $es\_pid 2\>/dev/null ; then  
> log\_success\_msg "Elasticsearch running ($es\_pid)"  
> exit 0  
> else  
> log\_failure\_msg "Elasticsearch is not running, but PID file exists"  
> exit 1  
> fi  
> else  
> # Try to find appropriate Elasticsearch process  
> es\_pid=`pidof -o $$ -x $es_prog`  
> # test if multiple pids exist  
> pid\_count=`echo $es_pid | wc -w`  
> if test $pid\_count -gt 1 ; then  
> log\_failure\_msg "Multiple Elasticsearch running but PID file could  
> not be found ($es\_pid)"  
> exit 5  
> elif test -z $es\_pid ; then  
> if test -f "$es\_lockfile" ; then  
> log\_failure\_msg "Elasticsearch is not running, but lock file  
> ($es\_lockfile) exists"  
> exit 2  
> fi  
> log\_failure\_msg "Elasticsearch is not running"  
> exit 3  
> else  
> log\_failure\_msg "Elasticsearch is running but PID file could not  
> be found"  
> exit 4  
> fi  
> fi  
> ;;  
> \*)  
> # usage  
> es\_basename=`basename "$0"`  
> echo "Usage: $es\_basename {start|stop|restart|status} [  
> Elasticsearch options ]"  
> exit 1  
> ;;  
> esac  
> echo  
> exit 0
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6d3a5baa-4cee-4a84-97a2-69512e5452b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6d3a5baa-4cee-4a84-97a2-69512e5452b2%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6d3a5baa-4cee-4a84-97a2-69512e5452b2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6d3a5baa-4cee-4a84-97a2-69512e5452b2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9Gg05MR2wsammSzvJ%2BM95ChKeNKC7geeb-z9RdLgZAHw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9Gg05MR2wsammSzvJ%2BM95ChKeNKC7geeb-z9RdLgZAHw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:30am UTC](https://discuss.elastic.co/t/some-install-bugs-probably-there-is-solution-not-yet-found-by-me/21970/9 "2017-07-06T00:30:04Z")

</div>


