Hi there,
So I’ve just moved some of my media library to gdrive via rclone. The drive is mounted using rclone mount and animosity22’s settings (awesome by the way, thanks).
I have added a new library and the media is found in plex, click play on another device and the streaming starts…
However, ~25 mins in to my stream, I am greeted with the following Plex error:
Playback has been stopped because the connection to the Plex Media Server has been lost. Please ensure the server is available and retry.
I can hit retry, and SOMETIMES the media starts again, sometimes not. But even when it does I get the same error another ~25 mins later.
I’m certain it’s not the connection to the server that’s the issue, as streaming from a library in which the files are local works like a charm. I have investigated the DEBUG log, all looks normal from what I can tell, with lots of chunk reads like below:
2018/10/18 19:29:59 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: Read: len=131072, offset=907595776
2018/10/18 19:29:59 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: >Read: read=131072, err=<nil>
However, after the last entry of this type, and a few of these (which seem to happen every second so I assume is a standard part of the DEBUG):
2018/10/18 19:30:00 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274617396315 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2018/10/18 19:30:00 DEBUG : : Statfs:
2018/10/18 19:30:00 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274617396315 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
I get this:
2018/10/18 19:30:00 DEBUG : movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4: ChunkedReader.Read at 1980022784 length 1048576 chunkOffset 946130944 chunkSize 1073741824
And then this, which seems like rclone is closing the stream(?):
2018/10/18 19:30:01 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: Flush:
2018/10/18 19:30:01 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: >Flush: err=<nil>
2018/10/18 19:30:01 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: Flush:
2018/10/18 19:30:01 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: >Flush: err=<nil>
2018/10/18 19:30:01 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: Release:
2018/10/18 19:30:01 DEBUG : movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4: ReadFileHandle.Release closing
2018/10/18 19:30:01 DEBUG : &{movies/Plex Versions/Optimized for TV/Jurassic World_ Fallen Kingdom (2018).mp4 (r)}: >Release: err=<nil>
A few minutes after this, when the buffer has run out, I am greeted with the Plex error mentioned above.
On a side note, I also see rate limit errors in the log every so often, which is surprising because this is the first time in the last 24 hours I am using the mount. They appear to be intermittent and I wonder if they are telling the truth as they are in between reads of the film:
2018/10/18 19:08:54 DEBUG : pacer: Rate limited, sleeping for 8.069900486s (4 consecutive low level retries)
2018/10/18 19:08:54 DEBUG : pacer: low level retry 4/10 (error googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded)
Any help would be much appreciated, thanks.