Server had several ifaces. So I want portmap looks only internal interface. Reproducible: Always Steps to Reproduce: 1. edit /etc/conf.d/portmap, set PORTMAP_OPTS="-i xxx.xxx.xxx.xxx" 2. restart portmap Actual Results: srv ~ # /etc/init.d/portmap restart * Caching service dependencies ... [ ok ] * Saving portmap table ... [ ok ] * Unmounting NFS filesystems ... [ ok ] * Stopping NFS statd ... [ ok ] * Stopping portmap ... [ ok ] * Starting portmap ... [ ok ] * Reloading portmap table ... Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100000 2 tcp 111 portmapper Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100000 2 udp 111 portmapper Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100024 1 udp 54076 status Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100024 1 tcp 37323 status Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100021 1 tcp 48283 nlockmgr Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100021 3 tcp 48283 nlockmgr Cannot register service: RPC: Unable to receive; errno = Connection refused not registered: 100021 4 tcp 48283 nlockmgr [ ok ] * Starting NFS statd ... [ !! ] * ERROR: cannot start nfsmount as rpc.statd could not start * Starting NFS statd ... [ !! ] srv ~ # Expected Results: Correctly working service srv ~ # emerge --info Portage 2.1.6.4 (unavailable, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-glibc2.0 Timestamp of tree: Unknown dev-lang/python: 2.5.2-r7 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/revdep-rebuild /etc/ter minfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetc h" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 bash-completion bzip2 gif jpeg ldap logrotate mmx nls nptl nptlonly overlays png rrdcgi snmp ss e sse2 truetype unicode xattr" Unset: ACCEPT_KEYWORDS, EMERGE_DEFAULT_OPTS srv # eix -Ic nfs [I] net-fs/nfs-utils (1.1.3@06.02.2009): NFS client and server daemons [I] net-libs/libnfsidmap (0.19@23.11.2007): NFSv4 ID <-> name mapping library srv # eix -Ic portmap [D] net-nds/portmap (6.0@06.02.2009): Netkit - portmapper Request for additional info.
This seems to be dupe of bug #65199. I wish the Debian patch already landed on Gentoo as well. :( Further, dig out from internet the FreeBSD patch mentioned here: http://www.mail-archive.com/freebsd-current@freebsd.org/msg26641.html http://www.mail-archive.com/freebsd-current@freebsd.org/msg26644.html
portmap is dead. we're forcing people to convert to rpcbind now.