From owner-freebsd-questions@freebsd.org Thu May 14 01:16:10 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 929112DDF4E for ; Thu, 14 May 2020 01:16:10 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 49MtsP3GT6z4s2d for ; Thu, 14 May 2020 01:16:09 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F1F804E7 for ; Wed, 13 May 2020 21:16:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 13 May 2020 21:16:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=HQ+qYOM6pCSfMWeXcE0u/ePAqZp feVyj2gQSH++l4iE=; b=27QhJ6AEoccBgT2GJKkgJRu4PMJqapRz8cl49HBMhHF nhn2vI6qG7V8uK2qkevjG3rQJTXrlFqV5537FE9fMuTkkxVHucaCwf8KhOL+FXbB 3uUrBtYccMymU4pWF7rjk7u/ChJ8kIe4t/3UgKaWjQ2Ey1I4i7GDyhBw62tnQxhe hcjsF/KozIXsGRDEqkG2yR2QDSq6c6wbgRMuucyySno+Lf2V3LrCENTCHOB7BbEB V16lSZnstUkyDZUdf0g2yAX0cG8qohfgk3a4Hm+CqK7wd5kO0tK9W9+pJwAlqnZz D5r2QN+Tn6VV1r4+gNTNJ/KpCM/xFSZu4rPaDRmSFqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=HQ+qYO M6pCSfMWeXcE0u/ePAqZpfeVyj2gQSH++l4iE=; b=AMSYyKaFlwHmKSVnfQnQZ9 0J03ZWF/mCTMW0NkuXLYp4Ulgpfzt9W58PTd6l1Xt7C+cgu+sFahrBH6TMYMiEVN 3VzPHExz4cSYRz6gab/ZomTIviTwdPDGjE40PVr2JVcUUKJxxof+mI4d4Wb2marD esKDktgCzo6+MpUD0RXMvBGFHaRVqr4K1mDOGGQ1ws6Qum8VKHJN7FsJ+l5nAcMK E1/1v/860uHnXmrmPX6IjCvzMI096ewkOH9RIjjNSH/eob18P9wdhKXvSlCaAvYM ajYp5J/u1bgFLTlXI6PkLi5+BGM2K62mgm3HCwn64u30m128QkBG7qFFdgsbRibg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleehgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtderre dttddvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshesiiih gihsthdrnhgvtheqnecuggftrfgrthhtvghrnheptdehiefgvddufeekkedvtdefvdettd dtkeduvdegveelffdtkeffudejvdfhudetnecukfhppeekvddrjedtrdeluddrleelnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthgvtghhqd hlihhsthhsseiihiigshhtrdhnvght X-ME-Proxy: Received: from bastion.zyxst.net (bastion.zyxst.net [82.70.91.99]) by mail.messagingengine.com (Postfix) with ESMTPA id C04DE3280064 for ; Wed, 13 May 2020 21:16:06 -0400 (EDT) Date: Thu, 14 May 2020 02:15:37 +0100 From: tech-lists To: freebsd-questions@freebsd.org Subject: Re: Shared object "libnetgraph.so.4" not found, required by "netstat" Message-ID: <20200514011537.GC23072@bastion.zyxst.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20200512154502.GH59811@bastion.zyxst.net> <20200513180158.GA23072@bastion.zyxst.net> <70cc3458-237f-847c-03f0-0767c26f6b89@fastmail.com> <8570e125-f34d-840a-5803-376d43bc9723@hedeland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="E13BgyNx05feLLmH" Content-Disposition: inline In-Reply-To: <8570e125-f34d-840a-5803-376d43bc9723@hedeland.org> X-Rspamd-Queue-Id: 49MtsP3GT6z4s2d X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm2 header.b=27QhJ6AE; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=AMSYyKaF; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 64.147.123.21 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-8.20 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm2,messagingengine.com:s=fm2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[21.123.147.64.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zyxst.net]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; IP_SCORE(-3.50)[ip: (-9.86), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.69), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[21.123.147.64.list.dnswl.org : 127.0.5.1] 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: Thu, 14 May 2020 01:16:10 -0000 --E13BgyNx05feLLmH Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 13, 2020 at 10:00:23PM +0200, Per Hedeland wrote: > >Hm, netstat should be expected to require libnetgraph.so.4 - at least >on 12.1-RELEASE: > >$ ldd /usr/bin/netstat >/usr/bin/netstat: > libkvm.so.7 =3D> /lib/libkvm.so.7 (0x80026b000) > libmemstat.so.3 =3D> /usr/lib/libmemstat.so.3 (0x80027e000) > libxo.so.0 =3D> /lib/libxo.so.0 (0x800284000) > libutil.so.9 =3D> /lib/libutil.so.9 (0x8002a4000) > libnetgraph.so.4 =3D> /usr/lib/libnetgraph.so.4 (0x8002bb000) > libc.so.7 =3D> /lib/libc.so.7 (0x8002c2000) > libelf.so.2 =3D> /lib/libelf.so.2 (0x8006bb000) > >I.e. the problem is presumably not with netstat, but that >/usr/lib/libnetgraph.so.4 doesn't actually exist on the specific VM. I >don't know whether freebsd-update can be expected to re-create files >that have "gone missing" other than due to changes between FreeBSD >versions, but I wouldn't think so (AFAIK /usr/lib/libnetgraph.so.4 has >been part of the release since at least 10.3-RELEASE - probably much >longer, it's just the oldest version I have around). Here's my ldd output from the affected vm: root@REDACTED:~ # ldd /usr/bin/netstat /usr/bin/netstat: libkvm.so.7 =3D> /lib/libkvm.so.7 (0x80026b000) libmemstat.so.3 =3D> /usr/lib/libmemstat.so.3 (0x80027e000) libxo.so.0 =3D> /lib/libxo.so.0 (0x800284000) libutil.so.9 =3D> /lib/libutil.so.9 (0x8002a4000) libnetgraph.so.4 =3D> not found (0) libc.so.7 =3D> /lib/libc.so.7 (0x8002bb000) libelf.so.2 =3D> /lib/libelf.so.2 (0x8006b4000) root@REDACTED:~ #=20 >Does it work to run netstat outside of cron? No. root@REDACTED:~ # netstat ld-elf.so.1: Shared object "libnetgraph.so.4" not found, required by "netst= at" root@REDACTED:~ #=20 Maybe the "fix" would be to copy libnetgraph.so.4 from another vm. But what= 's worrying for me is, how was this file "lost" in the first place? Hardly any console/ssh interaction is used on this particular vm. It hosts a https web= =20 service, sends email (it's not an email relay though), has very wrapped ssh= d=20 access, and that's it. --=20 J. --E13BgyNx05feLLmH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl68m9QACgkQs8o7QhFz NAWPrg//WKCNYCfPnBbLjd1AkGb1iLmJPAs/PIX8L03iN03UR0P+MO7F3eabgH65 6lUneGGWFRVgN4RXRdcu8m6TixwEW7+0n46vKNJUmL8NYYDhEN0sRBJ73CFJfKAd BzJyKaUl4ksqr/CHVJiyZeNmdNEPrzwCgyL/85AxR9VA3T/e5XfPuXSAUaFVjLbZ 8AOwK16CSxpAYcDBVqyRb9HyEXz3F3rlmwbeLv+N7QZakcVJMRv9uTczVfa0eMsh XUXIxuAbtBG97s639tzY7vZqsLNqpJYHyE2zzJGNfMV9eYZDBTzQE5TOCGWqUsFC Waf+s4oHO53M+w2m6UJTdsOvwW898S1wvYdi/aQa7grAh5upkcPfoucyJNJf9A8d Al68Da11xmboFN29H0gqenTXWCC/ijyeF0U2QVltV16lwZUOcoyC3g2n8mz7T0AT RzJyQt+IqIqZiDjLSBfq+689bgfeNoItPxxhPC1E+eq2WRPaD1y5C5W7MrmUWD0e tgb3rHN2sJApQS+AbNRcipf6N8ookm5p3pVNDcAbLQNgioPCT1pRLnkV7AnnY0AX 0QQoQey/0g0vQsy8aEpn5luq2UxBi01Qxa7opMYh+bpUOvyEt2XB8R4Sq6gbTjlH 72Bxwc1UUTH4wJwQlujK0mV5ST4cc3KT16nVLXeSZWWYDjuW9/o= =Y2PR -----END PGP SIGNATURE----- --E13BgyNx05feLLmH--