Rclone copy doesn't fail when file doesn't exist in gstorage bucket

What is the problem you are having with rclone?

rclone copy doesn't fail when file source file I try to download doesn't exist in my gstorage bucket

I expect a different return code than 0 and some error message stating that the files does not exist in the bucket.

What is your rclone version (output from rclone version)

tested with v1.48.0 and v1.45.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 16.04 64 bit

Which cloud storage system are you using? (eg Google Drive)

Gcloud storage

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

rclone -vv copy gcloud:redacted/ICE_CREAM .

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2019/08/07 10:30:07 DEBUG : rclone: Version "v1.48.0" starting with parameters ["rclone" "-vv" "copy" "gcloud:redacted/ICE_CREAM" "."]
2019/08/07 10:30:07 DEBUG : Using config file from "/home/redacted/.config/rclone/rclone.conf"
2019/08/07 10:30:08 INFO : Local file system at /home/redacted: Waiting for checks to finish
2019/08/07 10:30:08 INFO : Local file system at /home/redacted: Waiting for transfers to finish
2019/08/07 10:30:08 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 100ms

2019/08/07 10:30:08 DEBUG : 7 go routines active
2019/08/07 10:30:08 DEBUG : rclone: Version "v1.48.0" finishing with parameters ["rclone" "-vv" "copy" "gcloud:redacted/ICE_CREAM" "."]

With configuration:
[gcloud]
type = google cloud storage
service_account_file = /home/redacted/.config/rclone/s3_creds
location = eu

Does rclone ls gcloud:redacted/ICE_CREAM return anything?

If ICE_CREAM is an empty folder and the command is to copy all the files from that folder then copying 0 files and saying the job is complete seems like intended behavior that should not produce an error.

This doesn't produce an error, it just happens to end up doing nothing:
rclone copy TD5:\EMPTYTEST E:\

These however will give you a (non fatal) error:
rclone copy TD5:\EMPTYTEST\thisfiledoesnotexist.txt E:
rclone copy TD5:\NONEXTANTDIR\ E:\

But this is fine:
rclone copy TD5:\EMPTYTEST\thisfileexists.txt E:\

So maybe you are just misunderstanding the difference in referencing files vs folders. A copy command will not error as long as the folders (and file if you choose to specify one) exists, but if any of them are missing you should get errors as expected.

Hope this was helpful :slight_smile:

ICE_CREAM is neither a file nor a folder. It does not exist. So rclone should complain.

Oh, I'm sorry. I mis read and understand now.

File a bug report on the github as what you are saying I think would be a bug as well.


Done

In that case I agree. It does for me on Gdrive. Suspect it may be a backend spesific bug then.