me@mycomputer ~ % rclone ls -vv --dump bodies DigitalOceanSpace:test_folder
2020/07/15 07:36:43 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "ls" "-vv" "--dump" "bodies" "DigitalOceanSpace:test_folder"]
2020/07/15 07:36:43 DEBUG : Using config file from "/Users/me/.config/rclone/rclone.conf"
2020/07/15 07:36:43 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2020/07/15 07:36:43 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/07/15 07:36:43 DEBUG : HTTP REQUEST (req 0xc0000ff300)
2020/07/15 07:36:43 DEBUG : GET /test_folder?delimiter=&max-keys=1000&prefix= HTTP/1.1
Host: [MY_SUBDOMAIN].sfo2.digitaloceanspaces.com
User-Agent: rclone/v1.52.2
Authorization: XXXX
X-Amz-Content-Sha256: [SECRET?]
X-Amz-Date: [SECRET?]
Accept-Encoding: gzip
2020/07/15 07:36:43 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/07/15 07:36:44 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/07/15 07:36:44 DEBUG : HTTP RESPONSE (req 0xc0000ff300)
2020/07/15 07:36:44 DEBUG : HTTP/1.1 200 OK
Content-Length: 148
Accept-Ranges: bytes
Content-Type: binary/octet-stream
Date: Wed, 15 Jul 2020 14:36:44 GMT
Etag: "[SECRET?]"
Last-Modified: Wed, 15 Jul 2020 14:01:55 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Vary: Origin, Access-Control-Request-Headers, Access-Control-Request-Method
X-Amz-Request-Id: [SECRET?]
<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><LocationConstraint>sfo2</LocationConstraint></CreateBucketConfiguration>
2020/07/15 07:36:44 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/07/15 07:36:44 DEBUG : 6 go routines active
I'm not sure how to check which permissions my user has, to be honest. I'm just using the only user that I have in my DigitalOcean account.
Two more tidbits that might be useful:
I can log in to my DigitalOcean account and see that the files are indeed being created in the Space
When using the exact same copy command again, it looks like it copies the same files as (new) each time (ie. it's not seeing that it just copied them and they're already there)
me@mycomputer ~ % rclone ls -vv --dump bodies DigitalOceanSpace:test_folder
2020/07/15 08:03:10 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "ls" "-vv" "--dump" "bodies" "DigitalOceanSpace:test_folder"]
2020/07/15 08:03:10 DEBUG : Using config file from "/Users/me/.config/rclone/rclone.conf"
2020/07/15 08:03:10 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2020/07/15 08:03:10 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/07/15 08:03:10 DEBUG : HTTP REQUEST (req 0xc000334e00)
2020/07/15 08:03:10 DEBUG : GET /test_folder?delimiter=&max-keys=1000&prefix= HTTP/1.1
Host: sfo2.digitaloceanspaces.com
User-Agent: rclone/v1.52.2
Authorization: XXXX
X-Amz-Content-Sha256: [SECRET?]
X-Amz-Date: [SECRET?]
Accept-Encoding: gzip
2020/07/15 08:03:10 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/07/15 08:03:11 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/07/15 08:03:11 DEBUG : HTTP RESPONSE (req 0xc000334e00)
2020/07/15 08:03:11 DEBUG : HTTP/1.1 404 Not Found
Content-Length: 217
Accept-Ranges: bytes
Content-Type: application/xml
Date: Wed, 15 Jul 2020 15:03:11 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
X-Amz-Request-Id: [SECRET?]
<?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchBucket</Code><BucketName>test_folder</BucketName><RequestId>tx000000000000041420885-005f0f1aaf-95f8c6-sfo2a</RequestId><HostId>95f8c6-sfo2a-sfo</HostId></Error>
2020/07/15 08:03:11 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/07/15 08:03:11 DEBUG : 6 go routines active
2020/07/15 08:03:11 Failed to ls: directory not found
It looks like it can't find it without my subdomain? And unless I'm mistaken, I think DigitalOcean requires me to create the Space with a subdomain (not just sfo2.digitaloceanspaces.com + my access keys).
Amazing, thank you. I do have some folders with _ in the name, but not buckets. I'm actually just realizing that I have a single bucket, and that bucket's name is the subdomain that I chose in DigitalOcean. Sorry if this was obvious, but I think that was the issue.
For anyone with this problem in the future...
Correct config file (you may want to change acl to private):