NFS Issue on TrueNAS-SCALE-22.02.0

impovich

Explorer
Joined
May 12, 2021
Messages
72
Hi all, I can't access my shares via NFS anymore after upgrading from RC2 to TrueNAS-SCALE-22.02.0 version from mac os.

MacOs BigSur 11.6.5


Code:
sudo mount 192.168.10.15:/mnt/storage_404/data/ /Users/user/test/
mount_nfs: can't mount /mnt/storage_404/xcp-ng/iso/ from 192.168.10.15 onto /Users/user/test:  Operation not permitted
mount: /Users/user/test failed with 1


sudo mount 192.168.10.15:/mnt/storage_404/xcp-ng/iso/ /Users/user/test/
mount_nfs: can't mount /mnt/storage_404/xcp-ng/iso/ from 192.168.10.15 onto /Users/user/test: Permission denied
mount: /Users/user/test failed with 13


Code:
showmount -e 192.168.10.15
showmount: Cannot retrieve info from host: 192.168.10.15: RPC failed:: RPC: Program/version mismatch; low version = 3, high version = 3


Code:
rpcinfo 192.168.10.15 |egrep "service|nfs"
   program   version netid      address                  service    owner
   100003       3     tcp       0.0.0.0.8.1              nfs        superuser
   100003       4     tcp       0.0.0.0.8.1              nfs        superuser
   100227       3     tcp       0.0.0.0.8.1              nfs_acl    superuser
   100003       3     udp       0.0.0.0.8.1              nfs        superuser
   100227       3     udp       0.0.0.0.8.1              nfs_acl    superuser
   100003       3     tcp6      ::.8.1                   nfs        superuser
   100003       4     tcp6      ::.8.1                   nfs        superuser
   100227       3     tcp6      ::.8.1                   nfs_acl    superuser
   100003       3     udp6      ::.8.1                   nfs        superuser
   100227       3     udp6      ::.8.1                   nfs_acl    superuser
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
There are two issues potentially affecting MacOS and NFS in 22.02.0:
(1) rpc.statd not running. You can start by running command "rpc.statd"
(2) potentially need to set `allow_nonroot` option for NFS service. `midclt call nfs.update '{"allow_nonroot": true}'`
 

impovich

Explorer
Joined
May 12, 2021
Messages
72
There are two issues potentially affecting MacOS and NFS in 22.02.0:
(1) rpc.statd not running. You can start by running command "rpc.statd"
(2) potentially need to set `allow_nonroot` option for NFS service. `midclt call nfs.update '{"allow_nonroot": true}'`
`midclt call nfs.update '{"allow_nonroot": true}'` - made it to work) Thank you!!!!
 

MurtaghsNAS

Dabbler
Joined
Jul 21, 2021
Messages
17
There are two issues potentially affecting MacOS and NFS in 22.02.0:
(1) rpc.statd not running. You can start by running command "rpc.statd"
(2) potentially need to set `allow_nonroot` option for NFS service. `midclt call nfs.update '{"allow_nonroot": true}'`

I am having similar issues with Linux/Android NFS shares. I am currently away from my systems, but this looks promising as a solution. Just to be clear, the commands you are issuing are Truenas console commands, correct?
 

MurtaghsNAS

Dabbler
Joined
Jul 21, 2021
Messages
17
Thanks! I will try these later tonight. My situation is flexible enough I was able cope with a DLNA work around, but NFS is the better solution.
 

MurtaghsNAS

Dabbler
Joined
Jul 21, 2021
Messages
17
The
midclt call nfs.update '{"allow_nonroot": true}'
got me working as well. Thank you very much for the help!
 
Joined
Aug 3, 2022
Messages
1
Hello,

So I am running into this issue - I am running TrueNAS-SCALE-22.02.3 and trying to 'showmount' from macOS Monterey version 12.4.

When I execute rpc.statsd, I get the following output :

Code:
root@truenas[~]# rpc.statd
Statd service already running!


Ans when I execute midclt call nfs.update '{"allow_nonroot": true}', I get the following output :

Code:
root@truenas[~]# midclt call nfs.update '{"allow_nonroot": true}' | jq -r .
{
  "id": 1,
  "servers": 16,
  "udp": true,
  "allow_nonroot": true,
  "v4": false,
  "v4_v3owner": false,
  "v4_krb": false,
  "bindip": [
    "XXX.XXX.XXX.XXX"
  ],
  "mountd_port": null,
  "rpcstatd_port": null,
  "rpclockd_port": null,
  "mountd_log": false,
  "statd_lockd_log": false,
  "v4_domain": "",
  "v4_krb_enabled": false,
  "userd_manage_gids": false,
  "v4_owner_major": ""
}


I have spent days trying to find a solution. Would appreciate if there are any pointers on how to resolve this.
 
Top