NFS over TCP not available from (My server ip) - network is unreachable & permission denied

5,060

As Mark Plotnick pointed out, the most likely cause for this error is network misconfiguration: your eth1 interface has been configured with the invalid address 172.23.104.0.

Unfortunately, this was not my case. I was trying to make a Raspberry Pi 3 boot from NFS and my network, hosts and NFS shares were configured correctly. After having seen a whole range of obscure errors like:

Begin: Retrying nfs mount ... short read: 24 < 28
NFS over TCP not available from [Server IP address]
pmap_getmaps.c: rpc problem: RPC: Authentication error; why = Client credential too weak
mount: RPC: Remote system error - Connection refused

I finally found the answer here (but it was also at hand here).

There was no mismatch between NFSv3 and NFSv4 in nfsd.ko module in the RPI3 kernel tree, nor it was a problem of architecture or whatever. It was simply a matter of allowing RPCs coming from my test subnetwork inside /etc/hosts.allow, like this:

#> cat /etc/hosts.allow 

rpcbind mountd nfsd statd lockd rquotad : 127.0.0.1 192.168.1.0/24 10.250.0.0/16
Share:
5,060

Related videos on Youtube

mythic
Author by

mythic

Software engineer from Slovenia

Updated on September 18, 2022

Comments

  • mythic
    mythic over 1 year

    I am trying to boot linux mint from a server I set up in virtualbox. Server is running in linux mint, and the client that I'm testing on (also virtualbox) is disk-less and booting over network. After splash screen vmlinuz and initrd are received correctly, until I get the following error:

    error

    Any info on what might be going wrong?

    • Mark Plotnick
      Mark Plotnick over 8 years
      172.23.104.0 seems like an address for an entire network, not for a specific server. What config files have that address?
    • mythic
      mythic over 8 years
      @MarkPlotnick I have two interfaces. eth0 on NAT and eth1 on internal network. eth1 is on address 172.23.104.0 with netmask 255.255.255.128. I am using dnsmasq and the config files that has that adress is the default config file that I have in /srv/tftp/pxelinux.cfg
  • Maxxx
    Maxxx over 2 years
    Worked fine after reboot too. So it's just necessary to make active any changes you made to /etc/exports.
  • Maxxx
    Maxxx over 2 years
    ie. just exportfs clearly isn't enough anymore :-/