Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs can't start: rpc.mountd: svc_tli_create could not ...
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
jody
Guru
Guru


Joined: 16 Oct 2007
Posts: 540
Location: Switzerland

PostPosted: Tue Jun 07, 2011 1:08 pm    Post subject: nfs can't start: rpc.mountd: svc_tli_create could not ... Reply with quote

Hi
I just did a new install (2.6.38-r6) for x86_64.
I have rebooted and emerged nfs-utils (1.2.3-r1).
But when i start nfs i get strange errors:
Code:
 ~ # /etc/init.d/nfs start
 * Starting NFS mountd ...
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6                                                                                                       [ !! ]
 * Starting NFS daemon ...
rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to create inet6 TCP socket: errno 97 (Address family not supported by protocol)
rpc.nfsd: unable to set any sockets for nfsd                                                                                                                         [ !! ]
 * Starting NFS smnotify ...                                                                                                                                         [ ok ]
 * ERROR: nfs failed to start


rpc.statd can't start as well, but doesn't give a reason:
Code:
 ~ # /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * start-stop-daemon: failed to start `/sbin/rpc.statd'                                                                                                              [ !! ]
 * ERROR: rpc.statd failed to start


Can anybody help me to get my nfs running?

Thank You
Jody
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Jun 07, 2011 1:44 pm    Post subject: Reply with quote

is ipv6 enabled in the kernel?
did you build nfs-utils with ipv6 support? Try doing so without ipv6 support (add -ipv6 to your USE flags in make.conf, and rebuild)
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
jody
Guru
Guru


Joined: 16 Oct 2007
Posts: 540
Location: Switzerland

PostPosted: Tue Jun 07, 2011 2:19 pm    Post subject: Reply with quote

