Git Commands Return Fatal: Authentication Failed

Git のトラブルシューティング

このページの内容

お困りですか?

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

コミュニティに質問

問題

When performing a Git operation to the Stash server over HTTP, the command fails with a fatal: Authentication failed error.

$ git clone http://user@stash.company.com/scm/project/repo.git
Cloning into 'repo'...
Password for 'http://user@stash.company.com':
fatal: Authentication failed 

診断

Diagnostic Steps

  • Verify that the user can login to the web interface of Stash.

原因

This error can have multiple causes which are outlined below.

Cause #1

There is an Apache proxy server in front of Stash that is removing the authorization header information as the request is passed to Stash. This is caused by the RequestHeader unset Authorization configuration being set.

Cause #2

The user has been locked out of Stash because of too many incorrect login attempts.

ソリューション

ソリューション #1

Remove the RequestHeader unset Authorization configuration from Apache and restart the proxy server.

ソリューション #2

Check that the user can login to the web interface of Stash and answer the CAPTCHA if prompted.

最終更新日 2018 年 11 月 2 日

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

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