Git clone is taking a long time to complete

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

When running a git clone, it takes a long time to complete even if the repository is small.

There aren't errors in the application logs. In profiling logs, it shows that authentication takes a long time to complete:

2018-05-25 13:40:10,086 | http-nio-80-exec-7 | @5IZFEEx801x2949x0 | rmadalozzo | -
[86782ms] - "GET /scm/tes/repotest.git/info/refs HTTP/1.1"
[86751ms] - Authentication org.springframework.security.authentication.AuthenticationProvider.authenticate(Authentication)
[86735ms] - attemptAuthentication - com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler
[86735ms] - AuthenticationResult com.atlassian.stash.internal.user.CaptchaService.authenticateWithCaptcha(CaptchaTicket,UncheckedOperation)
[16ms] - Page com.atlassian.bitbucket.user.UserService.findGroupsByUser(String,PageRequest)
[31ms] - void com.atlassian.stash.internal.scm.git.protocol.http.HttpRefAdvertisement.handleRequest()
[31ms] - C:\Program Files\Git\cmd\git.exe upload-pack --advertise-refs --stateless-rpc E:\Atlassian\ApplicationData\Stash\shared\data\repositories\25

原因

Check for the Follow referrals attribute in LDAP settings.

ソリューション

Check to see from the LDAP settings if follow referrals attribute are enabled.

If it is, uncheck the Follow referrals LDAP attribute by going to Administration → User Directories → Edit → Advanced Settings → Follow Referrals.

最終更新日: 2023 年 10 月 25 日

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

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