--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: nfs-kernel-server: fails to start if exports are only defined in /etc/exports.d/*.exports
- From: Vagrant Cascadian <vagrant@debian.org>
- Date: Fri, 8 Jun 2012 00:06:15 -0700
- Message-id: <20120608070615.GP2630@talon.fglan>
Package: nfs-kernel-server
Version: 1:1.2.6-2
Severity: important
After upgrading nfs-kernel-server, it fails to start, complaining that there are no exports.
service nfs-kernel-server start
Not starting NFS kernel daemon: no exports. ... (warning).
I do not have any changes to /etc/exports, it is true, but do have exports
defined in /etc/exports.d/*.exports, and these are valid exports.
By commenting out the check for an empty /etc/exports (introduced to resolve
#673798) in /etc/init.d/nfs-kernel-server, nfsd starts and all is well again:
if [ -f /etc/exports ] # && grep -q '^[[:space:]]*[^#]*/' /etc/exports
This check should probably be either be reverted, or it should at least iterate
it through all the /etc/exports.d/*.exports files before deciding there are no
exports.
live well,
vagrant
-- Package-specific info:
-- rpcinfo --
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 53540 status
100024 1 tcp 37861 status
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049
100227 3 tcp 2049
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049
100227 3 udp 2049
100021 1 udp 36032 nlockmgr
100021 3 udp 36032 nlockmgr
100021 4 udp 36032 nlockmgr
100021 1 tcp 49636 nlockmgr
100021 3 tcp 49636 nlockmgr
100021 4 tcp 49636 nlockmgr
100005 1 udp 38872 mountd
100005 1 tcp 56753 mountd
100005 2 udp 42405 mountd
100005 2 tcp 46676 mountd
100005 3 udp 40428 mountd
100005 3 tcp 33127 mountd
-- /etc/default/nfs-kernel-server --
RPCNFSDCOUNT=8
RPCNFSDPRIORITY=0
RPCMOUNTDOPTS=--manage-gids
NEED_SVCGSSD=
RPCSVCGSSDOPTS=
-- /etc/exports --
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (120, 'unstable'), (110, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages nfs-kernel-server depends on:
ii libblkid1 2.20.1-5
ii libc6 2.13-32
ii libtirpc1 0.2.2-5
ii libwrap0 7.6.q-23
ii lsb-base 4.1+Debian4
ii nfs-common 1:1.2.6-2
ii ucf 3.0025+nmu3
nfs-kernel-server recommends no packages.
nfs-kernel-server suggests no packages.
-- Configuration Files:
/etc/init.d/nfs-kernel-server changed:
DESC="NFS kernel daemon"
PREFIX=/usr
[ -x $PREFIX/sbin/rpc.nfsd ] || exit 0
[ -x $PREFIX/sbin/rpc.mountd ] || exit 0
[ -x $PREFIX/sbin/exportfs ] || exit 0
DEFAULTFILE=/etc/default/nfs-kernel-server
RPCNFSDCOUNT=8
RPCNFSDPRIORITY=0
RPCMOUNTDOPTS=
NEED_SVCGSSD=no
RPCSVCGSSDOPTS=
PROCNFSD_MOUNTPOINT=/proc/fs/nfsd
if [ -f $DEFAULTFILE ]; then
. $DEFAULTFILE
fi
. /lib/lsb/init-functions
do_modprobe() {
if [ -x /sbin/modprobe -a -f /proc/modules ]
then
modprobe -q "$1" || true
fi
}
do_mount() {
if ! grep -E -qs "$1\$" /proc/filesystems
then
return 1
fi
if ! mountpoint -q "$2"
then
mount -t "$1" "$1" "$2"
return
fi
return 0
}
case "$1" in
start)
if [ -f /etc/exports ] # && grep -q '^[[:space:]]*[^#]*/' /etc/exports
then
do_modprobe nfsd
# See if our running kernel supports the NFS kernel server
if ! grep -E -qs "[[:space:]]nfsd\$" /proc/filesystems; then
log_warning_msg "Not starting $DESC: no support in current kernel."
exit 0
fi
do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
log_begin_msg "Exporting directories for $DESC..."
$PREFIX/sbin/exportfs -r
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
log_end_msg 0
log_daemon_msg "Starting $DESC"
log_progress_msg "nfsd"
# See if rpcbind is running
/usr/sbin/rpcinfo -p >/dev/null 2>&1
RET=$?
if [ $RET != 0 ]; then
echo
log_warning_msg "Not starting: portmapper is not running"
exit 0
fi
start-stop-daemon --start --oknodo --quiet \
--nicelevel $RPCNFSDPRIORITY \
--exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
# make sure 127.0.0.1 is a valid source for requests
ClearAddr=
if [ -f /proc/net/rpc/auth.unix.ip/channel ]
then
fgrep -qs 127.0.0.1 /proc/net/rpc/auth.unix.ip/content || {
echo "nfsd 127.0.0.1 2147483647 localhost" >/proc/net/rpc/auth.unix.ip/channel
ClearAddr=yes
}
fi
$PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
[ -z "$ClearAddr" ] || echo "nfsd 127.0.0.1 1" >/proc/net/rpc/auth.unix.ip/channel
if [ "$NEED_SVCGSSD" = "yes" ]; then
do_modprobe rpcsec_gss_krb5
log_progress_msg "svcgssd"
start-stop-daemon --start --oknodo --quiet \
--exec $PREFIX/sbin/rpc.svcgssd -- $RPCSVCGSSDOPTS
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
fi
log_progress_msg "mountd"
start-stop-daemon --start --oknodo --quiet \
--exec $PREFIX/sbin/rpc.mountd -- $RPCMOUNTDOPTS
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
log_end_msg 0
else
log_warning_msg "Not starting $DESC: no exports."
fi
;;
stop)
log_daemon_msg "Stopping $DESC"
log_progress_msg "mountd"
start-stop-daemon --stop --oknodo --quiet \
--name rpc.mountd --user 0
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
if [ "$NEED_SVCGSSD" = "yes" ]; then
log_progress_msg "svcgssd"
start-stop-daemon --stop --oknodo --quiet \
--name rpc.svcgssd --user 0
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
fi
log_progress_msg "nfsd"
start-stop-daemon --stop --oknodo --quiet \
--name nfsd --user 0 --signal 2
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
log_end_msg 0
log_begin_msg "Unexporting directories for $DESC..."
$PREFIX/sbin/exportfs -au
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
exit $RET
fi
log_end_msg 0
if mountpoint -q $PROCNFSD_MOUNTPOINT
then
$PREFIX/sbin/exportfs -f
fi
;;
status)
if pidof nfsd >/dev/null
then
echo "nfsd running"
exit 0
else
echo "nfsd not running"
exit 3
fi
;;
reload | force-reload)
log_begin_msg "Re-exporting directories for $DESC..."
$PREFIX/sbin/exportfs -r
RET=$?
log_end_msg $RET
exit $RET
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
log_success_msg "Usage: nfs-kernel-server {start|stop|status|reload|force-reload|restart}"
exit 1
;;
esac
exit 0
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: nfs-utils
Source-Version: 1:1.2.6-3
We believe that the bug you reported is fixed in the latest version of
nfs-utils, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 676604@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Luk Claes <luk@zomers.be> (supplier of updated nfs-utils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 10 Jul 2012 19:38:22 +0200
Source: nfs-utils
Binary: nfs-kernel-server nfs-common
Architecture: source i386
Version: 1:1.2.6-3
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: Luk Claes <luk@zomers.be>
Description:
nfs-common - NFS support files common to client and server
nfs-kernel-server - support for NFS kernel server
Closes: 676604
Changes:
nfs-utils (1:1.2.6-3) unstable; urgency=low
.
* Iterate through exports.d to look for expors (Closes: #676604).
Checksums-Sha1:
14564549bd08025a0679e17551e5b4da89124778 1604 nfs-utils_1.2.6-3.dsc
b1b679d2d31fc107702295246717f24d8b06f069 36332 nfs-utils_1.2.6-3.debian.tar.bz2
b0ac276fdf991bb369fba53464efed968240891e 153606 nfs-kernel-server_1.2.6-3_i386.deb
1ad7a83aef5b8d3a7484c17904e200430a73bc6f 280890 nfs-common_1.2.6-3_i386.deb
Checksums-Sha256:
f8a32f0c1bd6fa777e2d60744d405ec7fc2fda4d97e4f76508fa819902967419 1604 nfs-utils_1.2.6-3.dsc
000bb325136f2db4a50f7667b0fd2f279c3d85c69fac95708dbc5038b166df99 36332 nfs-utils_1.2.6-3.debian.tar.bz2
ebaf0979027a64e580434a2f7ba958e42ecf5cb5c5348ec0e8e69be21892326e 153606 nfs-kernel-server_1.2.6-3_i386.deb
421adef32afd338fd62338d506a1c723b9f6f9036c2fac08e881ac79dd98a609 280890 nfs-common_1.2.6-3_i386.deb
Files:
8f63e55e6b1e32ee3a85411c991fcde6 1604 net standard nfs-utils_1.2.6-3.dsc
edd085d30d9f1cc620c406356ae66af7 36332 net standard nfs-utils_1.2.6-3.debian.tar.bz2
b7873fec214857a834ec66f1d32d55d8 153606 net optional nfs-kernel-server_1.2.6-3_i386.deb
1c9316765e2c2c7018c8e79b0dd8f889 280890 net standard nfs-common_1.2.6-3_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk/8m2gACgkQ+C5cwEsrK57n9ACfRyfFiNhKw8WjDXM+pfKL2Dwa
YYcAnjmXFlN2A+fhSwfKoTBKGfJt/aww
=UNUT
-----END PGP SIGNATURE-----
--- End Message ---