Command Line Scanner and Partial Refresh

@EddieA said:

@sa2000 said:
PS: There have been significant changes to how the scanner runs in recent versions and the environment for the scanner jobs need to bet set to allow access to codecs libraries. So even if we get to the bottom of what the issue is with regards to the partial directory scanning, there will be other issues and I am not sure at this stage if this command line interface will continue to be supported

Could the environment settings be the root of my problem here. All I have set currently, is:

PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR='/var/lib/plexmediaserver/Library/Application Support'
LD_LIBRARY_PATH=/usr/lib/plexmediaserver

Cheers.

Could be - not sure. Need to look into it.
But you may be able to help here - you appear to have got a real Plex Media Scanner log file for your command line job whereas @“eldon.mcguinness” did not. This too could be environment variable related !

The scanner process when invoked internally by Plex Media Server does have additional environment variables introduced recently. The ones that specify paths are

EAE_ROOT
FFMPEG_EXTERNAL_LIBS

and there is also environment variable for the server token X_PLEX_TOKEN

As the syntax for the path varies from platform to platform and also may be different for different versions of Plex Media Server, I am not going to try and tell you what these extra environment variables should be set to but best to get a scan fired by Plex Media Server and then look at the Plex Media Server.log to see what the paths are set to for the scanner job logged line

This is an example of what the log file entry would look like

May 11, 2017 10:54:11.704 [19568] DEBUG - Job running: EAE_ROOT='\\?\C:\Users\plex\AppData\Local\Plex Media Server\Transcoder\EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='\\\\?\\C\:\\Users\\plex\\AppData\\Local\\Plex\ Media\ Server\\Codecs\\e96c1d3-1208-windows-i386\\' X_PLEX_TOKEN='xxxxxxxxxxxx' C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe --scan --refresh --section 28 --directory C:\Users\Public\Plex-Tests\Home-Video-Tests 

The environment variables would be set to the text within the ' characters showing in the log line