Fail to start rpc nfsd
Subsystems (2)
Hi folks,
Ubuntu-6.06.1-LAMP-server-amd64
I'm following;
https://help.ubuntu.com/ubuntu/serverguide/C/index.html
Network File System (NFS)
https://help.ubuntu.com/ubuntu/serverguide/C/network-file-system.html
to build a LAMP server which is for test only, not for production. Failed to start "nfs-kernel-server"
$ sudo /etc/init.d/nfs-kernel-server start Password: * Exporting directories for NFS kernel daemon... [ ok ] * Starting rpc nfsd... [fail]
$ cat /var/log/messages ........ ......... Nov 11 22:36:15 ubuntu kernel: [ 563.144537] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery dire$Nov 11 22:36:15 ubuntu kernel: [ 563.144547] NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist Nov 11 22:36:15 ubuntu kernel: [ 563.144550] NFSD: starting 90-second grace period Nov 11 22:36:50 ubuntu kernel: [ 598.130968] portmap: server localhost not responding, timed out Nov 11 22:36:50 ubuntu kernel: [ 598.130989] RPC: failed to contact portmap (errno -5). Nov 11 22:37:25 ubuntu kernel: [ 633.112341] portmap: server localhost not responding, timed out Nov 11 22:37:25 ubuntu kernel: [ 633.112361] RPC: failed to contact portmap (errno -5). Nov 11 22:38:00 ubuntu kernel: [ 668.098108] portmap: server localhost not responding, timed out Nov 11 22:38:00 ubuntu kernel: [ 668.098128] RPC: failed to contact portmap (errno -5). * end *
Please advise how to fix the problem. TIA
B.R.
Stephen
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 45 lines · Stephen Liu
Hi folks,
Ubuntu-6.06.1-LAMP-server-amd64
I'm following;
https://help.ubuntu.com/ubuntu/serverguide/C/index.html
Network File System (NFS)
https://help.ubuntu.com/ubuntu/serverguide/C/network-file-system.htmlto build a LAMP server which is for test only, not for production. Failed to start "nfs-kernel-server"
$ sudo /etc/init.d/nfs-kernel-server start Password: * Exporting directories for NFS kernel daemon... [ ok ] * Starting rpc nfsd... [fail]$ cat /var/log/messages ........ ......... Nov 11 22:36:15 ubuntu kernel: [ 563.144537] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery dire$Nov 11 22:36:15 ubuntu kernel: [ 563.144547] NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist Nov 11 22:36:15 ubuntu kernel: [ 563.144550] NFSD: starting 90-second grace period Nov 11 22:36:50 ubuntu kernel: [ 598.130968] portmap: server localhost not responding, timed out Nov 11 22:36:50 ubuntu kernel: [ 598.130989] RPC: failed to contact portmap (errno -5). Nov 11 22:37:25 ubuntu kernel: [ 633.112341] portmap: server localhost not responding, timed out Nov 11 22:37:25 ubuntu kernel: [ 633.112361] RPC: failed to contact portmap (errno -5). Nov 11 22:38:00 ubuntu kernel: [ 668.098108] portmap: server localhost not responding, timed out Nov 11 22:38:00 ubuntu kernel: [ 668.098128] RPC: failed to contact portmap (errno -5). * end *
Quoted 1 line
Please advise how to fix the problem. TIA
sudo /etc/init.d/portmap start
Trond
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi Trond,
Tks for your advice.
Quoted 4 lines
Quoted 4 lines
I'm following;
https://help.ubuntu.com/ubuntu/serverguide/C/index.html
Network File System (NFS)
Quoted 11 lines
https://help.ubuntu.com/ubuntu/serverguide/C/network-file-system.html
Quoted 10 lines
to build a LAMP server which is for test only, not for production. Failed to start "nfs-kernel-server"
$ sudo /etc/init.d/nfs-kernel-server start Password: * Exporting directories for NFS kernel daemon... [ ok ] * Starting rpc nfsd... [fail]
- snip -
Quoted 3 lines
Quoted 1 line
Please advise how to fix the problem. TIA
sudo
/etc/init.d/portmapstart
$ sudo /etc/init.d/portmap start Password:
* Not starting portmap daemon. Already running. [ ok ]
* end *
It said already running.
What will be this command for;/etc/init.d/nfs-kernel-server start
Each time after running "apt-get upgrade" or installing a new package, it will automatically run the said command at the end. It hung there for a while before [fail] popup. How to fix it. TIA.
B.R.
Stephen
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 29 lines · Stephen Liu
Hi Trond,
Tks for your advice.
Quoted 4 lines
Quoted 4 lines
I'm following;
https://help.ubuntu.com/ubuntu/serverguide/C/index.html
Network File System (NFS)Quoted 11 lines
https://help.ubuntu.com/ubuntu/serverguide/C/network-file-system.html
Quoted 10 lines
to build a LAMP server which is for test only, not for production. Failed to start "nfs-kernel-server"
$ sudo /etc/init.d/nfs-kernel-server start Password: * Exporting directories for NFS kernel daemon... [ ok ] * Starting rpc nfsd... [fail]- snip -
Quoted 3 lines
Quoted 1 line
Please advise how to fix the problem. TIA
sudo
/etc/init.d/portmapstart$ sudo /etc/init.d/portmap start Password:
Quoted 8 lines
* Not starting portmap daemon. Already running. [ ok ]
* end *It said already running.
What will be this command for;
/etc/init.d/nfs-kernel-serverstart
Depending on the distribution, it may just be that the script left a lockfile or something out there. Make sure it's actually running with 'ps'.
If that's not it, then it's just not responding for some reason. Check your firewalling and make sure you're not blocking port 111. If that's not it, then it's probably hung for some reason and you'll need to do a bit of investigation as to why.
-- Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi jeff,
Tks for your advice.
- snip -
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
sudo
/etc/init.d/portmapstart$ sudo /etc/init.d/portmap start Password:* Not starting portmap daemon. Already running. [ ok ]
* end *
Quoted 8 lines
Quoted 5 lines
It said already running.
What will be this command for;
/etc/init.d/nfs-kernel-serverstartDepending on the distribution, it may just be that the script left a lockfile or something out there.
Which lockfile? Tks.
Quoted 2 lines
Make sure it's actually running with
'ps'.
$ ps -ef | egrep '/nfs-kernel-server' satimis 4841 4786 0 08:16 pts/2 00:00:00 grep -E /nfs-kernel-server * end *
It is not running.
Quoted 3 lines
If that's not it, then it's just not responding for some reason. Check
your firewalling and make sure you're not blocking port 111.
Can't find iptables config file on Ubuntu as it is configured as modules
$ cat /boot/config-2.6.15-26-amd64-server | grep -i "CONFIG_IP_NF" CONFIG_IP_NF_CONNTRACK=m CONFIG_IP_NF_CT_ACCT=y CONFIG_IP_NF_CONNTRACK_MARK=y # CONFIG_IP_NF_CONNTRACK_EVENTS is not set CONFIG_IP_NF_CONNTRACK_NETLINK=m CONFIG_IP_NF_CT_PROTO_SCTP=m CONFIG_IP_NF_FTP=m CONFIG_IP_NF_IRC=m CONFIG_IP_NF_NETBIOS_NS=m CONFIG_IP_NF_TFTP=m CONFIG_IP_NF_AMANDA=m CONFIG_IP_NF_PPTP=m CONFIG_IP_NF_QUEUE=m CONFIG_IP_NF_IPTABLES=m CONFIG_IP_NF_MATCH_LIMIT=m CONFIG_IP_NF_MATCH_IPRANGE=m CONFIG_IP_NF_MATCH_MAC=m CONFIG_IP_NF_MATCH_PKTTYPE=m CONFIG_IP_NF_MATCH_MARK=m CONFIG_IP_NF_MATCH_MULTIPORT=m CONFIG_IP_NF_MATCH_TOS=m CONFIG_IP_NF_MATCH_RECENT=m CONFIG_IP_NF_MATCH_ECN=m CONFIG_IP_NF_MATCH_DSCP=m CONFIG_IP_NF_MATCH_AH_ESP=m CONFIG_IP_NF_MATCH_LENGTH=m CONFIG_IP_NF_MATCH_TTL=m CONFIG_IP_NF_MATCH_TCPMSS=m CONFIG_IP_NF_MATCH_HELPER=m CONFIG_IP_NF_MATCH_STATE=m CONFIG_IP_NF_MATCH_CONNTRACK=m CONFIG_IP_NF_MATCH_OWNER=m CONFIG_IP_NF_MATCH_PHYSDEV=m CONFIG_IP_NF_MATCH_ADDRTYPE=m CONFIG_IP_NF_MATCH_REALM=m CONFIG_IP_NF_MATCH_SCTP=m CONFIG_IP_NF_MATCH_DCCP=m CONFIG_IP_NF_MATCH_COMMENT=m CONFIG_IP_NF_MATCH_CONNMARK=m CONFIG_IP_NF_MATCH_CONNBYTES=m CONFIG_IP_NF_MATCH_HASHLIMIT=m CONFIG_IP_NF_MATCH_STRING=m CONFIG_IP_NF_FILTER=m CONFIG_IP_NF_TARGET_REJECT=m CONFIG_IP_NF_TARGET_LOG=m CONFIG_IP_NF_TARGET_ULOG=m CONFIG_IP_NF_TARGET_TCPMSS=m CONFIG_IP_NF_TARGET_NFQUEUE=m CONFIG_IP_NF_NAT=m CONFIG_IP_NF_NAT_NEEDED=y CONFIG_IP_NF_TARGET_MASQUERADE=m CONFIG_IP_NF_TARGET_REDIRECT=m CONFIG_IP_NF_TARGET_NETMAP=m CONFIG_IP_NF_TARGET_SAME=m CONFIG_IP_NF_NAT_SNMP_BASIC=m CONFIG_IP_NF_NAT_IRC=m CONFIG_IP_NF_NAT_FTP=m CONFIG_IP_NF_NAT_TFTP=m CONFIG_IP_NF_NAT_AMANDA=m CONFIG_IP_NF_NAT_PPTP=m CONFIG_IP_NF_MANGLE=m CONFIG_IP_NF_TARGET_TOS=m CONFIG_IP_NF_TARGET_ECN=m CONFIG_IP_NF_TARGET_DSCP=m CONFIG_IP_NF_TARGET_MARK=m CONFIG_IP_NF_TARGET_CLASSIFY=m CONFIG_IP_NF_TARGET_TTL=m CONFIG_IP_NF_TARGET_CONNMARK=m CONFIG_IP_NF_TARGET_CLUSTERIP=m CONFIG_IP_NF_RAW=m CONFIG_IP_NF_TARGET_NOTRACK=m CONFIG_IP_NF_ARPTABLES=m CONFIG_IP_NF_ARPFILTER=m CONFIG_IP_NF_ARP_MANGLE=m * end *
$ dpkg -l iptables Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==================-==================-==================================================== ii iptables 1.3.3-2ubuntu4 Linux kernel 2.4+ iptables administration tools * end *
$ which /sbin/iptables /sbin/iptables
$ sudo iptables --list Password: Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination TCPMSS tcp -- anywhere anywhere tcp
flags:SYN,RST/SYN tcpmss match 1400:1536 TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
satimis@ubuntu:~$ sudo iptables --list | grep port * end *
Quoted 5 lines
If
that's
not it, then it's probably hung for some reason and you'll need to do a
bit of investigation as to why.
Where shall I start to hunt? TIA
B.R.
Stephen
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 3 lines · Stephen Liu
$ ps -ef | egrep '/nfs-kernel-server' satimis 4841 4786 0 08:16 pts/2 00:00:00 grep -E /nfs-kernel-server
It's portmap you need to grep for.
--b.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi J. Bruce,
Tks for your advice.
Quoted 5 lines
Quoted 3 lines
$ ps -ef | egrep '/nfs-kernel-server' satimis 4841 4786 0 08:16 pts/2 00:00:00 grep -E /nfs-kernel-serverIt's portmap you need to grep for.
$ ps -ef | egrep portmap daemon 3513 1 0 07:58 ? 00:00:00 /sbin/portmap -i 127.0.0.1 satimis 4902 4786 0 09:01 pts/2 00:00:00 grep -E portmap * end *
It is there.
Why each time on running;
$ sudo /etc/init.d/nfs-kernel-server restart
Password:
* Stopping rpc mountd...
[ ok ]
* Stopping rpc nfsd...
[ ok ]
* Unexporting directories for NFS kernel daemon...
[ ok ]
* Exporting directories for NFS kernel daemon...
[ ok ]
* Starting rpc nfsd...
[fail]
* end *It hung on "Starting rpc nfsd..." a while before [fail] popup. And each time after "running apt-get upgrade" or after installing new package it repeats running the above commands. Finally failed.
Is there anyway to fix the said problem? TIA
B.R.
Stephen
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 10 lines · Stephen Liu
Hi J. Bruce,
Tks for your advice.
Quoted 5 lines
Quoted 3 lines
$ ps -ef | egrep '/nfs-kernel-server' satimis 4841 4786 0 08:16 pts/2 00:00:00 grep -E /nfs-kernel-serverIt's portmap you need to grep for.
Quoted 7 lines
$ ps -ef | egrep portmap daemon 3513 1 0 07:58 ? 00:00:00 /sbin/portmap -i 127.0.0.1 satimis 4902 4786 0 09:01 pts/2 00:00:00 grep -E portmap * end *It is there.
Check that you don't have an entry in /etc/hosts.deny that is blocking access to portmap. Also check that you don't have any iptables entries that are doing the same.
Trond
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi Trond,
Tks for your advice.
Quoted 12 lines
Quoted 12 lines
Quoted 5 lines
Quoted 3 lines
$ ps -ef | egrep '/nfs-kernel-server' satimis 4841 4786 0 08:16 pts/2 00:00:00 grep -E /nfs-kernel-serverIt's portmap you need to grep for.
$ ps -ef | egrep portmap daemon 3513 1 0 07:58 ? 00:00:00 /sbin/portmap -i 127.0.0.1 satimis 4902 4786 0 09:01 pts/2 00:00:00 grep -E portmap * end *
Quoted 5 lines
Quoted 1 line
It is there.
Check that you don't have an entry in
/etc/hosts.denythat is blocking
access to portmap.
Nothing enabled on /etc/hosts.deny file. Just retain its original file without touched.
Quoted 3 lines
Also check that you don't have any iptables
entries
that are doing the same.
$ sudo iptables --list Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN tcpmss match 1400:1536 TCPMSS clamp to PMTU ACCEPT all -- 192.168.0.0/16 anywhere ACCEPT all -- anywhere 192.168.0.0/16 state
RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
* end *
$ sudo /etc/init.d/nfs-kernel-server restart * Stopping rpc mountd... [ ok ] * Stopping rpc nfsd... [ ok ] * Unexporting directories for NFS kernel daemon... [ ok ] * Exporting directories for NFS kernel daemon... [ ok ] * Starting rpc nfsd... [fail] * end *
Failed.
$ sudo /etc/init.d/nfs-kernel-server force-reload * Re-exporting directories for NFS kernel daemon... [ ok ] * end *
But "force-reload" was OK
Tks.
B.R.
Stephen
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs