Date: Mon, 28 May 2018 14:39:00 +0200 From: Joachim Mathes <mathes@punkt.de> To: Mark Felder <feld@FreeBSD.org>, elastic@FreeBSD.org Subject: Re: Problem with Elasticsearch 5 service script Message-ID: <55b621d3-01ab-fef9-06f2-76053c7e16e9@punkt.de> In-Reply-To: <1525270281.3662427.1358252736.308FAC14@webmail.messagingengine.com> References: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de> <1525270281.3662427.1358252736.308FAC14@webmail.messagingengine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Mark, thank you for your answer. We changed the root shell back to default, i.e. /bin/csh. But the error message still appears. Do we miss anything else? # echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin # echo $SHELL /bin/csh Thanks in advance Jo On 02.05.2018 16:11, Mark Felder wrote: > > On Wed, Apr 18, 2018, at 06:42, Joachim Mathes wrote: >> Hello Elastic-Team, >> >> we have problems with starting the elasticsearch service of package >> https://www.freshports.org/textproc/elasticsearch5/ (2018Q2). >> When we try to start elasticsearch the rc.d-script fails with: >> >> """ >> Starting elasticsearch. Could not find any executable java binary. >> Please install java in your PATH or set JAVA_HOME >> """ >> >> We fixed this issue by extending the PATH variable in >> /usr/local/etc/rc.d/elasticsearch: >> >> """ >> export PATH=$PATH:/usr/local/openjdk8/bin >> """ >> >> Can you reproduce this? >> > This was narrowed down to the user changing their root shell from csh to something else. It causes issues because /usr/local/bin and /usr/local/sbin are no longer in PATH. > > Changing the root shell is strongly discouraged as many assumptions are made about which shell your root user has. > > -- Entwicklung punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel: 0721 9109 - 0 Fax: - 100 76133 Karlsruhe http://punkt.de AG Mannheim 108285 Gf: Jürgen Egeling
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55b621d3-01ab-fef9-06f2-76053c7e16e9>