You are not logged in.
I've been using network sharing for about half a year. After an upgrade and a reboot yesterday, when my afpd, smbd, sshd were all working fine, nfs-server and rpcbind both running, my mac and my TV box could not connect to my server's nfs service anymore.
Showmount on my mac says:
My-Laptap:~ myname$ showmount -e 192.168.31.131
showmount: Cannot retrieve info from host: 192.168.31.131: RPC failed:: RPC: Unable to send; errno = Bad file descriptor
When trying to connecting to my server on my mac:
There was a problem connecting to the server "192.168.31.131".
Check the server name or IP address, and then try again. If you continue to have problems, contact your system administrator.
Showmount on my server says:
[i@one ~]$ showmount -e 127.0.0.1
rpc mount export: RPC: Unable to receive; errno = Connection refused
status of nfs-server:
[i@one ~]$ systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Active: active (exited) since Sun 2019-05-19 17:33:02 CST; 3h 48min ago
Main PID: 3420 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 2331)
Memory: 0B
CGroup: /nfs-server.service
May 19 17:33:02 one systemd[1]: Starting NFS server and services...
May 19 17:33:02 one systemd[1]: Started NFS server and services.
status of rpcbind:
[i@one ~]$ systemctl status rpcbind
● rpcbind.service - RPC Bind
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; disabled; vendor preset: disabled)
Active: active (running) since Sun 2019-05-19 00:44:23 CST; 20h ago
Docs: man:rpcbind(8)
Main PID: 1094 (rpcbind)
Tasks: 1 (limit: 2331)
Memory: 1000.0K
CGroup: /system.slice/rpcbind.service
└─1094 /usr/bin/rpcbind -w -f
May 19 00:44:23 one systemd[1]: Starting RPC Bind...
May 19 00:44:23 one systemd[1]: Started RPC Bind.
May 19 17:32:27 one systemd[1]: rpcbind.service: Current command vanished from the unit file, execution of the command list won't be resumed.
file /etc/exports:
[i@one ~]$ cat /etc/exports
# /etc/exports - exports(5) - directories exported to NFS clients
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
########################################################################################
/Away/Transmission-1/ *.*.*.*(ro,sync,nohide,insecure,no_subtree_check)
# /Away/Transmission-2/ *.*.*.*(ro,sync,nohide,insecure,no_subtree_check)
/Away/Transmission-3/ *.*.*.*(ro,sync,nohide,insecure,no_subtree_check)
/Up/ *.*.*.*(ro,sync,nohide,insecure,no_subtree_check)
/May/ *.*.*.*(ro,sync,nohide,insecure,no_subtree_check)
# /Island/ *.*.*.*(ro,sync,nohide,insecure,no_subtree_check)
########################################################################################
# Use `exportfs -arv` to reload.
[i@one ~]$ sudo exportfs -arv
exporting *.*.*.*:/May
exporting *.*.*.*:/Up
exporting *.*.*.*:/Away/Transmission-3
exporting *.*.*.*:/Away/Transmission-1
What should I do ?
Last edited by 1ndeed (2019-05-20 15:28:15)
Offline
Post a complete "sudo journalctl -b" and esp. ensure that you have a network connection at all (ip a, ping 192.168.31.131)
Offline
There is a bug in version 2.3.4 that causes rpc.mountd to crash if there are wildcarded client names in /etc/exports. As a workaround you can use some other notation (192.168.0.0/24 for example) or else downgrade to version 2.3.3 and wait for a fix.
EDIT: that's nfs-utils version 2.3.4, to make things clear.
Last edited by murr (2019-05-19 15:51:16)
Offline
There is a bug in version 2.3.4 that causes rpc.mountd to crash if there are wildcarded client names in /etc/exports. As a workaround you can use some other notation (192.168.0.0/24 for example) or else downgrade to version 2.3.3 and wait for a fix.
EDIT: that's nfs-utils version 2.3.4, to make things clear.
Thank you very much !!!
At first I did what you said, while It didn't work. Today I tried restarting rpcbind and nfs-server, then exportfs -arv. And It worked !!!
[i@one ~]$ sv /etc/exports
# /etc/exports - exports(5) - directories exported to NFS clients
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
########################################################################################
/Away/Transmission-1/ 192.168.31.130/24(ro,sync,nohide,insecure,no_subtree_check) 192.168.31.129/24(ro,sync,nohide,insecure,no_subtree_check)
/Away/Transmission-2/ 192.168.31.130/24(ro,sync,nohide,insecure,no_subtree_check) 192.168.31.129/24(ro,sync,nohide,insecure,no_subtree_check)
/Away/Transmission-3/ 192.168.31.130/24(ro,sync,nohide,insecure,no_subtree_check) 192.168.31.129/24(ro,sync,nohide,insecure,no_subtree_check)
/Up/ 192.168.31.130/24(ro,sync,nohide,insecure,no_subtree_check) 192.168.31.129/24(ro,sync,nohide,insecure,no_subtree_check)
/May/ 192.168.31.130/24(ro,sync,nohide,insecure,no_subtree_check) 192.168.31.129/24(ro,sync,nohide,insecure,no_subtree_check)
# /Island/ 192.168.31.130/24(ro,sync,nohide,insecure,no_subtree_check) 192.168.31.129/24(ro,sync,nohide,insecure,no_subtree_check)
########################################################################################
# Use `exportfs -arv` to reload.
[i@one ~]$ sudo systemctl restart rpcbind
[i@one ~]$ sudo systemctl restart nfs-server
[i@one ~]$ sudo exportfs -arv
exporting 192.168.31.130/24:/May
exporting 192.168.31.129/24:/May
exporting 192.168.31.130/24:/Up
exporting 192.168.31.129/24:/Up
exporting 192.168.31.130/24:/Away/Transmission-3
exporting 192.168.31.129/24:/Away/Transmission-3
exporting 192.168.31.130/24:/Away/Transmission-2
exporting 192.168.31.129/24:/Away/Transmission-2
exporting 192.168.31.130/24:/Away/Transmission-1
exporting 192.168.31.129/24:/Away/Transmission-1
[i@one ~]$
Offline