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

Having trouble cloning a new BitBucket hg repo using SourceTree with the following error:

Harsh Bhardwaj December 1, 2018

Command: perl.exe C:\Users\harsh\AppData\Local\SourceTree\app-3.0.8\tools\svn.pl info https://ftx_harsh@bitbucket.org/foodtronixems/ems_gui
Output:
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/harsh/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE" ls-remote https://ftx_harsh@bitbucket.org/foodtronixems/ems_gui
Output:
Error: remote: Mercurial (hg) is required to use this repository.
remote:
remote: https://confluence.atlassian.com/x/vLRCMw
fatal: unable to access 'https://ftx_harsh@bitbucket.org/foodtronixems/ems_gui/': The requested URL returned error: 405

Command: hg identify extensions.hgext.hgsubversion=! https://ftx_harsh@bitbucket.org/foodtronixems/ems_gui
Output:
Error: ** Unknown exception encountered with possibly-broken third-party extension mercurial_credential_manager
** which supports versions unknown of Mercurial.
** Please disable mercurial_credential_manager and try your action again.
** If that fixes the bug please report it to https://github.com/mminns/mercurial_credential_manager_for_windows
** Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 4.6.2)
** Extensions loaded: eol, mercurial_credential_manager, rebase, transplant, extdiff, fetch, strip, mq, hgflow, shelve
Traceback (most recent call last):
File "hg", line 41, in <module>
File "mercurial\dispatch.pyc", line 90, in run
File "mercurial\dispatch.pyc", line 210, in dispatch
File "mercurial\dispatch.pyc", line 351, in _runcatch
File "mercurial\dispatch.pyc", line 359, in _callcatch
File "mercurial\scmutil.pyc", line 160, in callcatch
File "mercurial\dispatch.pyc", line 341, in _runcatchfunc
File "mercurial\dispatch.pyc", line 971, in _dispatch
File "mercurial\dispatch.pyc", line 727, in runcommand
File "mercurial\dispatch.pyc", line 979, in _runcommand
File "mercurial\dispatch.pyc", line 968, in <lambda>
File "mercurial\util.pyc", line 1553, in check
File "mercurial\util.pyc", line 1553, in check
File "hgext\mq.pyc", line 3599, in mqcommand
File "mercurial\util.pyc", line 1553, in check
File "mercurial\commands.pyc", line 2805, in identify
File "mercurial\hg.pyc", line 189, in peer
File "mercurial\hg.pyc", line 163, in _peerorrepo
File "mercurial\httppeer.pyc", line 987, in instance
File "mercurial\httppeer.pyc", line 951, in makepeer
File "mercurial\httppeer.pyc", line 871, in performhandshake
File "mercurial\httppeer.pyc", line 311, in sendrequest
File "urllib2.pyc", line 435, in open
File "urllib2.pyc", line 548, in http_response
File "urllib2.pyc", line 467, in error
File "urllib2.pyc", line 407, in _call_chain
File "urllib2.pyc", line 909, in http_error_401
File "mercurial\url.pyc", line 463, in http_error_auth_reqed
File "C:/Users/harsh/AppData/Local/Atlassian/SourceTree/hg_extras/mercurial_credential_manager.py", line 437, in basic_http_error_auth_reqed
return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
File "urllib2.pyc", line 887, in http_error_auth_reqed
File "mercurial\url.pyc", line 467, in retry_http_basic_auth
File "C:/Users/harsh/AppData/Local/Atlassian/SourceTree/hg_extras/mercurial_credential_manager.py", line 428, in find_user_password
return self._pwd_handler.find_auth(self, realm, authuri, req)
File "C:/Users/harsh/AppData/Local/Atlassian/SourceTree/hg_extras/mercurial_credential_manager.py", line 259, in find_auth
if username[0]:
IndexError: list index out of range

 

2 answers

0 votes
_PuzzledBoy_ May 4, 2019

Have you install Mercurial?

 

火星图片_20190505_135921.png

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 3, 2018

Hi Harsh!

Do you have access to the repository you're trying to clone? If you already have access, please double-check that you're using the right credentials.

It's possible that the extension you're using to manage the credential is not working properly, according to the error: 

Unknown exception encountered with possibly-broken third-party extension mercurial_credential_manager
** which supports versions unknown of Mercurial.
** Please disable mercurial_credential_manager and try your action again.

Have you tried what is suggested in the error message above?

Lastly, if that doesn't work, can you let us know if cloning also fails when doing it from the terminal? This will help us identify if the issue is within Sourcetree or if it's somewhere else.

