Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2016 03:00:56 -0700
From:      "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: r 300949: rpcbind rejects to start: couldn't create ip6 socket
Message-ID:  <AF252790-6857-4BE5-AD10-7B380543264D@gmail.com>
In-Reply-To: <20160529093230.68a5da55.ohartman@zedat.fu-berlin.de>
References:  <20160529093230.68a5da55.ohartman@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534"


--Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On May 29, 2016, at 00:32, O. Hartmann <ohartman@zedat.fu-berlin.de> =
wrote:
>=20
> After updating sources and build- and installworld, I realize that all =
rpcbind related
> services, so far NFS, are not working. On a client I check the start =
of rpcbind by
> setting option -d and receive the output shown below.
>=20
> Well, prior to r300949 rpcbind started without complains - as it did =
with r300901.
>=20
> [...]
> rpcbind not running?
> Starting rpcbind.
> rpcbind debugging enabled.
> can't get local ip6 address: hostname nor servname provided, or not =
known
> couldn't create ip6 socket/etc/rc.d/rpcbind: WARNING: failed to start =
rpcbind

Hi,
	Could you please try this patch with -d (it=E2=80=99ll continue =
on instead of exiting=E2=80=A6 I=E2=80=99m curious as to why it was =
failing before).
	Does IPv6 work in your environment?
Thanks!
-Ngie

--Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534
Content-Disposition: attachment;
	filename=ohartmann-rpcbind-util-break.patch
Content-Type: application/octet-stream;
	name="ohartmann-rpcbind-util-break.patch"
Content-Transfer-Encoding: 7bit

Index: usr.sbin/rpcbind/util.c
===================================================================
--- usr.sbin/rpcbind/util.c	(revision 300945)
+++ usr.sbin/rpcbind/util.c	(working copy)
@@ -40,6 +40,7 @@
 #include <ifaddrs.h>
 #include <sys/poll.h>
 #include <rpc/rpc.h>
+#include <err.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
@@ -363,13 +364,20 @@
 		return;
 
 	mreq6.ipv6mr_interface = 0;
-	inet_pton(AF_INET6, RPCB_MULTICAST_ADDR, &mreq6.ipv6mr_multiaddr);
+	ecode = inet_pton(AF_INET6, RPCB_MULTICAST_ADDR,
+		    &mreq6.ipv6mr_multiaddr);
+	if (ecode != 1) {
+		if (debugging)
+			fprintf(stderr, "inet_pton failed with rc=%d: %s",
+			    ecode, strerror(errno));
+		goto done_inet6;
+	}
 
 	s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
 	if (s == -1) {
 		if (debugging)
 			fprintf(stderr, "couldn't create ip6 socket");
-		exit(1);
+		goto done_inet6;
 	}
 
 	/*
@@ -392,6 +400,7 @@
 			if (debugging)
 				perror("setsockopt v6 multicast");
 	}
+done_inet6:
 	freeifaddrs(ifp);
 #endif
 

--Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534--

--Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJXSr3ZAAoJEPWDqSZpMIYVeeEQAJzS3KZKImcBWy2dZNcAJZ+F
qt00H+abBeJm+ixOHPQbUoD85X3Ls8Ay5XKzicNrcy7IJuIj/Qe8B3OTjYNEMVFu
1MmXHkflpidmcKJ9J99pPaxCLuxTNjwzipv0liFjPgtBVSe6S5CLtKZYbEBYmLtb
4hLaZnm+j6KrHA7KgIrnM5zZpxFliVFT6CTt1RKTJ8oJ/Z0+kY0ycXG757OgM7ik
7xiUZdt6mXLp7/iskeh7BMxCrp5M/hFc6lRdnV9ByHqvyrU1sWf8ZRVmA8OyphRG
b3t46Qhwy+4p3sUmGkA686jrKfLLamEBzfNtukFVKPam4BoY3dTy0wsdSVkUHYp6
fXxexCWzMh9i85PB3aLDqxuljl4JQTe58pdwAtRVSsRdplLdilWSMNnU52Cfi617
RKQJvdDiPm5FkwihSefllhHjPaCi8k7AjvmcreyRu0iaBCD4DgxkKxaoKB9OgYzG
MjT9mWncmMqc94lGGz7GJHTcOmZYapgWrT9WkpAEqv8zpHmfTciKAf7C33wixsM9
wBRsRxEGjakfsRXf6z3i8SGp4wmAIgtUg9TJC/Hv62+zXLzQRM3BPVxj+rmN1zot
zWHLb8pztIEEtaN8ZqxtU86xC7AEkKsNhzOWoce4IRmB3H+ynXD2+H2lZwrqJGgf
K7fB3d3sd7msqxm+pQZm
=v9BH
-----END PGP SIGNATURE-----

--Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AF252790-6857-4BE5-AD10-7B380543264D>