Plex in VM lost library and can't update

dankoh

Dabbler
Joined
Oct 21, 2021
Messages
14
Hi!

Plex was working like a charm and then few days ago it just broke. I see media in library but cant play. Error is "Please check that the file exists and the necessary drive is mounted." Scan library does nothing.
I tried updating but it returns an error. Took a screenshot. Any ideas?
Included is a fstab shot.

Regards,
Danijel
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    320.2 KB · Views: 155
  • 2.jpg
    2.jpg
    135.2 KB · Views: 160
Last edited:

Basserra

Dabbler
Joined
Sep 21, 2020
Messages
28
OK, in your screenshot, apt complains about permission. Warning: "/var/lib/plexmediaserver/Library/Application Support" isn't owned by "plex", UID: 998 ... So start there, with permissions. Stop the plexmediaserver service and disable it from startup until you fix, so as to not corrupt your plex config (or back it up before hand). I wrote the below spoiler before noticing this, but it still might be relevent.
Edit: Oh sorry, I also see you're using CIFS(SMB), but there's still a permission issue
I've had something similar happen in my systems. First I would suggest verifying that your VM is using the share correctly. In my case the application was using correct the path, but the VM was not connecting to NFS properly. Therefore, the VM was only using the local disk, and created the folder structure, but obviously no files were there. So I stopped the applications, fixed the NFS share that was IPAddress/Permissions issues, rebooted VM, then all was well. The easiest way to check this issue in my case was df -h, which says to me that it was recreating the folders/files on the VM's hard drive's space rather than the share.
P.S. Plex's cache might show everything correctly, so you should check through the VM's OS instead.
 

dankoh

Dabbler
Joined
Oct 21, 2021
Messages
14
OK, in your screenshot, apt complains about permission. Warning: "/var/lib/plexmediaserver/Library/Application Support" isn't owned by "plex", UID: 998 ... So start there, with permissions. Stop the plexmediaserver service and disable it from startup until you fix, so as to not corrupt your plex config (or back it up before hand). I wrote the below spoiler before noticing this, but it still might be relevent.
Edit: Oh sorry, I also see you're using CIFS(SMB), but there's still a permission issue
I've had something similar happen in my systems. First I would suggest verifying that your VM is using the share correctly. In my case the application was using correct the path, but the VM was not connecting to NFS properly. Therefore, the VM was only using the local disk, and created the folder structure, but obviously no files were there. So I stopped the applications, fixed the NFS share that was IPAddress/Permissions issues, rebooted VM, then all was well. The easiest way to check this issue in my case was df -h, which says to me that it was recreating the folders/files on the VM's hard drive's space rather than the share.
P.S. Plex's cache might show everything correctly, so you should check through the VM's OS instead.
Thanks. I don't know how to do any of that. I reinstalled plex and now it is working, but can't delete movies from plex. It's just so dumb, but what can you do..

Thanks again.

Regards,
Danijel.
 
Top