Resolving empty repository issue during migration with Bitbucket Cloud Migration Assistant (BCMA)

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

 

プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。

   

要約

When migrating from Bitbucket Server to Bitbucket Cloud using the Bitbucket Cloud Migration Assistant (BCMA) tool. In some cases, even when the migration logs suggest a successful migration, an empty repository is actually pushed to Bitbucket Cloud.

For instance, the logs show: 2023-06-11 16:55:13,862 INFO [io-pump:thread-8] c.a.b.p.b.j.RepositoryDataUploadJob Push for workspace/repository - Enumerating objects: 12, done. @ 0% [UUID::BitbucketRepositoryDataUpload::UUID, BitbucketRepositoryDataUpload-UUID].

診断

  1. Check the support zip file to identify any possible errors related to the problematic repository. Look for logs indicating a successful push.
  2. Use the git count-objects command to compare the object counts in the server and cloud repositories after migration.
  3. As another troubleshooting step, try cloning the repository locally to check for any errors that occur during this process.

原因

The issue arises due to a project branch permission that has been set up on the Bitbucket Cloud side. When the repository gets imported, the project branch permission is inherited by the repository causing the push to fail.

ソリューション

To resolve this issue, disable branch permissions at the project level during the migration process. This will prevent the newly migrated repositories from inheriting these permissions that lead to the push failures. After the migration is complete, you can then re-enable the branch permissions as needed


最終更新日 2023 年 8 月 3 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.