Syno says Plex running, but really not

Server Version#: 1.16
Player Version#: N/A
After solving this, I left my Synology overnight scanning the TV folder. 12 hours or more later it was still spinning the little spinner int he web UI, and I checked n various clients and nothing had been updated.

I went through the various prefs and found that nearly all my prefs had been reset, so I set things like when to run background task and to notice when files had changed and update, etc.

Still no progress in the updating, so I went to DSM and stopped Plex. I then checked on the shell and saw that the thumbnail process was still running, so I waited a few minutes, but it appeared idle in htop, so I used /usr/syno/bin/synopkg stop "Plex Media Server" waited and then /usr/syno/bin/synopkg start "Plex Media Server".

When I started it, nothing was logged to the PMS.log file, an only one Plex processes appears in the process list:

ps auxww | grep -i plex | egrep -v '(plexpy|grep)'
plex 26677 0.0 0.4 452120 17200 ? Sl 11:04 0:00 /var/packages/Plex Media Server/target/Plex Media Server

Fine. I reboot the Synology, but the behavior does not change. I stop Plex from DSM a fe times and try to restart it. Nothing changes and nothing in the logs in /Plex/Library… the most recent change in the log files is an hour ago.

At this point I am thinking the best thing to do is to reinstall, but I do not want to lose the users who are attached to the server as that will be a huuuuge pain for me to redo.

One other note, when I stop Plex and start Plex from DSM or synopkg, the stub process /var/packages/Plex Media Server/target/Plex Media Server does not go away and restart.

And another note. Uninstalled Plex, downloaded 1.16.1 for Intel 64bit and installed it. Same exact behavior. Still nothing in Plex’s own logs since I stopped the server this morning.

# tail synopkg.log
2019/06/27 12:51:56	install Plex Media Server 1.16.1.1273-4b6101f87 End postinst ret=[0]
2019/06/27 12:51:56	install Plex Media Server 1.16.1.1273-4b6101f87 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2019/06/27 12:51:56	install Plex Media Server 1.16.1.1273-4b6101f87 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2019/06/27 12:51:56	install Plex Media Server 1.16.1.1273-4b6101f87 successfully
2019/06/27 12:51:59	install Plex Media Server: begin to start version 1.16.1.1273-4b6101f87
2019/06/27 12:51:59	install Plex Media Server 1.16.1.1273-4b6101f87 Begin pre-load apparmor
2019/06/27 12:51:59	install Plex Media Server 1.16.1.1273-4b6101f87 End pre-load apparmor ret=[0]
2019/06/27 12:51:59	install Plex Media Server 1.16.1.1273-4b6101f87 Begin start-stop-status start
2019/06/27 12:52:02	install Plex Media Server 1.16.1.1273-4b6101f87 End start-stop-status start ret=[0]
2019/06/27 12:52:02	install Plex Media Server: start version 1.16.1.1273-4b6101f87 successfully, result 0
# ps auxww | grep -i plex | egrep -v '(plexpy|grep)'
plex      5454  0.0  0.4 449120 17072 ?        Sl   12:45   0:00 /var/packages/Plex Media Server/target/Plex Media Server
# date
Thu Jun 27 12:58:55 MDT 2019

Uninstalled Plex. Rebooted Synology. Reinstalled PlexMediaServer-1.16.1.1273-4b6101f87-x86_64.spk and the behavior is the same. Maybe some odd permission thing? (Plex has r/w to the Media dn Plex shared folders according to the shared folders in control panel).

I’m going to have luch and a nap…

If a permissions problem, the easiest things to check whether user Plex has R/W permission to the Plex share.

While examining them, if not Plex, please add yourself to the R/W permissions for the Plex share.

Next, open File Station, and drill down into Plex until you see the Logs folder.
Right click Logs and Compress to Logs.zip.
When done, download and attach here.

The Plex log files have not had a single byte written to them in the last 3 hours. Not though all the uninstall/reinstall/restarts/etc. Last modification on any log file in that folder is 3h18 ago, so those are not going to help anyone :confused:

May I see what’s there anyway??

In my last attempt to reload the server I removed all the cache files and log files. No change in the behavior, and nothing logged, I got excited when I saw the crash report directory, but though it contains many folders, it contains no files.

I found an error at last! In the last place I’d expect it to be, /var/log/bash

2019-06-27T21:59:15-06:00 Hastur sh: BASH_ERR: report_error [ (13601)"Plex Plug-in [com.plexapp.agents.imdb] /volume1/@appstore/Plex Media Server/Resources/Plug-ins-4b6101f87/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.16.1.1273-4b6101f87 /volume1/@appstore/Plex Media Server/Resources/Plug-ins-4b6101f87/PlexMovie.bundle" -> (13605)"sh -c LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null" -> (13606)"sh -c LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null" ] sh: /sbin/ldconfig: No such file or directory

That seems bad. DSM 6.2.2-24922 on a DS1815+ and no, there is no /sbin/ldconfig

I am running on 6.2.2-24922 without issue.

Can you please do the following:

  1. Back in as admin
  2. sudo -su root
  3. cd "/var/packages/Plex Media Server/scripts"
  4. ./start-stop-status start
  5. Let me see the console output please

If my current attempt fails I will do that. Right now I uninstalled python, reinstalled it, reinstall Plex, and now I am resorting my backup of the metadata and settings for Plex. It appears that at some pint yesterday Plex tried to dump its Library/ into /root/ and filled up the tiny partition. I’ve cleaned that out as well, 55% used now of 2.3GB. Whew!

Are you using a different python (Synology one) ?

I just searched the source and there is no reference to ldconfig except python utils. Nothing in framework.

I would like you to

uninstall the package.
restart DSM
install the package
go into “/var/packages/Plex Media Server/target”

sudo -su root
grep -ir ldconfig .

see where you find it. and see if we can get to some common baseline.

I think I see where it’s coming from. Investigating further.

./start-stop-status start
Starting Plex ...
./start-stop-status: line 54: [: plex_status: integer expression expected```
./Resources/Python/lib/python2.7/ctypes/util.py:    # Andreas Degert's find functions, using gcc, /sbin/ldconfig, objdump
./Resources/Python/lib/python2.7/ctypes/util.py:            f = os.popen('/sbin/ldconfig -r 2>/dev/null')
./Resources/Python/lib/python2.7/ctypes/util.py:        def _findSoname_ldconfig(name):
./Resources/Python/lib/python2.7/ctypes/util.py:            # XXX assuming GLIBC's ldconfig (with option -p)
./Resources/Python/lib/python2.7/ctypes/util.py:            f = os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')
./Resources/Python/lib/python2.7/ctypes/util.py:            return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))```

I completely removed Plex, recreated the shared folder from scratch and reinstalled. Plex. It is currently up and scanning the movies. ¯_(ツ)_/¯

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