On macOS, rclone mount randomly doesn't update detected changes in the cache. It updates the last change time of file when using ls but doesn't update the file itself (twice on 3).
I have tried several rclone version, from curl, from source, without and with cmount tag (current version).
As I use the full cache mode, it seems that the problem occurs when there is already cached files. If I remove the files in the cache before starting the rclone mount, the updates seem to work.
Run the command 'rclone version' and share the full output of the command.
./rclone version
rclone v1.58.0-beta.5979.051685baa
os/version: darwin 12.1 (64 bit)
os/kernel: 21.2.0 (x86_64)
os/type: darwin
os/arch: amd64
go/version: go1.17.6
go/linking: dynamic
go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
./rclone mount --cache-dir /cache_dir --vfs-cache-mode full --vfs-cache-max-age 240h --vfs-read-chunk-size 1M --vfs-read-chunk-size-limit 5M /path/to/drive /local/path/ -vv > rclone.log 2>&1
Hi,
On my macOS machine, rclone mount from Google drive to a local folder with, I guess, an existing cache. Any changes on the drive from another machine (also mounted) will cause this behavior. rclone shows that the file has changed but doesn't update the local cache with it.
In the log file, we can see (line 1526) that it succeeded to update the cache but then we don't see it anymore for others test changes I made (then no particular log I guess as it doesn't consider there is a change).
However, any change I made in the macOS machine will be uploaded.
I use rclone mount on another machine (archlinux), with the last rclone version, in order to have a shared folder (with the macOS one). When I perform a change on the Arch machine, the cache on the other macOS machine doesn't update (most of the time).
In this log file, the first change I made from the Arch machine triggered an update ont eh macOS machine involving a log: 2022/01/29 20:52:12 INFO : file.ad: vfs cache: removed cache file as stale (remote is different)
However, I made other changes after this moment and there is no other log entries specifying the same event. And this is my issue. 2 times on 3, on vfs changes it doesn't update the cache.
If you want to take the time to write up the steps, share the logs from both machines and be specific in what you are doing, we can figure out if there is an issue.
rclone version
rclone v1.57.0
- os/version: arch rolling (64 bit)
- os/kernel: 5.16.1-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.5
- go/linking: dynamic
- go/tags: none
The steps
Purpose
I want to share folders between two machines (macOS and archlinux) to work on synchronized data in either machines.
Configuration
I use rclone mount on the 2 machine.
When I perform a change on the archlinux machine, the cache on the macOS machine doesn't update (most of the time). But it seems to work perfectly in the other way. So I think the problem is only on the macOS machine and it is not needed to investigate the archlinux machine. Then I don't see the point to furnish these logs.
I have the impression that my explanations are clear enough and my investigation specific enough to focus on what it seems (to me) to be the problem. The macOS machine always see the changes after a poll (every minute) and is able to indicate the changes (by time) with a ls command but doesn't update the files. Do you have an idea about what is concerned by the update process ?
Also, it seems that if there is no cache on the macOS machine when performing the mount, the issue doesn't happen.