Can't open Media Server after updating to 1.24.5.5173 (Synology DSM7)

Server Version#: 1.24.5.5173

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.

I think I figured it out. It was a permissions issue. PlexMediaServer had proper permissions for my Media share, but not the Plex one.

@jeffreysilas_gmail_com

May I have the log files please before they fall ?

I’m very curious and want to know what happened so I can fix whatever might be broken.

You should NOT need the Plex share after migration – unless your media is stored there.

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.

Edit: Here are my log files.
Plex Media Server Logs_2021-11-07_12-05-42.zip (697.9 KB)

@jeffreysilas_gmail_com

I’m fairly confused right now.

What am I looking for please ?

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.

What did you change them to and why are you messing around in it?
The shared folder is controlled by DSM. It is NOT for user intervention.

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.

  1. Stop PlexMediaServer
  2. Control Panel - Task Scheduler
  3. Create a Scheduled Task - User script
  4. Run as user root
  5. Email you the results
  6. 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

  1. Save this task
  2. Run it one time
  3. Wait for it to send you the results to your email
  4. Disable the scheduled task from running again.
  5. 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.

Thank you, I’m currently at step 9. I haven’t gotten the email yet, but I’m definitely looking out for it.

If you have a lot of media indexed, expect it to take time.

Depending on HDD speed and number of indexed items, it might take 1-2 hours (just like migration did)

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 finally received the email that it finished, so I have now started PlexMediaServer. It appears to be working as expected so far.

Good…

From this point forward,

Please do not go into or otherwise interact with the PlexMediaServer shared folder except:

  • To make backups using the approved Synology backup tools (HyperBackup)
  • Or as directed by a Ninja or Staff

For future reference, here’s my release notes for this our DSM 7 structure now that DSM 7.0 is in released and stable status.

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.

@jeffreysilas_gmail_com

With Plex stopped,

Open Filestation → PlexMediaServer / AppData / Plex Media Server

Right-click “Logs” → Compress to Logs.zip

download and attach please.

My apologies for the late response, but here are the logs:
Logs.zip (2.7 MB)

I haven’t had any more issues luckily.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.