Cant get NFS or SMB

Content of exports

/var/lib/rancher/ 192.168.0.0/24(rw,all_squash,insecure,async,no_subtree_check)
/mnt/LongTerm/ 192.168.0.0/24(rw,all_squash,insecure,async,no_subtree_check)

Content of smb

path = /var/lib/rancher/
writeable=Yes
create mask=0777
directory mask=0777
public=no

Errors I get when trying to mount

Sep 22 19:19:44 TheLibrary unassigned.devices: Mounting Remote Share '//PIBOX/pimylifeupshare'...
Sep 22 19:19:44 TheLibrary unassigned.devices: Mount SMB share '//PIBOX/pimylifeupshare' using SMB default protocol.
Sep 22 19:19:44 TheLibrary unassigned.devices: Mount SMB command: /sbin/mount -t 'cifs' -o rw,noserverino,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=99,gid=100,credentials='/tmp/unassigned.devices/credentials_pimylifeupshare' '//PIBOX/pimylifeupshare' '/mnt/remotes/PIBOX_pimylifeupshare'
Sep 22 19:19:44 TheLibrary kernel: CIFS: Attempting to mount \\PIBOX\pimylifeupshare
Sep 22 19:19:44 TheLibrary kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Sep 22 19:19:45 TheLibrary unassigned.devices: Mounting Remote Share '192.168.0.40:/mnt/LongTerm'...
Sep 22 19:19:45 TheLibrary unassigned.devices: Mount NFS command: /sbin/mount -t 'nfs4' -o rw,noacl '192.168.0.40:/mnt/LongTerm' '/mnt/remotes/192.168.0.40_LongTerm'
Sep 22 19:19:45 TheLibrary unassigned.devices: NFS mount failed: 'mount.nfs4: mounting 192.168.0.40:/mnt/LongTerm failed, reason given by server: No such file or directory '.
Sep 22 19:19:45 TheLibrary unassigned.devices: Mounting Remote Share '192.168.0.40:/var/lib/rancher'...
Sep 22 19:19:45 TheLibrary unassigned.devices: Mount NFS command: /sbin/mount -t 'nfs4' -o rw,noacl '192.168.0.40:/var/lib/rancher' '/mnt/remotes/192.168.0.40_rancher'
Sep 22 19:19:45 TheLibrary unassigned.devices: NFS mount failed: 'mount.nfs4: mounting 192.168.0.40:/var/lib/rancher failed, reason given by server: No such file or directory '.

DietPi is the server in this set up

For smb:

        path = /var/lib/rancher
        browseable = yes
        create mask = 0664
        directory mask = 2775
        valid users = dietpi
        writeable = yes

for nfs:
(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)
Make sure you have created the samba user and added the password.

Welcome to our community

for NFS, check available mounts from client site

showmount -e <ip.of.nfs.server>

After much head banging, it appears that when I use v3 from the client side it works?
It now lists

192.168.0.0/24:/mnt/LongTerm
192.168.0.0/24:/var/lib/rancher
*:/mnt/dietpi_userdata

did you tried to remove the NFS version definition on client side from the mount option? Usually this should not be needed.

On server side, check the available NFS version

rpcinfo -t localhost nfs

@Joulinar Hey, In Unraid I have to pick one. It has v3 and 4.
V3 seems to have solved the issue of mounting it.