Rclone file extension problem

What is the problem you are having with rclone?

-Cannot download files from Google Drive to a local folder.
-Cannot create a file with a specific extension such as 'txt' 'docx' by using the 'touch' command.

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

rclone v1.58.0

  • os/version: Microsoft Windows 10 Pro 21H2 (64 bit)
  • os/kernel: 10.0.19044.1645 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.8
  • 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 -vv copy -P gdrive:TestDir C:/Users/m-w-n/Desktop/TestDir
rclone touch file.docx

A log from the command with the -vv flag

2022/04/24 02:10:15 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "-vv" "copy" "-P" "gdrive:TestDir" "C:/Users/m-w-n/Desktop/TestDir"]
2022/04/24 02:10:15 DEBUG : Creating backend with remote "gdrive:TestDir"
2022/04/24 02:10:15 DEBUG : Using config file from "C:\\Users\\m-w-n\\AppData\\Roaming\\rclone\\rclone.conf"
2022/04/24 02:10:15 DEBUG : gdrive: Loaded invalid token from config file - ignoring
2022/04/24 02:10:16 DEBUG : Saving config "token" in section "gdrive" of the config file
2022/04/24 02:10:16 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2022/04/24 02:10:16 DEBUG : gdrive: Saved new token in config file
2022/04/24 02:10:17 DEBUG : Google drive root 'TestDir': 'root_folder_id = XXX' - save this in the config to speed up startup
2022/04/24 02:10:17 DEBUG : Creating backend with remote "C:/Users/m-w-n/Desktop/TestDir"
2022/04/24 02:10:17 DEBUG : fs cache: renaming cache item "C:/Users/m-w-n/Desktop/TestDir" to be canonical "//?/C:/Users/m-w-n/Desktop/TestDir"
2022-04-24 02:10:17 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Waiting for checks to finish
2022-04-24 02:10:17 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Waiting for transfers to finish
2022-04-24 02:10:19 ERROR : C1apture.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:21 ERROR : fwf.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:23 ERROR : Capture.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:23 ERROR : Attempt 1/3 failed with 3 errors and: The system cannot find the file specified.
2022-04-24 02:10:24 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Waiting for checks to finish
2022-04-24 02:10:24 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Waiting for transfers to finish
2022-04-24 02:10:24 ERROR : C1apture.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:25 ERROR : fwf.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:25 ERROR : Capture.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:25 ERROR : Attempt 2/3 failed with 3 errors and: The system cannot find the file specified.
2022-04-24 02:10:26 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Waiting for checks to finish
2022-04-24 02:10:26 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Waiting for transfers to finish
2022-04-24 02:10:26 ERROR : C1apture.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:27 ERROR : fwf.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:27 ERROR : Capture.PNG: Failed to copy: The system cannot find the file specified.
2022-04-24 02:10:27 ERROR : Attempt 3/3 failed with 3 errors and: The system cannot find the file specified.

C:\Users\m-w-n\Desktop\TestDir>rclone -vv touch file.txt
2022/04/24 02:15:35 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "-vv" "touch" "file.txt"]
2022/04/24 02:15:35 DEBUG : Creating backend with remote "."
2022/04/24 02:15:35 DEBUG : Using config file from "C:\\Users\\m-w-n\\AppData\\Roaming\\rclone\\rclone.conf"
2022/04/24 02:15:35 DEBUG : fs cache: renaming cache item "." to be canonical "//?/C:/Users/m-w-n/Desktop/TestDir"
2022/04/24 02:15:35 DEBUG : Touch time 2022-04-24 02:15:35.2116858
2022/04/24 02:15:35 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Touching (creating) "file.txt"
2022/04/24 02:15:36 ERROR : Attempt 1/3 failed with 1 errors and: failed to touch (create): The system cannot find the file specified.
2022/04/24 02:15:36 DEBUG : Touch time 2022-04-24 02:15:36.9773833
2022/04/24 02:15:36 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Touching (creating) "file.txt"
2022/04/24 02:15:36 ERROR : Attempt 2/3 failed with 1 errors and: failed to touch (create): The system cannot find the file specified.
2022/04/24 02:15:36 DEBUG : Touch time 2022-04-24 02:15:36.9782921
2022/04/24 02:15:36 DEBUG : Local file system at //?/C:/Users/m-w-n/Desktop/TestDir: Touching (creating) "file.txt"
2022/04/24 02:15:36 ERROR : Attempt 3/3 failed with 1 errors and: failed to touch (create): The system cannot find the file specified.
2022/04/24 02:15:36 DEBUG : 2 go routines active
2022/04/24 02:15:36 Failed to touch: failed to touch (create): The system cannot find the file specified.

The problems appear to be with your local filesystem.

Is there anything special about it?

After spending hours,
-I tried creating the same path on another drive and I noticed that the 'touch' command works just fine.
-I tried creating a file in a directory under the same user m-w-n and noticed the command also works.
-I tried rebooting the machine, but still, the error persists.
-Then I asked why it works on every directory except the 'Desktop' directory then I suspected that maybe the AV is restricting the program from creating/writing files in this directory, turns out that was the problem :man_facepalming:.

Both of the commands above worked after adding rclone to the whitelist in the AV.

Glad you solved it. AV's do make for mysterious problems!

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