Ubuntu 18.04 running plex server can't mount network disk running at QNAP NAS

Something goes wrong.

nuc@NUC:~$ ls -la /nas
ls: cannot access '/nas/Bajki': Permission denied
ls: cannot access '/nas/..': Permission denied
ls: cannot access '/nas/.': Permission denied
ls: cannot access '/nas/Filmy': Permission denied
ls: cannot access '/nas/Seriale': Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
d????????? ? ? ? ?            ? Bajki
d????????? ? ? ? ?            ? Filmy
d????????? ? ? ? ?            ? Seriale
nuc@NUC:~$ sudo ls -la /nas
total 32
drw-r--r--  5 root root 4096 lut 16 13:51 .
drwxr-xr-x 25 root root 4096 lut  8 23:25 ..
drwxrwx---  2 root root 4096 lut  9 22:15 Bajki
drwxrwx---  3 root root 4096 lut 14 23:54 Filmy
drwxrwx--- 19 root root 4096 lut 15 09:28 Seriale

For every file at the end of line in terminal I see “… : Read-only file system”
And of course not working at all :frowning:

Maybe here is something wrong in NAS settings :

What you show is not right.

The * is default, The only field you want to change is the read-only to be read-write.

after making that change, unmount and remount the NFS share then cd out and back in.

I don’t have option like you:


I set no limit so it should be like read-write. I don’t have any idea what should be other “squash”, UID and so on…
And after umount and trying mount again I receive that:

nuc@NUC:~$ sudo mount -avt nfs
/                        : ignored
/boot/efi                : ignored
none                     : ignored
mount.nfs: trying text-based options 'sec=sys,intr,timeo=15,rsize=1048576,wsize=1048576,bg,vers=4,addr=192.168.0.128,clientaddr=192.168.0.105'
mount.nfs: mount(2): Protocol not supported
mount.nfs: Protocol not supported
mount.nfs: trying text-based options 'sec=sys,intr,timeo=15,rsize=1048576,wsize=1048576,bg,vers=4,addr=192.168.0.128,clientaddr=192.168.0.105'
mount.nfs: mount(2): Protocol not supported
mount.nfs: Protocol not supported
mount.nfs: trying text-based options 'sec=sys,intr,timeo=15,rsize=1048576,wsize=1048576,bg,vers=4,addr=192.168.0.128,clientaddr=192.168.0.105'
mount.nfs: mount(2): Protocol not supported
mount.nfs: Protocol not supported

which version of QTS are you using?

Look here. NFS v4

I use old NAS TS-210 and it runs on QTS 4.2.6.

Thanks. Now I understand.

In the NFS mount options, remove the ,vers=4 clause.

Ok after I remove that I see successfully mounted but after type df at terminal I can’t see that folder :frowning:

May I ask your skill level with Linux?

Skill lvl - newbie. I know. I though I clarify it at the beginning but maybe not :frowning:
I try to understand how it works. Regarding my problem I handle mount of thees folders and I can see it on File Manager but PMS still can’t see it.

What is the mount point ?

If it is under /media, user plex will never be able to see it.

If you used my guide, it will be /nas or similar ( /qnap ? )

It is important to set permissions (the chmod command).
Did you miss a required step?

Mounting point is like in your guide /nas. I can mount it and umount it like in point D your guide. I can see files in file manager and so on.
I used chmod -R 777 for that folders so plex should also see it right?

I received your initial posting notification. I see what you’re trying to achieve and will keep confidential.

we can do this now, with all the file systems mounted:

sudo sh
find /nas -type d -exec chmod 755 {} \;
find /nas -type f -exec chmod 644 {} \;

Now, you still own the directories and files (the 7 and the 6) with full Read/Write.
Plex can only read them.

Ok nothing happen - PMS still cannot add this directory to my library.

To confirm,

You can see them but plex cannot?

If this is true, which PMS did you install?

Dodker? SNAP (Ubuntu store) ?

Yes I can see files in that directories but plex cannot.
I think I install it from Ubuntu store.

image

Cmon @ChuckPa don’t leave me now! We are almost home! :slight_smile:

Uninstall from the Ubuntu store.
Settings - Authorized Devices - Remove the defined server.
Sign out of Plex/web

Download and install directly from Plex.
You will need create a fresh server.

Install it and then open http://127.0.0.1:32400/web
You should now be able to see your QNAP

This is because SNAP packages run as root. Root is not allowed across the network.

These are things you do need learn. I’m here to help, guide, but there are limits.

It’s working! Thank You very much for help! :beers: :beers: :beers: