Googel Drive, Rclone mount, cache, crypt, Plex: Files aren't recognized by Plex until they're accessed from Drive WebUI

Plex does not recognize files that have been added by Google Drive until I log into Google Drive and click the newly uploaded file. I noticed that this updates the “Last Modified” field to the time that it was clicked and also changes it from the “Uploaded” to “Opened by me”.

Any idea what could be causing this and how I could address it?

How are you uploading things?

Do you see them in the rclone mount?

I am using two machines. One downloads things to a local directory and then copies or moves them into the rclone mount. Things are visible from the rclone mount on this machine immediately.

The second machine serves content from the rclone mount via Plex. Things are not immediately visible from the rclone mount on this machine. I realize there is some caching at work here, but even in cases when I’ve waited multiple days, the items still don’t appear.

What’s your settings?
What version are you running?

On the media machine:

  • Version: v1.41-011-gfe25cb9cβ

  • Settings:
    [gdrive]
    type = drive
    client_id =
    client_secret =
    scope = drive
    root_folder_id =
    service_account_file =
    token = {removed}

    [gcache]
    type = cache
    remote = gdrive:/gdrive
    chunk_size = 5M
    info_age = 1h
    chunk_total_size = 10G

    [gcrypt]
    type = crypt
    remote = gcache:/crypt
    filename_encryption = standard
    directory_name_encryption = true
    password = removed
    password2 = removed

On the Plex machine:

  • Version: rclone v1.41-061-g96977547β

  • Settings:
    [gdrive]
    type = drive
    client_id = removed
    client_secret = removed
    scope = drive
    root_folder_id =
    service_account_file =
    token = {removed}

    [gcache]
    type = cache
    remote = gdrive:/gdrive
    chunk_size = 5M
    info_age = 1h
    chunk_total_size = 10G
    plex_url = removed
    plex_username = removed
    plex_password = removed
    plex_token = removed

    [gcrypt]
    type = crypt
    remote = gcache:/crypt
    filename_encryption = standard
    directory_name_encryption = true
    password = removed
    password2 = removed

If you run the mount in debug, are you not seeing some polling events? I’d expect to see something along those lines if a file was uploaded via any means and the poller based on your mount config should catch it in normally a minute unless changed:

  --poll-interval duration             Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)

There was an important fix to this in about 1.41-15 or so, so I suggest you upgrade both machines to the latest beta and try again.

I have updated rclone to the latest beta on both machines.

I’ve also changed the mount script to use the debug log level to syslog. I’ll keep an eye on it now and see how it behaves.

1 Like

Following up here to be complete. Looks like the update fixed all my issues.

1 Like