NFS and SMB, Neither work well!

Thank you for that @angry.sardine I’ll copy your settings because mine are right out of the box.

I do have an aggressive firewall (comodo is default deny) but I tried to set everything up allowing all the files and checking the block log to allow specific ports.
If you happen to know what to exactly allow (IP to IP on Port to Port) for everything I’d be most grateful.

I’m going to go with whatever is best, for both me and everyone here because if it doesn’t work I’m taking up your precious time again :slight_smile:

Just tell me what to do next, once this is set up and it works i’ll move to the vero’s but that’s just one template and it all should work I think (since vero is more supported than Pi by default)

Well I just saw in the setup @angry.sardine showed you the -name option of Hanewin. I suggest to use that so that you have clear export names and then you can mount them all clean with the same name on all clients.

I’m using that @fzinken I think, all my mounts right now are done through the kodi menu and I just have Movies and Films, TVShows and Anime. I won’t have to clean all my libraries do I?
I have no idea what to do next, I’m a big enough person to say that this is way above my head (and I work in computer stuff to, just not in this area of expertise).

@angry.sardine do I need the web NFS protocol and the thing below that? I’ve never used it before, I need it i’ll check it

I’m not familiar with comodo, but in the plain Windows Defender firewall, you would need to set exceptions for C:\Program Files\nfsd\nfsd.exe C:\Program Files\nfsd\pmapd.exe and possibly also C:\Program Files\nfsd\nfssrv.exe (depending on Hanewin version you may not have that file). You can see all the ports that it’s using if you look at the appropriate tab in Preferences:

hw3

So, 111, 1058, 2049, and 4045, both TCP and UDP.

I suggest you try using the same settings as me to begin with; if that works, then you can try tweaking the settings and see if anything breaks! I am probably enabling some stuff I don’t need, TBH, but better that than lock it down too much and break something…

I copied your settings. Those ports. I’m missing 4045 in my list and it’s about 10 entries but i’m not running anything right now.

Those ports only work on pmapd.exe right? because I allowed everything (from MAC to MAC Port Any to port Any) on nfsd and pmapd.

@fzinken so how should I get started mounting the rest? I know how we did it (sort of) but I don’t know how we actually got it to work. And will I need to reset my entire library? Or can I keep it as it is? I really hope I don’t have to reset it.
Also, when that is done, could I bother you for a template/how to for the Vero’s? Once i’t works I promise I won’t bother you anymore :stuck_out_tongue:
And once that is done

Once the export is mounted using either fstab or autofs, Kodi treats it as if it were a folder in local storage. (In fact, Kodi doesn’t even know it isn’t local, only the OS knows). So, a Kodi source should point to somewhere within the home folder structure.

That’s the easiest option, but you could also use Kodi path substitution to map the original file locations to new ones. See: [HowTo] Repairing File Paths with Path Substitution

(I’m not too familiar with that, so I’ll duck out and let someone else explain the details!)

Ok so i’ll just have to wait for @fzinken to help me with my final mounts and the templates for my vero/

That last one is my thing, my library is huge but it’s mostly things that aren’t indexed by default, I had to index things manually for hours and hours so I rather just replace their location and keep what the info they have :stuck_out_tongue:

Where do the autofs mounts end up in kodi though? Just under NFS? Or are they just there? I have no idea!

Have you given them new names with -name option?
What is showmount -e showing now?

How have you done that without a central mysql database? Have you done that manually on each client or are you using nfo files?

No, not anymore using NFS in Kodi you will just find them under root filesystem -> /mnt/

Maybe to get a better understanding of your setup provide grab-logs -A from your mainly used client.

1 Like

You’re way ahead of me.

I just added these to my mount list:

/mnt/Movie 192.168.1.120:/v/Movie
/mnt/Shows 192.168.1.120:/t/Shows
/mnt/Anime 192.168.1.120:/r/Anime
/mnt/Films 192.168.1.120/u/Movies

