From owner-freebsd-questions@freebsd.org Tue May 12 16:56:04 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 039B92F4958 for ; Tue, 12 May 2020 16:56:04 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49M3pp6vdSz4V6S for ; Tue, 12 May 2020 16:56:02 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from MacBook-Pro.nomadlogic.org (cpe-23-243-161-111.socal.res.rr.com [23.243.161.111]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 852ba871 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 12 May 2020 16:56:01 +0000 (UTC) Subject: Re: libjli.so not found through SaltStack To: Julien Cigar , freebsd-questions@freebsd.org References: <20200512163612.GA3085@x1> From: Pete Wright Message-ID: <87613aff-1ccc-2007-4da8-6606e1445e44@nomadlogic.org> Date: Tue, 12 May 2020 09:56:00 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200512163612.GA3085@x1> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 49M3pp6vdSz4V6S X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-5.11 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[111.161.243.23.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.81)[ip: (-9.28), ipnet: 174.136.96.0/20(-4.26), asn: 25795(-0.44), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 16:56:04 -0000 On 5/12/20 9:36 AM, Julien Cigar wrote: > Hello, > > I'm facing a strange error while running the > "/usr/local/openjdk8/bin/java" through SaltStack cmd.run state. > For some reason libjli.so is not found. > > I modified the state with some debugging info: > https://gist.githubusercontent.com/silenius/d71ee37ce9700da7dcd3a7c2f110b414/raw/cb1ca43cc07f1eea5cf663906a0d46d16a35ec80/gistfile1.txt > > Some obersvations: > - I don't see a DT_FLAGS, which means that $ORIGIN wouldn't work > - It looks like rtld doesn't actually check DT_FLAGS > > Any idea ..? > > (when I'm running the java -jar command from shell it works) shot in the dark but have you ensured JAVA_HOME environment variable is set on your salt minion when executing this command? -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA