From owner-freebsd-elastic@freebsd.org Mon May 28 13:00:19 2018 Return-Path: Delivered-To: freebsd-elastic@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6503DEF5E48 for ; Mon, 28 May 2018 13:00:19 +0000 (UTC) (envelope-from mathes@punkt.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 01BDD6EA7C for ; Mon, 28 May 2018 13:00:19 +0000 (UTC) (envelope-from mathes@punkt.de) Received: by mailman.ysv.freebsd.org (Postfix) id B99B0EF5E47; Mon, 28 May 2018 13:00:18 +0000 (UTC) Delivered-To: elastic@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7F41EF5E46 for ; Mon, 28 May 2018 13:00:18 +0000 (UTC) (envelope-from mathes@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2FD806EA7A; Mon, 28 May 2018 13:00:17 +0000 (UTC) (envelope-from mathes@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate1.intern.punkt.de with ESMTP id w4SCd0EU038148; Mon, 28 May 2018 14:39:00 +0200 (CEST) Received: from [217.29.44.188] ([217.29.44.188]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id w4SCd0tM063967; Mon, 28 May 2018 14:39:00 +0200 (CEST) (envelope-from mathes@punkt.de) Subject: Re: Problem with Elasticsearch 5 service script To: Mark Felder , elastic@FreeBSD.org References: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de> <1525270281.3662427.1358252736.308FAC14@webmail.messagingengine.com> From: Joachim Mathes Message-ID: <55b621d3-01ab-fef9-06f2-76053c7e16e9@punkt.de> Date: Mon, 28 May 2018 14:39:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1525270281.3662427.1358252736.308FAC14@webmail.messagingengine.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-elastic@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Support of ElasticSearch-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2018 13:00:19 -0000 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