NFS stopped working

I have used nfs from my computer (server) mounted in osmc for several weeks and it has worked perfectly.

This morning, all of a sudden, it does not work. The share is not mounted in /mnt/Video as it should. But it still works to access the same nfs share from my other computer, and I have not changed anything. fstab on osmc as well as exports on the server checks out, tried sudo mount -a on osmc. Tried rebooting both server and osmc.

The only thing I have changed, is that I connected a new switch yesterday, but after that I watched video from my nfs share on kodi and it worked. And I can still ssh to osmc both from my server and computer. IP is still the same for both server and osmc, the router is the same and I have set static IP there, and verified the IP when I connected with ssh to both server ans osmc.

Please help

Which OS are you running?

Can you share the showmount -e <server ip> and also the fstab entries?

Wow quick reply :slight_smile:

Server running ubuntu 20.04

osmc@osmc:~$ showmount -e
clnt_create: RPC: Program not registered

get the same from showmount -e on my computer, where I can still access the nfs share.

/etc/fstab

# rootfs is not mounted in fstab as we do it via initramfs. Uncomment for remount (slower boot)
#/dev/vero-nand/root  /    ext4      defaults,noatime    0   0
#
192.168.1.101:/mnt/raid5/Video/           /mnt/Video      nfs    noauto,x-systemd.automount,async  0  0

Sorry I mistyped, surley need to be followed by the IP of the server.
showmount -e 192.168.1.101

of course, I should have remembered that myself

The result is the same both from my computer ans osmc

Export list for 192.168.1.101:
/mnt/raid5/Video 192.168.1.103
/mnt/raid5       192.168.1.102

so 192.168.1.103 is the IP from OSMC box?

Yes

/etc/exports on the server

#
#
/mnt/raid5          192.168.1.102(rw,async,no_subtree_check,fsid=1)
/mnt/raid5/Video    192.168.1.103(rw,async,no_subtree_check,fsid=1)

I tried to disable ufw as well, leaving it disabled for now

Well that got in your way the first time

Maybe try to force the version.

192.168.1.101:/mnt/raid5/Video/           /mnt/Video      nfs    vers=3,noauto,x-systemd.automount,async  0  0

Yep, I trie to learn from my mistakes. After I got it working I found this library auto update addon in kodi, and during this past night I had the server shut down. If that could have messed up anything…? But I the server have been turned of before and it did not cause any issue.

vers=3 not help… not after mount -a and not after a reboot, still

osmc@osmc:~$ cd /mnt/Video
osmc@osmc:/mnt/Video$ ls
osmc@osmc:/mnt/Video$

What is mount saying?
Do you see any errors in the log? Run sudo journalctl -f while you mount from another terminal window.

osmc@osmc:~$ sudo journalctl -f
-- Logs begin at Thu 2021-04-22 11:43:31 CEST. --
apr 22 11:45:40 osmc kernel: i2s/958 same source - init spdif
apr 22 11:45:40 osmc kernel: aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
apr 22 11:45:40 osmc kernel: aml_spdif_dai: set divider = 2 for i2s shared clock
apr 22 11:45:40 osmc kernel: aml_audio_hw: IEC958 PCM32
apr 22 11:45:40 osmc kernel: hdmitx: audio: aout notify rate 44100
apr 22 11:45:40 osmc kernel: hdmitx: audio: aout notify size 32
apr 22 11:45:40 osmc kernel: hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
apr 22 11:45:40 osmc kernel: hdmitx: audio: no update
apr 22 11:46:00 osmc sudo[1048]:     osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -f
apr 22 11:46:00 osmc sudo[1048]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
apr 22 11:47:06 osmc sshd[1058]: rexec line 15: Deprecated option UsePrivilegeSeparation
apr 22 11:47:06 osmc sshd[1058]: rexec line 18: Deprecated option KeyRegenerationInterval
apr 22 11:47:06 osmc sshd[1058]: rexec line 19: Deprecated option ServerKeyBits
apr 22 11:47:06 osmc sshd[1058]: rexec line 30: Deprecated option RSAAuthentication
apr 22 11:47:06 osmc sshd[1058]: rexec line 42: Deprecated option RhostsRSAAuthentication
apr 22 11:47:06 osmc sshd[1058]: reprocess config line 30: Deprecated option RSAAuthentication
apr 22 11:47:06 osmc sshd[1058]: reprocess config line 42: Deprecated option RhostsRSAAuthentication
apr 22 11:47:09 osmc sshd[1058]: Accepted password for osmc from 192.168.1.102 port 54292 ssh2
apr 22 11:47:09 osmc sshd[1058]: pam_unix(sshd:session): session opened for user osmc by (uid=0)
apr 22 11:47:09 osmc systemd-logind[253]: New session c2 of user osmc.
apr 22 11:47:09 osmc systemd[1]: Started Session c2 of user osmc.
apr 22 11:47:09 osmc sudo[1083]:     osmc : TTY=pts/1 ; PWD=/home/osmc ; USER=root ; COMMAND=/usr/bin/getent shadow osmc
apr 22 11:47:09 osmc sudo[1083]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
apr 22 11:47:09 osmc sudo[1083]: pam_unix(sudo:session): session closed for user root
apr 22 11:47:16 osmc sudo[1117]:     osmc : TTY=pts/1 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/mount -a
apr 22 11:47:16 osmc sudo[1117]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
apr 22 11:47:16 osmc sudo[1117]: pam_unix(sudo:session): session closed for user root

So how about mount output?

Do you mean

osmc@osmc:~$ sudo mount -a
osmc@osmc:~$

No, I mean mount

ran mount -a while journalctl -f ran in another window

Sorry, when there was no parameter I didn’t think it was a command. Here it is

osmc@osmc:/mnt/Video$ mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=757400k,nr_inodes=189350,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
/dev/mapper/vero--nand-root on / type ext4 (rw,relatime,stripe=1024,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/bfqio type cgroup (rw,nosuid,nodev,noexec,relatime,bfqio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=176412k,mode=700,uid=1000,gid=1000)

there was nothing new in journalctl -f when I ran mount

Ok let’s try step by step.

  1. Create a test folder mkdir/mnt/test
  2. Try to mount to that directory mount -t nfs 192.168.1.101:/mnt/raid5/Video/ /mnt/test
  3. If no error check the result ls -lah /mnt/test

well that worked nicely

osmc@osmc:/mnt/Video$ sudo mkdir /mnt/test
osmc@osmc:/mnt/Video$ sudo mount -t nfs 192.168.1.101:/mnt/raid5/Video/ /mnt/test
osmc@osmc:/mnt/Video$ ls -lah /mnt/test
totalt 20K
drwxrwxrwx  5 osmc osmc 4,0K apr 13 23:44 .
drwxr-xr-x  4 root root 4,0K apr 22 12:06 ..
drwxrwxr-x 47 osmc osmc 4,0K apr 21 21:56 Film
drwxrwxr-x 33 osmc osmc 4,0K apr 19 14:34 Serier
drwxrwxr-x  4 osmc osmc 4,0K mar 17 16:33 .Trash-1000
osmc@osmc:/mnt/Video$ 

Maybe /etc/fstab is somehow ignored?