Infinite Loop with Plex Media Server and Data on Rclone

What is the problem you are having with rclone?

Plex wont start the Movie. There is an infinity loop (buffering?).

Hi guys,
greeting for the day. I am searching for a solution for my Plex and my gdrive. A video stored on my WD Ironwolf can be opend and played on plex in a few seconds, but a video stored in my drive wont start for me.
I added the agent-flag and also created crendetials for google. I can see API hits on google cloud console and i can see the data in my rclone folder but i can not play it with plex media server. Anybody know how i can fix this?
Already googled a lot, but those 2 thing were issues i found but i can not find any more. Can you please help me with my Plex System?
P.S. Found this on the internet (these are most of my mount arguments):

Thank You,
Regards, Ferdinand

What is your rclone version (output from rclone version)

latest version

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Synology DS920+ / DSM 7

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount --vfs-cache-mode full --dir-cache-time 5000h --attr-timeout 5000h --umask 002 --poll-interval 10s --vfs-cache-max-age 500h --vfs-read-chunk-size-limit 1G --buffer-size 64M --vfs-cache-max-size 5000G PlexMedia: /volume1/Media/PlexMedia --allow-other --user-agent ferdi --rc-addr :5572 --rc-no-auth --cache-dir=/volume1/Media/temp/cache --drive-pacer-min-sleep 10ms --drive-pacer-burst 1000 --vfs-cache-poll-interval 5m --vfs-read-ahead 2G --bwlimit-file 32M --fast-list --rc --daemon

The rclone config contents with secrets removed.

[gdrive]
type = drive
client_id = XXX.apps.googleusercontent.com
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[PlexMedia]
type = crypt
remote = gdrive:PlexMedia
password = *** ENCRYPTED ***
password2 = *** ENCRYPTED ***

A log from the command with the -vv flag

2021/07/30 18:42:31 NOTICE: Serving remote control on http://[::]:5572/
2021/07/30 18:42:31 DEBUG : Creating backend with remote "PlexMedia:"
2021/07/30 18:42:31 DEBUG : Using config file from "/var/services/homes/ferdinand/.config/rclone/rclone.conf"
2021/07/30 18:42:31 DEBUG : Creating backend with remote "gdrive:PlexMedia"
2021/07/30 18:42:31 DEBUG : gdrive: detected overridden config - adding "{TKSWb}" suffix to name
2021/07/30 18:42:34 DEBUG : fs cache: renaming cache item "gdrive:PlexMedia" to be canonical "gdrive{TKSWb}:PlexMedia"

There's no log file with your issue so nothing to look at unfortunately.

I am so sorry! I just pasted half of it there.
Thank you so much for having a look!

2021/07/30 20:07:30 INFO  : vfs cache: cleaned: objects 10466 (was 10466) in use 714, to upload 710, uploading 4, total size 1.960Ti (was 1.960Ti)
2021/07/30 20:07:35 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 360710144 length 8388608
2021/07/30 20:07:38 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:07:38 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 494927872 length 8388608
2021/07/30 20:07:48 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:07:49 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 318767104 length 8388608
2021/07/30 20:07:50 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 343932928 length 8388608
2021/07/30 20:07:58 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:08:06 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 503316480 length 8388608
2021/07/30 20:08:08 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 369098752 length 8388608
2021/07/30 20:08:08 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:08:11 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 352321536 length 8388608
2021/07/30 20:08:14 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 327155712 length 8388608
2021/07/30 20:08:18 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:08:28 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:08:30 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 360710144 length 8388608
2021/07/30 20:08:31 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 377487360 length 8388608
2021/07/30 20:08:33 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 511705088 length 8388608
2021/07/30 20:08:38 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:08:38 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 335544320 length 8388608
2021/07/30 20:08:48 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:08:51 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 385875968 length 8388608
2021/07/30 20:08:53 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 369098752 length 8388608
2021/07/30 20:08:58 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 520093696 length 8388608
2021/07/30 20:08:58 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:09:07 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 343932928 length 8388608
2021/07/30 20:09:08 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:09:10 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 394264576 length 8388608
2021/07/30 20:09:18 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:09:19 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 377487360 length 8388608
2021/07/30 20:09:20 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 352321536 length 8388608
2021/07/30 20:09:27 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 528482304 length 8388608
2021/07/30 20:09:28 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:09:31 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 402653184 length 8388608
2021/07/30 20:09:38 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:09:39 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 360710144 length 8388608
2021/07/30 20:09:47 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 536870912 length 8388608
2021/07/30 20:09:47 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 385875968 length 8388608
2021/07/30 20:09:48 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:09:51 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 411041792 length 8388608
2021/07/30 20:09:51 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 369098752 length 8388608
2021/07/30 20:09:58 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:10:07 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/4n9fav5rkl6ppsrhhp24cs0pdep91opdl9obnefe95bgelur13ng/1nl1mdtfvdj322gagd5l8jki2gqvdbdlv8bmtc8l80v080srd9pp0erqqqbubq1flldcuaqpqe1rq: Sending chunk 545259520 length 8388608
2021/07/30 20:10:08 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:10:10 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/5tq6r0k909u815snn50ep0kg32ogpqbj8rdfhiud505c177nn87g/fhjg0b6ds611e5gup85irhhri1aqi46ejf00t16gcusbvu9qbti0f3eh63bqqufj7905h514qg0pk: Sending chunk 394264576 length 8388608
2021/07/30 20:10:17 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/73ldf22i8noedmhsguqbh37r4flmkj0vtm4osl5m4d8fvps1k43g/l1skr9n75i7qj1odbnaorn9a26vbrdhqs67ijmtv2h5tq2n06e25qf9v37cl1bbjudi2mruql1ejo: Sending chunk 419430400 length 8388608
2021/07/30 20:10:18 DEBUG : Google drive root 'PlexMedia': Checking for changes on remote
2021/07/30 20:10:19 DEBUG : 4iqr2nsn9h1uheoljnlshshv34/mqk38603rrl46gh7oba7d04ivtutpcggbru9a6g2qpid9kqfu2og/ikgcmqgdnhkiveklcq63fqjlk6giusp2kub7li6k8hnpmleani5ah5hb4ukvre7cb0rdrkdrhse6c: Sending chunk 377487360 length 8388608

