Failed to load filters: malformed rule "s-cache-mode"

What is the problem you are having with rclone?

Appreciate any assistance, I am trying to volunteer for a local music school to help them setup their operations in cloud. The following experiments are on my personal drive before I touch their (music school) google drive. When trying to setup my personal google drive as a drive on my windows system I'm getting the error "Failed to load filters: malformed rule "s-cache-mode". I tried first searching the web for this error and there were only two results that came which were from very old posts and didn't have solution. Also tried reading the README.TXT and reading the held documentation within rclone.org but couldn't get much information on the s-cache-mode and the load filters error. My processor detail and the rclone version as below:

Processor	11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2803 Mhz, 4 Core(s), 8 Logical Processor(s)

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>rclone version
rclone v1.67.0
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.3593 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: cmount```


####  Which cloud storage system are you using?
Google Drive


#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)  

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>rclone mount -vfs-cache-mode full googleDriveVivjain604:/ g:
2024/06/15 09:47:20 Failed to load filters: malformed rule "s-cache-mode"



#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>rclone config redacted
[googleDriveVivjain604]
type = drive
scope = drive
token = XXX
team_drive =

Double check the config for sensitive info before posting publicly```

A log from the command that you were trying to run with the -vv flag

The log shows
2024/06/15 10:15:17 Failed to load filters: malformed rule "s-cache-mode"

welcome to the forum,

that should be --vfs-cache-mode

Thanks so much. That worked. My google drive is about 1.6 GB and I ran the command about 20-25 minutes back and the command seem to be still running. But I do see the drive mapped in my windows computer. The google sheets I was trying to see show as 0 bytes. I was hoping to transfer google sheets from my account to the other google drive account (Music school's google drive account) by dragging from the mapped drive on my windows computer to the other google drive in the browser. I know I can share the file with that google account and then log into music schools google drive and make it avaialble there, but I didn;t want to ask them their password. I asked them to just create a new folder for me in their google drive and see if I can work there for them without asking for their password etc. Many thanks.

welcome

size 0 in anything which uses the VFS layer, e.g. rclone mount
maybe try rclone copy

in the other account, create a folder and have it shared with you. then copy the file to that shared folder.
and use --server-side-across-configs

Thanks. Let me try the server side copy.

I created 2 remotes for my same google drive account. One remote
(G:) for the regular "non-shared" google drive and another remote (F:) for the "Shared Folders" with --drive-shared-with-me directive. I tried to copy from F: to G:
Though the copy with --server-side-across-configs directive copy command was successful but when I try to open the file in the new folder within browser it says the file is empty. Here's the command I ran and the corresponding log output.

rclone copy --server-side-across-configs --metadata G:Limelight_Music_School\Accessible_to_Jay_Mona F:\Limelight_Music_School_Operations\AccessibleToStaff -vv -P --log-file rclcone_0001.log

2024/06/15 16:37:56 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "copy" "--server-side-across-configs" "--metadata" "G:Limelight_Music_School\\Accessible_to_Jay_Mona" "F:\\Limelight_Music_School_Operations\\AccessibleToStaff" "-vv" "-P" "--log-file" "rclcone_0001.log"]
2024/06/15 16:37:56 DEBUG : Creating backend with remote "G:Limelight_Music_School\\Accessible_to_Jay_Mona"
2024/06/15 16:37:56 DEBUG : Using config file from "C:\\Users\\Radix Childcare\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/15 16:37:57 DEBUG : fs cache: renaming cache item "G:Limelight_Music_School\\Accessible_to_Jay_Mona" to be canonical "//?/G:/Limelight_Music_School/Accessible_to_Jay_Mona"
2024/06/15 16:37:57 DEBUG : Creating backend with remote "F:\\Limelight_Music_School_Operations\\AccessibleToStaff"
2024/06/15 16:37:58 DEBUG : fs cache: renaming cache item "F:\\Limelight_Music_School_Operations\\AccessibleToStaff" to be canonical "//?/F:/Limelight_Music_School_Operations/AccessibleToStaff"
2024/06/15 16:37:58 DEBUG : Master Tracker.xlsx: Need to transfer - File not found at Destination
2024/06/15 16:37:58 DEBUG : Local file system at //?/F:/Limelight_Music_School_Operations/AccessibleToStaff: Waiting for checks to finish
2024/06/15 16:37:58 DEBUG : ~$Master Tracker.xlsx: Size and modification time the same (differ by 0s, within tolerance 100ns)
2024/06/15 16:37:58 DEBUG : ~$Master Tracker.xlsx: Unchanged skipping
2024/06/15 16:37:58 DEBUG : Local file system at //?/F:/Limelight_Music_School_Operations/AccessibleToStaff: Waiting for transfers to finish
2024/06/15 16:37:58 DEBUG : Master Tracker.xlsx: md5 = d41d8cd98f00b204e9800998ecf8427e OK
2024/06/15 16:37:58 DEBUG : Master Tracker.xlsx.kigacip7.partial: renamed to: Master Tracker.xlsx
2024/06/15 16:37:58 INFO  : Master Tracker.xlsx: Copied (new)
2024/06/15 16:37:58 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Transferred:            1 / 1, 100%
Elapsed time:         2.1s

2024/06/15 16:37:58 DEBUG : 5 go routines active

trust me, never, ever use single letter for remotes on windows.
G: is not going to work
rclone gets confused, thinks that is local drive G: and the ouput shows that.

renaming cache item "G:Limelight_Music_School\\Accessible_to_Jay_Mona" to be canonical "//?/G:/Limelight_Music_School/Accessible_to_Jay_Mona"

and if rclone accessed gdrive, would have seen, something like this
DEBUG : Google drive root '': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup

