I migrated to DSM7 several weeks ago without hassle, but I just updated to the current version, and now I cannot even open the media server without an “Something went wrong. An unexpected Error occurred” appearing on the screen. Then, when I go back to the Server, Plex has manually stopped. The only thing that will load is my home page, so I can’t even go into settings within plex.
I’ve tried uninstalling and reinstalling the media server and it is still occurring. I’ve verified that PlexMediaServer still has read/write permissions in my share.
It actually isn’t called plex, but PlexMediaServer, I just call it Plex out of habit.
I thought it was fixed, but now it is worse than ever. I’m still getting crashes as soon as I open the Media Server, and I can’t even run it from the client side. So, I am unable to get any log files at the moment. I’m trying to look at the permissions again to see if something didn’t get saved, but now I’m stuck waiting for it to finish saving first.
After giving the permissions settings to all folders, subfolders, and files, it started working again. I will be able to get you the log files momentarily.
I thought you were asking for the logs yesterday, my apologies. This is the first time I’ve been able to get them since my issue first started, but I assume that also means my issue is resolved now. So maybe it isn’t such a big deal that I provide them now.
I haven’t been able to get past the home screen on my Plex Media server after updating to the current version. I suspect it was simply a permissions issue, but the issue did return today after I thought it was resolved yesterday. But, this time I changed the permissions for all subfolders in the PlexMediaServer share as well as the root.
When I updated the plex server to the current version, the share had the PlexMediaServer internal user set to Read/Write for the PlexMediaServer share (I believe that’s how it was prior to the update. This was the first update I did since upgrading to the DSM 7 compatible Plex Server version about a month ago). When I went to open the Plex server after that, it would crash as soon as I try to leave the home page.
The only thing I did was go to Control Panel > Shared Folder > PlexMediaServer and then went to Permissions and for the System Internal Users page, I change Read/Write to Full Control and that seems to fix it. The only thing I did differently between yesterday and today, was that today, I checked the “apply to this folder, subfolders, and files” box, as yesterday I didn’t and my issue returned today.
As I suspected, the issue isn’t permissions at all. Changing permissions in/for PlexMediaServer is not expected or supported. DSM 7 itself sets R/W every time the package starts. I have no control of this.
On DSM 7, PlexMediaServer only needs R/W permission to the PlexMediaServer shared folder because that’s all DSM 7 will allow… (I had to work this all out prior to releasing 1.24.2.4973)
I am going to give you this user-script (Scheduled Task) to run ONE TIME and put the permissions on each file how they should be set. and server as a “Permissions Reset”. DSM 7 will handle the shared folder permissions.
Stop PlexMediaServer
Control Panel - Task Scheduler
Create a Scheduled Task - User script
Run as user root
Email you the results
Contents of the script are as follows: Please copy and paste into the ‘Task Setting’ window where it’s expecting the script contents.
#!/bin/sh
cd /var/packages/PlexMediaServer/shares/PlexMediaServer
chown -R PlexMediaServer:PlexMediaServer .
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
NOTE: Be certain to include the trailing . in the chown statement
Save this task
Run it one time
Wait for it to send you the results to your email
Disable the scheduled task from running again.
Start PlexMediaServer
Permissions for the PlexMediaServer shared folder and all its internal files have now been reset to standard.
From this point, we can now continue forward to find the problem.
Makes sense. I certainly have several TB of media. Based on migration, I’d imagine I’m halfway there at this point (been waiting 30 min at this point I believe)
I’m getting the issue again. This time, I haven’t touched Plex Media Server today outside of adding Media to my Media Share, then going to the Media Server app to check if the metadata looked good like I usually do (posters are the ones I like, title cards match, etc). About 30 minutes later, my NAS hard rebooted itself (SMART Tests show everything is Healthy, so I doubt I have a drive going out, but I definitely think the unexpected reboot might have caused my issue today), and now I am unable to access the Media Server.
Like before, if I click on the Plex Media Server app on the Synology Desktop and pick my username, the home page shows Recently Added, but my libraries are inaccessible, and I cannot click anywhere including Settings. If I do, I get the “Something has gone wrong. An Unexpected Error Occurred” error on the screen. Then the Media Server is no longer running according to my NAS desktop.
EDIT:
Another good reboot of my NAS appears to have gotten it back and running, so I think I am good again, just figured I’d put that out there.