Can you post the entire log file?

That's just a snippet with a file read that has no issue.

Hi Animosity!
Thank you for your reply! And also sorry for my late reply, I was off this weekend.

This was the only line of code which sounds strange to me. I cannot upload the entire log, because it is very huge, but here is a link to my gdrive

https://drive.google.com/file/d/1zLKo18jyf4XBP2YfRHBwCY9B-ySkoOdu/view?usp=sharing

Sometimes it start very "quick" (direct play about 5 Seconds) but sometimes it wont start.
Maybe you have an Idea for me how to fix it?

Thank you so much!

Access is denied to that file.

Ah damn,

I think it`s not my day today. Forgot to chance the permissions.
Sorry for this!

Hi Animosity022,
did you see anything weird in my logs? I am not sure, but I think that the mounted drive is my plex problem #1. Movies/TV Shows which are located there wont play (even if they are cached into the cache directory).

Lots of odd things in this log:

2021/07/30 19:50:18 Failed to start remote control: start server failed: listen tcp :5572: bind: address already in use

That means you already have rclone running / something else running on the same port.

Memory error? Maybe bad memory on the server?

2021/07/30 19:51:23 INFO  : Signal received: interrupt
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x17ead91]

goroutine 56 [running]:
github.com/rclone/rclone/cmd/mountlib.(*MountPoint).Wait.func1.1()
        github.com/rclone/rclone/cmd/mountlib/mount.go:256 +0x51
sync.(*Once).doSlow(0xc001c12960, 0xc000272e38)
        sync/once.go:68 +0xec
sync.(*Once).Do(...)
        sync/once.go:59
github.com/rclone/rclone/cmd/mountlib.(*MountPoint).Wait.func1()
        github.com/rclone/rclone/cmd/mountlib/mount.go:254 +0x65
github.com/rclone/rclone/lib/atexit.Run.func1()
        github.com/rclone/rclone/lib/atexit/atexit.go:104 +0x7f
sync.(*Once).doSlow(0x2e05c98, 0x1f1f140)
        sync/once.go:68 +0xec
sync.(*Once).Do(...)
        sync/once.go:59
github.com/rclone/rclone/lib/atexit.Run()
        github.com/rclone/rclone/lib/atexit/atexit.go:102 +0xb6
github.com/rclone/rclone/lib/atexit.Register.func1.1()
        github.com/rclone/rclone/lib/atexit/atexit.go:52 +0xea
created by github.com/rclone/rclone/lib/atexit.Register.func1
        github.com/rclone/rclone/lib/atexit/atexit.go:44 +0x94

I don't know what you are trying to play or any timestamps as the logs are filled with uploads and other stuff.

Best to get a quiet system. Try 1 thing and produce a debug log of the issue and share information of what you are doing and what time you are experiencing the issue.

hi,
tho not the solution to the problem, --fast-list does nothing on a mount.

when testing, i try to use the simplest mount possible; so i would try this and stream a video
rclone mountPlexMedia:/volume1/Media/PlexMedia --allow-other--log-file=/volume2/docker/rclonemount.txt --log-level DEBUG

another test, play a media files from the rclone mount, not using plex, instead to use vlc or some other media play.

for what it is worth, when i stream media from the cloud, i do not use --vfs-cache-mode and its many flags.

Hi you two! Thank you for your answers!
The most flags I found in the internet and i thought they will be recommend for my use.

I try to run it for q quiet system.
So I unmounted rclone and rebooted my NAS.

I logged in on SSH with my user and start
rclone mount PlexMedia:/volume1/Media/PlexMedia --allow-other --log-file=/volume2/docker/rclonemount.txt --log-level DEBUG

I started my computer and navigated to \Mediaserver\Media. There i found the rclone folder PlexMedia and I started a Movie. But it was very laggy and it buffered all the time.

I have a 250 downstream Internet connection and I thought this will work better.

Here is the logfile rclonemount (5).txt (744.7 KB)

Thank you for your help!

so you are running rclone on a NAS? what is the OS on it?

how do you connect the computer to the NAS?, smb, nfs or what?
LAN, WIFI or what?

First I thought I have an Issue with google because of some mistake in Auth Key or something like this. But I think this looks fine.

Even with the "clean Mount" I can not start any movie right with plex.

The movie you tried to start seems be a 4k remux. Are you direct playing? Transcoding?

What's the device playing it?

You don't seem to have any rclone issue.

Okay, no I started it on my PC with VLC Media Player. But it work right now with another video!
I think I had too much flags before. Do you use a cache directory?

You can use it or not use it as it's really up to you.

I use it now and didn't for some time before the feature was out.

okay,
well I think my rclone drive works for me right now. I dont know, why but changing parameters helps out. Thank you very much!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.