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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What kind of authorization is needed to use the Bitbucket Data Center Migration Tool?

I am trying to migrate some repositories from one instance of Bitbucket Data Center to another. I am following the documentation here: https://confluence.atlassian.com/bitbucketserver063/data-center-migration-972354918.html. We are currently at BBDC 6.3.x.  

Here is the curl command I am using:

curl -s -n -X POST -H "Authorization: Bearer <personal-access-token>" -H 'Content-type: application/json' -d '{"repositoriesRequest":{"includes":[{"projectKey":"YOYODYNE","slug":"test-repo-01"}]}}' https://<bitbucket-instance-com>/bitbucket/rest/api/1.0/migration/exports/preview | jq .

I am getting the following response:

{
"errors": [
{
"context": null,
"message": "You are not permitted to access this resource",
"exceptionName": "com.atlassian.bitbucket.AuthorisationException"
}
]
}

I created the project/repo with my own account so I'm not sure why I'm getting an authorization error.

I've also tried basic auth and that doesn't work either.  Does the migration tool work?  If so, can anyone tell what I'm doing wrong?

 

1 answer

Just after I clicked Publish, I figured it out.  Tokens are not supported and I messed up my Basic Auth on the command line.  I knew as soon as I asked the question I'd figure it out. Sorry for the clutter on the site.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,892 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you