From owner-freebsd-elastic@freebsd.org Wed Apr 18 19:07:22 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 A90AFFA3360 for ; Wed, 18 Apr 2018 19:07:22 +0000 (UTC) (envelope-from news@saz.gr) Received: from mail.doom.gr (doom.gr [46.101.135.209]) (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 46F927F814 for ; Wed, 18 Apr 2018 19:07:21 +0000 (UTC) (envelope-from news@saz.gr) Received: from laptopidis (a8570-adsl6.pck.nerim.net [213.41.132.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.doom.gr (Postfix) with ESMTPSA id EA50929A3B1 for ; Wed, 18 Apr 2018 19:07:09 +0000 (UTC) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-elastic@freebsd.org Subject: Re: Problem with Elasticsearch 5 service script References: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de> Date: Wed, 18 Apr 2018 21:07:04 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Fotis Zabaras" Message-ID: In-Reply-To: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de> User-Agent: Opera Mail/1.0 (Win32) 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, 18 Apr 2018 19:07:22 -0000 On Wed, 18 Apr 2018 13:42:00 +0200, 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? > > Best > Jo > _______________________________________________ > freebsd-elastic@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-elastic > To unsubscribe, send any mail to > "freebsd-elastic-unsubscribe@freebsd.org" Hello there, # pkg info | grep jre openjdk8-jre-8.162.12 Java Runtime Environment 8 # pkg info|grep ela elasticsearch5-5.6.8_5 Full-text search engine for Java # /usr/local/etc/rc.d/elasticsearch onestart Starting elasticsearch. # ps aux|grep elastic elasticsearch 984 33.4 7.5 2400008 619152 0 S 21:04 0:05.49 /usr/local/openjdk8/bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFra Everything is with the default options Which version of jre are you using ? Fotis