Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS Broken With >=nfs-utils-1.2 ("Setting version failed")
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sun Apr 25, 2010 5:27 am    Post subject: NFS Broken With >=nfs-utils-1.2 ("Setting version fa Reply with quote

I recently upgraded to nfs-utils-1.2.2-r1, and now I can't get NFS exports to work at all. This is the output:
Code:
# /etc/init.d/nfs start
* Exporting NFS directories...                                                                                                                                          [ ok ]
* Starting NFS mountd...                                                                                                                                                [ !! ]
* Starting NFS daemon...
rpc.nfsd: Setting version failed: errno 16 (Device or resource busy)
rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: unable to set any sockets for nfsd                                                                                                                            [ !! ]
* Starting NFS smnotify...                                                                                                                                              [ ok ]
* ERROR: nfs failed to start

# dmesg               
RPC: server localhost requires stronger authentication.
RPC: failed to contact local rpcbind server (errno 13).

# uname -a
Linux superbob 2.6.28-hardened-r9 #12 SMP Mon Mar 8 15:46:26 PST 2010 x86_64 Dual-Core AMD Opteron(tm) Processor 1214 AuthenticAMD GNU/Linux
Code:
rpc.nfsd: Checking netconfig for visible protocols.
rpc.nfsd: Enabling inet udp.
rpc.nfsd: Enabling inet tcp.
rpc.nfsd: Enabling inet6 udp.
rpc.nfsd: Enabling inet6 tcp.
rpc.nfsd: knfsd is currently down
rpc.nfsd: Writing version string to kernel: -2 +3 +4
rpc.nfsd: Setting version failed: errno 16 (Device or resource busy)
rpc.nfsd: Creating inet TCP socket.
rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: unable to set any sockets for nfsd
This is my /etc/exports:
Code:
/home   192.168.0.0/255.255.255.0(async,no_subtree_check,rw,nohide)
What's wrong with this configuration? Why doesn't it work?
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sun Apr 25, 2010 6:29 am    Post subject: Reply with quote

Downgrading to 1.1.6, which uses portmapper, fixes the problem, but I need IPv6 support. That means version 1.2 or newer.
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 612
Location: Munich, Germany

PostPosted: Fri Jul 01, 2011 7:49 am    Post subject: Reply with quote

You can start rpcbind with -i to disable those authentication checks.
(in /etc/conf.d/rpcbind /etc/sysconfig/rpcbind /whatever)

man rpcbind wrote:

-i “Insecure” mode. Allow calls to SET and UNSET from any host. Normally rpcbind accepts these requests only from the loopback interface for security reasons. This change is necessary for
programs that were compiled with earlier versions of the rpc library and do not make those requests using the loopback interface.


Long term solution is to link your programs against a more recent rpc library.
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
cerise
n00b
n00b


Joined: 20 Aug 2003
Posts: 10
Location: Fremont, CA, USA

PostPosted: Sat Aug 20, 2011 9:16 am    Post subject: Reply with quote

blu3bird wrote:
You can start rpcbind with -i to disable those authentication checks.
(in /etc/conf.d/rpcbind /etc/sysconfig/rpcbind /whatever)

Long term solution is to link your programs against a more recent rpc library.


I don't see the relevance of rpcbind to this problem -- the permission denied errors come from the kernel.

The equivalent of "echo 4 > /proc/fs/nfsd/portlist" is what causes the permission denied problem (the write() returns with a -1).
_________________
----------------------------------------------------------
littlegreenmen.armory.com (or l.armory.com) is a _FREE_ shell account and game server running at the Armory! telnet/ssh in as "request" with no password for an account.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum