Random files showing as unavailable in Plex occassionaly

Can you run:

rclone ls gdrive:"Movies/Le Samouraï 1967/Le Samouraï 1967 Criterion Collection 1080p Blu-ray Remux AVC DTS-HD MA 1.0 - KRaLiMaRKo.mkv"

rclone ls gcache:"Movies/Le Samouraï 1967/Le Samouraï 1967 Criterion Collection 1080p Blu-ray Remux AVC DTS-HD MA 1.0 - KRaLiMaRKo.mkv"

and paste the command and output.

Also note that I have unmounted gcache.

rclone ls gdrive:“Movies/Le Samouraï 1967/Le Samouraï 1967 Criterion Collection 1080p Blu-ray Remux AVC DTS-HD MA 1.0 - KRaLiMaRKo.mkv”
28783521537 Le Samouraï 1967 Criterion Collection 1080p Blu-ray Remux AVC DTS-HD MA 1.0 - KRaLiMaRKo.mkv

rclone ls gcache:“Movies/Le Samouraï 1967/Le Samouraï 1967 Criterion Collection 1080p Blu-ray Remux AVC DTS-HD MA 1.0 - KRaLiMaRKo.mkv”
28783521537 Le Samouraï 1967 Criterion Collection 1080p Blu-ray Remux AVC DTS-HD MA 1.0 - KRaLiMaRKo.mkv

And in Plex, you emptied trash/rescanned library and if you check that particular file by checking the Get Info, the size and everything matches up?

If you want to see if the cache is the issue, you can just rclone mount gdrive: instead of the cache mount. All the defaults would be fine to use.

I am not able to see the info on that file since it’s “unavailable” in plex. Here is the error I get when trying to mount gdrive:

rclone mount -vvv --allow-non-empty gdrive: /Users/Hoopie/gdrive

2019/03/03 18:26:26 DEBUG : rclone: Version “v1.46” starting with parameters [“rclone” “mount” “-vvv” “–allow-non-empty” “gdrive:” “/Users/Hoopie/gdrive”]

2019/03/03 18:26:26 DEBUG : Using config file from “/Users/Hoopie/.config/rclone/rclone.conf”

2019/03/03 18:26:26 DEBUG : Google drive root ‘’: Mounting on “/Users/Hoopie/gdrive”

2019/03/03 18:27:26 DEBUG : pacer: Rate limited, sleeping for 1.293090692s (1 consecutive low level retries)

2019/03/03 18:27:26 DEBUG : pacer: low level retry 1/10 (error Get https://www.googleapis.com/drive/v3/changes/startPageToken?alt=json&prettyPrint=false&supportsTeamDrives=false: net/http: TLS handshake timeout)

2019/03/03 18:28:26 DEBUG : pacer: Rate limited, sleeping for 2.350746992s (2 consecutive low level retries)

2019/03/03 18:28:26 DEBUG : pacer: low level retry 2/10 (error Get https://www.googleapis.com/drive/v3/changes/startPageToken?alt=json&prettyPrint=false&supportsTeamDrives=false: net/http: TLS handshake timeout)

2019/03/03 18:28:26 DEBUG : pacer: Resetting sleep to minimum 100ms on success

2019/03/03 18:28:26 DEBUG : Adding path “vfs/forget” to remote control registry

2019/03/03 18:28:26 DEBUG : Adding path “vfs/refresh” to remote control registry

2019/03/03 18:28:26 DEBUG : Adding path “vfs/poll-interval” to remote control registry

2019/03/03 18:28:26 DEBUG : : Root:

2019/03/03 18:28:26 DEBUG : : >Root: node=/, err=<nil>

2019/03/03 18:28:26 DEBUG : rclone: Version “v1.46” finishing with parameters [“rclone” “mount” “-vvv” “–allow-non-empty” “gdrive:” “/Users/Hoopie/gdrive”]

Have you emptied the trash in Plex and rescanned? You’ve ruled out rclone as you can see the file and the size looks right on both the cached version and non cached version.

Are you using your own API/client ID as that helps with rate limiting 403s.

https://rclone.org/drive/#making-your-own-client-id

I am assuming those errors aren’t important when I tried to mount my gdrive: ?

Yes I have my own API

Yes I have emptied the trash which was successful and rescanned the file always comes back but it’s unavailable every time. Also note that I have to remove the file from plex to get it to go away, simply emptying the trash does nothing.

In Plex, empty trash is supposed to remove any Unavailable files. If the file is unavailable and you empty trash, it stays there?

What does a “ls -al” of the file look like?
Can you run a mediainfo on it from the command line?

felix@gemini:/GD/Radarr_Movies/Mandy (2018)$ ls -al
total 16859234
-rw-rw-r-- 1 felix felix 17263855407 Feb 28 23:01 Mandy (2018).mkv
felix@gemini:/GD/Radarr_Movies/Mandy (2018)$ mediainfo Mandy\ \(2018\).mkv
General
Unique ID                                : 89957474953755583741190411238602411438 (0x43AD2DF1F983304C930FF5DEBBF78DAE)
Complete name                            : Mandy (2018).mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 16.1 GiB
Duration                                 : 2 h 1 min
Overall bit rate                         : 19.0 Mb/s
Encoded date                             : UTC 2018-10-26 12:45:52
Writing application                      : mkvmerge v28.2.0 ('The Awakening') 64-bit
Writing library                          : libebml v1.3.6 + libmatroska v1.4.9
Cover                                    : Yes
Attachments                              : cover.jpg

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2 h 1 min
Bit rate                                 : 17.5 Mb/s
Width                                    : 1 920 pixels
Height                                   : 804 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.473
Stream size                              : 14.8 GiB (92%)
Writing library                          : x264 core 152 r2851kMod ba24899
Encoding settings                        : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=1.03:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=16.6000 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.30 / pb_ratio=1.20 / aq=1:0.65
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 2 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 1 509 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 spf)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.28 GiB (8%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 49 min
Bit rate                                 : 16 b/s
Count of elements                        : 525
Stream size                              : 12.9 KiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 59 min
Bit rate                                 : 18 b/s
Count of elements                        : 697
Stream size                              : 15.7 KiB (0%)
Title                                    : SHD
Language                                 : English
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 50 min
Bit rate                                 : 14 b/s
Count of elements                        : 458
Stream size                              : 11.7 KiB (0%)
Language                                 : Czech
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 50 min
Bit rate                                 : 14 b/s
Count of elements                        : 456
Stream size                              : 11.9 KiB (0%)
Language                                 : Danish
Default                                  : No
Forced                                   : No

Text #5
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 56 min
Bit rate                                 : 14 b/s
Count of elements                        : 459
Stream size                              : 12.0 KiB (0%)
Language                                 : Finnish
Default                                  : No
Forced                                   : No

Text #6
ID                                       : 8
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 46 min
Bit rate                                 : 16 b/s
Count of elements                        : 437
Stream size                              : 12.5 KiB (0%)
Language                                 : French
Default                                  : No
Forced                                   : No

Text #7
ID                                       : 9
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 50 min
Bit rate                                 : 15 b/s
Count of elements                        : 458
Stream size                              : 12.7 KiB (0%)
Language                                 : Hungarian
Default                                  : No
Forced                                   : No

Text #8
ID                                       : 10
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 50 min
Bit rate                                 : 14 b/s
Count of elements                        : 456
Stream size                              : 11.7 KiB (0%)
Language                                 : Norwegian
Default                                  : No
Forced                                   : No

Text #9
ID                                       : 11
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 50 min
Bit rate                                 : 14 b/s
Count of elements                        : 485
Stream size                              : 11.9 KiB (0%)
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #10
ID                                       : 12
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 1 h 50 min
Bit rate                                 : 14 b/s
Count of elements                        : 454
Stream size                              : 11.4 KiB (0%)
Language                                 : Swedish
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : :00:00:00.000
00:11:14.799                             : :00:11:14.799
00:21:25.826                             : :00:21:25.826
00:34:30.235                             : :00:34:30.235
00:51:18.158                             : :00:51:18.158
01:04:38.500                             : :01:04:38.500
01:08:57.342                             : :01:08:57.342
01:16:49.647                             : :01:16:49.647
01:26:33.980                             : :01:26:33.980
01:36:26.656                             : :01:36:26.656
01:47:46.085                             : :01:47:46.085
01:57:05.018                             : :01:57:05.018


felix@gemini:/GD/Radarr_Movies/Mandy (2018)$

This is very strange I am not able to do a change directory to the folder path, but I am able to for other folders.

Here is the path I used

/Users/Hoopie/gcache/Movies/Le Samouraï 1967/

Which returns:
-bash: /Users/Hoopie/gcache/Movies/Le: No such file or directory

If I do an LS on just the below path I can see the directory listed

/Users/Hoopie/gcache/Movies

Yeah, but if you can’t change into from the command line, neither can plex.

You should try to rename it and remove the odd char.

1 Like

This whole time I couldn’t see the strange character… thank you so much for helping me.

Any other tips for getting my plex setup with cache to run any better now that we are here?

I wouldn’t use it :slight_smile:

My mount command I personally use is just the VFS standard backend with some explanations on my settings and why I use them:

# This is my non cache backend or the standard rclone VFS mount. No items are written to disk and everything is done in memory
#ExecStart=/usr/bin/rclone mount gcrypt: /GD \
# This allow users other than the running process user to access the files
#   --allow-other \
# The buffer size is when a file is opened and how much memory you want to keep and use. This is per file so depending on your system
# setting this number too big will cause issues. I've found that in my setup, it really doesn't need to be that big but depending
# on your config, you may want to move it up or down depending on you hardware.
#   --buffer-size 256M \
#   --dir-cache-time 96h \
#   --drive-chunk-size 32M \
#   --log-level INFO \
#   --log-file /var/log/rclone.log \
#   --timeout 1h \
#   --umask 002 \
# This is the size that I found was a nice mix between balancing out the API calls and keeping everything responsive. You do not
# want the number to be too small as that generates a lot of API traffic. This works in conjuction with the next parameter to limit
# the API hits for sequentially reading files. There is no reason to cap it so I leave it at off.
#   --vfs-read-chunk-size 64M \
#   --vfs-read-chunk-size-limit off \
#   --rc
1 Like

So far so good with just VFS