ps eww 18085
PID TT STAT TIME COMMAND
18085 ?? S 0:01.65 /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server TMPDIR=/var/folders/8x/j212jm910gn5ym29xqr46qdm0000gn/T/ __CF_USER_TEXT_ENCODING=0x1F5:0x0:0xF SHELL=/bin/bash HOME=/Users/quietrat Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.6HrpdVRtjY/Render SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.BENMWm57Zs/Listeners PATH=/usr/bin:/bin:/usr/sbin:/sbin LOGNAME=quietrat XPC_SERVICE_NAME=com.plexapp.plexmediaserver.11168 USER=quietrat XPC_FLAGS=0x1
@noirmaru said:
ps eww 18085
PID TT STAT TIME COMMAND
18085 ?? S 0:01.65 /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
TMPDIR=/var/folders/8x/j212jm910gn5ym29xqr46qdm0000gn/T/
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0xF
SHELL=/bin/bash
HOME=/Users/quietrat
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.6HrpdVRtjY/Render
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.BENMWm57Zs/Listeners
PATH=/usr/bin:/bin:/usr/sbin:/sbin
LOGNAME=quietrat
XPC_SERVICE_NAME=com.plexapp.plexmediaserver.11168
USER=quietrat
XPC_FLAGS=0x1
Thanks for the info. It turns out we need to do this for spawned python process but I think it is not staying up long enough to do that. Could you see how soon after launch that the python processes disappear. If they are visible for few seconds, would need to do the ps eww <pid> for those processes
If you do manage to catch it, do not paste the PLEXTOKEN value here
It is not obvious what the issue is and why it is happening on your system but not anyone else’s
Could try removing your other python installation to test Plex Media Server launch and then bring it in afterwards and see what happens
several processes are spawned, and I can do ps eww on them, but they do not return anything.
They are named ‘Plex Media Server’ ‘Plex DLNA Server’ and ‘Plex Plug-in [com.plexapp.system]’ which I had high hopes for, but ps eww returns nothing for that one. No other process is spawned that I can see.
@noirmaru said:
several processes are spawned, and I can do ps eww on them, but they do not return anything.They are named ‘Plex Media Server’ ‘Plex DLNA Server’ and ‘Plex Plug-in [com.plexapp.system]’ which I had high hopes for, but ps eww returns nothing for that one. No other process is spawned that I can see.
Yes it would be the Plex Plug-in process for com.plexapp.system which is the child process started by Plex Media Server and is the one that is picking up the wrong python
May be starting plex media server in terminal again would make it possible to see the environment variables for the plugin process
@sa2000 said:
Yes it would be the Plex Plug-in process for com.plexapp.system which is the child process started by Plex Media Server and is the one that is picking up the wrong python
May be starting plex media server in terminal again would make it possible to see the environment variables for the plugin process
Just tried again, and no dice.
I did ps eww on the PMS process and it is a bit different from the last one.
99101 s003 S+ 0:10.88 /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server CAML_LD_LIBRARY_PATH=/Users/quiet/.opam/system/lib/stublibs:/usr/local/lib/ocaml/stublibs MANPATH=:/Users/quiet/.opam/system/man TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/8x/j212jm910gn5ym29xqr46qdm0000gn/T/ GOBIN=/Users/quiet/.go/bin PERL5LIB=/Users/quiet/.opam/system/lib/perl5: Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.pbjSJ69KE5/Render TERM_PROGRAM_VERSION=388 TERM_SESSION_ID=E250FE3E-727C-426D-83AA-3A15F591CF02 OCAML_TOPLEVEL_PATH=/Users/quiet/.opam/system/lib/toplevel USER=quiet SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.EEKuSqvklT/Listeners __CF_USER_TEXT_ENCODING=0x1F5:0x0:0xF OPAMUTF8MSGS=1 PATH=/Users/quiet/bin:/usr/local/sbin:/usr/local/bin:/Users/quiet/.opam/system/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/quiet/.go/bin PWD=/Users/quiet LANG=en_AU.UTF-8 XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 SHLVL=1 HOME=/Users/quiet GOROOT=/usr/local/opt/go/libexec LOGNAME=quiet GOPATH=/Users/quiet/.go SECURITYSESSIONID=186a9 _=/Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
If I remove lxml from pip, Plex works correctly. So that is a solution, to add and remove it as necessary, but I do need it for for other stuff… I would still really appreciate help in finding a more permanent solution. thanks
EDIT:
with lxml removed from pip, I can do ps eww on the python process and this is what I get:
99289 ?? SN 0:02.65 Plex Plug-in [com.plexapp.system] /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-b38628e/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.3.3.3148-b38628e /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-b38628e/System.bundle TMPDIR=/var/folders/8x/j212jm910gn5ym29xqr46qdm0000gn/T/ __CF_USER_TEXT_ENCODING=0x1F5:0x0:0xF SHELL=/bin/bash HOME=/Users/quietrat Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.pbjSJ69KE5/Render SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.EEKuSqvklT/Listeners PATH=/usr/bin:/bin:/usr/sbin:/sbin LOGNAME=quietrat XPC_SERVICE_NAME=com.plexapp.plexmediaserver.11168 USER=quietrat XPC_FLAGS=0x0 DYLD_LIBRARY_PATH=/Applications/Plex Media Server.app/Contents/Resources/Python PYTHONHOME=/Applications/Plex Media Server.app/Contents/Resources/Python PLEXBUNDLEDPLUGINSPATH=/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-b38628e PLEXBUNDLEDEXTS=1 PLEXTOKEN=########### PLEXSERVERPORT=32400 PYTHONDONTWRITEBYTECODE=1
Thanks for all the feedback. I am getting the path logged but that will come in in a future release of Plex Media Server
I was reading this web page just now and wonder if it is relevant
Is it to do with the sudo to make the install of python global ?
I have not worked out how the path is derived exactly but we call a function GetResourcePath("Python")
hmmm, i’m not sure how that page helps me…
i have tried pip install lxml installed as regular user and as root with the same result.
both echo $PYTHONPATH and echo $PYTHONHOME return nothing.
which python returns /usr/local/bin/python
which pip returns /usr/local/bin/pip
and then…
sudo find / -name site-packages -type d
Password:
/Applications/calibre.app/Contents/Resources/Python/site-packages
/Applications/Plex Media Server.app/Contents/Resources/Python/lib/python2.7/site-packages
/Library/Python/2.6/site-packages
/Library/Python/2.7/site-packages
/private/var/folders/8x/j212jm910gn5ym29xqr46qdm0000gn/T/pip-qKnSHY-uninstall/usr/local/lib/python2.7/site-packages
/Users/quietrat/.local/lib/python2.7/site-packages
/Users/quietrat/lib/scope/lib/python2.7/site-packages
/usr/local/Cellar/libdnet/1.12/lib/python2.7/site-packages
/usr/local/Cellar/libxml2/2.9.4_2/lib/python2.7/site-packages
/usr/local/Cellar/libxslt/1.1.29/lib/python2.7/site-packages
/usr/local/Cellar/pyqt/4.11.4/lib/python2.7/site-packages
/usr/local/Cellar/pyqt5/5.7/lib/python3.5/site-packages
/usr/local/Cellar/pyqt5/5.7_1/lib/python3.6/site-packages
/usr/local/Cellar/sip/4.18.1/lib/python2.7/site-packages
/usr/local/Cellar/sip/4.18.1/lib/python3.5/site-packages
/usr/local/Cellar/sip/4.19/lib/python2.7/site-packages
/usr/local/Cellar/sip/4.19/lib/python3.6/site-packages
/usr/local/Cellar/thefuck/3.11/libexec/lib/python2.7/site-packages
/usr/local/Cellar/thefuck/3.14/libexec/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/lib/python3.5/site-packages
/usr/local/lib/python3.6/site-packages
Plex isn’t restricted to the US, so that shouldn’t be an issue for you
![]()
It would be nice if the Plex programmers actually fixed this. PLEX MEDIA SERVER DOES NOT WORK WITH EL CAPITAN. It hangs on Starting Server. How much evidence do you need?
@stuzog said:
It would be nice if the Plex programmers actually fixed this. PLEX MEDIA SERVER DOES NOT WORK WITH EL CAPITAN. It hangs on Starting Server. How much evidence do you need?
The logs show failure to start the python com.plexapp.system process
Also failure create ? write to the folder
/Users/Stuart/Library/Application Support/Plex Media Server/Plug-ins
I think you launched the Plex Media Server app from the download directory rather than the Applications directory
Feb 23, 2017 19:09:32.060 [0x7000005b2000] INFO - /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server -psn_0_843982
I believe the -psn_0_843982 indicates that
See OS X section on this support page
https://support.plex.tv/hc/en-us/articles/200288586-Installation
If problem persists even after shutting down Plex Media Server and launching from the Applications folder, would like then to see what errors get returned when launching Plex Media Server.app in terminal session. Also list of directories and ownership and permissions for the local app area.
Please start a terminal session and get the list directory information
ls -al ~/Library/Application\ Support/Plex\ Media\ Server
Copy that to text file and save to attach here
Then please shutdown Plex Media Server ensuring all plex processes terminated and try to launch in terminal
cd /Applications
./Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Server
and capture what gets displayed and attach here together with all the logs - including any in logs directory PMS Plugin Logs
No, I have always launched it from the /Applications folder.
A fresh install reproduces the stall at startup.
bash$ ls -al ~/Library/Application\ Support/Plex\ Media\ Server
total 0
drwxr-xr-x 6 Stuart staff 204 24 Feb 10:43 .
drwx------+ 156 Stuart staff 5304 24 Feb 10:43 ..
drwxr-xr-x 4 Stuart staff 136 24 Feb 10:43 Codecs
drwxr-xr-x 3 Stuart staff 102 24 Feb 10:43 Crash Reports
drwxr-xr-x 4 Stuart staff 136 24 Feb 10:43 Plug-in Support
drwxr-xr-x 3 Stuart staff 102 24 Feb 10:43 Thumbnails
Opened from Terminal Plex-open-terminal.txt
Logs attached Plex Media Server.zip
Thanks for your help.
I should note that Python was installed by Homebrew.
See attached which_python.txt
Hope that helps!
@stuzog said:
No, I have always launched it from the /Applications folder.
A fresh install reproduces the stall at startup.bash$ ls -al ~/Library/Application\ Support/Plex\ Media\ Server total 0 drwxr-xr-x 6 Stuart staff 204 24 Feb 10:43 . drwx------+ 156 Stuart staff 5304 24 Feb 10:43 .. drwxr-xr-x 4 Stuart staff 136 24 Feb 10:43 Codecs drwxr-xr-x 3 Stuart staff 102 24 Feb 10:43 Crash Reports drwxr-xr-x 4 Stuart staff 136 24 Feb 10:43 Plug-in Support drwxr-xr-x 3 Stuart staff 102 24 Feb 10:43 ThumbnailsOpened from Terminal
Plex-open-terminal.txt
Logs attachedPlex Media Server.zipThanks for your help.
It is a similar issue to that in logs from @noirmaru
The other python installation is affecting Plex Media Server
We have added some verbose logging for the python path - could you enable verbose logging on the server to add to the debug which is already enabled and restart the server and get the logs
File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-b46e0eafd/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/__init__.py", line 9, in <module>
from data import Data
File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-b46e0eafd/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/data.py", line 8, in <module>
from lxml import etree, html, objectify
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/lxml/etree.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString
Referenced from: /usr/local/lib/python2.7/site-packages/lxml/etree.so
Expected in: flat namespace
in /usr/local/lib/python2.7/site-packages/lxml/etree.so
I looked to Plex as a possible media handling solution that worked better and more reliably than Apple TV/AirPlay/iTunes and I can’t even get the crap Plex Media Server app to even start on my Mac. 33 pages worth of replies and no solution? Am I reading that right? Really??? Doesn’t anyone today make reliable and easy to use software anymore???
@JohnDoeyPlex said:
I looked to Plex as a possible media handling solution that worked better and more reliably than Apple TV/AirPlay/iTunes and I can’t even get the crap Plex Media Server app to even start on my Mac. 33 pages worth of replies and no solution? Am I reading that right? Really??? Doesn’t anyone today make reliable and easy to use software anymore???
33 pages of many different issues and many different solutions.
Each case needs to be investigated and if it is a launch issue then with launching through terminal
Most issues are caused by incorrect permissions or ownership
I updated Plex and have the same issue with lxml installed with pip. There are some more verbose messaging however. Can we work on this again?
https://0bin.net/paste/37dupxLZ060UT4hI#3VPctUKh3p7WVqvKU72hYgqGMdcKhlc3jDYj2nx+cKV
I updated Plex and have the same issue with lxml installed with pip. There are some more verbose messaging however. Can we work on this again?
https://0bin.net/paste/37dupxLZ060UT4hI#3VPctUKh3p7WVqvKU72hYgqGMdcKhlc3jDYj2nx+cKV
Trying to get this reproduced
The verbose logging that now has extra log info is in the Plex Media Server.log and not Plex web App.
Without access to settings, you can set logVerbose preference manually -
See https://support.plex.tv/hc/en-us/articles/201105343-Advanced-Hidden-Server-Settings
@sa2000 said:
Trying to get this reproducedThe verbose logging that now has extra log info is in the Plex Media Server.log and not Plex web App.
Without access to settings, you can set logVerbose preference manually -
See https://support.plex.tv/hc/en-us/articles/201105343-Advanced-Hidden-Server-Settings
Thanks for the help. Here is the proper verbose log:
https://0bin.net/paste/M-42EWdWzpyNTA4B#r7mk0z2ADfG0iz43Anjw3BBZRCbLO9JfHqaXU6vUv4h
@noirmaru said:
@sa2000 said:
Trying to get this reproducedThe verbose logging that now has extra log info is in the Plex Media Server.log and not Plex web App.
Without access to settings, you can set logVerbose preference manually -
See https://support.plex.tv/hc/en-us/articles/201105343-Advanced-Hidden-Server-SettingsThanks for the help. Here is the proper verbose log:
https://0bin.net/paste/M-42EWdWzpyNTA4B#r7mk0z2ADfG0iz43Anjw3BBZRCbLO9JfHqaXU6vUv4h
There is no Verbose logging.
I gave your wrong name, It is LogVerbose and not logVerbose
@sa2000 said:
There is no Verbose logging.
I gave your wrong name, It is
LogVerboseand notlogVerbose
Proper verbose logging: https://0bin.net/paste/BgPrpc-IZw+aki3B#DnCb6x2i7q9tBqVS8E0xbFobYDFDnbzH0-jioN8sAvF