Server Version#: 1.22.3.4523 (or 1.24.0.4930-ab6e1a058?!?)
Hi all,
Hoping to get some help as, when I was looking to enable a new feature (sonic analysis for Plexamp), I noticed my Plex Media Server was pretty out of date so doesn’t support it yet!
I’m running Ubuntu 20.04.3 LTS on a NUC and Plex has been working pretty flawlessly for a while, but viewing the PMS web dashboard on the NUC it says it’s running version 1.22.3.4523, whereas I’ve run commands to update the version and when I check for updates it says:
plexmediaserver is already the newest version (1.24.0.4930-ab6e1a058)
I did some digging and found an error with plexmediaserver.service where it’s not active and gives error result ‘exit-code’ as below:
neil@NUC8i7BEH:~$ sudo systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-08-21 12:00:14 BST; 44min ago
Process: 1840 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=0/SUCCESS)
Process: 1842 ExecStart=/bin/sh -c export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= “{print $2}” | tr -d " )"; export PLEX_MEDIA_SERVER_INFO_DEVICE=“PC”; export PLE>
Main PID: 1842 (code=exited, status=255/EXCEPTION)
Aug 21 12:00:14 NUC8i7BEH systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Aug 21 12:00:14 NUC8i7BEH systemd[1]: Stopped Plex Media Server.
Aug 21 12:00:14 NUC8i7BEH systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 21 12:00:14 NUC8i7BEH systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Aug 21 12:00:14 NUC8i7BEH systemd[1]: Failed to start Plex Media Server.
lines 1-12/12 (END)
I’ve tried starting/stopping/restarting the service but still seem to get the same issue.
I’ve not changed any settings for ages (permissions, storage locations etc) but I’m keen to get PMS running the latest version and would be grateful for any pointers you can give - I’m a fair novice with Linux so clarity would also be much appreciated.
Did you install the snap version of PMS originally? That’s what I did with similar results. There’s a thread a few months back in this forum on the topic.
Thanks for the reply @gregcagle
Honestly I’m not 100% sure - I know I was running Ubuntu 16 when I originally installed PMS if that gives any clues? Any chance you know what thread to look out for if this is my issue too?
Cheers again
Thanks also for the reply @CostaHT
The output I get when running that command is (and also seems to provide the answer to @gregcagle that it’s a snap install?! Or do I have a duplicate install as this output references the PMS version shown in the dashboard, even though ‘the latest Plex is installed’ when running another command):
This looks pretty promising @gregcagle & seems to support my suspicion of a duplicate install. If this is the case, I should be OK to remove the snap install (assuming it’s a good idea to move back to repository updates going forward, e.g. do you now get web prompts for updates with just the native install?), but do you have any pointers to move the server data from snap to native or will I need to almost setup as a fresh native install?
Thanks again for your steer
Yes, you want to get away from the snap install; it hasn’t been updated since 1.22 (as you found out). You’ll want to go read chuckpa’s article about moving the server data between installs. You’ll need to find where the snap install data is, and copy it to where it needs to be as indicated in chuckpa’s article before you do anything else. Then you can remove the snap install. Note also that when you remove the snap install it will also copy the server data somewhere (can’t remember where) so you’ll have two copies of the data at that point. Further note that if you have a lot of data it can take a long time for that copy process, so be patient :). Once you get the repository version working you will see updates in the web interface as expected. You will still have to do apt update and apt upgrade manually, but at least you know things are being updated correctly.
Do you have a link to that article gregcagle? I am having this exact issue and would like to migrate but haven’t been able to locate the article mentioned.
I think @gregcagle was referring to this article @spamjoshhere - although if you had the same problem as me, it’ll be on the same system but just a different install:
Worked like a charm, I just completed the process. I wasn’t familiar with Snap at all. In case it helps anyone else, this article helped me to navigate that portion.
Good article on snap. I wish I’d read it originally :). But then if I’d done a little more research I wouldn’t have used snap for PMS at all. Glad you got things working!