Upgrade to 1.15.2.793-782228f99 breaks plex -- Prevents from Starting

@crhaerich_gmail_com I don’t think there is any harm in trying. --now seeing @ChuckPa 's comment, this will probably not help you.

But to anyone that has the same issue as me earlier on Ubuntu 18.04 this is what I ran to fix the problem:

sudo service plexmediaserver stop
sudo mkdir /etc/systemd/system/plexmediaserver.d
sudo touch /etc/systemd/system/plexmediaserver.d/override.conf
sudo vi /etc/systemd/system/plexmediaserver.d/override.conf

Then add:

# Change Plex default variables
[Service]

User=YourUsernameHere
Group=YourGroupHere
#
# put other changed **Variables**here  (UMask, TMPDIR, etc)
#

as @ChuckPa had posted earlier changing the values to the owner and group of the Plex server files. To see who that is:

ls -l /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/

:x to save and quit vim

sudo systemctl daemon-reload
sudo systemctl restart plexmediaserver

If it doesn’t help (as this is pretty much attempting the solution blindly…) run this to undo changes:

sudo service plexmediaserver stop
sudo rm -r /etc/systemd/system/plexmediaserver.service.d/
sudo systemctl daemon-reload
sudo systemctl restart plexmediaserver

ok well Im chatting with you on the same computer that my plex server is on and able to access the internet just fine but it still is just giving me a unable to connect when I go to localhost:32400. I just tried it while typing this message out.

If we are going to be using overrides to customize our local configuration,

Let’s do it correctly please?

Everyone here wants the systemd section.

https://forums.plex.tv/t/customizing-your-plex-configuration/205443/2

In extreme cases, it helps to see the actual “Console” output.

This might need tweaks for each person but, from memory, should be right. (run as root)

#!/bin/sh

echo Starting PMS for diagnostics
PLEX_DIR="/usr/lib/plexmediaserver"
PLEX_USER=plex

  # Continue with normal PMS start
  su $PLEX_USER -s /bin/sh -c \
    "export LC_ALL=en_US.utf8; \
     export LANG=en_US.utf8; \
     export LD_LIBRARY_PATH=$PLEX_DIR/lib; \
     export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6; \
     export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR='/var/lib/plexmediaserver/Library/Application Support'; \
     export TMPDIR=/tmp; \
     /usr/lib/plexmediaserver/Plex\ Media\ Server"

# kill it  (set trap to execute this if desired) and force a crash dump
sudo kill -11 $(pidof "Plex Media Server")

2 posts were split to a new topic: PMS 1.15.2 - No soup for you

Do I need to just copy all of that and paste it all into the terminal at once or do it individually?

@ChuckPa I have tried this command a couple different ways and each time it keeps failing. I have checked my processes and the plexmediaserver process isn’t running. I have tried to start it and then when I go in and check the processes it still isn’t running.

3 posts were split to a new topic: Plex Media server under /media does not work as expected

I have finally been able to get into the localhost:32400 page but this is all I see:

Ok, That tells me Plex.tv has taken over and doesn’t see your actual local server (notice the Red triangle?)

ps -ef | grep -i plex and verify it runs.

If so, go grab the logs manually so we can see.
Something silly is missing here

This is the output of the command when I typed it in…

avahi 753 1 0 15:45 ? 00:00:00 avahi-daemon: running [plex.local]
chris 5416 5395 0 16:48 pts/0 00:00:00 grep --color=auto -i plex

Do I need to get the logs that I got earlier again?

the server isn’t even running. that’s why you can’t find it :frowning:

ok so how do I restart the server?

sudo systemctl restart plexmediaserver

same as always

ok I did that and reran the ps command and same output

Let me create a proper start script. I should have one but don’t have it.
I’ll make one and reply in the morning.

Hey Chuck,

I’m seeing the same issues as everyone else. Basically no log files are being written but the systemd status claims plex is running (and ps output confirms this). However, like i said, no logs are written, and no ports are being bound to (netstat -anop | grep 32400)

I created your PMS diagnostic script and ran it as root. I get no output from it. Im using a centos7 virutal machine to run plex

[root@plex ~]# ./test.sh
Starting PMS for diagnostics

^ this also writes no log files

I did manage to generate some crashdumps when exiting out of the test script. I was trying with bash -x as well but again it looks like it just hangs hitting the plex binary

dumps.7z (19.4 KB)

@hilldav9

what does ps -ef | grep -i plex show? Do you see any active processes ?

My normal initial scan is the ps -ef | grep -i plex and then netstat -an | grep 32400
Those two tell me if I have processes and it’s managed to at least open the first socket.

If the process keeps running, it must be writing the logs somewhere.
Do a global find for “Plex Media Server.log” . I suspect they aren’t where you expect them.

user plex should be set with $HOME being /var/lib/plexmediaserver. If that’s been modified (see /etc/passwd), and APP_SUPPORT_DIR isn’t passing through correctly, the “Plex Media Server” directory structure will be under $HOME .

(I made sure to kill any running plex pid before this)

[root@plex ~]# systemctl start plexmediaserver.service
[root@plex ~]# systemctl status plexmediaserver.service
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: active (running) since Thu 2019-03-21 12:07:10 CDT; 2s ago
  Process: 23390 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)
 Main PID: 23394 (Plex Media Serv)
   CGroup: /system.slice/plexmediaserver.service
           └─23394 /usr/lib/plexmediaserver/Plex Media Server

