From owner-freebsd-elastic@freebsd.org Wed May 2 14:11:28 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 95A24FAAEDB for ; Wed, 2 May 2018 14:11:28 +0000 (UTC) (envelope-from feld@FreeBSD.org) 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 3054A8108F for ; Wed, 2 May 2018 14:11:28 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id E8BCCFAAEDA; Wed, 2 May 2018 14:11:27 +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 D62C0FAAED9 for ; Wed, 2 May 2018 14:11:27 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 70A9281072 for ; Wed, 2 May 2018 14:11:27 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AC2762291C; Wed, 2 May 2018 10:11:21 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute3.internal (MEProxy); Wed, 02 May 2018 10:11:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ZnY7TE 1uayNGjFumnhDI8b/4vH6kLSokrR2qXZlrlyc=; b=RqFMdTl1Y51jzx+rwI6LVU VpVZx2wj7M3EbL+4hUaFMuWteD9MBFePYz/CvBUSpbzNTajD8w1rFcqe/rB6z79M 3sE7JKyBY32M06ycWS4hYAZMHAwfViHb5AyBhNMJ+2DHy9FYwGSxvu4nVraDAOMT ym/oQahuyF4tF/Pg1jPp6CEsy45k1zOdFoBh4oAs5K/ndtH+mhle62OVtcbuM+EE 6sNK1lXtN6E0XOv4ovbcQEVfCSKMbtcpzBDaHJRJq+znA/FZL8XP7qUkbv3pAZfv Z+Q6xQimNBG4voixMT0MxYXvlbsR5qkv8VqpRhRWE1TQ1rr+n4HmaTxDFY+5Cw3Q == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 5FB869E3CF; Wed, 2 May 2018 10:11:21 -0400 (EDT) Message-Id: <1525270281.3662427.1358252736.308FAC14@webmail.messagingengine.com> From: Mark Felder To: Joachim Mathes , elastic@FreeBSD.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-62b61488 In-Reply-To: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de> Subject: Re: Problem with Elasticsearch 5 service script References: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de> Date: Wed, 02 May 2018 09:11:21 -0500 X-BeenThere: freebsd-elastic@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Support of ElasticSearch-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2018 14:11:28 -0000 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. -- Mark Felder ports-secteam & portmgr member feld@FreeBSD.org