Forbidden error when trying to copy to Storj bucket

What is the problem you are having with rclone?

Failed to copy: Forbidden: Forbidden when trying to copy a file to a Storj remote

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

rclone v1.61.1
- os/version: debian 11.6 (64 bit)
- os/kernel: 5.10.0-16-amd64 (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)

Storj (S3 compatible)

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

rclone copy test storj-fu:test

The rclone config contents with secrets removed.

[storj-fu]
type = s3
provider = Storj
access_key_id = jvzohkaclwulrmq6irokuu7vp7ya
secret_access_key = [...]
endpoint = gateway.storjshare.io

A log from the command with the -vv flag

2023/02/06 22:15:46 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "-vv" "copy" "test" "storj-fu:test"]
2023/02/06 22:15:46 DEBUG : Creating backend with remote "test"
2023/02/06 22:15:46 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/02/06 22:15:46 DEBUG : fs cache: adding new entry for parent of "test", "/root"
2023/02/06 22:15:46 DEBUG : Creating backend with remote "storj-fu:test"
2023/02/06 22:15:46 ERROR : Attempt 1/3 failed with 1 errors and: Forbidden: Forbidden
        status code: 403, request id: 17415C0CEAB1938D, host id: 
2023/02/06 22:15:47 ERROR : Attempt 2/3 failed with 1 errors and: Forbidden: Forbidden
        status code: 403, request id: 17415C0CEF38F38B, host id: 
2023/02/06 22:15:47 ERROR : Attempt 3/3 failed with 1 errors and: Forbidden: Forbidden
        status code: 403, request id: 17415C0CF24E6261, host id: 
2023/02/06 22:15:47 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.4s

2023/02/06 22:15:47 DEBUG : 3 go routines active
2023/02/06 22:15:47 Failed to copy: Forbidden: Forbidden
        status code: 403, request id: 17415C0CF24E6261, host id:

It seems I can successfully run rclone ls storj-fu:. But I double checked and my access key is not read only.

Nevermind, turns out I had the command syntax wrong. It should be rclone copy test storj-fu:freakuniversity/.

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