I do not know if they work or how to test.

showmount -e gives me this
showmount -e
clnt_create: RPC: Program not registered

A mix between nfo’s and manual, I did about 500 files manual roughly on each device, thinking about it it would have been easier writing an nfo for each of them but hindsight is 20/20.

I found all of the mount myself already, tit took some time but I found it haha and everything I selected played too! so far so good!

My main used device (just like every device I have) has the exact setup as this one does, the only difference is that this one is a Pi and the others are Vero’s. I added all media through the NFS browser in Kodi on every device and I now need to get this working on my pi, then move to my vero and replace all links with the ones created by mounting :slight_smile:

Obvisouly I meant showmount -e 192.168.1.120

As soon as you have more than 1 device you should think about a shared mysql database.

1 Like

So I remain with my suggestion to go for a central mysql database and rescrape your library one last time.

If you want to continue with your current setup you would need to configure pathsubstituion

1 Like

/t/Shows 192.168.1.116,-readonly
/v/Movie 192.168.1.116,-readonly
/r/Anime 192.168.1.116,-readonly
/Films 192.168.1.116,-readonly

(no idea why /Films is just Films instead of /u/Films).

How would one start that? For now I’m fine with just replacing links (with a little help if I’m sure everything works!) but I do want to slowly start building that then.

The link is great, very detailed, but I’m an idiot and don’t know which one I need, how to run it and how to make sure I don’t blow it up haha. I’m sorry I need so much help.

But first, I got this running right now, what do I need to do to check the last paths I added, and what do I need to do on my veros!
Then the link substitution :stuck_out_tongue:

Once again I thank you for your time and I’m sorry.

Correct your last entry, based on showmount that should be

/mnt/Films 192.168.1.120:/Films

just install autofs sudo apt-get install autofs and copy over your auto.master and auto.nfs.shares files (or create them with the same content). Make sure now mount entries in fstab.

If you want help on the path substitution we need to see grab-logs -A from at least one system (best all).

1 Like

All the paths I added above myself are empty, even after a reboot… Anime, Second movies and Tv shows, all empty. (see I told you i’m a network idiot)

Shouldn’t be, let’s check once more

showmount -e 192.168.1.120 | paste-log
paste-log /etc/auto.nfs.shares
mount | paste-log

https://paste.osmc.tv/cawarajafu

Films is wrong I’m pretty sure it needs /u/ before it but the others look right.

https://paste.osmc.tv/junulupasa

https://paste.osmc.tv/woputofuza

Well if the export list is not showing u then adding it doesn’t make sense :wink:

So
ls -lah /mnt/Movie shows the right content?
ls -lah /mnt/Anime is empty?
ls -lah /mnt/Shows is empty?

But we made that list, and all of the others have t/ v/ r/ in front of them just like my NFS export except that one :stuck_out_tongue:

Yes.
Anime, Tv Shows and the second (U:/) movie folder show up as empty in mnt.

No, we didn’t made that list, that is what your server is reporting to the world. So the last line should be /mnt/Films 192.168.1.120:/Films and nothing else.

Ok, back to testing.

sudo systemctl stop autofs
sudo automount -f -v -d

And in another window do the ls commands.

They all seem to work! Except for Films (U:/) :stuck_out_tongue: that’s still empty so something is wrong with that one.

One other issue I have, if I go into kodi> files > directory back when I was using hanewin through kodi interface it showed me all the files it couldn’t process into the directory (e.g. family guy episodes 10-15 are there but there is also an episode 11.5 which is later calles S00E115 but right now nobody does anything with it so it’s just 11.5.) Normally it would show up in my kodi file list as a file but didn’t import it to the library, now it doesn’t seem to show it in the mnt either? Or am I missing something.

You’re getting really close to be done with me tho, just the films, template for Vero’s (or short do this and that) and some help with the relinking (and future building of a db myself) and I promise I won’t bother you anymore unless something horrible happens to the computer :stuck_out_tongue: