Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTreeでクローンができない(ログインできない)

miyazoe February 7, 2019

お世話になります。

クローンをしたいのですが、SSHだと重すぎるようで軽いリポジトリしかできません。
HTTPSでクローンするとログイン画面が何度も開き、最終的に
「ソースパス/ソースURLとして正しくありません」と出てしまいます。

アカウントの認証がうまくいってない印象です。
(2段階認証が有効化されている??)

▼以下試してみたもの
・最新バージョンへのアップグレード
・パスワード再発行
・SSHキーの再発行
・手動でユーザー設定を全削除
・SourceTree認証画面でアカウント削除、再設定

Windows版(version 3.0.17)

恐れ入りますがどうぞよろしくお願いいたします。

2 answers

8 votes
miyazoe February 17, 2019

アトラシアン 山本さま

ご回答ありがとうございます。
いただいた内容を試してみましたが現在もエラーとなっております。

(1) アカウント設定の設定
Auth type: OAuth
Protocol: HTTP/SSH
⇒こちらに設定しております。

(2) 埋め込み Git の利用
設定 Tools > Options > "Git" にて Embedded Git を選ぶ。
⇒元々「Embedded」を選択していたため、改めてアップデートしております。

■ 追加情報
・SourceTreeのログ
C:\Users\<username>\AppData\Local\Atlassian\SourceTree\sourcetree.log
直近のログはこちらになります。

ERROR [2019-02-08 15:12:49,944] [22] [SourceTree.Exceptions.RemoteHostException] [Log] - 不十分な認証資格情報
ERROR [2019-02-08 15:12:49,944] [4] [SourceTree.Exceptions.RemoteHostException] [Log] - 不十分な認証資格情報
ERROR [2019-02-08 15:12:50,005] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Failed to list repositories for user [miyazoe]
ERROR [2019-02-08 15:12:50,092] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Failed to list teams for user [miyazoe]
ERROR [2019-02-08 15:12:50,093] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - リモート ホストからこのユーザのメンバー情報を取得できません。
ERROR [2019-02-08 15:14:23,177] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-08 15:14:23,178] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - コマンド: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
出力:
エラー: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
fatal: unable to access 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/': The requested URL returned error: 403


ERROR [2019-02-08 15:14:37,800] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-08 15:14:37,800] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - コマンド: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
出力:
エラー: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
fatal: unable to access 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/': The requested URL returned error: 403


ERROR [2019-02-08 15:15:04,584] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-08 15:15:04,585] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - コマンド: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
出力:
エラー: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/'


ERROR [2019-02-08 15:50:21,398] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-08 15:50:21,782] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-12 16:36:29,013] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-12 16:36:29,279] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - コマンド: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
出力:
エラー: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/'


ERROR [2019-02-12 16:36:33,191] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-12 16:36:33,192] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - コマンド: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
出力:
エラー: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/'


ERROR [2019-02-15 15:32:17,503] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-15 15:32:17,936] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-15 17:54:40,438] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-15 17:54:40,446] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID

 

・クローンできない場合の挙動(「○○」というエラーメッセージが表示される…など)
⇒エラー内容はこちらになります。
---------------------------------------
git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch master git@bitbucket.org:tvlabo/02_rakuten.git D:\miyazoe\repository\02_rakuten
Cloning into 'D:\miyazoe\repository\02_rakuten'...
FATAL ERROR: Server unexpectedly closed network connection
fatal: early EOF
fatal: the remote end hung up unexpectedly
fatal: index-pack failed

エラー終了しました。エラーの内容は上記をご覧ください。
---------------------------------------

・SourceTreeではなくCLIでは問題なくクローンできるか
⇒社内の規定で現在コマンドからのクローンが出来ておりません。

恐れ入りますがどうぞよろしくお願いいたします。

K_ Yamamoto
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2019

ログでは HTTPS エンドポイントで認証しようとしているのにも関わらず、

remote: Invalid username or password
fatal: Authentication failed for 'https://*@bitbucket.org/*/*.git/'

 提供いただいたエラーメッセージの直前 SSH エンドポイントに関連したログが出力されているのが気がかりです。

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch master git@bitbucket.*/*.git D:\*\repository\*
Cloning into 'D:\*\repository\*'...

 

大変恐縮ながら、現時点では解決策は不明です。

貴社規定でCLIにてクローンできないとのことですが、当面はセキュリティも考慮して当面はSSHにてクローンできるサイズにレポジトリを縮小して運用していただくのがよいかと存じます。

0 votes
K_ Yamamoto
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2019

こんにちは、アトラシアンの山本です。

手元の環境で再現などはとれていないのですが、既存のコミュニティ投稿などを参考に調べてみたところ下記設定を試してみるのがよさそうでした。

 

(1) アカウント設定の設定

  • Auth type: OAuth
  • Protocol: HTTP/SSH

SourceTree Settings.png

 

(2) 埋め込み Git の利用

設定 Tools > Options > "Git" にて Embedded Git を選ぶ。

 

 追加情報

またSSHだとクローンできないとのこと、詳しく調査したく次の情報も提供いただけますでしょうか。

 

■ 参考

参考にした他のコミュニティ投稿:

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events