Had an issue with high ram utilization so did a hard reboot. When the server came back up Plex was not running. Looked for it in the package center (installed manually via download originally) and it was not there. Attempting to reinstall throws an error that the ports are occupied. Any ideas?
Server Version#: DSM 7.1
Player Version#:
Restart DSM.
If that fails to clear it, you will need to SSH into the Syno and see what’s actually running that DSM isn’t reporting.
If DSM corrupted itself (which is possible), you’ll need to reinstall DSM (you won’t lose your data)
Hard Reboot (holding the power button) is NEVER safe on a NAS. It corrupts the filesystem VERY quickly.
Hey Chuck,
Happen to know the command to see what’s running ?
Also with a DSM reinstall am I expecting Plex to magically reappear or am I looking at having to reinstall Plex and everything else that is running?
Agreed on hard reboot, box was hung and didn’t have any other options…
Sure,
SSH into the NAS and type ps -ef | grep -i plex will tell you if ANY Plex processes are running.
You can also look, using the UI of Resource Monitor → Processes.
Chuck, ended up doing a full DSM Reinstall. Upon attempting to reinstall Plex I get the below error, any thoughts?
@vincebalsamo
I have never seen that.
What I do recognize here –
-
/volume1/@apphome/PlexMediaServer – is where the Package Center (BETA) plex package used to store metadata (version 1.21.0.3744)
-
/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData – is where metadata is now stored.
This is a DSM error but we can fix it.
- Do you still have your PMS metadata in the PlexMediaServer shared folder ?
- Which PMS version did you install? (or did it do that for you?)
There is meta data in this folder - Volume1/Plex/Library/Application Support/Plex Media Server/Metadata
I manually installed this package - 1.26.2.5797-5bd057d2b Intel 64
@vincebalsamo
I’ve not forgotten.
I’ve tried to replicate here and cannot.
I did create a way for us to completely uninstall (unwind everything)
and start fresh
WITHOUT losing your existing server data
Here’re the steps
- Create a new shared folder (call it “ChuckSave”)
- Stop Plex
- Move (don’t copy) AppData from PlexMediaServer to ChuckSave
- When it’s complete –
- Uninstall Plex with ERASE option.
- DELETE the PlexMediaServer shared folder
Now for the part internal part.
- Task Scheduler
- Create a User-script task
- Runs as user
root
- Emails you the results.
- Does the following:
#!/bin/bash
rm -rf /var/packages/PlexMediaServer
synouser --del PlexMediaServer
sed -ie '/PlexMediaServer/d' /etc/passwd
sed -ie '/PlexMediaServer/d' /etc/group
sed -ie '/PlexMediaServer/d' /etc/shadow
This script makes certain the package and System Internal User are removed
After this is complete, restart DSM
Now install the package manually again.
Let it do a normal install.
If there is an error – then DSM is indeed damaged.
If not, we will move your data base to PlexMediaServer and fix the ownership values (they will have changed)
Awesome thanks for the fine detail here! I’ll get on this tonight/tomorrow and circle back either way.