Running rclone copy file.zip MinIO:bucket fails with 403. If I rename the file to file.zip.gzip and run rclone copy file.zip.gzip MinIO:bucket it works fine. Also, running native MinIO client mc cp file.zip remote/bucket also works fine using the same access and secret keys. Uploading anything but .zip files works.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
os/version: ubuntu 20.04 (64 bit)
os/kernel: 5.13.0-1027-oracle (aarch64)
os/type: linux
os/arch: arm64 (ARMv8 compatible)
go/version: go1.21.6
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
MinIO S3
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy file.zip remote:bucket
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
I use copy and move with filenames and they work fine, but I include the path in front of the file usually, like rclone copy path/to/file.dat. So maybe it needs to see a path to work at all? I've not tried it just with a filename.
No. The destination is a path, not a file as that's probably your confusion.
If you want to copy a file and change the name on the destination you'd use copyto.
rclone copy hosts remote: would make a file named hosts on the remote
rclone copy hosts remote:hosts would make a directory on the remote called hosts and put a file called in hosts in the directory
rclone copyto hosts remote:nothosts would make a file in the root there called nothosts.
I tried with all kinds of combinations, full path on the local, full path on the remote, full path on both, just target folder/bucket on the remote, etc. None of it works.
Seems like rclone tries to do a head on a zip file on the remote and that returns 403.
if you create a one-byte text file with the extension .zip, does that upload?
that should apply to any file that is uploaded, correct?
and there are flags that prevent rclone from doing that initial head and other head operations.
tho in your case, not sure that will make a difference.