RC operations/copyfile destination file is missing after transfer

What is the problem you are having with rclone?

I am attempting to use rc operation/copyfile to transfer a file from a remote source, to a local destination directory. I can run the command one time, and it will take approximately the right amount of expected time to download, but I can't find the file at the expected location. ( local: /upload/test/files/)

If I attempt to download the same exact file one more time, i'm returned immediately to the CLI as if i've already downloaded the file, but there's no trace of the file at all, even

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

rclone v1.61.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-110-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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 rc operations/copyfile srcFs=gdrive1: srcRemote='filestore/partition1/file.txt dstFs=local: dstRemote=/upload/test/files/ --progress -vv --log-file=FML

The rclone config contents with secrets removed.

[gdrive1]
type = drive
client_id = 108527xxxx.apps.googleusercontent.com
client_secret = xxxx
scope = drive
token = xxxxx
team_drive = xxxx
root_folder_id =

[gdrive2]
type = drive
client_id = 108527xxxx.apps.googleusercontent.com
client_secret = xxxx
scope = drive
token = xxxx
team_drive = xxxx
root_folder_id =

[gdrive3]
type = drive
client_id = 108527xxxx.apps.googleusercontent.com
client_secret = xxxx
scope = drive
token = xxxx
team_drive = xxxx
root_folder_id =

[local]
type = local

A log from the command with the -vv flag

DEBUG : rclone: Version "v1.61.0" starting with parameters ["rclone" "rc" "operations/copyfile" "srcFs=gdrive1:" "srcRemote=filestore/partition1/file.txt" "dstFs=local:" "dstRemote=/upload/test/files/" "--progress" "-vv" "--log-file=FML"]
2022/12/20 21:53:02 DEBUG : 4 go routines active

Any help is appreciated.
EDIT: Formatting

Well, i found it... :confused:

Moving all directory mentions on each side to the "srcFs" portion like below has fixed the issue.

"srcFs=gdrive1:/filestore/partition1/" "srcRemote=file.txt"

"dstFs=local:/upload/test/files/" "dstRemote=file.txt"

clearly isolating the filename is important.

1 Like

Hmm, I suspect there might be a bug or an odditiy at least there. If you put the dstFs=local:/ does it work?

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