Why is duplicity throwing this Traceback? Unauthorized: (unauthorized)
Hello friends of Duplicity!
First I here is the problem I am running into and then I will tell you what trouble shooting I have done.
I am attempting to set up duplicity to backup to Backblaze B2 with this command:
[mycomputer@
Traceback (innermost last):
.....long traceback, I'll put the whole thing below ....
File "/usr/lib/
int(
Unauthorized: (unauthorized)
Here is what I have checked:
> I am running fedora 29
> duplicity 0.7.18.2
> b2 1.3.8
> python 2.7.15
> I installed the b2 command-line tool using pip2 and not pip3, so its installed in the right place (right?)
> I can use the b2 command-line tool by itself to successfully upload a file to that same b2 bucket using that same application key. So that application key has the proper permissions.
> the gpg keys seem to be functioning properly because I can use duplicity to encrypt, backup/recover to/from a local file location.
> I have b2 backup (box checked) enabled in my b2 account
> I am new b2 user, and have never attempted to use it with duplicity before. So this is not a new error on a previously functioning process.
Any help would be greatly appreciated! Thank you for taking the time to answer my question.
Here is the full traceback for those of you who speak that language:
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib64/
backup, local_pathname = set_backend(
File "/usr/lib64/
globals.backend = backend.
File "/usr/lib64/
obj = get_backend_
File "/usr/lib64/
return factory(pu)
File "/usr/lib64/
self.
File "/usr/lib/
return function(
File "/usr/lib/
response = self.raw_
File "/usr/lib/
return self._post_
File "/usr/lib/
return self.b2_
File "/usr/lib/
return self.post_
File "/usr/lib/
response = _translate_
File "/usr/lib/
return _translate_
File "/usr/lib/
int(
Unauthorized: (unauthorized)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- edso
- Solved:
- 2019-02-13
- Last query:
- 2019-02-13
- Last reply:
- 2019-02-13
|
#1 |
maybe some key confusion like explained here
https:/
?
..ede/duply.net
On 13.02.2019 03:22, Jesse Fowers wrote:
> New question #678515 on Duplicity:
> https:/
>
> Hello friends of Duplicity!
>
> First I here is the problem I am running into and then I will tell you what trouble shooting I have done.
>
> I am attempting to set up duplicity to backup to Backblaze B2 with this command:
>
> [mycomputer@
> Traceback (innermost last):
>
> .....long traceback, I'll put the whole thing below ....
>
> File "/usr/lib/
> int(error[
> Unauthorized: (unauthorized)
>
> Here is what I have checked:
>
>> I am running fedora 29
>> duplicity 0.7.18.2
>> b2 1.3.8
>> python 2.7.15
>> I installed the b2 command-line tool using pip2 and not pip3, so its installed in the right place (right?)
>> I can use the b2 command-line tool by itself to successfully upload a file to that same b2 bucket using that same application key. So that application key has the proper permissions.
>> the gpg keys seem to be functioning properly because I can use duplicity to encrypt, backup/recover to/from a local file location.
>> I have b2 backup (box checked) enabled in my b2 account
>> I am new b2 user, and have never attempted to use it with duplicity before. So this is not a new error on a previously functioning process.
>
> Any help would be greatly appreciated! Thank you for taking the time to answer my question.
>
> Here is the full traceback for those of you who speak that language:
>
> Traceback (innermost last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> action = commandline.
> File "/usr/lib64/
> backup, local_pathname = set_backend(
> File "/usr/lib64/
> globals.backend = backend.
> File "/usr/lib64/
> obj = get_backend_
> File "/usr/lib64/
> return factory(pu)
> File "/usr/lib64/
> self.service.
> File "/usr/lib/
> return function(
> File "/usr/lib/
> response = self.raw_
> File "/usr/lib/
> return self._post_
> File "/usr/lib/
> return self.b2_
> File "/usr/lib/
> return self.post_
> File "/usr/lib/
> response = _translate_
> File "/usr/lib/
> return _translate_
> File "/usr/lib/
> int(error[
> Unauthorized: (unauthorized)
>
>
>
>
>
>
>
Jesse Fowers (jessefowers) said : | #2 |
Thanks edso, that solved my question.
Jesse Fowers (jessefowers) said : | #3 |
Just to help anyone that comes across this same problem here is a quote from the link edso supplied:
> The issue is really with B2's vague documentation, but Duplicati would benefit from being more clear. It's `Account ID` + `Master > Application Key` _**or**_ `Application Key ID` + `Application Key`.
This is what solved my problem. I was using Account ID and Application Key but I needed to be using Application ID with its corresponding Application Key.
Thank you kind internet stranger!