LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   RPC: failed to contact portmap (errno -5). .... NFS (https://www.linuxquestions.org/questions/linux-networking-3/rpc-failed-to-contact-portmap-errno-5-nfs-483343/)

hedpe 09-14-2006 01:26 AM

RPC: failed to contact portmap (errno -5). .... NFS
 
Hey guys,

I am having an NFS problem that I can't quite figure out.

I used this guide:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS

The machine that the NFS server is on has all the appropriate ports forwarded, and is the DMZ host of the network.

The mount should be over a local LAN, the server machine is 192.168.0.1 and the client is 192.168.0.2

here is /etc/exports on 192.168.0.1:
Code:

/160gb/backups 192.168.0.2(async,no_subtree_check,rw)
here is the dmesg errors on 192.168.0.2:
Code:

portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).

why does it say "server localhost" ? where is it getting localhost from?

Here is my fstab entry for the mount on 192.168.0.2:
Code:

192.168.0.1:/160gb/backups /home/gnychis/.backups  nfs user,rw,exec,noauto 0 0
I'd greatly appreciate any help!

Thanks!
George

BogusTrumper 09-14-2006 08:02 PM

Do you have /etc/hosts.allow or /etc/hosts.deny files on your server box? If so, what do they say?

hedpe 09-14-2006 10:04 PM

nope, neither file exists

lnthai2002 09-14-2006 11:15 PM

On server, try:
rpcinfo -p localhost
to see if portmap is running on port 111, nfs is on 2049
/etc/init.d/iptables status
to see if port 111(TCP and UDP) and 2049 are opened

On client, try
rpcinfo -p localhost
to see if portmap is running on port 111, nfs on 2049
/etc/init.d/iptables status
to see if port 111(tcp and udp) and 2049 are opened

If the above is correct, on client, try
rpcinfo -p 192.168.0.1
you should see all the rpc services running on server

eisman 12-14-2006 11:17 AM

Quote:

Originally Posted by lnthai2002
.....
If the above is correct, on client, try
rpcinfo -p 192.168.0.1
you should see all the rpc services running on server

Thanks for this, I forgot to look up if portmap was running, but with your comment of above I checked my open ports with:

Code:

netstat -tupan
And I didn't see port 111 open, so looked if portmap was running, and saddly I found out it wasn't so thanks


All times are GMT -5. The time now is 01:03 AM.