Backup Client returned 404 not found

This question is in reference to Atlassian Documentation: Troubleshooting Backup - Client

I am using backup client (3.0.0) to backup the repository in Bitbucket.net; the initial backup was done initially in March without problem. However, I ran into an error

$ java -jar bitbucket-backup-client.jar 
2016-08-01 11:29:52,489 INFO         Initializing
2016-08-01 11:29:53,988 ERROR        A backup could not be created
com.atlassian.bitbucket.internal.backup.client.BackupException: The Bitbucket version could not be verified; the server returned 404 Not Found. Backup/restore is only supported by Bitbucket 2.7.0 and later.
    at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.handleVersionQueryFailure(RestBitbucketService.groovy:359) ~[bitbucket-backup-client.jar:3.0.0]
    at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.getVersion(RestBitbucketService.groovy:188) ~[bitbucket-backup-client.jar:3.0.0]
    ... 9 more frames available in the log file

I checked the backup-config.properities and the bitbucket.baseURL, bitbucket.home are correct; I did not change it since the initial backup in March. The same error shows when running backup client 3.3.0.

Any suggestions ?

Thanks

 

 

3 answers

0 vote
Jeff Thomas Atlassian Team Aug 01, 2016

What is the Base URL that you have configured?

The baseURL is

bitbucket.baseUrl=https://bitbucket.org/

In my original question, it should be Bitbucket.org not the Bitbucket.net. I also tried to set the URL to http://bitbucket.org without trailing '/', and got the same response.

0 vote
Jeff Thomas Atlassian Team Aug 01, 2016

The Bitbucket Server Backup Client is only compatible with the self-hosted Bitbucket Server instance (previously known as Stash). More details on the backup client can be found at https://confluence.atlassian.com/display/BitbucketServer/Using+the+Bitbucket+Server+Backup+Client

This backup client will not work with Bitbucket Cloud (hosted at bitbucket.org). More information on backups for Bitbucket Cloud can be found at https://confluence.atlassian.com/pages/viewpage.action?pageId=288658413. A clone of the repository can serve has a backup of the code (but will not preserve pull requests and comments).

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,754 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you