Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334191 - net-fs/nfs-utils: `rpc.nfsd` hangs when loopback interface is down
Summary: net-fs/nfs-utils: `rpc.nfsd` hangs when loopback interface is down
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Network Filesystems
URL: http://thread.gmane.org/gmane.linux.n...
Whiteboard:
Keywords:
: 334189 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-24 03:31 UTC by dE
Modified: 2010-08-28 20:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2010-08-24 03:31:04 UTC
/etc/init.d/nfs start
nfs                       | * Caching service dependencies ...                                              [ ok ]
rpcbind                   | * Starting rpcbind ...                                                          [ ok ]
rpc.statd                 | * Starting NFS statd ...                                                        [ ok ]
nfs                       | * Mounting nfsd filesystem in /proc ...                                         [ ok ]
nfs                       | * Starting NFS mountd ...                                                       [ ok ]
nfs                       | * Starting NFS daemon ...
^Cnfs                       | * nfs: caught SIGINT, aborting

i.e. the NFS daemon never starts... it hangs forever.

Reproducible: Always

Steps to Reproduce:




emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r0, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-55-with-gentoo-2.0.1
Timestamp of tree: Sat, 21 Aug 2010 01:45:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --with-bdeps=n"
FEATURES="assume-digests distlocks fail-clean fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/manual"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a-like-o a52 aac acc acl acpi aften alib alsa amd64 amr amrnb amrr animation-rtl animgif apm asf bash-completion bazzar bcmath branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib crypt css cxx darcs dbus dga djvu dri dts dv dvd dvdr encode exif fam ffmpeg fftw firefox flac fortran ftp gdbm gif git gpm gsl gsm hal iconv jpeg jpeg2k kde lcms libnotify libsamplerate lzma lzo mad matroska matrox memlimit mercurial mikmod minimal mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nptl nptlonly nsplugin ntfs oci8-instant-client offensive ogg openal opencore-amr openexr opengl openmp optimization pam pango pcre pdf plasma png policykit ppds pppd pth python qt3support qt4 rar raw readline reflection reiserfs sdl session sharedmem shorten slang smp speex spell spl sse sse2 ssl startup-notification strong-optimization svg symlink sysfs taglib tcpd theora threads tiff truetype unicode vcd vorbis wav wavpack wmf x264 xcb xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 dE 2010-08-24 04:02:56 UTC
Now it states - 
etc/init.d/nfs start
rpcbind                   | * Starting rpcbind ...
rpc.pipefs                | * Mounting RPC pipefs ...                                                       [ ok ]
rpc.idmapd                | * Starting idmapd ...
rpc.statd                 | * Starting NFS statd ...                                                        [ ok ]
rpc.idmapd                | * make sure DNOTIFY support is enabled ...                                      [ !! ]
rpc.idmapd                | * ERROR: rpc.idmapd failed to start
nfs                       | * ERROR: cannot start nfs as rpc.idmapd would not start
OLD_BROKEN_LAP de # /etc/init.d/rpc.idmapd start
rpc.idmapd                | * Starting idmapd ...
rpc.idmapd                | * make sure DNOTIFY support is enabled ...                                      [ !! ]
rpc.idmapd                | * ERROR: rpc.idmapd failed to start
Comment 2 SpanKY gentoo-dev 2010-08-24 04:32:23 UTC
did you do what it told you to ?

    make sure DNOTIFY support is enabled

post your kernel config as an attachment
Comment 3 dE 2010-08-24 06:41:12 UTC
It didnt tell me where it was... I just forgot about the kernel.

Checking.
Comment 4 dE 2010-08-24 07:55:51 UTC
This's what's happening now - 

/etc/init.d/nfs start
rpcbind                   | * Starting rpcbind ...
rpc.pipefs                | * Mounting RPC pipefs ...                          
                            [ ok ]
rpc.idmapd                | * Starting idmapd ...
rpc.statd                 | * Starting NFS statd ...                           
                            [ ok ]
^Cnfs                       | * nfs: caught SIGINT, aborting
OLD_BROKEN_LAP de # /etc/init.d/nfs start
nfs                       | * Starting NFS mountd ...                          
                            [ ok ]
nfs                       | * Starting NFS daemon ...
^Cnfs                       | * nfs: caught SIGINT, aborting
OLD_BROKEN_LAP de # /etc/init.d/nfs start
nfs                       | * Starting NFS mountd ...                          
                            [ ok ]
nfs                       | * Starting NFS daemon ...
^Cnfs                       | * nfs: caught SIGINT, aborting


Contd...

nfs                       | * Starting NFS mountd ...                          
                            [ ok ]
nfs                       | * Starting NFS daemon ...
nfs                       |rpc.nfsd: Setting version failed: errno 16 (Device
or resource busy)
Comment 5 SpanKY gentoo-dev 2010-08-24 08:41:30 UTC
*** Bug 334189 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2010-08-24 08:43:07 UTC
so run `rpc.nfsd 6` by hand and see what it says.  if it still errors, run it through strace.  this program really doesnt do anything except tell the kernel to run some kernel nfsd threads.  if it's failing, much more likely your kernel is misconfigured.
Comment 7 dE 2010-08-24 08:46:32 UTC
Subject changed.

Solved. But don't add /etc/init.d/net as a dependency, it's just net.lo.
Comment 8 SpanKY gentoo-dev 2010-08-28 20:48:05 UTC
net.lo should be in your boot runlevel all the time.  there is no reason to not have it running.

ive reported this upstream, but i'm not going to change the init.d script.  your system is broken if you're using the network but didnt add net.lo to the boot runlevel.  fix your system.