Solution: Kodi -> NFS -> TrueNAS Scale

alcorza

Cadet
Joined
Jun 26, 2022
Messages
1
Hi guys - I've been battling to get a good solution anywhere for trying to figure out the whole accessing an NFS share from Kodi thing.

As of writing this, I am running TrueNAS-SCALE-22.02.2

Environment:

CPU: AMD Ryzen 7 PRO 4750G with Radeon Graphics (Renoir)
RAM: 32 GB DDR-4 3200 GSkill Trident Z RGB (non-ECC)
Board: Asrock B550 Steel Legend
Ethernet: 2.5G Dragon RTL8125BG
Boot Pool: 2 x WD Green 120GB SATA SSDs
Pool 1: 6 x Seagate IronWolf Pro 4 TB SATA attached to a LSI SAS 2308 HBA (RAIDZ2)
Pool 2: 1 x WD Blue 500GB NVME (No redundancy - not used for critical data)

So the solution is quite simple.

1. System Settings > Services > NFS (Pencil icon to configure)
2. Make sure "Enable NFSv4" is enabled.
3. Make sure "NFSv3 ownership model for NFSv4" is enabled.
4. Make sure "Allow non-root mount" under "Other Options" is enabled.
5. Add your NFS Shares and ensure the service is running.

And this was the part I needed to figure out which was key...

6. Storage > Dataset Actions (3 dots on the right of the dataset/volume) > View Permissions
7. Dataset Permissions > Edit (the pencil icon)
8. Add Item > User
9. Add the user "nobody"
10. Set the permissions to "Read"
11. Apply the permissions recursively - if you have sub folders that need to be accessed.

This solved this issue for me, hope it's of use to someone else!
 

MrGuvernment

Patron
Joined
Jun 15, 2017
Messages
268
I am just going through this issue myself.

Question, when you go into Kodi and click on NFS for share to browse, does your TrueNAS IP show up?

For my my QNAP shows up fine, but TrueNAS server does not auto show up?
 

MrGuvernment

Patron
Joined
Jun 15, 2017
Messages
268
So, to come back to this, I had done this initially and I could browse the root NFS share, I then copied some directories into that root from a Windows System, but now, those files are not visible to my Kodi..

It seems for some reason, permissions are not auto replicating down to files and folders for NFS shares...
 

GalloB

Cadet
Joined
Aug 2, 2023
Messages
1
Thought I'd add my experience here after spending a day trying to get this to work. I could not get access to the shared folder using NFS no matter what I did or what settings I used.

TrueNAS-SCALE-22.12.3.3
Latest Kodi 20.2 release on Windows and on Android

This morning I reviewed the share settings and kept it simple:

My dataset looks like this
/mnt/tank/share

In shares - unix shares - ... config service
everything is unselected

Then I confirmed the folder above was shared

In Shares - Unix Shares - view all ... edit
path: /mnt/tank/share
Enabled

Advanced options
Mapall User
root

That just worked in Kodi. The only other account I have running on this test rig in TrueNAS is root

I'm new to TrueNAS so not sure if the Mapall User to root is a huge security risk (it's a home network not exposed to the internet and I'm the only user).

But that is the only way I can get NFS shares to work with Kodi. NSF discovery doesn't work in Kodi - you have to type the ip in (so for me that was 192.168.0.191/mnt/tank/share/ but that's not a big deal to do once.
 
Top