so, fix that single letter issue, post the output of rclone config redacted and test again

that makes sense, as the md5 of an empty file is d41d8cd98f00b204e9800998ecf8427e

Thanks. Tried fixing by adding '' the G: (the new command pasted below). Somehow still seeing the same output.

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>rclone copy --server-side-across-configs --metadata G:\Limelight_Music_School\Accessible_to_Jay_Mona F:\Limelight_Music_School_Operations\AccessibleToStaff -vv -P --log-file rclone_0001.log
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Transferred:            1 / 1, 100%
Elapsed time:         1.3s

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>rclone config redacted
[googleDriveVivjain604]
type = drive
scope = drive
token = XXX
team_drive =

[googleDriveVivjain604Shared]
type = drive
scope = drive
token = XXX
team_drive =
### Double check the config for sensitive info before posting publicly

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>


----- Log File -----

2024/06/15 18:55:21 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "copy" "--server-side-across-configs" "--metadata" "G:\\Limelight_Music_School\\Accessible_to_Jay_Mona" "F:\\Limelight_Music_School_Operations\\AccessibleToStaff" "-vv" "-P" "--log-file" "rclone_0001.log"]
2024/06/15 18:55:21 DEBUG : Creating backend with remote "G:\\Limelight_Music_School\\Accessible_to_Jay_Mona"
2024/06/15 18:55:21 DEBUG : Using config file from "C:\\Users\\Radix Childcare\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/15 18:55:21 DEBUG : fs cache: renaming cache item "G:\\Limelight_Music_School\\Accessible_to_Jay_Mona" to be canonical "//?/G:/Limelight_Music_School/Accessible_to_Jay_Mona"
2024/06/15 18:55:21 DEBUG : Creating backend with remote "F:\\Limelight_Music_School_Operations\\AccessibleToStaff"
2024/06/15 18:55:22 DEBUG : fs cache: renaming cache item "F:\\Limelight_Music_School_Operations\\AccessibleToStaff" to be canonical "//?/F:/Limelight_Music_School_Operations/AccessibleToStaff"
2024/06/15 18:55:22 DEBUG : Master Tracker.xlsx: Need to transfer - File not found at Destination
2024/06/15 18:55:22 DEBUG : ~$Master Tracker.xlsx: Size and modification time the same (differ by 0s, within tolerance 100ns)
2024/06/15 18:55:22 DEBUG : ~$Master Tracker.xlsx: Unchanged skipping
2024/06/15 18:55:22 DEBUG : Local file system at //?/F:/Limelight_Music_School_Operations/AccessibleToStaff: Waiting for checks to finish
2024/06/15 18:55:22 DEBUG : Local file system at //?/F:/Limelight_Music_School_Operations/AccessibleToStaff: Waiting for transfers to finish
2024/06/15 18:55:22 DEBUG : Master Tracker.xlsx: md5 = d41d8cd98f00b204e9800998ecf8427e OK
2024/06/15 18:55:22 DEBUG : Master Tracker.xlsx.rowofuh1.partial: renamed to: Master Tracker.xlsx
2024/06/15 18:55:22 INFO  : Master Tracker.xlsx: Copied (new)
2024/06/15 18:55:22 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Transferred:            1 / 1, 100%
Elapsed time:         1.3s

2024/06/15 18:55:22 DEBUG : 5 go routines active


Let me try using the full drive name instead of G:\

well, you re-ran the same command again, so the same wrong result again.
need to change the remote names for the source and dest to match new names in the updated config file

@asdffdsa
Thanks so much for all the help. You were right, not using the G:\ and instead using the full name worked.

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>rclone copy --server-side-across-configs --metadata googleDriveVivjain604:Limelight_Music_School\Accessible_to_Jay_Mona F:\Limelight_Music_School_Operations\AccessibleToStaff -vv -P --log-file rclcone_0002.log
Transferred:      460.988 KiB / 460.988 KiB, 100%, 1019 B/s, ETA 0s
Checks:                 1 / 1, 100%
Transferred:            2 / 2, 100%
Elapsed time:        15.7s

C:\Users\Radix Childcare\OneDrive - Radix Childcare LLC\Personal\Business - cookieJar\rcloneSoftware\rclone-v1.67.0-windows-amd64>

welcome

that only works when the source and dest are both gdrive.
so with your command, that does nothing.

1 Like

Got you. Thanks again

Look like rclone copied the "google sheet" as "XLSX" file format. I might have missed this fact in the overall conversation. If there's a way to copy as "google sheet" format itself without converting to xlsx. Thanks

I'm a slow learner unfortunately, and a complete novice in web technologies (I'm basically an old guy who used to work on mainframe computers decades back). I'm trying to understand how the --server-side-across-configs directive works.

  1. If it doesn't use our internet bandwidth then who pays for the bandwidth....."please no-one get angry laugh on my weird questions, slow learner after all :innocent: :innocent:."

  2. rclone for google drive won't preserve the format of google docs and sheets etc. Am I correct in this assessment (Im usully not, hence the self doubt).

  3. rclone obvioulsy is huge product (and the only product of its kind) and of huge importance in growing "cloudy" skies and coming times it would even grow more. Will there be plans for make rclone transfer the files retaining their native formats (instead of getting those converting to ms-office formats).

Many thanks.

afaik, gdrive does not charge for ingress/egress/bandwidth.
in addition, for most server-side copy|move operations, gdrive uses shortcuts.
When server-side copying the shortcut is copied, not the contents of the shortcut

cannot download or upload google sheets. only export or import
When rclone downloads a Google doc it chooses a format to download.
By default the export formats are docx,xlsx,pptx,svg

no. afaik, it is a limitation of gdrive, not rclone.

Thanks so much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.