Mar 21 12:07:10 plex.hillhome systemd[1]: Starting Plex Media Server...
Mar 21 12:07:10 plex.hillhome systemd[1]: Started Plex Media Server.
[root@plex ~]# ps -ef  | grep -i plex
plex      23394      1  0 12:07 ?        00:00:00 /usr/lib/plexmediaserver/Plex Media Server
root      23422  14653  0 12:07 pts/0    00:00:00 grep --color=auto -i plex
[root@plex ~]# netstat -anop | grep 32400
[root@plex ~]# lsof | egrep -i 'plex.*log'
[root@plex ~]# cat /etc/passwd | grep plex
plex:x:994:1001:RPM Created PlexUser:/var/lib/plexmediaserver:/sbin/nologin

Stacktrace below. I’m not sure how to properly read these, sadly

[root@plex tmp]# strace ./test.sh
execve("./test.sh", ["./test.sh"], [/* 24 vars */]) = 0
brk(NULL)                               = 0x1deb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1782efe000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=36050, ...}) = 0
mmap(NULL, 36050, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1782ef5000
close(3)                                = 0
open("/lib64/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\316\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=174576, ...}) = 0
mmap(NULL, 2268928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1782ab4000
mprotect(0x7f1782ad9000, 2097152, PROT_NONE) = 0
mmap(0x7f1782cd9000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f1782cd9000
close(3)                                = 0
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19288, ...}) = 0
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f17828b0000
mprotect(0x7f17828b2000, 2097152, PROT_NONE) = 0
mmap(0x7f1782ab2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f1782ab2000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340$\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2151672, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1782ef4000
mmap(NULL, 3981792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f17824e3000
mprotect(0x7f17826a5000, 2097152, PROT_NONE) = 0
mmap(0x7f17828a5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c2000) = 0x7f17828a5000
mmap(0x7f17828ab000, 16864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f17828ab000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1782ef2000
arch_prctl(ARCH_SET_FS, 0x7f1782ef2740) = 0
mprotect(0x7f17828a5000, 16384, PROT_READ) = 0
mprotect(0x7f1782ab2000, 4096, PROT_READ) = 0
mprotect(0x7f1782cd9000, 16384, PROT_READ) = 0
mprotect(0x6dd000, 4096, PROT_READ)     = 0
mprotect(0x7f1782eff000, 4096, PROT_READ) = 0
munmap(0x7f1782ef5000, 36050)           = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3
close(3)                                = 0
brk(NULL)                               = 0x1deb000
brk(0x1e0c000)                          = 0x1e0c000
brk(NULL)                               = 0x1e0c000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=106075056, ...}) = 0
mmap(NULL, 106075056, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f177bfb9000
close(3)                                = 0
brk(NULL)                               = 0x1e0c000
getuid()                                = 0
getgid()                                = 0
geteuid()                               = 0
getegid()                               = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1782efd000
read(3, "MemTotal:        2321652 kB\nMemF"..., 1024) = 1024
close(3)                                = 0
munmap(0x7f1782efd000, 4096)            = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f1782519280}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f1782519280}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f1782519280}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7f1782519280}, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, 8) = 0
uname({sysname="Linux", nodename="plex.hillhome", ...}) = 0
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
getpid()                                = 25494
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26254, ...}) = 0
mmap(NULL, 26254, PROT_READ, MAP_SHARED, 3, 0) = 0x7f1782ef7000
close(3)                                = 0
getppid()                               = 25492
getpgrp()                               = 25492
rt_sigaction(SIGCHLD, {0x4412e0, [], SA_RESTORER|SA_RESTART, 0x7f1782519280}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7f1782519280}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=6929, rlim_max=6929}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("./test.sh", O_RDONLY)             = 3
ioctl(3, TCGETS, 0x7ffc7bad9e00)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "#!/bin/sh\n\necho Starting PMS for"..., 80) = 80
lseek(3, 0, SEEK_SET)                   = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
fcntl(255, F_GETFD)                     = -1 EBADF (Bad file descriptor)
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(255, {st_mode=S_IFREG|0777, st_size=633, ...}) = 0
lseek(255, 0, SEEK_CUR)                 = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/sh\n\necho Starting PMS for"..., 633) = 633
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1782ef6000
write(1, "Starting PMS for diagnostics\n", 29Starting PMS for diagnostics
) = 29
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat("/usr/local/sbin/su", 0x7ffc7bad9aa0) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/su", 0x7ffc7bad9aa0) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/su", 0x7ffc7bad9aa0)    = -1 ENOENT (No such file or directory)
stat("/usr/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=32208, ...}) = 0
stat("/usr/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=32208, ...}) = 0
geteuid()                               = 0
getegid()                               = 0
getuid()                                = 0
getgid()                                = 0
access("/usr/bin/su", X_OK)             = 0
stat("/usr/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=32208, ...}) = 0
geteuid()                               = 0
getegid()                               = 0
getuid()                                = 0
getgid()                                = 0
access("/usr/bin/su", R_OK)             = 0
stat("/usr/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=32208, ...}) = 0
stat("/usr/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=32208, ...}) = 0
geteuid()                               = 0
getegid()                               = 0
getuid()                                = 0
getgid()                                = 0
access("/usr/bin/su", X_OK)             = 0
stat("/usr/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=32208, ...}) = 0
geteuid()                               = 0
getegid()                               = 0
getuid()                                = 0
getgid()                                = 0
access("/usr/bin/su", R_OK)             = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -116, SEEK_CUR)              = 517
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f1782ef2a10) = 25495
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e750, [], SA_RESTORER, 0x7f1782519280}, {SIG_DFL, [], SA_RESTORER, 0x7f1782519280}, 8) = 0
wait4(-1,

After like 15-20 minutes, a couple of new lines came in

0x7ffc7bad9ba0, 0, NULL)      = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
wait4(-1, 0x7ffc7bad9ba0, 0, NULL)      = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
wait4(-1,