FreeBSD 1.16.0.1226 update - plexmediaserver wont start, no error message

Server Version#: 1.15.4.993 -> 1.16.0.1226
Player Version#: web Version 3.95.2

I’ve been running Plex for a few years on a FreeNAS box, it started off as jail then i’ve up updating manually, today updated via pkg update & pkg upgrade, this pulled down 1.16.0.1226. On rebooting the plexmediaserver wont start.
I’ve checked as much as i can think of but cant see anything obvious.

rc.conf
plexmediaserver_support_path="/var/db/plexdata"
plexmediaserver_enable=“YES”

my path is /usr/local/share/plexmediaserver
I did have /usr/local/share/plexmediaserver-plexpass at one point but thats old now as went back to ‘none beta’

running service plexmediaserver start just returns without starting the service or an error. Looking in /var/db/plexdata/Plex Media Server/Logs i cant see anything that stands out or really what i’m looking for plus there aren’t any recent logs after the update which makes sense if the service isn’t running.

Any pointers would be much appreciated

1 Like

I neglected to share the update output:

Installed packages to be UPGRADED:
	utf8proc: 2.2.0 -> 2.4.0
	sqlite3: 3.27.2 -> 3.28.0
	plexmediaserver: 1.15.4.993 -> 1.16.0.1226
	libxml2: 2.9.8 -> 2.9.9
	libidn2: 2.1.1 -> 2.2.0
	gettext-tools: 0.19.8.1_1 -> 0.20.1
	gettext-runtime: 0.19.8.1_2 -> 0.20.1
	gettext: 0.19.8.1 -> 0.20.1
	ca_root_nss: 3.43 -> 3.44.1

Number of packages to be installed: 1
Number of packages to be upgraded: 9

The process will require 6 MiB more space.
73 MiB to be downloaded.

