Converted files cannot be written to the server's disk - why do i get this error?

Hi, I have lifetime plex pass.

I am not sure how to begin. I have a dedicated plex server running linux mint, and i store my media on a qnap nas. I am brand new with linux. I find it frustrating to say the least. but i digress.

i find this sort of thing super easy with windows, but extraordinarily difficult with linux of any flavor. but I’m not a fan of Microsoft’s invasive privacy abuses and security flaws, so I’m trying something new. Also, i find my server runs faster in with linux for some reason.

can anyone help?

forgot to mention, everything is working fine with windows, and everything except this is working with linux.

User plex does not have permission to write to the destination directory(ies).

PMS runs faster in Linux on the same host because there is considerably less overhead in the OS (less waste) . This is what Linux is known for and why the vast majority of Web servers on the internet are Linux.

@ChuckPA said:
User plex does not have permission to write to the destination directory(ies).

PMS runs faster in Linux on the same host because there is considerably less overhead in the OS (less waste) . This is what Linux is known for and why the vast majority of Web servers on the internet are Linux.

thanks.
I should revise my question:
How do i correct permissions to enable my plex media server to avoid this error message and make optimizer work as intended. I am using linux mint 18.2 and the qnap share is smb.

the share auto mounts at boot time ( i edited /etc/fstab) and that’s working great. i can’t find a user named “plex” on my linux media server. theres a group called plex, but i don’t know how to edit permissions in linux.

If you’re using Mint (Linux) and QNAP, Why not use NFS? It’s faster and far less trouble because the QNAP is running Linux as well.

As example, I offer

# movies
vienna:/movies    /vie/movies     nfs sec=sys,intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0

Share name is movies, mounted on /vie/movies

  1. Let the system handle the security
  2. Interruptable NFS
  3. Read/Write mount
  4. Version 4 NFS (uses TCP and faster)
  5. Timeout and generate retry after 15 milliseconds if no reply from the QNAP
  6. Automatically mount at startup
  7. Async I/O (again, faster with the Linux host)
  8. Host won’t fail to start if the NAS isn’t available
  9. Push the mount into the background if too busy to complete immediately (it will mount in less than 1 second normally)

Now you can add user plex on QTS and give it permission to write to the desired locations

EDIT: If Mint gives you any permission issues after adding user plex to QTS and giving permission, remove sec=sys, from the mount options and let normal text-based authentication work.

@ChuckPA said:
If you’re using Mint (Linux) and QNAP, Why not use NFS? It’s faster and far less trouble because the QNAP is running Linux as well.

As example, I offer

# movies
vienna:/movies    /vie/movies     nfs sec=sys,intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0

Share name is movies, mounted on /vie/movies

  1. Let the system handle the security
  2. Interruptable NFS
  3. Read/Write mount
  4. Version 4 NFS (uses TCP and faster)
  5. Timeout and generate retry after 15 milliseconds if no reply from the QNAP
  6. Automatically mount at startup
  7. Async I/O (again, faster with the Linux host)
  8. Host won’t fail to start if the NAS isn’t available
  9. Push the mount into the background if too busy to complete immediately (it will mount in less than 1 second normally)

Now you can add user plex on QTS and give it permission to write to the desired locations

wow, I could have really used your help when i was setting this up!

Anyhow, I’m using smb because i had my server running in windows and i dont understand how to do anything else. I would love to switch to nfs for linux. I think i understand your post so I’ll try to get nfs working.

but won’t i still have the same underlying trouble with permissions?

edit i had to read your post a few times to understand it. I will try to enable nfs and add the user “plex” to my nas and see if that does the trick.

You won’t have any underlying problems with permissions provided you create the equivalent username on the QTS side…

There is a more ‘geeky’ way to do this (using sec=sys) but I’d prefer you not use that just yet. Translation: "remove sec=sys, from the options. :slight_smile:

“sec=sys” means the UID & GID are the only thing checked. There isn’t any other mapping going on. If UID & GID are the same on both systems, giving plex permission on QTS, automatically means anything connected over NFS to it also has the same permission.

I have a number of little tricks in the Linux Tips section at the top of the Linux forum.

ok, i’m having some difficulty understanding. i fundamentally don’t understand nfs i guess.

should i be asking this at linux mint forum?

this is what i put in my /etc/fstab file:

mount nfs

192.168.1.82:/plex nfs /media/winshare01 intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0

/media/winshare01 is just a mount point i created in the past that i dont use anymore.

I then created a user on the qnap called “plex” and gave it rw privileges to the folder “plex”

when i try to mount (sudo mount -a), it fails.
mount.nfs: mounting 192.168.1.82:/plex failed, reason given by server: No such file or directory

but there is a folder there because that’s where all my media is at. im watching as i speak.

no no… You’re fine here.

The format to use here is:

192.168.1.82:/ShareNameHere /path/to/mount/point nfs intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0

Now discect my example.

# movies
vienna:/movies    /vie/movies     nfs intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0
  1. The QNAP host ‘vienna’ has a movies share where I put all my movies.
  2. Mount that share on /vie/movies
  3. The rest of the mount options you literally repeat :slight_smile:

The username plex is used because on Mint (Linux) because that’s what we use.
NFS has two options for security: a) username or b) UID/GID. I’ve had you start out using username security. This is why you create a plex user on QTS and give it permission to read your media shares.

thanks,
I’m pretty confident that i am pointing to the correct share.
192.168.1.82:/plex
and mount point
/media/winshare01
I have several mount points in that directory for smb shares.

that’s where my media is at. Im watching right now. I created a folder on my qnap called “plex”
I created the user “plex” and gave it rw access to that folder.

Verifying the steps. (NFS has a separate permissions dropdown)

Success!

lol, sorry for the delay, it was bed time.

Your 2nd from last picture was the key. “NFS host access” was set to read only. So even though i had the correct user name and gave it rw priveliges, it didnt work until i checked that box. I’m pretty sure i understand for the future.

ok, thanks for all your help!