Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting 401 unauthorized when using the Bitbucket backup client

Joel Newton
Contributor
March 26, 2018

I've put what I believe to be the correct, necessary values in the backup-config.properties file:

bitbucket.home=E:\\Atlassian\\ApplicationData\\Bitbucket

bitbucket.user=(local Windows user that runs the Bitbucket service)

bitbucket.password=(password for that same local user)

bitbucket.baseUrl=https://bitbucket.atlas.cm.com/

When I run the backup client, I get:

ERROR A backup could not be created
com.atlassian.bitbucket.internal.backup.client.BackupException: The Bitbucket version could not be verified; the server returned 401 Unauthorized. Backup/restore is only supported by Bitbucket 2.7.0 and later.
at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.handleVersionQueryFailure(RestBitbucketSe
rvice.groovy:359)
at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.getVersion(RestBitbucketService.groovy:18
8)

 

I'm running v5.7.0 and the latest version of the backup client.

Thanks.

2 answers

1 accepted

3 votes
Answer accepted
Dick
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

Hi Joel,

It looks like you've used the wrong user + password. Instead of using your local Windows user, bitbucket.user should be the username of a sysadmin on the Bitbucket service.

bitbucket.password should be the password for that user on Bitbucket. So, to summarise:

bitbucket.user=(username of a sysadmin on Bitbucket)
bitbucket.password=(password for that same sysadmin on Bitbucket)

I hope this helps!

Cheers.

Joel Newton
Contributor
March 28, 2018

Thanks, Dick. Makes sense. I'll test that out tonight. 

Joel Newton
Contributor
March 28, 2018

Yep, that's what I needed. Thanks.

1 vote
David April 19, 2022

Thanks Joel and Dick!  I've been searching and reading for hours/days trying to figure this and a few other things.  I stumbled across this a few days after I created a post(never received a response though). The user I had was sysadmin on BB and it wasn't working due to a "!" in the password field.  Ironically enough, I created another account with another sysadmin and didnt use the bang(just found out) and voila...thx!

Raphael Teodoro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2022

incredible hint of yours! I was having the same problem because of a $

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events