Rclone cache - plex empty videos

Hi,

i realized that my mount logfile is enourmous growing, so i took a look into and found following issue which is occuring if a file is played through plex:

2018/03/15 09:22:50 ERROR : plex: empty videos: map[MediaContainer:map[size:1 Metadata:[map[User:map[thumb:https://plex.tv/users/1881060efc3efe39/avatar?c=1521104351 title:MediaVerse id:1] sessionKey:1 Writer:[map[tag:Michael LeSieur count:2 filter:writer=79573 id:79573] map[count:2 filter:writer=79573 id:79573 tag:Michael LeSieur]] Role:[map[tag:Zach Galifianakis thumb:http://image.tmdb.org/t/p/original/vhNUOBLnAZIHlJ7EUu6eQUE4NJ9.jpg count:10 filter:actor=33205 id:33205 role:Jeff Gaffney] map[count:9 filter:actor=29665 id:29665 role:Karen Gaffney tag:Isla Fisher thumb:http://image.tmdb.org/t/p/original/15aRHYLwt9xJWv8PCcxV7ylc4qZ.jpg] map[filter:actor=22122 id:22122 role:Tim Jones tag:Jon Hamm thumb:http://image.tmdb.org/t/p/original/wb14AA6u8dqA0XNweRIeKXatzzc.jpg count:10]
ā€¦

Someone has also such issues? I readded the cache Endpoint and refreshed the plex token but no luckā€¦

Thanks and best wishes
prc2k10

Hi, I ran into the exact same issue today. It almost looks like as seen chunk is downloading for a Plex video playing the entire metadata dump is being thrown into the log file, and makes it grow really fast. Almost as if the Plex verbose logs are being piped into rclone logs.

Details:

rclone v1.39-207-g01753329Ī²

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

Sample of an error log:

ERROR : plex: empty videos: map[MediaContainer:map[size:1 Metadata:[map[Director:[map[tag:Kim Jee-woon count:2 filter:director=5451 id:5451]] art:/library/metadata/19665/art/1520846045 audienceRating:8.6 librarySectionTitle:Movies key:/library/metadata/19665 primaryExtraKey:/library/metadata/19666 Session:map[id:fy2isfua bandwidth:26592 location:wan] year:2010 originalTitle:ģ•…ė§ˆė„¼ ė³“ģ•˜ė‹¤ ratingImage:rottentomatoes://image.rating.ripe tagline:Abandon all compassion. User:map[id:9258759 thumb:https://plex.tv/users/db6c67bc15532d2c/avatar?c=1520076045 t] type:
blah blah etc

So like I said this is happening at every chunk, I do not have rclone in -vv mode, I do have a cache . Here is the mount command - this only started happening this morning. :

rclone mount --allow-non-empty --allow-other --bwlimit=ā€œ90Mā€ --cache-workers=12 --cache-writes --cache-db-purge cache: /home/plex/blah --log-file="/home/plex/logs/rclone_mount.log" &

Thank you.

@remus.bunduc what do you think? Is this a new regression?

Hmm yes. That log shouldnā€™t be an error. Iā€™ll push the fix today hopefully it catches 1.40

@ncw

1 Like

The fix is pushed but that still indicates that a response from Plex was weird and did not contain the expected format.
https://beta.rclone.org/v1.39-259-g4924ac2f/

Would you be so kind to verify whatā€™s the version of your Plex server? It might be that some older (or newer?) versions have a different API response in which case I need to document a recommendation.
And also if the Plex integration still works of course for what version youā€™re running.

@prc2k10 @kdeezy

my Plex Version ist: 1.12.1.4885
Thanks i will try this beta.
But i am really sure that i updated the plex server few days before the error was logged the first time.

Yeah itā€™s quite likely the plexpass builds have changed prior to the server being published for all users (probably a few weeks until that)

I rolled back to public and the log spam is gone and ā€œconfirmed reading by external readerā€ entries are working again.

2 options at this point cause I also donā€™t see the file names in the plex logs posted around here:

  • disable the Plex integration from rclone (scans will be more hungry and prefetch more data - but shouldnā€™t really cause 503s)
  • roll back to an earlier version of Plex

Iā€™ll have to research this a bit and see if the Plex API is still able to tell us what actual file on disk is playing. Problem to that is that I also donā€™t have the build but I might have a way to get it.

By the way, to avoid copy pasting in 2 places: the same discussion is in an issue too: https://github.com/ncw/rclone/issues/2102