Rclone b2 "failed to create bucket"

I’m trying to get rclone working to sync some files to B2. I created a B2 bucket using their web interface, and also created an application key with read/write permission to this bucket. Then I ran “rclone config” to configure the remote endpoint.

I think it is working because I can do “lsd” and see my bucket, as well as a file I uploaded to the bucket via B2’s web interface:

mrwhizzard@mithrandir: rclone lsd b2:
-1 0001-01-01 00:00:00 -1 rclone-mithrandir
mrwhizzard@mithrandir: rclone lsl b2:rclone-mithrandir
155 2018-11-01 14:56:00.881000000 config

But, when I try to do a sync or copy, I get an error:

mrwhizzard@mithrandir: rclone copy /media/backup b2:rclone-mithrandir
2018/11/05 10:53:53 ERROR : Attempt 1/3 failed with 1 errors and: failed to create bucket: Unknown 401 (401 unauthorized)
2018/11/05 10:53:54 ERROR : Attempt 2/3 failed with 1 errors and: failed to create bucket: Unknown 401 (401 unauthorized)
2018/11/05 10:53:56 ERROR : Attempt 3/3 failed with 1 errors and: failed to create bucket: Unknown 401 (401 unauthorized)
2018/11/05 10:53:56 Failed to copy: failed to create bucket: Unknown 401 (401 unauthorized)

I don’t think it’s unexpected that rclone doesn’t have permission to create a bucket (because I used and application key), but I don’t understand why it’s trying to create the bucket. What am I doing wrong?

Thanks!

Make sure you are using rclone 1.44 and I think it should work.

Ahh, I was using version 1.36 from Ubuntu 18.04. I’ll see if I can try the newer version.

1 Like