Folder missing in crypt mount but visible through other commands (ls/lsf/copy/move)

What is the problem you are having with rclone?

A folder is missing in rclone mount but visible through ls/copy commands.

Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0
- os/version: darwin 14.2.1 (64 bit)
- os/kernel: 23.2.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)

Google Drive

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

I have a custom command but even basic rclone mount remote doesn't work.

rclone mount remote:

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

type = crypt
remote = gdrive,team_drive=XXXX:XX
password = XXX
filename_encoding = base32768

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

log contains a boatload of output, I've attached it instead. Renamed folder to "CULPRIT_FOLDER"

This happened while I was trying to rename/move this folder through the mounted folder using finder (something I've never faced issue with before).

What I have tried:

  1. Cleared vfs cache and vfsMeta
  2. --cache-db-purge
  3. Restarted mac
  4. Tried mounting on a remote linux server.

What I haven't tried:

  1. Renaming/moving the folder through rclone commands instead of mount. I think it might solve the issue but I want to maintain the conditions to reproduce this issue if it indeed is a bug.

output.txt (156.2 KB)

Can you try running nfsmount instead?

rclone nfsmount remote: /path/to/mountpoint

Tried nfsmount, still empty..

Sorry but what do you mean by empty?

Could you provide some hard evidence?

e.g.:

rclone ls remote:path/to/CULPRIT_FOLDER -vv

and then when mounted:

ls -al /path/to/mountpoint/path/to/CULPRIT_FOLDER

❯ rclone ls remote:CULPRIT_FOLDER -vv
2024/05/05 17:04:51 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "ls" "remote:CULPRIT_FOLDER" "-vv"]
2024/05/05 17:04:51 DEBUG : Creating backend with remote "remote:CULPRIT_FOLDER"
2024/05/05 17:04:51 DEBUG : Using config file from "/Users/username/.config/rclone/rclone.conf"
2024/05/05 17:04:51 DEBUG : Creating backend with remote "gdrive,team_drive=REDACTED:data/ENCRYPTED_CULPRIT_FOLDER"
2024/05/05 17:04:51 DEBUG : gdrive: detected overridden config - adding "{cQBpL}" suffix to name
2024/05/05 17:04:53 DEBUG : fs cache: renaming cache item "gdrive,team_drive=REDACTED:data/ENCRYPTED_CULPRIT_FOLDER" to be canonical "gdrive{cQBpL}:data/ENCRYPTED_CULPRIT_FOLDER"
2024/05/05 17:04:53 DEBUG : fs cache: switching user supplied name "gdrive,team_drive=REDACTED:data/ENCRYPTED_CULPRIT_FOLDER" for canonical name "gdrive{cQBpL}:data/ENCRYPTED_CULPRIT_FOLDER"
107863006 subfolder/<file1>
561634680 subfolder/<file2>
3971670032 subfolder/<file2>
18197884526 subfolder/<file3>
934458395 subfolder/<file4>
348343364 subfolder/<file5>
3277524002 subfolder/<file6>
1347329032 subfolder/<file7>
960082076 subfolder/<file8>
4676712852 subfolder/<file9>
 60133947 subfolder/<file10>
521697161 subfolder/<file11>
1739683127 subfolder/<file12>
268209067 subfolder/<file13>
1028953849 subfolder/<file14>
1019915249 subfolder/<file15>
924962280 subfolder/<file16>
990314045 subfolder/<file17>
1143286242 subfolder/<file18>
1292469843 subfolder/<file19>
6586315204 subfolder/<file20>
917283287 subfolder/<file21>
7046179684 subfolder/<file22>
5857319268 subfolder/<file23>
4065258956 subfolder/<file24>
4047814012 subfolder/<file25>
1248214624 subfolder/<file26>
5189123573 subfolder/<file27>
986052038 subfolder/<file28>
1077792689 subfolder/<file29>
900417578 subfolder/<file30>
897322302 subfolder/<file31>
1093153857 subfolder/<file32>
985728701 subfolder/<file33>
1238656520 subfolder/<file34>
1370630255 subfolder/<file35>
1135120776 subfolder/<file36>
815279072 subfolder/<file37>
840038589 subfolder/<file38>
845436735 subfolder/<file39>
1052609637 subfolder/<file40>
981505041 subfolder/<file41>
693862885 subfolder/<file42>
254716018 subfolder/<file43>
848178887 subfolder/<file44>
1132079096 subfolder/<file45>
886541314 subfolder/<file46>
1027653090 subfolder/<file47>
1127342778 subfolder/<file48>
2024/05/05 17:04:54 DEBUG : 7 go routines active
❯ ls -al ~/mounts/mcrypt/CULPRIT_FOLDER/
total 0
drwxr-xr-x  1 username  staff  0 May  3 20:25 ./
drwxr-xr-x@ 1 username  staff  0 May  4 20:23 ../

Found the issue, there were duplicate directories with the same (crypt) name created. One was empty, other was not. This probably happened while I was trying to rename directories quickly on the mount.

Solved by deleting the empty directory. A nice to have feature would be a warning when rclone encounter this. Although I've NO idea why google drive allows for this.

1 Like

Thx for sharing your solution.

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