Proceed with this action? [y/N]: y
[plexmediaserver_1] [1/10] Fetching utf8proc-2.4.0.txz: 100%   59 KiB  60.5kB/s    00:01    
[plexmediaserver_1] [2/10] Fetching sqlite3-3.28.0.txz: 100%    1 MiB 346.9kB/s    00:04    
[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   0%   24 KiB  24.6kB/s    48:07[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   0%  168 KiB 147.5kB/s    12:00[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   0%  480 KiB 319.5kB/s    05:05[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   1%  912 KiB 442.4kB/s    04:37[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   2%    2 MiB 647.2kB/s    03:57[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   3%    2 MiB 811.0kB/s    03:19[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   4%    3 MiB 974.9kB/s    02:46[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   6%    4 MiB   1.1MB/s    02:18[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:   8%    6 MiB   1.3MB/s    01:55[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  10%    7 MiB   1.5MB/s    01:37[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  12%    9 MiB   1.7MB/s    01:22[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  15%   10 MiB   1.8MB/s    01:10[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  17%   12 MiB   2.0MB/s    01:00[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  20%   14 MiB   2.1MB/s    00:51[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  24%   16 MiB   2.3MB/s    00:44[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  27%   19 MiB   2.5MB/s    00:38[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  31%   21 MiB   2.7MB/s    00:33[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  35%   24 MiB   2.7MB/s    00:28[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  39%   27 MiB   3.0MB/s    00:24[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  42%   29 MiB   2.3MB/s    00:22[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  46%   32 MiB   3.1MB/s    00:19[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  51%   35 MiB   3.4MB/s    00:16[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  56%   38 MiB   3.3MB/s    00:14[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  60%   41 MiB   2.7MB/s    00:12[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  65%   44 MiB   3.5MB/s    00:10[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  70%   48 MiB   3.9MB/s    00:08[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  76%   52 MiB   4.2MB/s    00:06[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  82%   56 MiB   4.4MB/s    00:04[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  88%   60 MiB   4.3MB/s    00:02[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz:  94%   64 MiB   4.1MB/s    00:01[plexmediaserver_1] [3/10] Fetching plexmediaserver-1.16.0.1226.txz: 100%   68 MiB   2.4MB/s    00:30    
[plexmediaserver_1] [4/10] Fetching libxml2-2.9.9.txz: 100%  819 KiB 419.1kB/s    00:02    
[plexmediaserver_1] [5/10] Fetching libidn2-2.2.0.txz: 100%  107 KiB 109.9kB/s    00:01    
[plexmediaserver_1] [6/10] Fetching gettext-tools-0.20.1.txz: 100%    2 MiB 500.2kB/s    00:05    
[plexmediaserver_1] [7/10] Fetching gettext-runtime-0.20.1.txz: 100%  151 KiB  77.2kB/s    00:02    
[plexmediaserver_1] [8/10] Fetching gettext-0.20.1.txz: 100%    496 B   0.5kB/s    00:01    
[plexmediaserver_1] [9/10] Fetching ca_root_nss-3.44.1.txz: 100%  297 KiB 303.9kB/s    00:01    
[plexmediaserver_1] [10/10] Fetching libtextstyle-0.20.1.txz: 100%  367 KiB 376.1kB/s    00:01    
Checking integrity... done (0 conflicting)
[plexmediaserver_1] [1/10] Upgrading gettext-runtime from 0.19.8.1_2 to 0.20.1...
[plexmediaserver_1] [1/10] Extracting gettext-runtime-0.20.1: 100%
[plexmediaserver_1] [2/10] Installing libtextstyle-0.20.1...
[plexmediaserver_1] [2/10] Extracting libtextstyle-0.20.1: 100%
[plexmediaserver_1] [3/10] Upgrading gettext-tools from 0.19.8.1_1 to 0.20.1...
[plexmediaserver_1] [3/10] Extracting gettext-tools-0.20.1: 100%
[plexmediaserver_1] [4/10] Upgrading utf8proc from 2.2.0 to 2.4.0...
[plexmediaserver_1] [4/10] Extracting utf8proc-2.4.0: 100%
[plexmediaserver_1] [5/10] Upgrading sqlite3 from 3.27.2 to 3.28.0...
[plexmediaserver_1] [5/10] Extracting sqlite3-3.28.0: 100%
[plexmediaserver_1] [6/10] Upgrading plexmediaserver from 1.15.4.993 to 1.16.0.1226...
===> Creating groups.
Using existing group 'plex'.
===> Creating users
Using existing user 'plex'.
[plexmediaserver_1] [6/10] Extracting plexmediaserver-1.16.0.1226: 100%
[plexmediaserver_1] [7/10] Upgrading libxml2 from 2.9.8 to 2.9.9...
[plexmediaserver_1] [7/10] Extracting libxml2-2.9.9: 100%
[plexmediaserver_1] [8/10] Upgrading libidn2 from 2.1.1 to 2.2.0...
[plexmediaserver_1] [8/10] Extracting libidn2-2.2.0: 100%
[plexmediaserver_1] [9/10] Upgrading gettext from 0.19.8.1 to 0.20.1...
[plexmediaserver_1] [10/10] Upgrading ca_root_nss from 3.43 to 3.44.1...
[plexmediaserver_1] [10/10] Extracting ca_root_nss-3.44.1: 100%
Message from plexmediaserver-1.16.0.1226:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

multimedia/plexmediaserver includes an RC script:
/usr/local/etc/rc.d/plexmediaserver

TO START PLEXMEDIASERVER ON BOOT:
sysrc plexmediaserver_enable=YES

START MANUALLY:
service plexmediaserver start

Once started, visit the following to configure:
http://localhost:32400/web

@@@ INTEL GPU OFFLOAD NOTES @@@

If you have a supported Intel GPU, you can leverage hardware
accellerated encoding/decoding in Plex Media Server on FreeBSD 12.0+.

The requirements are as follows:

* Install multimedia/drm-kmod: e.g., pkg install drm-fbsd12.0-kmod

* Enable loading of kernel module on boot: sysrc kld_list+="drm" 
** If Plex will run in a jail, you must load the module outside the jail!

* Load the kernel module now: kldload drm

* Install the supporting Intel VA support library for your GPU
** multimedia/libva-intel-driver: [LEGACY] Intel GMA 4500 or newer
** multimedia/libva-intel-media-driver: Intel HD 5000 (Gen8) or newer
*** This must be installed beside Plex. e.g., in the jail with Plex

* Add plex user to the video group: pw groupmod -n video -m plex

* For jails, make a devfs ruleset to expose /dev/dri/* devices.

e.g., /dev/devfs.rules on the host:

[plex_drm=10]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_jail
add path 'dri*' unhide
add path 'dri/*' unhide
add path 'drm*' unhide
add path 'drm/*' unhide

* Enable the devfs ruleset for your jail. e.g., devfs_ruleset=10 in your
/etc/jail.conf or for iocage, iocage set devfs_ruleset="10" 

Please refer to documentation for all other FreeBSD jail management
utilities.

@@@ INTEL GPU OFFLOAD NOTES @@@

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Message from ca_root_nss-3.44.1:


The upgrade output looks fine, the only thing that seems odd is that you were in 1.15.4 before and now jumped to 1.16.0 as if a few builds were skipped. But I don’t see why that should fail (unless there’s a unknown bug there)

After you start via service plexmediaserver start what’s the output of:
sockstat -l46?

thanks for the reply.

root@plexmediaserver_1:/usr/local/share # sockstat -l46
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root syslogd 59244 6 udp6 *:514 :
root syslogd 59244 7 udp4 *:514 :
root python2.7 59196 3 tcp4 192.168.0.151:12346 :

The reason for waiting to update as i was after the resume fix

  • Certain clients (third party Samsung and OpenPHT) would fail to resume video

and i always fear upgrades when you have important small people to keep happy and the resume bug was a big problem enough!
I’m annoyed i didn’t back up the plexmediaserver directory.
Not sure if it’s relevant but just moved out the existing plexmediaserver and manually download a tar of 1.16.1.1291 and rename that into /usr/local/share/plexmediaserver and i’m seeing that same behaviour.

To continue to trouble shoot i’ve just backed up then removed /var/db/plexdata
Removed /usr/local/share/plexmediaserver then run
pkg remove plexmediaserver
sysrc -x plexmediaserver_enable
restarted the jail then run
pkg install plexmediaserver
sysrc plexmediaserver_enable=YES

starting plexmediaserver doesn’t produce an error nor does it start so it looks the same as before.
Time for a new jail?

new jail (not via plugin) and install via port and the same behaviour, am i missing something obvious?

root@plexmediaserver_2:/ # pkg install plexmediaserver
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[plexmediaserver_2] Fetching meta.txz: 100%    940 B   0.9kB/s    00:01    
[plexmediaserver_2] Fetching packagesite.txz: 100%    6 MiB 507.7kB/s    00:13    
Processing entries: 100%
FreeBSD repository update completed. 31942 packages processed.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	pkg: 1.10.1 -> 1.11.1

Number of packages to be upgraded: 1

3 MiB to be downloaded.

Proceed with this action? [y/N]: y
[plexmediaserver_2] [1/1] Fetching pkg-1.11.1.txz: 100%    3 MiB 618.8kB/s    00:05    
Checking integrity... done (0 conflicting)
[plexmediaserver_2] [1/1] Upgrading pkg from 1.10.1 to 1.11.1...
[plexmediaserver_2] Extracting pkg-1.11.1: 100%
You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	plexmediaserver: 1.16.0.1226

Number of packages to be installed: 1

The process will require 190 MiB more space.
68 MiB to be downloaded.

Proceed with this action? [y/N]: y
[plexmediaserver_2] [1/1] Fetching plexmediaserver-1.16.0.1226.txz: 100%   68 MiB   1.1MB/s    01:04    
Checking integrity... done (0 conflicting)
[plexmediaserver_2] [1/1] Installing plexmediaserver-1.16.0.1226...
===> Creating groups.
Creating group 'plex' with gid '972'.
===> Creating users
Creating user 'plex' with uid '972'.
[plexmediaserver_2] [1/1] Extracting plexmediaserver-1.16.0.1226: 100%
Message from plexmediaserver-1.16.0.1226:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

multimedia/plexmediaserver includes an RC script:
/usr/local/etc/rc.d/plexmediaserver

TO START PLEXMEDIASERVER ON BOOT:
sysrc plexmediaserver_enable=YES

START MANUALLY:
service plexmediaserver start

Once started, visit the following to configure:
http://localhost:32400/web

@@@ INTEL GPU OFFLOAD NOTES @@@

If you have a supported Intel GPU, you can leverage hardware
accellerated encoding/decoding in Plex Media Server on FreeBSD 12.0+.

The requirements are as follows:

* Install multimedia/drm-kmod: e.g., pkg install drm-fbsd12.0-kmod

* Enable loading of kernel module on boot: sysrc kld_list+="drm" 
** If Plex will run in a jail, you must load the module outside the jail!

* Load the kernel module now: kldload drm

* Install the supporting Intel VA support library for your GPU
** multimedia/libva-intel-driver: [LEGACY] Intel GMA 4500 or newer
** multimedia/libva-intel-media-driver: Intel HD 5000 (Gen8) or newer
*** This must be installed beside Plex. e.g., in the jail with Plex

* Add plex user to the video group: pw groupmod -n video -m plex

* For jails, make a devfs ruleset to expose /dev/dri/* devices.

e.g., /dev/devfs.rules on the host:

[plex_drm=10]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_jail
add path 'dri*' unhide
add path 'dri/*' unhide
add path 'drm*' unhide
add path 'drm/*' unhide

* Enable the devfs ruleset for your jail. e.g., devfs_ruleset=10 in your
/etc/jail.conf or for iocage, iocage set devfs_ruleset="10" 

Please refer to documentation for all other FreeBSD jail management
utilities.

@@@ INTEL GPU OFFLOAD NOTES @@@

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
root@plexmediaserver_2:/ # sysrc plexmediaserver_enable=YES
plexmediaserver_enable:  -> YES
root@plexmediaserver_2:/ # service plexmediaserver start
Starting plexmediaserver.
root@plexmediaserver_2:/ # service plexmediaserver status
plexmediaserver is not running.
root@plexmediaserver_2:/ # sockstat -l46
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS      
root     syslogd    17172 6  udp6   *:514                 *:*
root     syslogd    17172 7  udp4   *:514                 *:*
root@plexmediaserver_2:/ # 

I’ve just seen 11.2 is listed, I’m on 11.1-U7, could this be the issue, when did that become a requirement?
[FreeBSD 11.2 or newer]

1.16.2.1297-4b7ace214

July 2, 2019

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