Unfortunately, the documentation on where the log files are, is not complete, or there is some difference between the docker implementation and other variants. Such that there is NO $PLEX_HOME export (variable, in the docker instance. For example:
declare -x CHANGE_CONFIG_DIR_OWNERSHIP=“true”
declare -x HOME="/config"
declare -x HOSTNAME=“test”
declare -x LANG=“C.UTF-8”
declare -x LC_ALL=“C.UTF-8”
declare -x OLDPWD="/"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PGID=“1001”
declare -x PLEX_CLAIM="“nope”"
declare -x PUID=“1001”
declare -x SHLVL=“1”
declare -x TERM=“xterm”
However, a bit if snooping, within the docker instance, using the relative path information the log reference information does provide, thus provides the logs location, for example:
find / | grep “Library/Application Support/Plex Media Server/Logs/”
Thus the docker environment $HOME is the actual absolute path prefix, not $PLEX_HOME, is this in error, or does the documentation need to be updated to show this variance?
Moving on, in the analysis, Plex Media Scanning is just NOT SEEING all the files present per the log. For example, from the log:
Aug 25, 2017 02:47:13.062 [0x7f4a7da6f800] DEBUG - * Scanning /data/Test Patterns
Aug 25, 2017 02:47:13.062 [0x7f4a7da6f800] DEBUG - * Scanning directory /data/Test Patterns (parent: no)
Aug 25, 2017 02:47:13.063 [0x7f4a7da6f800] VERBOSE - * Noting that ‘’ was updated at 2017-08-24 22:49:14
Aug 25, 2017 02:47:13.063 [0x7f4a7da6f800] VERBOSE - * Taking directory ‘’ (20) out of the map (0 left)
Aug 25, 2017 02:47:13.063 [0x7f4a7da6f800] DEBUG - Adding file for scanner: /data/Test Patterns/BarsAndTone.mp4
Aug 25, 2017 02:47:13.063 [0x7f4a7da6f800] DEBUG - Adding file for scanner: /data/Test Patterns/FlatFields.mp4
Aug 25, 2017 02:47:13.063 [0x7f4a7da6f800] DEBUG - Adding file for scanner: /data/Test Patterns/IndianHead.mp4
Aug 25, 2017 02:47:13.063 [0x7f4a7da6f800] DEBUG - Adding file for scanner: /data/Test Patterns/myTvTestDiscV5.m4v
Aug 25, 2017 02:47:13.066 [0x7f4a7da6f800] DEBUG - Skipping over directory ‘’, as nothing has changed; removing 4 media items from map.
Aug 25, 2017 02:47:13.067 [0x7f4a7da6f800] DEBUG - Removing 0 media items that were left.
Aug 25, 2017 02:47:13.067 [0x7f4a7da6f800] DEBUG - Removing 0 directories that were left.
Only 4 files are seen, when the actual docker path reference, shows the following files:
root@test:/data/Test Patterns# pwd
/data/Test Patterns
root@test:/data/Test Patterns# ls -l
total 394488
-rw-r–r-- 1 root root 13239124 Aug 24 22:17 BarsAndTone.mp4
-rw-r–r-- 1 root root 209477522 Aug 24 22:37 ColorBarsAndTone50minV2.mp4
-rw-r–r-- 1 root root 12035566 Aug 24 22:18 ColorizedGrayscale.mp4
-rw-r–r-- 1 root root 10536770 Aug 24 22:19 DancingWhiteWindow.mp4
-rw-r–r-- 1 root root 8227010 Aug 24 22:19 FlatFields.mp4
-rw-r–r-- 1 root root 84190661 Aug 24 22:20 IndianHead.mp4
-rw-r–r-- 1 root root 17062164 Aug 24 22:19 PhilipsCircle.mp4
-rw-r–r-- 1 root root 7303784 Aug 24 22:18 SplitGrayscale.mp4
-rw-r–r-- 1 root root 10456194 Aug 24 22:18 SubwooferSweep.mp4
-rw-r–r-- 1 root root 10456297 Aug 24 22:17 VibrationSweep.mp4
-rw-r–r-- 1 root root 20949162 Aug 24 22:38 myTvTestDiscV5.m4v
The original source mount point from the Host OS side, shows the following files:
root@test:/mnt/storage/Test Patterns# pwd
/mnt/storage/Test Patterns
root@test:/mnt/storage/Test Patterns# ls -l
total 394488
-rw-r–r-- 1 root root 13239124 Aug 24 16:17 BarsAndTone.mp4
-rw-r–r-- 1 root root 209477522 Aug 24 16:37 ColorBarsAndTone50minV2.mp4
-rw-r–r-- 1 root root 12035566 Aug 24 16:18 ColorizedGrayscale.mp4
-rw-r–r-- 1 root root 10536770 Aug 24 16:19 DancingWhiteWindow.mp4
-rw-r–r-- 1 root root 8227010 Aug 24 16:19 FlatFields.mp4
-rw-r–r-- 1 root root 84190661 Aug 24 16:20 IndianHead.mp4
-rw-r–r-- 1 root root 20949162 Aug 24 16:38 myTvTestDiscV5.m4v
-rw-r–r-- 1 root root 17062164 Aug 24 16:19 PhilipsCircle.mp4
-rw-r–r-- 1 root root 7303784 Aug 24 16:18 SplitGrayscale.mp4
-rw-r–r-- 1 root root 10456194 Aug 24 16:18 SubwooferSweep.mp4
-rw-r–r-- 1 root root 10456297 Aug 24 16:17 VibrationSweep.mp4
root@test:/mnt/storage/Test Patterns#
I also forced all files to be user:group owned by the plex id. But this seems odd, since Plex server is in a container, and some files where seen when user:group was root, as noted above. But the results were still incomplete:
Aug 25, 2017 03:00:09.869 [0x7f834b33f800] DEBUG - * Scanning /data/Test Patterns
Aug 25, 2017 03:00:09.870 [0x7f834b33f800] DEBUG - * Scanning directory /data/Test Patterns (parent: no)
Aug 25, 2017 03:00:09.871 [0x7f834b33f800] VERBOSE - * Noting that ‘’ was updated at 2017-08-24 22:49:14
Aug 25, 2017 03:00:09.871 [0x7f834b33f800] VERBOSE - * Taking directory ‘’ (20) out of the map (0 left)
Aug 25, 2017 03:00:09.871 [0x7f834b33f800] DEBUG - Adding file for scanner: /data/Test Patterns/BarsAndTone.mp4
Aug 25, 2017 03:00:09.871 [0x7f834b33f800] DEBUG - Adding file for scanner: /data/Test Patterns/FlatFields.mp4
Aug 25, 2017 03:00:09.871 [0x7f834b33f800] DEBUG - Adding file for scanner: /data/Test Patterns/IndianHead.mp4
Aug 25, 2017 03:00:09.871 [0x7f834b33f800] DEBUG - Adding file for scanner: /data/Test Patterns/myTvTestDiscV5.m4v
Aug 25, 2017 03:00:09.874 [0x7f834b33f800] DEBUG - Skipping over directory ‘’, as nothing has changed; removing 4 media items from map.
Aug 25, 2017 03:00:09.875 [0x7f834b33f800] DEBUG - Removing 0 media items that were left.
Aug 25, 2017 03:00:09.875 [0x7f834b33f800] DEBUG - Removing 0 directories that were left.
So I don’t see this issue as permissions issue per se. At least not from the scanner log? At this point, I can’t see any errors in the log, or messages or even warnings that explain why some files are seen and scanned and some are not, frankly the scanner log is not of much help in this context, from my view.
Could I be looking at the wrong log? But since I am new to Plex Server, maybe someone with more knowledge or experience can provide additional insight? Would be greatly appreciated.