Thanks for your help. I was able to recover from this near disaster and learned a valuable lesson about editing /etc/passwd file in this manor without a backup user with admin privileges.
Meanwhile back at the ranch…
Based on your help, I think @Ajki and myself are having a similar issue in that the Plex Server URL Command interface works but directly interacting on the server with the Plex Scanner Command Line isn’t producing any results (probably an error being swallowed).
Other things that I can gather are similar between @Ajki setup and mine:
Running Ubuntu 16.04 LTS
Both did standard install using the plex.deb package from the website
Differences in our setup:
I am running my service (via override) as non-standard user (mrplex).
@Ajki service is running as the default plex server.
My initial thoughts that the issue was an authentication token issue related to Plex Home has been debunked by you as the Plex Scanner Command Line doesn’t require this. Not sure where to go from here in order to discover what the underlying issue is as I am scared to make modifications again to /etc/passwd.
@ChuckPa Any other ways you can think of to troubleshoot this and track down the underlying issue?
On a side note, I have a second Plex Server running on Ubuntu 14.04 LTS that belongs to the same Plex Home and the Plex Scanner Command Line works perfectly. That installation is running the same version of Plex Server (latest) and also under a non-standard user (mrplex). Do we think this might be an issue related to Ubuntu 16.04?
@mrobplex said:
Do we think this might be an issue related to Ubuntu 16.04?
Iam pretty sure thats the issue as i just installed a temp vps with Ubuntu server 16.04 LTS + default Plex install and nothing else is on the server and cli scanner still does not return the results.
Testing across multiple Linux distributions this morning yielded different results.
The strangest of all: A Ubuntu 16.04 native installation does not work as expected while Docker Plex (which is also a Ubuntu 16.04 user space) works 100% as it should.
This is strong implication there are faulty / mismatched / incompatible (pick any word you like ) versions of runtime libraries in circulation.
Two issues have been written up (I thank you all for your input here and have referenced it) and submitted to the dev team for their verification, feedback, and ultimate resolution.
Thanks for your hard work and dedication tracking this down! I appreciate you sticking with me until the wee hours of the morning to bring my machine back to life. I have my fingers crossed that the developers will get this resolved relatively soon and looking forward to your followup with the resolution info. Awesome Work!
It will be interesting to see the true root cause. Based on what I can determine, boost libraries are different across platform offerings and most notably Windows/Linux/OS X boundaries. I will report back what the devs’ findings are.
This is result plex@plex /usr/lib/plexmediaserver $ export LD_LIBRARY_PATH=pwdplex@plex /usr/lib/plexmediaserver $ export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=pwdplex@plex /usr/lib/plexmediaserver $ /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list terminate called after throwing an instance of 'boost::filesystem::filesystem_error' what(): boost::filesystem::create_directory: Not a directory: "/usr/lib/plexmediaserver/Plex Media Server/Logs" ****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /usr/lib/plexmediaserver/Plex Media Server/Crash Reports/1.3.3.3148-b38628e/PLEX MEDIA SCANNER/1c122349-1e9a-4392-655f32dd-1295852e.dmp terminate called recursively ****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /usr/lib/plexmediaserver/Plex Media Server/Crash Reports/1.3.3.3148-b38628e/PLEX MEDIA SCANNER/1c122349-1e9a-4392-655f32dd-1295852e.dmp Aborted
When I change plex@plex /var/lib/plexmediaserver/Library/Application Support/Plex Media Server $ export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=pwdplex@plex /var/lib/plexmediaserver/Library/Application Support/Plex Media Server $ /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list plex@plex /var/lib/plexmediaserver/Library/Application Support/Plex Media Server $
Thanks for staying on top of this and reporting the dev team’s findings!
Specifying PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR was the key.
Here are my results on Ubuntu 16.04:
mrplex@HS:~$ LD_LIBRARY_PATH=/usr/lib/plexmediaserver PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application\ Support /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list
1: Movies
2: TV Shows
mrplex@HS:~$