Create a fork in a repository or merge branches yields git error code 128

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

症状

When forking a repository, a message similar to that is displayed:

An error occurred while executing an external process: '/usr/bin/git clone --bare --shared /home/bitbucket/data/data/repositories/8 /home/bitbucket/data/data/repositories/22' exited with code 128 saying: fatal: Could not get current working directory: No such file or directory

When merging a Pull Request, a message similar to that is displayed:

Caused by: com.atlassian.bitbucket.exception.ServerException: An error occurred while executing an external process: '/usr/bin/git clone --no-checkout --shared -b master /var/lib/bitbucket/data/repositories/156 /var/lib/bitbucket/tmp/git/jamf_standard_library-merge2972724898070904938.git' exited with code 128 saying: fatal: Could not change back to '/root': Permission denied

原因

Bitbucket Server has been started from a path that it doesn't have access anymore or does not exist. You can find the PWD tag of the following part of the application.xml (after you generate the Support Zip):

<PWD>/root</PWD> <HOME>/home/bitbucket</HOME>

ソリューション

Please start Bitbucket Server from its home directory.

更新日時: September 25, 2025

さらにヘルプが必要ですか?

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