Hi cach0rr0
(i didn't recognize you at first because of the different picture)

Thank You for your reply.
I reemerged nfs-utils with '-ipv6' in my make.conf's USE.
This has changed something, but there is still a problem:
Code:
linux # /etc/init.d/nfs start
 * Starting NFS mountd ...                                                                 [ !! ]
 * Starting NFS daemon ...
rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd                                               [ !! ]
 * Starting NFS smnotify ...                                                               [ ok ]
 * ERROR: nfs failed to start

I also rebuilt the kernel because this has once worked for me with this problem,
but now it didn't help.
And for rpc.statd the behavior is still the same as above (failing without a reason)

Do You have another idea?

Thank You
Jody
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Jun 07, 2011 2:46 pm    Post subject: Reply with quote

'tis now failing for a different reason - rather, what we're seeing now is the same end result, but with different symptoms and a different root cause.

before it was failing, presumably, because nfs userspace stuff was built with ipv6 support, and trying to bind to ipv6 addresses, but alas none existed

now it's failing because it cant connect to the portmap (?) service.

Do you have rpcbind installed? If so, try /etc/init.d/rpcbind start, and see if you can start nfs.
if not, see if there are a half dozen rpc.* services in /etc/init.d, and try starting them up, THEN starting up nfs.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
jody
Guru
Guru


Joined: 16 Oct 2007
Posts: 540
Location: Switzerland

PostPosted: Tue Jun 07, 2011 3:46 pm    Post subject: Reply with quote

Thanks cach0rr0

There was a rpcbind which i could start,
and after that nfs started without complaints.

Would it suffice to do "rc-update add rpcbind default" ?
Or do i have to make sure in some way that rpcbind is started *before* nfs at booting time?

Have therre been some changes involved in NFS et al?
I think remembering that before i could simply start nfs and it would start all other services it needed...

Thank You
Jody
Back to top
View user's profile Send private message
jody
Guru
Guru


Joined: 16 Oct 2007
Posts: 540
Location: Switzerland

PostPosted: Tue Jun 07, 2011 4:09 pm    Post subject: Reply with quote

Follow-Up:

I did
Code:
~ # rc-update add rpcbind default
 * service rpcbind added to runlevel default
~ # rc-update add nfs default
 * service nfs added to runlevel default
~ # rc-update -s | grep -e nfs -e rpcbind     
                  nfs | default                     
              rpcbind | default                   

But when i rebooted the server, none of the two was running.
I found no message at all about nfs or rpcbind in dmesg:
Code:
~ # dmesg | grep nfs     
[    0.511249] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
~ # dmesg | grep rpcbind
~ #


But manually i could start both of them (rpcbind, then nfs).

So i guess i still am missing something...
Thank You
jody
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 472
Location: FRANCE

PostPosted: Mon Dec 17, 2012 12:12 am    Post subject: Reply with quote

Same message, different reason:

Code:
uranus ~ # /etc/init.d/nfs restart
 * Starting NFS statd ...
 * start-stop-daemon: failed to start `/sbin/rpc.statd'                                     [ !! ]
 * ERROR: rpc.statd failed to start
 * ERROR: cannot start nfs as rpc.statd would not start
uranus ~ #


Code:
uranus ~ # /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * start-stop-daemon: failed to start `/sbin/rpc.statd'                                           [ !! ]
 * ERROR: rpc.statd failed to start
uranus ~ #


Code:
uranus ~ # ps aux | grep rpc
root       653  0.0  0.0      0     0 ?        S    Dec16   0:00 [rpciod/0]
root       654  0.0  0.0      0     0 ?        S    Dec16   0:00 [rpciod/1]
root       655  0.0  0.0      0     0 ?        S    Dec16   0:00 [rpciod/2]
root       656  0.0  0.0      0     0 ?        S    Dec16   0:00 [rpciod/3]
root      2140  0.0  0.0      0     0 ?        S    Dec16   0:00 [krxrpcd/0]
root      2141  0.0  0.0      0     0 ?        S    Dec16   0:00 [krxrpcd/1]
root      2142  0.0  0.0      0     0 ?        S    Dec16   0:00 [krxrpcd/2]
root      2143  0.0  0.0      0     0 ?        S    Dec16   0:00 [krxrpcd/3]
root     18205  0.0  0.0  10560   832 pts/3    S+   01:10   0:00 grep --colour=auto rpc
uranus ~ #
uranus ~ # kill 653
uranus ~ # kill 653
uranus ~ # kill -9 653
uranus ~ # kill -9 653
uranus ~ # kill -9 653
uranus ~ # kill -9 2140
uranus ~ # kill -9 2140
uranus ~ # kill -9 2140


I always get them start normally at boot time; but I am never able to restart them. I understand that during the stop, they don't really die. And obviously, they are quiet ... unsensible to kill -9
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Tue Dec 18, 2012 1:31 pm    Post subject: Reply with quote

do you have dmesg logs?
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 472
Location: FRANCE

PostPosted: Wed Dec 19, 2012 5:11 am    Post subject: Reply with quote

So ... he is asking for more logs. I had to this last, just before bed time, cause it's donna kill my machine :D

Code:
uranus ~ # /etc/init.d/rpc.statd stop 
 * Stopping NFS mountd ...                                                                              [ ok ]
 * Stopping NFS daemon ...                                                                                 [ ok ]
 * Unexporting NFS directories ...                                                                       [ ok ]
 * Stopping NFS statd ...                                                                                   [ ok ]
uranus ~ # /etc/init.d/rpc.statd start
 * Starting NFS statd ...                                                                                   [ ok ]
uranus ~ #


oh ... arg :/

back to what I did first time.

Code:
uranus ~ # /etc/init.d/nfs restart
 * Exporting NFS directories ...                                                           [ ok ]
 * Starting NFS mountd ...                                                                     [ ok ]
 * Starting NFS daemon ...                                                                     [ ok ]
 * Starting NFS smnotify ...                                                                   [ ok ]
uranus ~ # /etc/init.d/nfsmount restart
 * Starting NFS sm-notify ...                                                                      [ ok ]
 * Mounting NFS filesystems ...                                                               [ ok ]
uranus ~ # /etc/init.d/portmap restart
 * Unmounting NFS filesystems ...                                                                                                                                                                         [ ok ]
 * Stopping NFS mountd ...                                                                  [ ok ]
 * Stopping NFS daemon ...                                                                   [ ok ]
 * Unexporting NFS directories ...                                                            [ ok ]
 * Stopping NFS statd ...                                                                         [ ok ]
 * Stopping portmap ...                                                                  [ ok ]
 * Starting portmap ...                                                                      [ ok ]
uranus ~ #  * Starting NFS statd ...
 * start-stop-daemon: failed to start `/sbin/rpc.statd'                            [ !! ]
 * ERROR: rpc.statd failed to start
 * ERROR: cannot start nfsmount as rpc.statd would not start
 * ERROR: cannot start nfs as rpc.statd would not start
                               
uranus ~ #         


Better :)

Code:
uranus ~ # /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * start-stop-daemon: failed to start `/sbin/rpc.statd'                                  [ !! ]
 * ERROR: rpc.statd failed to start
uranus ~ #


now dmesg

Code:
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
nfsd: last server has exited, flushing export cache
svc: failed to register lockdv1 RPC service (errno 97).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
nfsd: last server has exited, flushing export cache
svc: failed to register lockdv1 RPC service (errno 97).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
nfsd: last server has exited, flushing export cache


ok, so, let's wait 90s ...

Code:
uranus ~ # sleep 90
uranus ~ # /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * start-stop-daemon: failed to start `/sbin/rpc.statd'                                                              [ !! ]
 * ERROR: rpc.statd failed to start
uranus ~ #

_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
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