Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Below is the error that I a receiving while migrating the repository from bitbucket server to bitbucket cloud
Pls help out on this
Hi @Praneeth Gujja,
Based on the output, it looks that Bitbucket Cloud is not able to reach your Bitbucket Server instance. If you're using a firewall on your server, I would suggest talking with your network administrator and see if it's possible to whitelist the IP addresses for Bitbucket Cloud, to make the connection possible:
If this is not possible, e.g. due to a company policy, another thing you can do is:
1. Create an empty repository in Bitbucket Cloud.
In the create repository page, make sure you select No for the options Include a README? and Include .gitignore?, so that the repo is empty.
2. Take a mirror clone of the Bitbucket Server repo, using the --mirror option in the clone command
git clone --mirror <SOURCE-URL>
3. Then, push that mirror clone to the empty Bitbucket Cloud repo
git push --mirror <TARGET-URL>
In case your Bitbucket Server repo uses Git LFS, additional steps will be needed. The process for a repo with LFS would be:
1. Create an empty repository in Bitbucket Cloud.
In the create repository page, make sure you select No for the options Include a README? and Include .gitignore?, so that the repo is empty.
2. Take a mirror clone of the Bitbucket Server repo, using the --mirror option in the clone command
git clone --mirror <SOURCE-URL>
3. Fetch all LFS objects in your mirror clone, by executing the following command inside the directory of the mirror clone:
git lfs fetch origin --all
4. Then, push that mirror clone to the empty Bitbucket Cloud repo
git push --mirror <TARGET-URL>
git lfs push --all <TARGET-URL>
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.