Cheers,

Ana 

Harsh Bhardwaj December 3, 2018

Hi @Ana Retamal,

 

I Tried changing the username too. I am having issue with cloning. While trying to clone Bitbucket repository to my local machine I get to the following screen:

Capture.JPG I have tried reinstalling Sourcetree multiple times now including different versions of it from the archive. there are times when it would go in a pop up login loop where it keeps asking for Bitbucket account password.

Please help!!!!!

Harsh Bhardwaj December 3, 2018

 

the details of the error are as follows:

 

Command: perl.exe "C:\Users\Harsh Bhardwaj\AppData\Local\Sourcetree\app-3.0.9\tools\svn.pl" info https://harshbhardwaj23@bitbucket.org/foodtronixems/ems_gui
Output: 
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Command: hg identify extensions.hgext.hgsubversion=! https://harshbhardwaj23@bitbucket.org/foodtronixems/ems_gui
Output: 
Error: ** Unknown exception encountered with possibly-broken third-party extension mercurial_credential_manager
** which supports versions unknown of Mercurial.
** Please disable mercurial_credential_manager and try your action again.
** If that fixes the bug please report it to https://github.com/mminns/mercurial_credential_manager_for_windows
** Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 4.5.3)
** Extensions loaded: eol, mercurial_credential_manager, rebase, transplant, extdiff, fetch, strip, mq, hgflow, shelve
Traceback (most recent call last):
File "hg", line 41, in <module>
File "mercurial\dispatch.pyc", line 88, in run
File "mercurial\dispatch.pyc", line 183, in dispatch
File "mercurial\dispatch.pyc", line 324, in _runcatch
File "mercurial\dispatch.pyc", line 332, in _callcatch
File "mercurial\scmutil.pyc", line 154, in callcatch
File "mercurial\dispatch.pyc", line 314, in _runcatchfunc
File "mercurial\dispatch.pyc", line 918, in _dispatch
File "mercurial\dispatch.pyc", line 673, in runcommand
File "mercurial\dispatch.pyc", line 926, in _runcommand
File "mercurial\dispatch.pyc", line 915, in <lambda>
File "mercurial\util.pyc", line 1195, in check
File "mercurial\util.pyc", line 1195, in check
File "hgext\mq.pyc", line 3583, in mqcommand
File "mercurial\util.pyc", line 1195, in check
File "mercurial\commands.pyc", line 2758, in identify
File "mercurial\hg.pyc", line 181, in peer
File "mercurial\hg.pyc", line 156, in _peerorrepo
File "mercurial\httppeer.pyc", line 497, in instance
File "mercurial\httppeer.pyc", line 239, in _fetchcaps
File "mercurial\httppeer.pyc", line 407, in _call
File "mercurial\httppeer.pyc", line 336, in _callstream
File "mercurial\httppeer.pyc", line 193, in _openurl
File "urllib2.pyc", line 435, in open
File "urllib2.pyc", line 548, in http_response
File "urllib2.pyc", line 467, in error
File "urllib2.pyc", line 407, in _call_chain
File "urllib2.pyc", line 909, in http_error_401
File "mercurial\url.pyc", line 422, in http_error_auth_reqed
File "C:/Users/Harsh Bhardwaj/AppData/Local/Atlassian/SourceTree/hg_extras/mercurial_credential_manager.py", line 437, in basic_http_error_auth_reqed
return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
File "urllib2.pyc", line 887, in http_error_auth_reqed
File "mercurial\url.pyc", line 426, in retry_http_basic_auth
File "C:/Users/Harsh Bhardwaj/AppData/Local/Atlassian/SourceTree/hg_extras/mercurial_credential_manager.py", line 428, in find_user_password
return self._pwd_handler.find_auth(self, realm, authuri, req)
File "C:/Users/Harsh Bhardwaj/AppData/Local/Atlassian/SourceTree/hg_extras/mercurial_credential_manager.py", line 259, in find_auth
if username[0]:
IndexError: list index out of range

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/HARSHB~1/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE" ls-remote https://harshbhardwaj23@bitbucket.org/foodtronixems/ems_gui
Output: 
Error: remote: Mercurial (hg) is required to use this repository.
remote: 
remote: https://confluence.atlassian.com/x/vLRCMw
fatal: unable to access 'https://harshbhardwaj23@bitbucket.org/foodtronixems/ems_gui/': The requested URL returned error: 405

Underson March 7, 2019

any updates on that? seems like i'm having same problem

albertogarpu April 11, 2019

Same problem here

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events