Package: nfs-kernel-server Version: 1:1.0.7-3 Severity: important I get this message when trying to start NFS:
# /etc/init.d/nfs-kernel-server start Exporting directories for NFS kernel daemon...done. Starting NFS kernel daemon: nfsd mountdget_myaddress: getifaddrs: Socket operation on non-socket This Redhat list posting from 2004 seemed relevant: http://www.redhat.com/archives/fedora-devel-list/2004-September/msg01171.html Except that was a year ago, and the bugfix should have been folded in, I'd have thought. my /etc/exports: # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). /cthon 10.0.0.0/8(rw,no_root_squash,sync) my /etc/hosts: 127.0.0.1 localhost.localdomain localhost 10.101.0.27 net-targets.test net-targets # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Here's a copy of strace output from running mountd by hand: # strace /usr/sbin/rpc.mountd -F execve("/usr/sbin/rpc.mountd", ["/usr/sbin/rpc.mountd", "-F"], [/* 18 vars */]) = 0 uname({sys="Linux", node="net-targets", ...}) = 0 brk(0) = 0x6000000000008000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=16776, ...}) = 0 mmap(NULL, 16776, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2000000000030000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libwrap.so.0", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0002\0\1\0\0\0\300M\0"..., 640) = 640fstat(3, {st_mode=S_IFREG|0644, st_size=62056, ...}) = 0 mmap(NULL, 128656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2000000000044000 mprotect(0x2000000000054000, 63120, PROT_NONE) = 0 mmap(0x2000000000060000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x2000000000060000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0002\0\1\0\0\0\300m\0"..., 640) = 640fstat(3, {st_mode=S_IFREG|0644, st_size=164368, ...}) = 0 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000000000064000 mmap(NULL, 235936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2000000000068000 mprotect(0x2000000000090000, 72096, PROT_NONE) = 0 mmap(0x200000000009c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x200000000009c000 mmap(0x20000000000a0000, 6560, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000000a0000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libc.so.6.1", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0002\0\1\0\0\0\340\266"..., 640) = 640 fstat(3, {st_mode=S_IFREG|0755, st_size=2452440, ...}) = 0 mmap(NULL, 2527016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x20000000000a4000 mprotect(0x20000000002f8000, 85800, PROT_NONE) = 0 mmap(0x2000000000304000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x250000) = 0x2000000000304000 mmap(0x200000000030c000, 3880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000030c000 close(3) = 0 mmap(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000000000310000 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000000000318000 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x200000000031c000 munmap(0x2000000000030000, 16776) = 0 chdir("/var/lib/nfs") = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getpid() = 5102 rt_sigaction(SIGUSR1, {0x400000000001e140, [], SA_RESTART}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGUSR2, {0x400000000001e140, [], SA_RESTART}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGHUP, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGTERM, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGCHLD, {SIG_IGN}, NULL, 8) = 0 stat("/proc/fs/nfs/filehandle", 0x60000fffffce7890) = -1 ENOENT (No such file or directory) stat("/proc/fs/nfsd/filehandle", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 brk(0) = 0x6000000000008000 brk(0x600000000002c000) = 0x600000000002c000 open("/proc/net/rpc/auth.unix.ip/channel", O_RDWR) = 3 open("/proc/net/rpc/nfsd.export/channel", O_RDWR) = 4 open("/proc/net/rpc/nfsd.fh/channel", O_RDWR) = 5 getsockname(0, 0x60000fffffce7908, [16]) = -1 ENOTSOCK (Socket operation on non-socket) socket(PF_NETLINK, SOCK_RAW, 0) = 6 bind(6, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(6, {sa_family=AF_NETLINK, pid=5102, groups=00000000}, [12]) = 0 gettimeofday({1128552195, 862344}, NULL) = 0 sendto(6, "\24\0\0\0\22\0\1\3\3WDC\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(6, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"[EMAIL PROTECTED]"..., 4096}], msg_controllen=0, msg_flags=MSG_TRUNC}, 0) = 4096 close(6) = 0 dup(2) = 6 fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|0x8000) fstat(6, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000000000320000 lseek(6, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(6, "get_myaddress: getifaddrs: Socke"..., 58get_myaddress: getifaddrs: Socket operation on non-socket) = 58 close(6) = 0 munmap(0x2000000000320000, 65536) = 0 exit_group(1) -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: ia64 Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-1-mckinley-smp Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages nfs-kernel-server depends on: ii debconf 1.4.58 Debian configuration management sy ii libc6.1 2.3.5-6 GNU C Library: Shared libraries an ii libcomerr2 1.38-2 common error description library ii libkrb53 1.3.6-5 MIT Kerberos runtime libraries ii libnfsidmap1 0.8-1 An nfs idmapping library ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra ii nfs-common 1:1.0.7-3 NFS support files common to client ii sysvinit 2.86.ds1-4 System-V like init nfs-kernel-server recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]