when i open my movie folder that contain 11.000 files, and i open an mkv, always, always, this story, scan all movies without any sense, and doesn't open a file.
rclone mount ROB_MASTER:/ /mnt/ROB_MASTER/ --vfs-cache-mode=full --allow-other -vv
Google Drive mounted in ubuntu and shared over samba with windows
but same issue with kodi in firestick.
( in kodi i get the folder over samba, shared from ubuntu server )
i have tried all protocols, dlna, webdavb, http, same issue )rclonelog.log (379.6 KB)
what was the exact command used for for that video?
that rclonelog.log you posted, does match the video, is that correct?
from the video, i agree that, at approx 1:00, once you double-click on the video to start playback, rclone is doing a lot of Lookup.
at this point, the dir cache should be up to date so rclone should not need to access gdrive, so i assume.
so what is requesting the multiple Lookup?
on the one hand: is that vlc or windows explorer, asking rclone for the files in that current working folder?
on the second hand: is rclone itself doing the Lookup for some reason?
on the gripping hand, let's ask @Animosity022 for a deep dive on what is going on!
and how can we tell if rclone is asking gdrive for details about a file or if rclone is getting the details from the dir-cache?
I have tried
rclone mount ROB_MASTER:/ /mnt/ROB_MASTER/ --vfs-cache-mode=full --allow-other --log-file=mylogfile.txt --no-checksum --no-modtime --read-only -vv
no success.
what was the exact command used for for that video? Yes
that rclonelog.log you posted, does match the video, is that correct? yes
This issue is also when you use kodi, not also windows. Every client you use, have this issue
The log I looked at had nothing being played in it.
I can see in the video explorer and stuff going on so not sure what can be doing as well.
Best to find a very simple test case with a player and use command prompt or something as Windows just does odd things at times and you can't tell what's going on.
For me, I rather make things as simple as can be and invest so I don't have to troubleshoot or work around many layers as it saves a lot of headaches in the end.
As you can see from this video, i make a mount with this command: rclone mount ROB_MASTER:/ /mnt/ROB_MASTER/ --vfs-cache-mode=full --allow-other --log-file=mylogfile.txt --no-checksum --no-modtime --read-only -vv
The first time, so you can't see any shell output because write into the txt file.
As you can see anyway there are a lot of lookup for every files into Movies folder.
And any file can't be played.
But when lookup finished, you can.
But if you try to open another file, here we go again, and lookup again....
_DOWNLOAD folder, and as you can see, works without issue and without any lookup.
Is fast.
This issue is also with kodi, so isn't related with windows.
And anyway every time that i tried to play a movie, lookup denied that, because want to scan all files before.
I'm very despondent, but i guess that there is a solution for that.
That's not related to a mount command as it's for copy/move/sync as it says that in the docs.
Use a Google Drive link or some file sharing as it's really painful to combine files and unrar things as I'm not doing that again.
You seem to be using Windows Explorer, which is trying to enumerate out all the files there and doing it's thing.
Then you start to get errors on Samba:
2021/12/07 13:05:15 DEBUG : Movies/3 Days to Kill (2014).mkv: vfs cache: stopping download thread as it timed out
2021/12/07 13:05:16 DEBUG : Movies/3 Days to Kill (2014).mkv: vfs cache: stopping download thread as it timed out
and the file gets opened a closed a bunch.
2021/12/07 13:05:09 DEBUG : Movies/3 Days to Kill (2014).mkv: Open: flags=OpenReadOnly+OpenNonblock+0x20000
2021/12/07 13:05:09 DEBUG : Movies/3 Days to Kill (2014).mkv: Open: flags=OpenReadOnly+OpenNonblock+0x20000
2021/12/07 13:05:09 DEBUG : Movies/3 Days to Kill (2014).mkv: Open: flags=OpenReadOnly+OpenNonblock+0x20000
2021/12/07 13:06:54 DEBUG : Movies/3 Days to Kill (2014).mkv: Open: flags=OpenReadOnly+OpenNonblock+0x20000
2021/12/07 13:06:54 DEBUG : Movies/3 Days to Kill (2014).mkv: Open: flags=OpenReadOnly+OpenNonblock+0x20000
So we're back to Samba/Windows Explorer being a problem which is beyond anything I can help solve as the rclone piece is working just fine.