Forums

Resolved
0 votes
As I had some minor problems with Plex I decided to re-install the package. Everything seemed to work allright, but now I cannot get access to PMS anymore. ClearOS 6.7.0.

[root@localhost]# yum info plexmediaserver
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
Loading mirror speeds from cached hostfile
--- --- ---
Installed Packages
Name : plexmediaserver
Arch : x86_64
Version : 0.9.11.16.958
Release : 80f1748
Size : 255 M
Repo : installed
From repo : private-clearcenter-plex
Summary : Plex organizes all of your personal media so you can easily access
: and enjoy it.
License : see /usr/share/doc/plexmediaserver/copyright
Description : Stream media everywhere(tm)
:
: (RPM Made by ZiGGiMoN)

[root@localhost]# service plexmediaserver status
PlexMediaServer is stopped
[root@localhost]# service plexmediaserver start
Starting PlexMediaServer: [ OK ]
[root@localhost]# service plexmediaserver status
PlexMediaServer dead but subsys locked
[root@localhost]#


I have already tried to manually remove the 2 .pid entries in /var/run and /var/lock/subsys but that doesn't make any difference.
Although the init-process reports PMS running I cannot find a process with corresponding names.
What could be wrong?
Wednesday, February 17 2016, 07:18 PM
Share this post:
Responses (8)
  • Accepted Answer

    Wednesday, February 17 2016, 11:42 PM - #Permalink
    Resolved
    0 votes
    Leaving out my 370,000 files containing Plex metadata, so

    updatedb && locate plex | grep -v /var/lib/plexmediaserver/Library/"Application Support"


    left me with only 2 sundry Plex files that I ousted, but the re-install still gives the same errors. I think this means that the rpm-system is corrupted (via Sqlite?) although rpm doesn't report any errors. Anyhow, time for a complete rebuild. Thank you for your kind help.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 10:09 PM - #Permalink
    Resolved
    0 votes
    If you're considering reinstallation, you could remove app-plex* and plexmediaserver then do an "updatedb && locate plex" and clear out any obvious files then try to reinstall plex. Don't clear out everything as "rpm -qa | grep -i plex" also turns up with "perl-IO-Multiplex" which has nothing to do with plex. Just use a bit of common sense.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 10:01 PM - #Permalink
    Resolved
    0 votes
    Thank you, Nick. Sqlite isn't my cup of tea either and we could easily spend much more time trying to find that out than just doing a rebuild. At least, then I know the time involved. Just a case of bad luck I think. Plex is a great application and I'm very glad ClearOS provides it, but in the various user groups you can find many complaints about the stability of the package. If it runs fine, don't touch it anymore.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 09:47 PM - #Permalink
    Resolved
    0 votes
    The first line of your log also refers to redhat. That's us.

    I'm afraid I do not know how to manipulate sqlite databases or even where to find them.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 09:34 PM - #Permalink
    Resolved
    0 votes
    No *.PID in the symlink, so init.d makes a start but does not start a process.
    The PMS logs look rather badly:

    [root@localhost]# cat "Plex Media Server.log"
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] INFO - Plex Media Server v0.9.11.16.958-80f1748 - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 redhat
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] DEBUG - Opening 20 database sessions to library, SQLite 3.8.6, threadsafe=1
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] ERROR - SQLITE3:0x10, 14, cannot open file at line 28554 of [9491ba7d73]
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] ERROR - SQLITE3:0x10, 14, os_unix.c:28554: (13) open(/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-shm) - Permission denied
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] ERROR - SQLITE3:0x10, 14, unable to open database file
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] ERROR - Database corruption: sqlite3_statement_backend::prepare: unable to open database file for SQL: PRAGMA cache_size=4000
    Feb 17, 2016 20:05:05 [0x7fbe45fc27c0] ERROR - Error: Unable to set up server: sqlite3_statement_backend::prepare: unable to open database file for SQL: PRAGMA cache_size=4000
    [root@localhost]#


    Silly: Do we get a ubuntu version at ClearOS?
    As it seems impossible to clean up the system by removing Plex, it seems my best option would be to rebuild my ClearOS system and do a clean install, unless there would be a quick fix for SQLITE (which I doubt).
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 09:05 PM - #Permalink
    Resolved
    0 votes
    /var/run/PlexMediaServer.pid is just a symlink to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/plexmediaserver.pid and mine contains a process ID. /var/lock/subsys/PlexMediaServer is a zero byte file. I'm sure I've seen this issue before. Is there anything in the logs? I presume it is starting up then failing.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 08:44 PM - #Permalink
    Resolved
    0 votes
    Well, it doesn't start anymore; the only plex-process is grep searching for plex. Still, the init-file has been hit (Starting PlexMediaServer: [ OK ]) and some process is putting *.pid entries in /var/run and /var/lock/subsys but these entries are empty (no PID-numbers available). Probably the init-file does that also.

    [root@localhost]# ps aux | grep -i plex
    root 9294 0.0 0.0 103304 920 pts/0 S+ 21:31 0:00 grep -i plex
    [root@localhost]#
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 17 2016, 07:34 PM - #Permalink
    Resolved
    0 votes
    Plex runs using odd names - with spaces and with capitals. Try:
    ps aux | grep -i plex
    I get:
    [root@server ~]# ps aux | grep -i plex
    root 3393 0.0 0.0 103304 924 pts/0 S+ 19:30 0:00 grep -i plex
    root 4822 0.0 0.0 178948 584 ? S 2015 0:00 su -s /bin/sh plex -c . /etc/sysconfig/PlexMediaServer; cd /usr/lib/plexmediaserver; ./'Plex Media Server' > /dev/null 2>&1
    plex 4824 0.0 0.0 106064 204 ? Ss 2015 0:00 sh -c . /etc/sysconfig/PlexMediaServer; cd /usr/lib/plexmediaserver; ./'Plex Media Server' > /dev/null 2>&1
    plex 4828 0.0 1.1 693504 88644 ? Sl 2015 103:03 ./Plex Media Server
    plex 4837 0.1 0.9 1988452 78524 ? SNl 2015 237:39 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.pyc --server-version 0.9.12.8.1362-4601e39 /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/System.bundle
    plex 4926 0.4 0.8 628936 70880 ? Sl 2015 792:08 /usr/lib/plexmediaserver/Plex DLNA Server
    on my unlicenced (free) version.
    The reply is currently minimized Show
Your Reply