I recently moved from Google File Stream to Rclone. So far, my issue is that the Plexdrive (my rclone) is not updating from the Google Drive. I copy the files into Google Drive directly on another computer and run Plex and rclone on another computer. The first few hours it works but then no new content is shown in Plex or the rclone mount. I have to restart my Plex/rclone computer and then it will see the new files in rclone and Plex will see it. I am using the following mount
--dir-cache-time 12h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 2G --buffer-size 512M --vfs-cache-mode writes --log-level INFO --log-file ~/rclone.log --timeout=1h --vfs-cache-max-age 5m --rc
Any ideas? I have setup my api in Google Drive. Is it something to do with my dir--cache time? Many thanks.
I am running a Mac with rclone version 1.47.0 Here is my config file:
[PlexDrive]
type = drive
client_id = XX
client_secret = XX
scope = drive
token = XXX
I changed my mount and remounted it to : rclone mount PlexDrive: "/Volumes/GoogleDrive/My Drive" --rc --dir-cache-time 12h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 2G --buffer-size 512M --vfs-cache-mode writes --log-level DEBUG --log-file ~/rclone.log --timeout=1h --vfs-cache-max-age 5m --rc
Once it stops finding the new files in my Google Drive, I will post the log.
Here is the portion of my log when I had the issue. I copied files to Google Drive directly and Plex is set to scan every two hours, no new files appear. I need to restart rclone and then the new files are then found. When I restart it, it takes a bit of time to scan Google Drive but then it works for about 24 hours.
2019/05/25 12:10:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:11:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:12:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:13:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:14:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:15:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:16:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:17:49 DEBUG : Google drive root '': Checking for changes on remote
2019/05/25 12:17:49 DEBUG : PlexDrive: Loaded invalid token from config file - ignoring
2019/05/25 12:17:49 DEBUG : PlexDrive: Saved new token in config file
Can you share the whole log? The parts make it hard to tell what's going on or how the mount was started and missing the version from the start of the log too.
So the flow you are using is another machine does something like a rclone copy/move to your GD and this mount should pick it up.
OK, the log is 435 MB so here is the link.
The mount is on the Plex server computer (Mac mini). I use another computer that has the films. I manually copy them into Google Drive using the web-interface. My understanding is the rclone mount will poll Google Drive for the new files and pop them into my mount (PlexDrive). The mount is used by Plex Server to find the new TV shows/Movies. I checked Google Drive and the files are there but the mount does not always show the new files.
When did you upload the files ? Trying to narrow down the spots in the log. I'd like to check a few things too. If you can start it with --rc as that gives us a few options to test.
Once we have a file that should be there, I'd like to:
rclone ls remote:filenamemissing
run a ls on the mount so that should generate a log for that dir.
I spoke too soon. I copied a file to Google this morning (8-9 AM) and a few hours later, it still does not show up in rclone. I tried running rclone ls remote:filenamemissing and it came back saying "ls directory not found."I tried it with the slash just in case. Here is the rclone log so you can see what happened. I know if I restart it, the files will be found again. Any ideas?
OK, I see. I use another computer and copy it directly into Google Drive via the web interface. I ran ils command again and it gave me the following output:
However, when I run the scan in Plex, it does not find and no new files are added to the library.
I tried the first one and here is the output. rclone ls -al "PlexDrive:Plex/TV Shows/Private Eyes/Season 03" and it said it was a bad command. Now, It is showing up in Plex after it ran other scan (Plex is setup to do it every 4 hours). Weird..
Sorry I did not include the files. OK, when I ran the command, I got the same output as before:
When I ran "rclone ls "PlexDrive:Plex/TV Shows/Private Eyes/Season 03" and show the same ls -al on the mounted directory and grab the debug log of that ls command?", I had the following error:
I copied the file this morning and ran the Plex scanner multiple times and it did not find any new files. I ran the commands you suggested at 3:10 but there is nothing in the log at that time. I did click on the mount on my Mac server and look for the folder and it was not there. I checked again now after lunch and the folder is there.