Rclone closing connection to while streaming to plex

Hello there,

Since some time now, i keep having media stop playing in plex... I used kodi wih plexkodiconnect until recently because i thought this was the issue (it was crashing on every cloud file), i switched then to mrmc, it can read all my cloud stream except 4k movies, it keeps crashing. I have a very high bandwith and it used to work flawlessly... i tryed to tweak my mount command in vain
Im on Synology DSM 6.1 and didn't update the DSM prior the apparition of this issue

rclone version : rclone v1.48.0

  • os/arch: linux/amd64
  • go version: go1.12.6

mount command
/usr/bin/rclone mount
--daemon
--fast-list
--log-file /volume1/Rclone/logs/rcloneplex.log
--log-level DEBUG
--drive-chunk-size 32M
--gid 100 --uid 1028
--allow-non-empty
--fuse-flag sync_read
--tpslimit 10
--tpslimit-burst 10
--dir-cache-time 24h
--buffer-size 128M
--attr-timeout 1s
--vfs-read-chunk-size 64M
--vfs-read-chunk-size-limit off
--vfs-cache-mode writes
--vfs-cache-max-age 1m
--config /volume1/Rclone/config/rclone.conf
--allow-other
gdriveplex: /volume1/Cloud/Videos

log of the error

2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: >Read: read=131072, err=
2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: Read: len=131072, offset=36587835392
2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: >Read: read=131072, err=
2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: Read: len=131072, offset=36587966464
2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: >Read: read=131072, err=
2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: Read: len=131072, offset=36588097536
2019/06/26 14:36:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: >Read: read=131072, err=
2019/06/26 14:36:43 DEBUG : Google drive root '': Checking for changes on remote
2019/06/26 14:37:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: Flush:
2019/06/26 14:37:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: >Flush: err=
2019/06/26 14:37:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: Release:
2019/06/26 14:37:03 DEBUG : Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv: ReadFileHandle.Release closing
2019/06/26 14:37:03 DEBUG : &{Films 4K/Captain Marvel (2019)/Captain Marvel (2019) Remux-2160p.mkv (r)}: >Release: err=

Any help appreciated to understand why it flushes and close the connection... it reads well for less than a minute before it crashed on 4k movies.

Lots of confusing stuff in your mount command there.

--fast-list does nothing on a mount
--fuse-flag does nothing unless you compile your own version as rclone is already built with sync_read

--allow-non-empty is an awful parameter and allows for over mounting and hiding things and really should never be used.

You can remove attr-time, vfs-read-chunk-size, vfs-read-chunk-size-limit, tpslimit, tpslimit-burst as all the default values are better.

rclone version shows what?

did you make your own client ID/ API key?

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

What's the player on the other side of that command? A flush means the player on the other side closed the file.

Ok i will remove everything you asked.
The version is indicated 1.48 in my previous post.
The reader is mrmc or kodi (both act the same way)
Yes i use my own client and secret

The hardware is a shield tv and it acts the same way with both my shield tv and also with emby (tryed to migrate to emby to check if the issue could have been plex)

From the snippet of the log you shared, rclone is streaming the file fine and it closes out. I don't see anything rclone related from your log.

And there is nothing in plex log either... maybe its just my network what bothers me it that it doesnt resume just closes the connection and i have to close the video player and reopen it

I personally don't use MrMMC or KODI for long periods. I've done testing with Kodi briefly before and didn't see any issues.

If you want to run a video and share the full log, it might show something.

If the only thing you see is the streaming above though and the file being closed, does the playback just stop or does it continue and the file open up again?

I direct play via ATV 4K / ATV as that's what I assume Kodi is doing and those settings are fine from the rclone side.

The exact behaviour

  • on the server i see the bandwith going down to 0 Up and Down
  • a few second letter (when kodi buffer runs out), the playback hangs and then crashes it never resumes (kodi or mrmc), have to try with vlc but my computer cant rly handle 4k.... so won't prove anything sinceit will lag all along...

Ok it was all due to my isp router. I changed it yesterday and no more issues. It was having a lot of micro disconnections.

1 Like

Awesome! Happy you found it as rclone did look happy and glad things are working.

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