You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
お世話になります。
クローンをしたいのですが、SSHだと重すぎるようで軽いリポジトリしかできません。
HTTPSでクローンするとログイン画面が何度も開き、最終的に
「ソースパス/ソースURLとして正しくありません」と出てしまいます。
アカウントの認証がうまくいってない印象です。
(2段階認証が有効化されている??)
▼以下試してみたもの
・最新バージョンへのアップグレード
・パスワード再発行
・SSHキーの再発行
・手動でユーザー設定を全削除
・SourceTree認証画面でアカウント削除、再設定
Windows版(version 3.0.17)
恐れ入りますがどうぞよろしくお願いいたします。
アトラシアン 山本さま
ご回答ありがとうございます。
いただいた内容を試してみましたが現在もエラーとなっております。
(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では問題なくクローンできるか
⇒社内の規定で現在コマンドからのクローンが出来ておりません。
恐れ入りますがどうぞよろしくお願いいたします。
ログでは 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にてクローンできるサイズにレポジトリを縮小して運用していただくのがよいかと存じます。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
こんにちは、アトラシアンの山本です。
手元の環境で再現などはとれていないのですが、既存のコミュニティ投稿などを参考に調べてみたところ下記設定を試してみるのがよさそうでした。
(1) アカウント設定の設定
(2) 埋め込み Git の利用
設定 Tools > Options > "Git" にて Embedded Git を選ぶ。
■ 追加情報
またSSHだとクローンできないとのこと、詳しく調査したく次の情報も提供いただけますでしょうか。
■ 参考
参考にした他のコミュニティ投稿:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.