Hello!
What is the problem you are having with rclone?
I have a problem since last week. I installed rclone to pass some files from my server to my S3 bucket. But, after configure and run the command, in the log always see "Failed to copy: Forbidden: Forbidden"
What is your rclone version (output from rclone version
)
rclone v1.53.3
- os/arch: linux/amd64
- go version: go1.15.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 18.04 LTS (server)
Which cloud storage system are you using? (eg Google Drive)
Amazon S3
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy /folder_files/000014_2020-12-14-08-42-14.mp4 amazons3:s3bucket/s3folder
The rclone config contents with secrets removed.
A log from the command with the -vv
flag
2020/12/14 09:00:40 ERROR : Attempt 1/3 failed with 1 errors and: Forbidden: Forbidden
status code: 403, request id: 87BD39B47C39F863, host id: uXL5hKGGtJLeeE6toemXVmFUf+Rkn70Ehfdd76lCJPwyzntPlgl+vdBDSBRe6PgjDjX7jZndBSg=
2020/12/14 09:00:40 ERROR : Attempt 2/3 failed with 1 errors and: Forbidden: Forbidden
status code: 403, request id: A641AB4A4742A1B1, host id: uHiI0oSbDhGiVwc6zAvnC1NW03qfzMwM2RsYoFKptCDlROqxv5XVIQ0eUbpF9wEnyvGrLIziQ3A=
2020/12/14 09:00:40 ERROR : Attempt 3/3 failed with 1 errors and: Forbidden: Forbidden
status code: 403, request id: 90F63B24B383B43A, host id: uXGFFX3r4VfKJu9nMaGLHalKcef4iTVMIw8G40HGrUD45D2YmtYgG70oTsQ+eBLUf7Oa5tmtLiQ=
2020/12/14 09:00:40 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s
2020/12/14 09:00:40 Failed to copy: Forbidden: Forbidden
status code: 403, request id: 90F63B24B383B43A, host id: uXGFFX3r4VfKJu9nMaGLHalKcef4iTVMIw8G40HGrUD45D2YmtYgG70oTsQ+eBLUf7Oa5tmtLiQ=
Any idea?
EDIT (10:20)
I modified the rclone config to puc the access key and secret key without ""
and now the error has changed...
First: If I do a rclone lsd amazons3:bucketname
I have a list of the buckets. Right because before I can't do it.
rclone lsd amazons3:bucketname
0 2020-12-14 10:14:49 -1 folder1
0 2020-12-14 10:14:49 -1 folder2
0 2020-12-14 10:14:49 -1 folder3
0 2020-12-14 10:14:49 -1 folder4
0 2020-12-14 10:14:49 -1 folder5
0 2020-12-14 10:14:49 -1 folder6
But now, when I run the command, I see Access denied
2020/12/14 10:15:01 ERROR : 000014_2020-12-14-08-49-34.mp4: Failed to copy: AccessDenied: Access Denied
status code: 403, request id: 6D2DED72673FFFBF, host id: tRsFRPGjbIUmNxccM9Z1hQpDPlqocC0hlaGgJyNBDM7BCA135ZkFf5AIO25h08GGtm6josr6DSA=
2020/12/14 10:15:01 ERROR : Attempt 1/3 failed with 1 errors and: AccessDenied: Access Denied
status code: 403, request id: 6D2DED72673FFFBF, host id: tRsFRPGjbIUmNxccM9Z1hQpDPlqocC0hlaGgJyNBDM7BCA135ZkFf5AIO25h08GGtm6josr6DSA=
2020/12/14 10:15:02 ERROR : 000014_2020-12-14-08-49-34.mp4: Failed to copy: AccessDenied: Access Denied
status code: 403, request id: 06CB7F916F5DED66, host id: YFgvpQgC9CvgJpYslPR4f29wTfBCS76SEnl4UiUvMhrGIIRj3ZlJnWhjHRnMlaQhNIXX9o94Bhs=
2020/12/14 10:15:02 ERROR : Attempt 2/3 failed with 1 errors and: AccessDenied: Access Denied
status code: 403, request id: 06CB7F916F5DED66, host id: YFgvpQgC9CvgJpYslPR4f29wTfBCS76SEnl4UiUvMhrGIIRj3ZlJnWhjHRnMlaQhNIXX9o94Bhs=
2020/12/14 10:15:02 ERROR : 000014_2020-12-14-08-49-34.mp4: Failed to copy: AccessDenied: Access Denied
status code: 403, request id: C59BDBB2F1AD578C, host id: JeiF1uti7ZWADjBg79+nIHyT69xerrov5jIXBtl8boNPzog5zHXcHGh/HSe+tIeCzmiZTn/kdDM=
2020/12/14 10:15:02 ERROR : Attempt 3/3 failed with 1 errors and: AccessDenied: Access Denied
status code: 403, request id: C59BDBB2F1AD578C, host id: JeiF1uti7ZWADjBg79+nIHyT69xerrov5jIXBtl8boNPzog5zHXcHGh/HSe+tIeCzmiZTn/kdDM=
2020/12/14 10:15:02 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.3s
2020/12/14 10:15:02 Failed to copy: AccessDenied: Access Denied
status code: 403, request id: C59BDBB2F1AD578C, host id: JeiF1uti7ZWADjBg79+nIHyT69xerrov5jIXBtl8boNPzog5zHXcHGh/HSe+tIeCzmiZTn/kdDM=
EDIT (11:59)
I changed the bucket to point to public bucket of my S3 server and created a key/secret only for this bucket. Well, now the message has changed, now the log tolds me that “InvalidArgument”.
I run the command with -vv
argument to see the detail and the error is “File not found at Destination”. Strange…
2020/12/14 11:51:03 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "copy" "/folder/file.mp4" "amazons3:publicbucket/publicfolder" "-vv"]
2020/12/14 11:51:03 DEBUG : Creating backend with remote "/folder/file.mp4"
2020/12/14 11:51:03 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/12/14 11:51:03 DEBUG : fs cache: adding new entry for parent of "/folder/file.mp4", "/folder"
2020/12/14 11:51:03 DEBUG : Creating backend with remote "amazons3:publicbucket/publicfolder"
2020/12/14 11:51:03 DEBUG : file.mp4: Need to transfer - File not found at Destination
2020/12/14 11:51:03 ERROR : file.mp4: Failed to copy: InvalidArgument:
status code: 400, request id: 776315B8D476C0A4, host id: /s3kKk79KwPZR0ohhHHioO9htsS68YuQTErEU308P+zZTTm6F/vYWI92EQpmK/dSAsT4LzaJDrU=
2020/12/14 11:51:03 ERROR : Attempt 1/3 failed with 1 errors and: InvalidArgument:
status code: 400, request id: 776315B8D476C0A4, host id: /s3kKk79KwPZR0ohhHHioO9htsS68YuQTErEU308P+zZTTm6F/vYWI92EQpmK/dSAsT4LzaJDrU=
2020/12/14 11:51:04 DEBUG : file.mp4: Need to transfer - File not found at Destination
2020/12/14 11:51:04 ERROR : file.mp4: Failed to copy: InvalidArgument:
status code: 400, request id: BY6T7ZDR7KCREQCM, host id: 2zEFvdwgt0Ts6UXiOco+YW8rzWiu7DZ+2aNeDzxxdfgt4s4e3mqhyN6CywvX6uZVeBMF0VPQAdo=
2020/12/14 11:51:04 ERROR : Attempt 2/3 failed with 1 errors and: InvalidArgument:
status code: 400, request id: BY6T7ZDR7KCREQCM, host id: 2zEFvdwgt0Ts6UXiOco+YW8rzWiu7DZ+2aNeDzxxdfgt4s4e3mqhyN6CywvX6uZVeBMF0VPQAdo=
2020/12/14 11:51:04 DEBUG : file.mp4: Need to transfer - File not found at Destination
2020/12/14 11:51:04 ERROR : file.mp4: Failed to copy: InvalidArgument:
status code: 400, request id: 0609D96489D137FA, host id: /uBhtE+HTkbGNqSaHxqXpsmmOjakcfnaC/kCRG+CvLvQbZFznX6ZyrKXVmTERRkQ5Uhj1jcoDl0=
2020/12/14 11:51:04 ERROR : Attempt 3/3 failed with 1 errors and: InvalidArgument:
status code: 400, request id: 0609D96489D137FA, host id: /uBhtE+HTkbGNqSaHxqXpsmmOjakcfnaC/kCRG+CvLvQbZFznX6ZyrKXVmTERRkQ5Uhj1jcoDl0=
2020/12/14 11:51:04 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.1s