What is the problem you are having with rclone?
On macOS (Sonoma 14.4) using rclone 1.66.0:
- File handles don't look to be released without re-mounting by
kill <PID_OF_RCLONE_NFSMOUNT>
andrclone nfsmount
on macOS - When re-mounting, the existing vfs-cache is disregarded with rclone stating
2024/03/17 14:47:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
with new files that are cached being able to push the--vfs-cache-dir
over the--vfs-cache-max-size
when reviewed manually.
The logs below hadn't hit the--vfs-cache-max-size
so they're not able to point to this specific issue but I have been able to validate this on a previous session yesterday.
Run the command 'rclone version' and share the full output of the command.
~ % rclone version
rclone v1.66.0
- os/version: darwin 14.4 (64 bit)
- os/kernel: 23.4.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.22.1
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Union comprised of SMB and Dropbox backends.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
BASE_PATH="/Users/<USERNAME>/mounts/rclone"
LOG_FILE="${BASE_PATH}"/logs/rclone-union.log
rclone nfsmount \
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36' \
--allow-other \
--async-read=true \
--dir-cache-time=1m \
--buffer-size=32M \
--timeout=10m \
--gid $(id -u) \
--uid $(id -g) \
--umask=002 \
--vfs-cache-mode=full \
--vfs-cache-max-size=300G \
--vfs-cache-max-age=168h \
--cache-dir="${BASE_PATH}"/cache/rclone-union \
--log-file="${LOG_FILE}" \
--daemon \
-v \
rclone-union: "${BASE_PATH}"/rclone-union
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
~ % rclone config redacted
[db]
type = dropbox
token = XXX
[rclone-db]
type = crypt
remote = db:SI
password = XXX
password2 = XXX
filename_encoding = base32768
[rclone-union]
type = union
upstreams = truenas-smb:atgc/local rclone-db:
create_policy = epff
[truenas-smb]
type = smb
host = XXX
pass = XXX
A log from the command that you were trying to run with the -vv
flag
File handle usage snippet after mount has been running for 8 hours with a remount to show what happens with the cache directory after kill <PID_OF_RCLONE_NFSMOUNT>
2024/03/17 13:34:31 INFO : vfs cache: cleaned: objects 1103 (was 1103) in use 1103, to upload 0, uploading 0, total size 73.252Gi (was 73.252Gi)
2024/03/17 13:35:31 INFO : vfs cache: cleaned: objects 1107 (was 1107) in use 1107, to upload 0, uploading 0, total size 76.130Gi (was 76.130Gi)
2024/03/17 13:36:31 INFO : vfs cache: cleaned: objects 1107 (was 1107) in use 1107, to upload 0, uploading 0, total size 77.934Gi (was 77.934Gi)
2024/03/17 13:37:31 INFO : vfs cache: cleaned: objects 1107 (was 1107) in use 1107, to upload 0, uploading 0, total size 79.571Gi (was 79.571Gi)
2024/03/17 13:38:31 INFO : vfs cache: cleaned: objects 1107 (was 1107) in use 1107, to upload 0, uploading 0, total size 82.938Gi (was 82.938Gi)
2024/03/17 13:39:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 86.197Gi (was 86.197Gi)
2024/03/17 13:40:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 88.582Gi (was 88.582Gi)
2024/03/17 13:41:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 90.231Gi (was 90.231Gi)
2024/03/17 13:42:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 92.517Gi (was 92.517Gi)
2024/03/17 13:43:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 95.843Gi (was 95.843Gi)
2024/03/17 13:44:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 99.359Gi (was 99.359Gi)
2024/03/17 13:45:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 101.423Gi (was 101.423Gi)
2024/03/17 13:46:31 INFO : vfs cache: cleaned: objects 1108 (was 1108) in use 1108, to upload 0, uploading 0, total size 103.077Gi (was 103.077Gi)
2024/03/17 13:47:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 105.964Gi (was 105.964Gi)
2024/03/17 13:48:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 109.425Gi (was 109.425Gi)
2024/03/17 13:49:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 112.270Gi (was 112.270Gi)
2024/03/17 13:50:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 114.140Gi (was 114.140Gi)
2024/03/17 13:51:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 115.807Gi (was 115.807Gi)
2024/03/17 13:52:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 118.965Gi (was 118.965Gi)
2024/03/17 13:53:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 122.242Gi (was 122.242Gi)
2024/03/17 13:54:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 124.993Gi (was 124.993Gi)
2024/03/17 13:55:31 INFO : vfs cache: cleaned: objects 1109 (was 1109) in use 1109, to upload 0, uploading 0, total size 126.901Gi (was 126.901Gi)
2024/03/17 13:56:31 INFO : vfs cache: cleaned: objects 1119 (was 1119) in use 1119, to upload 0, uploading 0, total size 128.767Gi (was 128.767Gi)
2024/03/17 13:57:31 INFO : vfs cache: cleaned: objects 1142 (was 1142) in use 1142, to upload 0, uploading 0, total size 131.796Gi (was 131.796Gi)
2024/03/17 13:58:31 INFO : vfs cache: cleaned: objects 1149 (was 1149) in use 1149, to upload 0, uploading 0, total size 133.150Gi (was 133.150Gi)
2024/03/17 13:59:31 INFO : vfs cache: cleaned: objects 1165 (was 1165) in use 1165, to upload 0, uploading 0, total size 134.845Gi (was 134.845Gi)
2024/03/17 14:00:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 137.105Gi (was 137.105Gi)
2024/03/17 14:01:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 140.645Gi (was 140.645Gi)
2024/03/17 14:02:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 144.605Gi (was 144.605Gi)
2024/03/17 14:03:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 147.832Gi (was 147.832Gi)
2024/03/17 14:04:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 152.100Gi (was 152.100Gi)
2024/03/17 14:05:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 154.562Gi (was 154.562Gi)
2024/03/17 14:06:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 157.066Gi (was 157.066Gi)
2024/03/17 14:07:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 160.445Gi (was 160.445Gi)
2024/03/17 14:08:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 163.180Gi (was 163.180Gi)
2024/03/17 14:09:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 167.229Gi (was 167.229Gi)
2024/03/17 14:10:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 170.962Gi (was 170.962Gi)
2024/03/17 14:11:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 174.582Gi (was 174.582Gi)
2024/03/17 14:12:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 177.059Gi (was 177.059Gi)
2024/03/17 14:13:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 178.674Gi (was 178.674Gi)
2024/03/17 14:14:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 182.153Gi (was 182.153Gi)
2024/03/17 14:15:31 INFO : vfs cache: cleaned: objects 1169 (was 1169) in use 1169, to upload 0, uploading 0, total size 185.503Gi (was 185.503Gi)
2024/03/17 14:16:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 188.224Gi (was 188.224Gi)
2024/03/17 14:17:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 191.302Gi (was 191.302Gi)
2024/03/17 14:18:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 196.140Gi (was 196.140Gi)
2024/03/17 14:19:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 199.808Gi (was 199.808Gi)
2024/03/17 14:24:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 214.011Gi (was 214.011Gi)
2024/03/17 14:25:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 216.423Gi (was 216.423Gi)
2024/03/17 14:26:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 218.886Gi (was 218.886Gi)
2024/03/17 14:27:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 222.021Gi (was 222.021Gi)
2024/03/17 14:28:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 225.185Gi (was 225.185Gi)
2024/03/17 14:29:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 228.271Gi (was 228.271Gi)
2024/03/17 14:30:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 231.474Gi (was 231.474Gi)
2024/03/17 14:31:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 234.022Gi (was 234.022Gi)
2024/03/17 14:32:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 236.419Gi (was 236.419Gi)
2024/03/17 14:33:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 238.658Gi (was 238.658Gi)
2024/03/17 14:34:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 240.993Gi (was 240.993Gi)
2024/03/17 14:35:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 243.390Gi (was 243.390Gi)
2024/03/17 14:36:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 245.954Gi (was 245.954Gi)
2024/03/17 14:37:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 249.023Gi (was 249.023Gi)
2024/03/17 14:38:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 252.241Gi (was 252.241Gi)
2024/03/17 14:39:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 255.536Gi (was 255.536Gi)
2024/03/17 14:40:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 258.705Gi (was 258.705Gi)
2024/03/17 14:41:31 INFO : vfs cache: cleaned: objects 1170 (was 1170) in use 1170, to upload 0, uploading 0, total size 261.856Gi (was 261.856Gi)
2024/03/17 14:42:17 INFO : Signal received: terminated
2024/03/17 14:42:17 INFO : Dropbox root 'SI': Committing uploads - please wait...
2024/03/17 14:42:17 ERROR : /Users/<USER_NAME>/mounts/rclone/rclone-union: Unmounted rclone mount
2024/03/17 14:42:17 INFO : Exiting...
Sun Mar 17 14:42:37 CDT 2024: STARTING RCLONE-UNION MOUNT #################
2024/03/17 14:42:38 INFO : union root '': poll-interval is not supported by this remote
2024/03/17 14:42:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/17 14:42:38 NOTICE: NFS Server running at 127.0.0.1:52195
2024/03/17 14:42:42 INFO : Dropbox root 'SI': Committing uploads - please wait...
Sun Mar 17 14:42:42 CDT 2024: RCLONE-UNION MOUNT STARTED SUCCESSFULLY #################
2024/03/17 14:43:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/17 14:44:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/17 14:45:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/17 14:46:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/17 14:47:38 INFO : vfs cache: cleaned: objects 1168 (was 1168) in use 0, to upload 0, uploading 0, total size 0 (was 0)
Actual cache directory size after remounting. Would expect rclone nfsmount
to show 261.856Gi, not 0Gi
~ % date && du -h -d 1 ~/mounts/rclone/cache/rclone-union
Sun Mar 17 14:45:06 CDT 2024
4.6M /Users/<USER_NAME>/mounts/rclone/cache/rclone-union/vfsMeta
262G /Users/<USER_NAME>/mounts/rclone/cache/rclone-union/vfs
262G /Users/<USER_NAME>/mounts/rclone/cache/rclone-union