Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,407
Community Members
 
Community Events
176
Community Groups

Getting 401 unauthorized when using the Bitbucket backup client

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 Mar 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.

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

Yep, that's what I needed. Thanks.

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!

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events