PMS Stopped Starting on my Ubuntu Server

Which version of 2.4.5 update are you running?

There were patches released.

Even in 2.4.5, I had flawless NAT UPnP

The update to 2.5.2 is clean and automated. If your config is valid, it WILL come back up. You only need to be patient with it. (it does a lot to make sure it comes up right).

Before going that far, what does your NAT-UPnP config look like?

Does it look like this? (notice the ACL list at the bottom – important for Plex)

The ACL entries allow ports 1024-65535 (inbound) to be assigned to 192.168.0.13 1024-65535 . This is PMS on my workstation.

Interesting… I’ve never seen this page. There’s nothing in the UPnP Access Control Lists, no ACL entries. Also, before the UPnP ACL section, my checkbox for deny access to UPnP & NAT-PMP by default is NOT checked (uh-oh)…

Fair enough. NOT checked means it will allow UPnP by default.

Go to Status → NAT-PMP

This is my development DS418 system. The port was allocated by PMS in automatic mode.

I added a an ACL entry just like you did, and enabled the block checkbox and restarted the service. Still can’t get Plexamp to connect when on cellular from outside. If I go to status>UPnP there are no entries…

I cannot speak to Plexamp. I don’t know that software.

How about Plex/web from your phone to the server ?

Regarding the ACL, you added one for the LAN IP of your Plex server ?

Yes I added one for LAN IP of PMS.
If I open chrome browser app on my android phone and browse to my_home_IP:32400 while on cellular it connects, steaming music right now! But Plexamp won’t!
I see no entries in UPnP status, but I currently have Plex to manually use 32400, not “auto” in the remote access settings page of Plex. Perhaps the UPnP works if you DON’T have manual port forwarding set up?

Then Plexamp has a problem… I can’t help with that.

I don’t have Windows here either. I’m strictly Linux.

UPnP does work if you turn off the manual port.

Let it pick a port number.

Yep, disabled manual port selection in PMS settings and now I can see a UPnP entry in pfSense UPnP status page. But even this way, Plexamp isn’t working. ¯_(ツ)_/¯

I dunno, maybe I need to bite the bullet and completely remove/reset the android plexamp app because it’s lost whatever connection with PMS after it ran out of storage space and we got it running again.

Set Plexamp aside.

What about Plex/web from the browser with WIFI turned OFF

https://app.plex.tv

It works. So that’s why I’m now thinking it’s an issue with the android app.

I can’t help with that. Sorry.

I’m the Linux and back-end guy.

FWIW. I am using 8.19.4 Nvidia Shield app . I wonder :thinking: if you have any of the older apps around (or clear the app cache on the android – which is always problematic) it will start to fly right again?

Well… its working now! In Plexamp, on cellular data and not on WiFi… Not sure if it was purely changing PMS secure connections setting from preferred to disabled or that AND resetting the Plexamp app… but now it’s working. If it’s the secure connections… any ideas on why having that set to preferred or required would cause Plexamp to not connect? Is there something I need to do in pfSense perhaps?

EDIT: yep, it’s secure connections setting in PMS. I changed it to required and now I can’t play music in Plexamp. Changed it back to disabled, Plexamp on mobile data works. So… is it my network, something I need to unblock in pfSense or… is Plexamp incompatible with both the “required” and “preferred” secure connection settings now? Hmm… :thinking:

Mr. Feingold told me “this might be related to an issue where the server could end up with a certificate with an expired intermediate. plexamp logs showing error 60 would hint at this. no reason otherwise why it can’t run with require secure connections”

Any idea what this means? If I had to “reset” or whatever we did to my PMS, perhaps that’s what’s happened?

Plexamp is entirely his app.

Plexamp, if it behaves as all apps should and as he created for PMS, would pull fresh from Plex.tv each time it starts so would automatically have the latest info about the server.

It does sound like something got out of sync but your guess is as good as anything else. Unfortunately I’ve never used the app so have zero knowledge of it or its expected behaviors

I pulled Plexamp logs, I’ll work in the proper forums for the app from here since, for the purposes of this thread, you got my server back up and running!

Thanks for your help, greatly appreciated! And I’ll looking into the pfSense update!

the pfsense update for me was painless.
Anxious? Oh heck yes. My SG-2220 is an ARMv7 box and BOY IS IT SLOW! lol.

If you do the update DON’T EVEN THINK OF INTERRUPTING IT (That will brick it)

If it could do the update for me without bricking / intervention, you’ll be fine.

I DO URGE after the update is complete, UPDATE THE PACKAGES

Most, if not all, will upgrade themselves but double check

Go read their forums… Become educated… Make the best informed decision for you.

1 Like

@mike71432

Re: Plexamp. I just got a message from the team. They are working on certs and Plexamp does exhibit what you’re seeing.

I’m going to get on Plex.tv and send them your device info for Plexamp so they can verify.

1 Like

Well, here I am again! PMS not working again.
Didn’t we move the directory to have more room? Looks like some directory is full again. I don’t know why, I’ve not added any media to PMS, just accessed music with plexamp.

● plexmediaserver.service - Plex Media Server
     Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/plexmediaserver.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Tue 2021-11-09 02:13:35 UTC; 1min 39s ago
    Process: 9095 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: 9104 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 PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)";  export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )";  export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib;  exec "/usr/lib/plexmediaserver/Plex Media Server" (code=exited, status=255/EXCEPTION)
   Main PID: 9104 (code=exited, status=255/EXCEPTION)

Nov 09 02:13:30 thincli systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 09 02:13:30 thincli systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 09 02:13:35 thincli systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Nov 09 02:13:35 thincli systemd[1]: Stopped Plex Media Server.
Nov 09 02:13:35 thincli systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Nov 09 02:13:35 thincli systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 09 02:13:35 thincli systemd[1]: Failed to start Plex Media Server.
Filesystem     1M-blocks   Used Available Use% Mounted on
udev                1673      0      1673   0% /dev
tmpfs                344      3       341   1% /run
/dev/sda3          23819  22590         0 100% /
tmpfs               1717      1      1717   1% /dev/shm
tmpfs                  5      0         5   0% /run/lock
tmpfs               1717      0      1717   0% /sys/fs/cgroup
/dev/sda4         442465 320136     99785  77% /mnt/storage1
tmpfs                344      0       344   0% /run/user/1000
              total        used        free      shared  buff/cache   available
Mem:           3432         174        1031           2        2225        3028
Swap:          5479           0        5479

Now that I think about it, we moved the PMS folder from /var/lib to /mnt/storage, isn’t that the same partition and therefore not the larger partition that’s “storage1”?

@mike71432

  1. /mnt/storage mounted with the exec bit enabled (for the codecs to work)
  2. Permissions set on /mnt/storage BEFORE mounting and then again after mounting?

It sounds like the top level directory/directories don’t have proper permissions before mounting